manager->get_setting( 'theme_options[disable_header_background_section]' )->value() == true ) { return true; }else{ return false; } } function blog_decode_popular_active( $control ) { if( $control->manager->get_setting( 'theme_options[disable_popular_section]' )->value() == true ) { return true; }else{ return false; } } function blog_decode_slider_active( $control ) { if( $control->manager->get_setting( 'theme_options[disable_featured-slider_section]' )->value() == true ) { return true; }else{ return false; } } function blog_decode_sensational_active( $control ) { if( $control->manager->get_setting( 'theme_options[disable_sensational_section]' )->value() == true ) { return true; }else{ return false; } } function blog_decode_mustread_active( $control ) { if( $control->manager->get_setting( 'theme_options[disable_mustread_section]' )->value() == true ) { return true; }else{ return false; } } function blog_decode_featured_active( $control ) { if( $control->manager->get_setting( 'theme_options[disable_featured_section]' )->value() == true ) { return true; }else{ return false; } } /** * Active Callback for top bar section */ function blog_decode_contact_info_ac( $control ) { $show_contact_info = $control->manager->get_setting( 'theme_options[show_header_contact_info]')->value(); $control_id = $control->id; if ( $control_id == 'theme_options[header_location]' && $show_contact_info ) return true; if ( $control_id == 'theme_options[header_email]' && $show_contact_info ) return true; if ( $control_id == 'theme_options[header_phone]' && $show_contact_info ) return true; return false; } function blog_decode_social_links_active( $control ) { if( $control->manager->get_setting( 'theme_options[show_header_social_links]' )->value() == true ) { return true; }else{ return false; } }