| Server IP : 77.50.203.18 / Your IP : 192.168.0.10 Web Server : Apache/2.4.62 (CentOS Stream) OpenSSL/3.5.7 mpm-itk/2.4.7-04 PHP/8.4.23 System : Linux web2 5.14.0-722.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jul 6 09:07:51 UTC 2026 x86_64 User : warsnews.ru ( 1001) PHP Version : 8.4.23 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/ifwar.ru/www/wp-content/themes/newsup/inc/ansar/customize/ |
Upload File : |
<?php
/**
* Customizer callback functions for active_callback.
*
* @package Newsup
*/
/*select page for newsup_popular_tags_section_status*/
if (!function_exists('newsup_popular_tags_section_status')) :
/**
* Check if slider section page/post is active.
*
* @since 1.0.0
*
* @param WP_Customize_Control $control WP_Customize_Control instance.
*
* @return bool Whether the control is active to the current preview.
*/
function newsup_popular_tags_section_status($control){
if (true == $control->manager->get_setting('show_popular_tags_section')->value()) {
return true;
} else {
return false;
}
}
endif;
/*select page for newsup_flash_posts_section_status*/
if (!function_exists('newsup_flash_posts_section_status')) :
/**
* Check if slider section page/post is active.
*
* @since 1.0.0
*
* @param WP_Customize_Control $control WP_Customize_Control instance.
*
* @return bool Whether the control is active to the current preview.
*/
function newsup_flash_posts_section_status($control) {
if (true == $control->manager->get_setting('show_flash_news_section')->value()) {
return true;
} else {
return false;
}
}
endif;
/*select page for slider*/
if (!function_exists('newsup_main_banner_section_status')) :
/**
* Check if slider section page/post is active.
*
* @since 1.0.0
*
* @param WP_Customize_Control $control WP_Customize_Control instance.
*
* @return bool Whether the control is active to the current preview.
*/
function newsup_main_banner_section_status($control){
if (true == $control->manager->get_setting('show_main_news_section')->value()) {
return true;
} else {
return false;
}
}
endif;
/*select page for newsup_header_image_overlay_status*/
if (!function_exists('newsup_header_image_overlay_status')) :
/**
* Check if ticker section page/post is active.
*
* @since 1.0.0
*
* @param WP_Customize_Control $control WP_Customize_Control instance.
*
* @return bool Whether the control is active to the current preview.
*/
function newsup_header_image_overlay_status($control){
if (true !== $control->manager->get_setting('remove_header_image_overlay')->value()) {
return true;
} else {
return false;
}
}
endif;