add_section( 'sidebars_settings', array( 'title' => __( 'Sidebars', 'businessdex' ), 'panel' => 'settings_options' ) ); ////// Sidebars - Misc businessdex_controller_checkbox( 'sidebars_demo_disable', 'sidebars_settings', esc_html__( 'Disable demo widgets', 'businessdex' ), esc_html__( 'If sidebars are empty, demo widgets will show up. Check this if you do not want to display them.', 'businessdex' ), false ); ////// Sidebars - Post businessdex_controller_info( 'sidebars_post_info', 'sidebars_settings', ( businessdex_jetpack_check( 'custom-content-types' ) ) ? __( 'Post & Portfolio view', 'businessdex' ) : __( 'Post view', 'businessdex' ) ); businessdex_controller_checkbox( 'sidebars_post_disable', 'sidebars_settings', esc_html__( 'Disable sidebar globally', 'businessdex' ), esc_html__( 'This will overwrite any option you select for each post.', 'businessdex' ), false ); ////// Sidebars - Page businessdex_controller_info( 'sidebars_page_info', 'sidebars_settings', __( 'Page view', 'businessdex' ) ); businessdex_controller_checkbox( 'sidebars_page_disable', 'sidebars_settings', esc_html__( 'Disable sidebar globally', 'businessdex' ), esc_html__( 'This will overwrite any option you select for each page.', 'businessdex' ), false ); ////// Sidebars - WooCommerce if( businessdex_wco_is_activated() ) { businessdex_controller_info( 'sidebars_woocommerce_info', 'sidebars_settings', __( 'WooCommerce view', 'businessdex' ) ); businessdex_controller_checkbox( 'sidebars_woocommerce_disable', 'sidebars_settings', esc_html__( 'Disable sidebar globally', 'businessdex' ), esc_html__( 'This will overwrite any option you select for each product or on shop homepage/archives. Also, this does not work for cart, checkout and my account pages (use the Page view option instead)', 'businessdex' ), false ); } // END WooCommerce Check