manager->get_setting( 'bizzweb_enable_pagination' )->value() ); } function bizzweb_is_breadcrumb_enabled( $control ) { return ( $control->manager->get_setting( 'bizzweb_enable_breadcrumb' )->value() ); } // Topbar Area. function bizzweb_is_topbar_enabled( $control ) { return ( $control->manager->get_Setting( 'bizzweb_enable_topbar' )->value() ); } // Banner Slider Section. function bizzweb_is_banner_slider_section_enabled( $control ) { return ( $control->manager->get_setting( 'bizzweb_enable_banner_section' )->value() ); } function bizzweb_is_banner_slider_section_and_content_type_post_enabled( $control ) { $content_type = $control->manager->get_setting( 'bizzweb_banner_slider_content_type' )->value(); return ( bizzweb_is_banner_slider_section_enabled( $control ) && ( 'post' === $content_type ) ); } function bizzweb_is_banner_slider_section_and_content_type_page_enabled( $control ) { $content_type = $control->manager->get_setting( 'bizzweb_banner_slider_content_type' )->value(); return ( bizzweb_is_banner_slider_section_enabled( $control ) && ( 'page' === $content_type ) ); } // Service section. function bizzweb_is_service_section_enabled( $control ) { return ( $control->manager->get_setting( 'bizzweb_enable_service_section' )->value() ); } function bizzweb_is_service_section_and_content_type_post_enabled( $control ) { $content_type = $control->manager->get_setting( 'bizzweb_service_content_type' )->value(); return ( bizzweb_is_service_section_enabled( $control ) && ( 'post' === $content_type ) ); } function bizzweb_is_service_section_and_content_type_page_enabled( $control ) { $content_type = $control->manager->get_setting( 'bizzweb_service_content_type' )->value(); return ( bizzweb_is_service_section_enabled( $control ) && ( 'page' === $content_type ) ); } // About section. function bizzweb_is_about_section_enabled( $control ) { return ( $control->manager->get_setting( 'bizzweb_enable_about_section' )->value() ); } function bizzweb_is_about_section_and_content_type_post_enabled( $control ) { $content_type = $control->manager->get_setting( 'bizzweb_about_content_type' )->value(); return ( bizzweb_is_about_section_enabled( $control ) && ( 'post' === $content_type ) ); } function bizzweb_is_about_section_and_content_type_page_enabled( $control ) { $content_type = $control->manager->get_setting( 'bizzweb_about_content_type' )->value(); return ( bizzweb_is_about_section_enabled( $control ) && ( 'page' === $content_type ) ); } // Mission section. function bizzweb_is_mission_section_enabled( $control ) { return ( $control->manager->get_setting( 'bizzweb_enable_mission_section' )->value() ); } function bizzweb_is_mission_section_and_content_type_post_enabled( $control ) { $content_type = $control->manager->get_setting( 'bizzweb_mission_content_type' )->value(); return ( bizzweb_is_mission_section_enabled( $control ) && ( 'post' === $content_type ) ); } function bizzweb_is_mission_section_and_content_type_page_enabled( $control ) { $content_type = $control->manager->get_setting( 'bizzweb_mission_content_type' )->value(); return ( bizzweb_is_mission_section_enabled( $control ) && ( 'page' === $content_type ) ); } // Team section. function bizzweb_is_team_section_enabled( $control ) { return ( $control->manager->get_setting( 'bizzweb_enable_team_section' )->value() ); } function bizzweb_is_team_section_and_content_type_post_enabled( $control ) { $content_type = $control->manager->get_setting( 'bizzweb_team_content_type' )->value(); return ( bizzweb_is_team_section_enabled( $control ) && ( 'post' === $content_type ) ); } function bizzweb_is_team_section_and_content_type_page_enabled( $control ) { $content_type = $control->manager->get_setting( 'bizzweb_team_content_type' )->value(); return ( bizzweb_is_team_section_enabled( $control ) && ( 'page' === $content_type ) ); } // Latest News Section. function bizzweb_is_latest_news_section_enabled( $control ) { return ( $control->manager->get_setting( 'bizzweb_enable_latest_news_section' )->value() ); } function bizzweb_is_latest_news_section_and_content_type_post_enabled( $control ) { $content_type = $control->manager->get_setting( 'bizzweb_latest_news_content_type' )->value(); return ( bizzweb_is_latest_news_section_enabled( $control ) && ( 'post' === $content_type ) ); } function bizzweb_is_latest_news_section_and_content_type_category_enabled( $control ) { $content_type = $control->manager->get_setting( 'bizzweb_latest_news_content_type' )->value(); return ( bizzweb_is_latest_news_section_enabled( $control ) && ( 'category' === $content_type ) ); } // Counter section. function bizzweb_is_counter_section_enabled( $control ) { return ( $control->manager->get_setting( 'bizzweb_enable_counter_section' )->value() ); } // Video section. function bizzweb_is_video_section_enabled( $control ) { return ( $control->manager->get_setting( 'bizzweb_enable_video_section' )->value() ); } // Check if static home page is enabled. function bizzweb_is_static_homepage_enabled( $control ) { return ( 'page' === $control->manager->get_setting( 'show_on_front' )->value() ); }