| Server IP : 51.91.236.255 / Your IP : 216.73.217.120 Web Server : Apache System : Linux webm002.cluster129.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : laureet ( 1012854) PHP Version : 8.0.30 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/laureet/www/wp-content/themes/rhye/inc/functions/ |
Upload File : |
<?php
/**
* Add additional classes to <body>
*/
add_filter( 'body_class', 'arts_add_body_classes' );
function arts_add_body_classes( $classes ) {
$page_ajax_to_enabled = arts_get_document_option( 'page_ajax_to_enabled' );
$page_ajax_from_enabled = arts_get_document_option( 'page_ajax_from_enabled' );
$body_classes = array();
// Disable AJAX transitions TO this page
if ( ! $page_ajax_to_enabled ) {
$body_classes[] = 'page-no-ajax';
}
// Disable AJAX transitions FROM this page
if ( ! $page_ajax_from_enabled ) {
$body_classes[] = 'no-ajax';
}
$classes = array_merge( $classes, $body_classes );
return $classes;
}