| Server IP : 82.64.35.208 / Your IP : 192.168.65.1 Web Server : Apache/2.4.68 (Debian) System : Linux 079bc81edf51 6.12.76-linuxkit #1 SMP Tue Jul 21 14:38:37 UTC 2026 aarch64 User : root ( 0) PHP Version : 8.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/html/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 bool 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 bool 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 bool 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;
}
}
}