manager->get_setting( 'businesity_enable_goal_section' )->value() ); } function businesity_is_goal_section_and_content_type_post_enabled( $control ) { $content_type = $control->manager->get_setting( 'businesity_goal_content_type' )->value(); return ( businesity_is_goal_section_enabled( $control ) && ( 'post' === $content_type ) ); } function businesity_is_goal_section_and_content_type_page_enabled( $control ) { $content_type = $control->manager->get_setting( 'businesity_goal_content_type' )->value(); return ( businesity_is_goal_section_enabled( $control ) && ( 'page' === $content_type ) ); } function businesity_is_goal_section_and_additional_box_enabled( $control ) { $additional_box = $control->manager->get_setting( 'businesity_enable_goal_box' )->value(); return ( businesity_is_goal_section_enabled( $control ) && ( true === $additional_box ) ); } // Features section. function businesity_is_features_section_enabled( $control ) { return ( $control->manager->get_setting( 'businesity_enable_features_section' )->value() ); } function businesity_is_features_section_and_content_type_post_enabled( $control ) { $content_type = $control->manager->get_setting( 'businesity_features_content_type' )->value(); return ( businesity_is_features_section_enabled( $control ) && ( 'post' === $content_type ) ); } function businesity_is_features_section_and_content_type_page_enabled( $control ) { $content_type = $control->manager->get_setting( 'businesity_features_content_type' )->value(); return ( businesity_is_features_section_enabled( $control ) && ( 'page' === $content_type ) ); } function businesity_is_features_section_and_content_type_category_enabled( $control ) { $content_type = $control->manager->get_setting( 'businesity_features_content_type' )->value(); return ( businesity_is_features_section_enabled( $control ) && ( 'category' === $content_type ) ); } // Case Study section. function businesity_is_case_study_section_enabled( $control ) { return ( $control->manager->get_setting( 'businesity_enable_case_study_section' )->value() ); } function businesity_is_case_study_section_and_content_type_post_enabled( $control ) { $content_type = $control->manager->get_setting( 'businesity_case_study_content_type' )->value(); return ( businesity_is_case_study_section_enabled( $control ) && ( 'post' === $content_type ) ); } function businesity_is_case_study_section_and_content_type_page_enabled( $control ) { $content_type = $control->manager->get_setting( 'businesity_case_study_content_type' )->value(); return ( businesity_is_case_study_section_enabled( $control ) && ( 'page' === $content_type ) ); } function businesity_is_case_study_section_and_content_type_category_enabled( $control ) { $content_type = $control->manager->get_setting( 'businesity_case_study_content_type' )->value(); return ( businesity_is_case_study_section_enabled( $control ) && ( 'category' === $content_type ) ); }