on_off_label = $args['on_off_label']; parent::__construct( $manager, $id, $args ); } public function render_content(){ ?> label ); ?> description ){ ?> description ); ?> value() == 'true' ) ? 'switch-on' : ''; $on_off_label = $this->on_off_label; ?>
link(); ?> type="hidden" value="value() ); ?>"/> choices ) ) return; ?>

manager->get_setting( 'highlighted_posts_section_enable' )->value() ); } function blogmax_news_is_three_column_section_enable( $control ) { return ( $control->manager->get_setting( 'three_column_section_enable' )->value() ); } function blogmax_news_is_trending_posts_section_enable( $control ) { return ( $control->manager->get_setting( 'trending_posts_section_enable' )->value() ); } function blogmax_news_is_recent_posts_section_enable( $control ) { return ( $control->manager->get_setting( 'recent_posts_section_enable' )->value() ); } function blogmax_news_is_advertisement_section_enable( $control ) { return ( $control->manager->get_setting( 'advertisement_section_enable' )->value() ); } function blogmax_news_is_most_viewed_posts_section_enable( $control ) { return ( $control->manager->get_setting( 'most_viewed_posts_section_enable' )->value() ); } function blogmax_news_is_popular_posts_section_enable( $control ) { return ( $control->manager->get_setting( 'popular_posts_section_enable' )->value() ); } function blogmax_news_is_sports_section_enable( $control ) { return ( $control->manager->get_setting( 'sports_section_enable' )->value() ); } function blogmax_news_is_two_column_posts_section_enable( $control ) { return ( $control->manager->get_setting( 'two_column_posts_section_enable' )->value() ); } function blogmax_news_is_latest_posts_section_enable( $control ) { return ( $control->manager->get_setting( 'latest_posts_section_enable' )->value() ); } /*=============Partial Refresh=====================*/ if ( ! function_exists( 'blogmax_news_three_column_title_partial' ) ) : // three_column_title function blogmax_news_three_column_title_partial() { return esc_html( get_theme_mod( 'three_column_title' ) ); } endif; if ( ! function_exists( 'blogmax_news_trending_posts_title_partial' ) ) : // trending_posts_title function blogmax_news_trending_posts_title_partial() { return esc_html( get_theme_mod( 'trending_posts_title' ) ); } endif; if ( ! function_exists( 'blogmax_news_recent_posts_title_partial' ) ) : // recent_posts_title function blogmax_news_recent_posts_title_partial() { return esc_html( get_theme_mod( 'recent_posts_title' ) ); } endif; if ( ! function_exists( 'blogmax_news_most_viewed_posts_title_partial' ) ) : // most_viewed_posts_title function blogmax_news_most_viewed_posts_title_partial() { return esc_html( get_theme_mod( 'most_viewed_posts_title' ) ); } endif; if ( ! function_exists( 'blogmax_news_popular_posts_title_partial' ) ) : // popular_posts_title function blogmax_news_popular_posts_title_partial() { return esc_html( get_theme_mod( 'popular_posts_title' ) ); } endif; if ( ! function_exists( 'blogmax_news_sports_title_partial' ) ) : // sports_title function blogmax_news_sports_title_partial() { return esc_html( get_theme_mod( 'sports_title' ) ); } endif; if ( ! function_exists( 'blogmax_news_two_column_posts_title_partial' ) ) : // two_column_posts_title function blogmax_news_two_column_posts_title_partial() { return esc_html( get_theme_mod( 'two_column_posts_title' ) ); } endif; if ( ! function_exists( 'blogmax_news_latest_posts_title_partial' ) ) : // latest_posts_title function blogmax_news_latest_posts_title_partial() { return esc_html( get_theme_mod( 'latest_posts_title' ) ); } endif;