| Server IP : 54.36.91.62 / Your IP : 216.73.216.15 Web Server : Apache System : Linux webm021.cluster127.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64 User : uxhactp ( 169076) PHP Version : 7.4.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/u/x/h/uxhactp/www/wp-content/themes/astra/inc/customizer/ |
Upload File : |
<?php
/**
* Astra Theme Customizer Callback
*
* @package Astra Theme
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
/**
* Customizer Callback
*/
if ( ! class_exists( 'Astra_Customizer_Callback' ) ) :
/**
* Customizer Callback
*/
class Astra_Customizer_Callback {
/**
* Sidebar Archive
*
* @return boolean Return the sidebar status for Home, Archive & Search pages.
*/
public static function _sidebar_archive() { // phpcs:ignore PSR2.Methods.MethodDeclaration.Underscore
if ( is_home() || is_archive() || is_search() ) {
return true;
}
return false;
}
/**
* Sidebar Single
*
* @return boolean Return the sidebar status for Single Post.
*/
public static function _sidebar_single() { // phpcs:ignore PSR2.Methods.MethodDeclaration.Underscore
if ( is_single() ) {
return true;
}
return false;
}
/**
* Sidebar Page
*
* @return boolean Return the sidebar status for Single Page / Custom post type & 404.
*/
public static function _sidebar_page() { // phpcs:ignore PSR2.Methods.MethodDeclaration.Underscore
if ( is_page() || is_404() ) {
return true;
}
return false;
}
}
endif;