'edit_theme_options', 'option_type' => 'theme_mod', ) ); //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 //typography business_press_option::add_section( 'typography_options', array( 'title' => esc_attr__( 'Typography 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' => 'typography', 'settings' => 'business_press_body_typog', 'label' => esc_attr__( 'Body Typography', 'business-press' ), 'section' => 'typography_options', 'default' => array( 'font-family' => 'Lora', 'variant' => 'regular' ), 'priority' => 10, 'output' => array( array( 'element' => 'body', ), ), 'transport' => 'auto', ) ); business_press_option::add_field( 'business_press_config', array( 'type' => 'typography', 'settings' => 'business_press_body_h1_typog', 'label' => esc_attr__( 'H1 / Headline 1 Typography', 'business-press' ), 'section' => 'typography_options', 'default' => array( 'font-family' => 'Arvo', 'variant' => 'regular', 'font-size' => '22px', 'line-height' => '1.1', 'letter-spacing' => '0', 'text-transform' => 'uppercase' ), 'priority' => 10, 'output' => array( array( 'element' => 'body h1, .h1', ), ), 'transport' => 'auto', ) ); business_press_option::add_field( 'business_press_config', array( 'type' => 'typography', 'settings' => 'business_press_body_h2_typog', 'label' => esc_attr__( 'H2 / Headline 2 Typography', 'business-press' ), 'section' => 'typography_options', 'default' => array( 'font-family' => 'Arvo', 'variant' => 'regular', 'font-size' => '22px', 'line-height' => '1.1', 'letter-spacing' => '0', 'text-transform' => 'uppercase' ), 'priority' => 10, 'output' => array( array( 'element' => 'body h2, .h2', ), ), 'transport' => 'auto', ) ); business_press_option::add_field( 'business_press_config', array( 'type' => 'typography', 'settings' => 'business_press_body_h3_typog', 'label' => esc_attr__( 'H3 / Headline 3 Typography', 'business-press' ), 'section' => 'typography_options', 'default' => array( 'font-family' => 'Arvo', 'variant' => 'regular', 'font-size' => '22px', 'line-height' => '1.1', 'letter-spacing' => '0', 'text-transform' => 'uppercase' ), 'priority' => 10, 'output' => array( array( 'element' => 'body h3, .h3', ), ), 'transport' => 'auto', ) ); business_press_option::add_field( 'business_press_config', array( 'type' => 'typography', 'settings' => 'business_press_body_h4_typog', 'label' => esc_attr__( 'H4 / Headline 4 Typography', 'business-press' ), 'section' => 'typography_options', 'default' => array( 'font-family' => 'Arvo', 'variant' => 'regular', 'font-size' => '20px', 'line-height' => '1.1', 'letter-spacing' => '0', 'text-transform' => 'inherit' ), 'priority' => 10, 'output' => array( array( 'element' => 'body h4, .h4', ), ), 'transport' => 'auto', ) ); business_press_option::add_field( 'business_press_config', array( 'type' => 'typography', 'settings' => 'business_press_body_h5_typog', 'label' => esc_attr__( 'H5 / Headline 5 Typography', 'business-press' ), 'section' => 'typography_options', 'default' => array( 'font-family' => 'Arvo', 'variant' => 'regular', 'font-size' => '20px', 'line-height' => '1.1', 'letter-spacing' => '0', 'text-transform' => 'inherit' ), 'priority' => 10, 'output' => array( array( 'element' => 'body h5, .h5', ), ), 'transport' => 'auto', ) ); business_press_option::add_field( 'business_press_config', array( 'type' => 'typography', 'settings' => 'business_press_body_h6_typog', 'label' => esc_attr__( 'H6 / Headline 6 Typography', 'business-press' ), 'section' => 'typography_options', 'default' => array( 'font-family' => 'Arvo', 'variant' => 'regular', 'font-size' => '20px', 'line-height' => '1.1', 'letter-spacing' => '0', 'text-transform' => 'inherit' ), 'priority' => 10, 'output' => array( array( 'element' => 'body h6, .h6', ), ), 'transport' => 'auto', ) ); business_press_option::add_field( 'business_press_config', array( 'type' => 'typography', 'settings' => 'business_press_body_p_typog', 'label' => esc_attr__( 'Paragraph Typography', 'business-press' ), 'section' => 'typography_options', 'default' => array( 'font-family' => 'Droid Sans', 'variant' => 'regular', 'font-size' => '16px', 'line-height' => '1.7', 'letter-spacing' => '0', 'subsets' => array( 'latin-ext' ), 'text-transform' => 'inherit', ), 'priority' => 10, 'output' => array( array( 'element' => '#maincontainer p', ), ), 'transport' => 'auto', ) ); business_press_option::add_field( 'business_press_config', array( 'type' => 'typography', 'settings' => 'business_press_top_bar_typog', 'label' => esc_attr__( 'Top Bar Typography', 'business-press' ), 'section' => 'typography_options', 'default' => array( 'font-family' => 'Roboto', 'variant' => 'regular', 'font-size' => '15px', 'line-height' => '22px', 'letter-spacing' => '0px', 'text-transform' => 'inherit', ), 'priority' => 10, 'output' => array( array( 'element' => '#topbar', ), ), 'transport' => 'auto', ) ); business_press_option::add_field( 'business_press_config', array( 'type' => 'typography', 'settings' => 'business_press_top_menu_typog', 'label' => esc_attr__( 'Main Menu Typography', 'business-press' ), 'section' => 'typography_options', 'default' => array( 'font-family' => 'Rajdhani', 'variant' => '500', 'font-size' => '17px', 'text-transform' => 'uppercase' ), 'priority' => 10, 'output' => array( array( 'element' => '#navbar ul.navbar-nav li a', ), ), 'transport' => 'auto', ) ); business_press_option::add_field( 'business_press_config', array( 'type' => 'typography', 'settings' => 'business_press_widget_ul_ol_typog', 'label' => esc_attr__( 'Widgets UL/OL Typography', 'business-press' ), 'description' => esc_attr__( 'Widgets Unordered List / Ordered List Typography', 'business-press' ), 'section' => 'typography_options', 'default' => array( 'font-family' => 'Roboto', 'variant' => 'regular', 'font-size' => '15px', 'line-height' => '1.5', 'letter-spacing' => '0.1px', 'text-transform' => 'inherit' ), 'priority' => 10, 'output' => array( array( 'element' => '.widget_sidebar_main ul li, .widget_sidebar_main ol li, .widgets_footer ul li, .widgets_footer ol li', ), ), 'transport' => 'auto', ) ); business_press_option::add_field( 'business_press_config', array( 'type' => 'typography', 'settings' => 'business_press_mn_footer_typog', 'label' => esc_attr__( 'Footer Typography', 'business-press' ), 'section' => 'typography_options', 'default' => array( 'font-family' => 'Roboto', 'variant' => 'regular', 'font-size' => '15px', 'line-height' => '1.7', 'letter-spacing' => '0', 'text-transform' => 'inherit' ), 'priority' => 10, 'output' => array( array( 'element' => '#footer', ), ), 'transport' => 'auto', ) ); //typography END //color options business_press_option::add_section( 'color_options', array( 'title' => esc_attr__( 'Color 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' => 'color', 'settings' => 'business_press_default_a_color', 'label' => esc_attr__( 'Default Color of Links', 'business-press' ), 'section' => 'color_options', 'default' => '#44C47E', 'priority' => 10, 'output' => array( array( 'element' => 'body a, .woocommerce .star-rating span', 'property' => 'color', ), array( 'element' => '.widget_sidebar_main ul li::before', 'property' => 'color', ), ), 'transport' => 'auto', ) ); business_press_option::add_field( 'business_press_config', array( 'type' => 'color', 'settings' => 'business_press_default_a_hover_color', 'label' => esc_attr__( 'Default Mouse Over Color of Links', 'business-press' ), 'section' => 'color_options', 'default' => '#00c44b', 'priority' => 10, 'output' => array( array( 'element' => 'body a:hover, body a:focus, .widget_sidebar_main ul li:hover::before', 'property' => 'color', ), ), 'transport' => 'auto', ) ); //color options END //top bar business_press_option::add_section( 'top_bar', array( 'title' => esc_attr__( 'Top 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_display_top_bar', 'label' => esc_attr__( 'Top Bar', 'business-press' ), 'description' => esc_attr__( 'Enable/Disable Top Bar', 'business-press' ), 'section' => 'top_bar', 'default' => '0', 'priority' => 10, ) ); business_press_option::add_field( 'business_press_config', array( 'type' => 'toggle', 'settings' => 'business_press_display_sicons_top_bar', 'label' => esc_attr__( 'Social Icons', 'business-press' ), 'description' => esc_attr__( 'Enable/Disable Social Icons', 'business-press' ), 'section' => 'top_bar', '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' => 'select', 'settings' => 'business_press_tpbr_left_view', 'label' => esc_attr__( 'Top Bar Left Content View', 'business-press' ), 'description' => esc_attr__( 'Simply phone, email or Text/HTML or Disable ?', 'business-press' ), 'section' => 'top_bar', 'default' => '1', 'priority' => 10, 'choices' => array( '1' => esc_attr__( 'Text / HTML', 'business-press' ), '2' => esc_attr__( 'Phone and Email', 'business-press' ), '3' => esc_attr__( 'Disable', 'business-press' ), ), 'active_callback' => array( array( 'setting' => 'business_press_display_top_bar', 'operator' => '==', 'value' => 1, ), ) ) ); business_press_option::add_field( 'business_press_config', array( 'type' => 'text', 'settings' => 'business_press_tpbr_lft_phne', 'label' => esc_attr__( 'Phone Number', 'business-press' ), 'description' => esc_attr__( 'Leave empty for disable.', 'business-press' ), 'section' => 'top_bar', 'default' => '', 'priority' => 10, 'active_callback' => array( array( 'setting' => 'business_press_display_top_bar', 'operator' => '==', 'value' => 1, ), array( 'setting' => 'business_press_tpbr_left_view', 'operator' => '==', 'value' => 2, ), ) ) ); business_press_option::add_field( 'business_press_config', array( 'type' => 'text', 'settings' => 'business_press_tpbr_lft_email', 'label' => esc_attr__( 'Email Address', 'business-press' ), 'description' => esc_attr__( 'Leave empty for disable.', 'business-press' ), 'section' => 'top_bar', 'default' => '', 'priority' => 10, 'active_callback' => array( array( 'setting' => 'business_press_display_top_bar', 'operator' => '==', 'value' => 1, ), array( 'setting' => 'business_press_tpbr_left_view', 'operator' => '==', 'value' => 2, ), ) ) ); business_press_option::add_field( 'business_press_config', array( 'type' => 'editor', 'settings' => 'business_press_top_bar_left_content', 'label' => esc_attr__( 'Top Bar Left Content', 'business-press' ), 'description' => esc_attr__( 'Content/HTML of Top Bar Left Side | Leave empty for disable', 'business-press' ), 'section' => 'top_bar', 'default' => '', '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' => esc_attr__( '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' => '', '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' => '', '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' => '', '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' => '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' => esc_url( get_template_directory_uri() . '/images/fullw.png' ), 'rights' => esc_url( 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' => esc_url( get_template_directory_uri() . '/images/fullw.png' ), 'rights' => esc_url( 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' => esc_attr__( 'Have any Question or Comment?', 'business-press' ), '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' => esc_url( get_template_directory_uri() . '/images/fullw.png' ), 'rights' => esc_url( 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' => '', 'priority' => 10, 'transport' => 'postMessage', 'js_vars' => array( array( 'element' => '.cprtlft_ctmzr', 'function' => 'html', ), ), ) ); //copyright section END //misc section business_press_option::add_section( 'misc_options', array( 'title' => esc_attr__( 'MISC 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_back_to_top', 'label' => esc_attr__( 'Back To Top Button', 'business-press' ), 'description' => esc_attr__( 'Enable/Disable Back To Top Button', 'business-press' ), 'section' => 'misc_options', 'default' => '1', 'priority' => 10, ) ); business_press_option::add_field( 'business_press_config', array( 'type' => 'toggle', 'settings' => 'business_press_loading_icon', 'label' => esc_attr__( 'Page Loading Icon', 'business-press' ), 'description' => esc_attr__( 'Enable/Disable Page Loading Icon', 'business-press' ), 'section' => 'misc_options', 'default' => '0', 'priority' => 10, ) ); business_press_option::add_field( 'business_press_config', array( 'type' => 'image', 'settings' => 'business_press_loading_icon_img', 'label' => esc_attr__( 'Upload Custom Loading Icon', 'business-press' ), 'description' => esc_attr__( 'It will replace default loading icon.', 'business-press' ), 'section' => 'misc_options', 'default' => '', 'priority' => 10, 'active_callback' => array( array( 'setting' => 'business_press_loading_icon', 'operator' => '==', 'value' => 1, ), ) ) ); //misc section END ?>