'edit_theme_options', 'option_type' => 'theme_mod', ) ); //set logo in customizer header if ( ! function_exists( 'business_press_configuration_sample_styling' ) ) { function business_press_configuration_sample_styling( $config ) { return wp_parse_args( array( 'logo_image' => get_template_directory_uri() . '/images/logo_for_kirki.png', 'description' => __( 'Business Press Theme by EWP Theme.', 'business-press' ), ), $config ); } } add_filter( 'kirki/config', 'business_press_configuration_sample_styling' ); //the main panel business_press_option::add_panel( 'business_press_options', array( 'priority' => 10, 'title' => esc_attr__( 'Business Press Options', 'business-press' ), 'description' => esc_attr__( 'All options of Business Press theme', 'business-press' ), ) ); //the main panel END //business_press pro info section business_press_option::add_section( 'business_press_pro_sec', array( 'title' => 'Try Business Press Pro', 'panel' => 'business_press_options', // Not typically needed. 'priority' => 10, 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. ) ); business_press_option::add_field( 'business_press_config', array( 'type' => 'custom', 'settings' => 'business_press_pro_custom_fld', 'label' => 'Business Press Pro is Available', 'section' => 'business_press_pro_sec', 'default' => '
' . __( 'Call:', 'business-press') . ' 0123456789 | ' . __( 'Email:', 'business-press') . ' info@example.com
', 'priority' => 10, 'transport' => 'postMessage', 'js_vars' => array( array( 'element' => '.topbar_ctmzr', 'function' => 'html', ), ), 'active_callback' => array( array( 'setting' => 'business_press_display_top_bar', 'operator' => '==', 'value' => 1, ), array( 'setting' => 'business_press_tpbr_left_view', 'operator' => '==', 'value' => 1, ), ) ) ); //top bar END //header business_press_option::add_section( 'header_settings', array( 'title' => esc_attr__( 'Header Options', 'business-press' ), 'panel' => 'business_press_options', // Not typically needed. 'priority' => 10, 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. ) ); business_press_option::add_field( 'business_press_config', array( 'type' => 'toggle', 'settings' => 'business_press_stickyheader', 'label' => esc_attr__( 'Sticky Header', 'business-press' ), 'description' => esc_attr__( 'Enable/Disable Sticky Header (Due to small screen, we have disabled it for small screen devices)', 'business-press' ), 'section' => 'header_settings', 'default' => '1', 'priority' => 10, ) ); //header END //title bar business_press_option::add_section( 'titlbar_options', array( 'title' => esc_attr__( 'Title Bar Options', 'business-press' ), 'panel' => 'business_press_options', // Not typically needed. 'priority' => 10, 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. ) ); business_press_option::add_field( 'business_press_config', array( 'type' => 'toggle', 'settings' => 'business_press_titlebar_showhide', 'label' => esc_attr__( 'Title bar', 'business-press' ), 'description' => esc_attr__( 'Enable/Disable Title bar', 'business-press' ), 'section' => 'titlbar_options', 'default' => '1', 'priority' => 10, ) ); business_press_option::add_field( 'business_press_config', array( 'type' => 'toggle', 'settings' => 'business_press_breadcrumbx_setting', 'label' => esc_attr__( 'Breadcrumb', 'business-press' ), 'description' => esc_attr__( 'Enable/Disable Breadcrumb on title bar', 'business-press' ), 'section' => 'titlbar_options', 'default' => '1', 'priority' => 10, 'active_callback' => array( array( 'setting' => 'business_press_titlebar_showhide', 'operator' => '==', 'value' => 1, ), ) ) ); business_press_option::add_field( 'business_press_config', array( 'type' => 'text', 'settings' => 'business_press_frntpg_hdlin', 'label' => esc_attr__( 'Front page headline', 'business-press' ), 'section' => 'titlbar_options', 'default' => __( 'Headline: Customizable', 'business-press' ), 'priority' => 10, 'active_callback' => array( array( 'setting' => 'business_press_titlebar_showhide', 'operator' => '==', 'value' => 1, ), ), 'transport' => 'postMessage', 'js_vars' => array( array( 'element' => '.frnt_pg_hdline_ctmzr', 'function' => 'html', ), ), ) ); //title bar END //social profile business_press_option::add_section( 'social_options', array( 'title' => esc_attr__( 'Social Profile', 'business-press' ), 'panel' => 'business_press_options', // Not typically needed. 'priority' => 10, 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. ) ); business_press_option::add_field( 'business_press_config', array( 'type' => 'text', 'settings' => 'business_press_social_profile_link_facebook', 'label' => esc_attr__( 'Facebook Link', 'business-press' ), 'description' => esc_attr__( 'Leave empty for disable', 'business-press' ), 'section' => 'social_options', 'default' => 'http://facebook.com', 'priority' => 10, ) ); business_press_option::add_field( 'business_press_config', array( 'type' => 'text', 'settings' => 'business_press_social_profile_link_twitter', 'label' => esc_attr__( 'Twitter Link', 'business-press' ), 'description' => esc_attr__( 'Leave empty for disable', 'business-press' ), 'section' => 'social_options', 'default' => 'http://twitter.com', 'priority' => 10, ) ); business_press_option::add_field( 'business_press_config', array( 'type' => 'text', 'settings' => 'business_press_social_profile_link_youtube', 'label' => esc_attr__( 'YouTube Link', 'business-press' ), 'description' => esc_attr__( 'Leave empty for disable', 'business-press' ), 'section' => 'social_options', 'default' => 'http://youtube.com', 'priority' => 10, ) ); business_press_option::add_field( 'business_press_config', array( 'type' => 'text', 'settings' => 'business_press_social_profile_link_googleplus', 'label' => esc_attr__( 'Google Plus Link', 'business-press' ), 'description' => esc_attr__( 'Leave empty for disable', 'business-press' ), 'section' => 'social_options', 'default' => '', 'priority' => 10, ) ); business_press_option::add_field( 'business_press_config', array( 'type' => 'text', 'settings' => 'business_press_social_profile_link_linkedin', 'label' => esc_attr__( 'Linkedin Link', 'business-press' ), 'description' => esc_attr__( 'Leave empty for disable', 'business-press' ), 'section' => 'social_options', 'default' => '', 'priority' => 10, ) ); business_press_option::add_field( 'business_press_config', array( 'type' => 'text', 'settings' => 'business_press_social_profile_link_pinterest', 'label' => esc_attr__( 'Pinterest Link', 'business-press' ), 'description' => esc_attr__( 'Leave empty for disable', 'business-press' ), 'section' => 'social_options', 'default' => '', 'priority' => 10, ) ); business_press_option::add_field( 'business_press_config', array( 'type' => 'text', 'settings' => 'business_press_social_profile_link_skype', 'label' => esc_attr__( 'Skype Id', 'business-press' ), 'description' => esc_attr__( 'Leave empty for disable', 'business-press' ), 'section' => 'social_options', 'default' => '', 'priority' => 10, ) ); //social profile END // Blog business_press_option::add_section( 'blog_options', array( 'title' => esc_attr__( 'Blog Options', 'business-press' ), 'panel' => 'business_press_options', // Not typically needed. 'priority' => 10, 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. ) ); business_press_option::add_field( 'business_press_config', array( 'type' => 'toggle', 'settings' => 'business_press_archive_post_thumbnail', 'label' => esc_attr__( 'Thumbnail on Archive Post', 'business-press' ), 'description' => esc_attr__( 'Enable/Disable Thumbnail on Archive/Loop Page', 'business-press' ), 'section' => 'blog_options', 'default' => '1', 'priority' => 10, ) ); business_press_option::add_field( 'business_press_config', array( 'type' => 'toggle', 'settings' => 'business_press_single_post_thumbnail', 'label' => esc_attr__( 'Thumbnail on Single Post', 'business-press' ), 'description' => esc_attr__( 'Enable/Disable Thumbnail on Single Post', 'business-press' ), 'section' => 'blog_options', 'default' => '1', 'priority' => 10, ) ); business_press_option::add_field( 'business_press_config', array( 'type' => 'select', 'settings' => 'business_press_post_date_view', 'label' => esc_attr__( 'Post Date View', 'business-press' ), 'section' => 'blog_options', 'default' => '1', 'priority' => 10, 'choices' => array( '1' => esc_attr__( 'Display Updated Date', 'business-press' ), '2' => esc_attr__( 'Display Publish Date', 'business-press' ), ), ) ); business_press_option::add_field( 'business_press_config', array( 'type' => 'number', 'settings' => 'business_press_excerpt_length', 'label' => esc_attr__( 'Excerpt Length', 'business-press' ), 'description' => esc_attr__( 'How much words you want to display on Archive page?', 'business-press' ), 'section' => 'blog_options', 'default' => 57, 'choices' => array( 'min' => 1, 'step' => 1, ), ) ); business_press_option::add_field( 'business_press_config', array( 'type' => 'radio-image', 'settings' => 'business_press_blog_archive_layout', 'label' => esc_attr__( 'Archive / Loop Layout', 'business-press' ), 'section' => 'blog_options', 'default' => 'rights', 'priority' => 10, 'choices' => array( 'fullw' => get_template_directory_uri() . '/images/fullw.png', 'rights' => get_template_directory_uri() . '/images/rights.png', ), ) ); business_press_option::add_field( 'business_press_config', array( 'type' => 'radio-image', 'settings' => 'business_press_blog_single_layout', 'label' => esc_attr__( 'Single Post Layout', 'business-press' ), 'section' => 'blog_options', 'default' => 'rights', 'priority' => 10, 'choices' => array( 'fullw' => get_template_directory_uri() . '/images/fullw.png', 'rights' => get_template_directory_uri() . '/images/rights.png', ), ) ); business_press_option::add_field( 'business_press_config', array( 'type' => 'editor', 'settings' => 'business_press_comment_panel_title', 'label' => esc_attr__( 'Comment Section Headline', 'business-press' ), 'description' => esc_attr__( 'Open editor in Text mode and update.', 'business-press' ), 'section' => 'blog_options', 'default' => 'Have any Question or Comment?', 'priority' => 10, 'transport' => 'postMessage', 'js_vars' => array( array( 'element' => '.cmnthdlne_ctmzr', 'function' => 'html', ), ), ) ); // Blog END //woocommerce section if( class_exists( 'WooCommerce' ) ) { business_press_option::add_section( 'woocommerce_options', array( 'title' => esc_attr__( 'Woocommerce Options', 'business-press' ), 'panel' => 'business_press_options', // Not typically needed. 'priority' => 10, 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. ) ); business_press_option::add_field( 'business_press_config', array( 'type' => 'toggle', 'settings' => 'business_press_display_shop_link_top_bar', 'label' => esc_attr__( 'Display shop icon in Top Bar?', 'business-press' ), 'description' => esc_attr__( 'Enable/Disable shop icon in Top Bar', 'business-press' ), 'section' => 'woocommerce_options', 'default' => '1', 'priority' => 10, 'active_callback' => array( array( 'setting' => 'business_press_display_top_bar', 'operator' => '==', 'value' => 1, ), ) ) ); business_press_option::add_field( 'business_press_config', array( 'type' => 'toggle', 'settings' => 'business_press_display_cart_link_top_bar', 'label' => esc_attr__( 'Display cart icon in Top Bar?', 'business-press' ), 'description' => esc_attr__( 'Enable/Disable cart icon in Top Bar', 'business-press' ), 'section' => 'woocommerce_options', 'default' => '1', 'priority' => 10, 'active_callback' => array( array( 'setting' => 'business_press_display_top_bar', 'operator' => '==', 'value' => 1, ), ) ) ); business_press_option::add_field( 'business_press_config', array( 'type' => 'toggle', 'settings' => 'business_press_display_myaccount_link_top_bar', 'label' => esc_attr__( 'Display My Account icon in Top Bar?', 'business-press' ), 'description' => esc_attr__( 'Enable/Disable My Account icon in Top Bar', 'business-press' ), 'section' => 'woocommerce_options', 'default' => '1', 'priority' => 10, 'active_callback' => array( array( 'setting' => 'business_press_display_top_bar', 'operator' => '==', 'value' => 1, ), ) ) ); business_press_option::add_field( 'business_press_config', array( 'type' => 'number', 'settings' => 'business_press_product_per_page', 'label' => esc_attr__( 'Number of products display on loop page', 'business-press' ), 'description' => esc_attr__( 'How much products you want to display on loop page? (Please save and reload)', 'business-press' ), 'section' => 'woocommerce_options', 'default' => 12, 'choices' => array( 'min' => 0, 'max' => 100, 'step' => 1, ), ) ); business_press_option::add_field( 'business_press_config', array( 'type' => 'slider', 'settings' => 'business_press_product_per_column', 'label' => esc_attr__( 'Number of products display per column', 'business-press' ), 'description' => esc_attr__( 'How much products you want to display in single line?', 'business-press' ), 'section' => 'woocommerce_options', 'default' => 4, 'priority' => 10, 'choices' => array( 'min' => '2', 'max' => '5', 'step' => '1', ), ) ); business_press_option::add_field( 'business_press_config', array( 'type' => 'radio-image', 'settings' => 'business_press_woo_layout', 'label' => esc_attr__( 'WooCommerce Page Layout', 'business-press' ), 'description' => esc_attr__( 'This layout will apply on Shop, Single Product and Product Search Pages. If you want to set full width for Cart, Checkout and My Account pages, then edit these pages and select Full Width No Sidebar Template.', 'business-press' ), 'section' => 'woocommerce_options', 'default' => 'fullw', 'priority' => 10, 'choices' => array( 'fullw' => get_template_directory_uri() . '/images/fullw.png', 'rights' => get_template_directory_uri() . '/images/rights.png', ), ) ); } //woocommerce section END //footer section business_press_option::add_section( 'footer_options', array( 'title' => esc_attr__( 'Footer Options', 'business-press' ), 'panel' => 'business_press_options', // Not typically needed. 'priority' => 10, 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. ) ); business_press_option::add_field( 'business_press_config', array( 'type' => 'slider', 'settings' => 'business_press_number_of_footer_widgets', 'label' => esc_attr__( 'Footer Widgets', 'business-press' ), 'description' => esc_attr__( 'How much Widgets Columns you want? (please save and go to Widgets page to add.)', 'business-press' ), 'section' => 'footer_options', 'default' => '0', 'priority' => 10, 'choices' => array( 'min' => '0', 'max' => '4', 'step' => '1', ), ) ); //footer section END //copyright section business_press_option::add_section( 'copyright_options', array( 'title' => esc_attr__( 'Copyright Options', 'business-press' ), 'panel' => 'business_press_options', // Not typically needed. 'priority' => 10, 'capability' => 'edit_theme_options', 'theme_supports' => '', // Rarely needed. ) ); business_press_option::add_field( 'business_press_config', array( 'type' => 'editor', 'settings' => 'business_press_copryt_left', 'label' => esc_attr__( 'Copyright Left Content', 'business-press' ), 'description' => esc_attr__( 'Content of Copyright Left Side', 'business-press' ), 'section' => 'copyright_options', 'default' => '' . __( '© Copyright text, All right reserved.', 'business-press' ) . '
', 'priority' => 10, 'transport' => 'postMessage', 'js_vars' => array( array( 'element' => '.cprtlft_ctmzr', 'function' => 'html', ), ), ) ); business_press_option::add_field( 'business_press_config', array( 'type' => 'custom', 'settings' => 'business_press_copryt_right', 'label' => esc_attr__( 'Copyright Right Content', 'business-press' ), 'description' => esc_attr__( 'Content of Copyright Right Side', 'business-press' ), 'section' => 'copyright_options', 'default' => '