add_panel('bigmart_header_settings', array( 'title' => esc_html__('Header Settings', 'bigmart'), 'description' => esc_html__('Configure header settings', 'bigmart'), 'priority' => 10, )); $wp_customize->add_section(new Bigmart_Upgrade_Section($wp_customize, 'bigmart_header_sep1_section', array( 'panel' => 'bigmart_header_settings', ))); /** Header Layouts */ $wp_customize->add_section('bigmart_header_layouts_section', array( 'title' => esc_html__('Header Layouts', 'bigmart'), 'panel' => 'bigmart_header_settings', )); $wp_customize->add_setting('bigmart_mh_layout', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => 'header-style1' )); $wp_customize->add_control(new Bigmart_Selector($wp_customize, 'bigmart_mh_layout', array( 'section' => 'bigmart_header_layouts_section', 'label' => esc_html__('Header Layouts', 'bigmart'), 'class' => 'ht-full-width', 'options' => array( 'header-style1' => BIGMART_OPT_DIR_URI_IMAGES . 'headers/header-1.jpg', 'header-style2' => BIGMART_OPT_DIR_URI_IMAGES . 'headers/header-2.jpg', 'header-style3' => BIGMART_OPT_DIR_URI_IMAGES . 'headers/header-3.jpg', ) ))); /** Top Header Options */ $wp_customize->add_section('bigmart_top_header_options', array( 'title' => esc_html__('Top Header', 'bigmart'), 'panel' => 'bigmart_header_settings', )); $wp_customize->add_setting('bigmart_top_header_nav', array( 'transport' => 'refresh', 'sanitize_callback' => 'wp_kses_post', )); $wp_customize->add_control(new Bigmart_Tab($wp_customize, 'bigmart_top_header_nav', array( 'section' => 'bigmart_top_header_options', 'priority' => 1, 'buttons' => array( array( 'name' => esc_html__('Content', 'bigmart'), 'fields' => array( 'bigmart_top_header_display', 'bigmart_th_separator1', 'bigmart_th_center_display', 'bigmart_th_left_display', 'bigmart_th_right_display', 'bigmart_th_separator2', 'bigmart_th_heading', 'bigmart_th_social_link', 'bigmart_th_menu', 'bigmart_th_widget', 'bigmart_th_text', 'bigmart_top_header_info', 'bigmart_th_ticker_title', 'bigmart_th_ticker_category', ), 'active' => true, ), array( 'name' => esc_html__('Style', 'bigmart'), 'fields' => array( 'bigmart_th_height', 'bigmart_th_bg_color', 'bigmart_th_bottom_border_color', 'bigmart_th_text_color', 'bigmart_th_anchor_color', ), ), ), ))); $wp_customize->add_setting('bigmart_top_header_display', array( 'sanitize_callback' => 'bigmart_sanitize_choices', 'default' => 'left-right' )); $wp_customize->add_control('bigmart_top_header_display', array( 'section' => 'bigmart_top_header_options', 'type' => 'select', 'label' => esc_html__('Display Options', 'bigmart'), 'choices' => array( 'none' => esc_html__('None', 'bigmart'), 'center' => esc_html__('Center', 'bigmart'), 'left' => esc_html__('Left', 'bigmart'), 'right' => esc_html__('Right', 'bigmart'), 'left-right' => esc_html__('Left & Right', 'bigmart'), ) )); $wp_customize->add_setting('bigmart_th_separator1', array( 'sanitize_callback' => 'bigmart_sanitize_text', 'transport' => 'refresh' )); $wp_customize->add_control(new Bigmart_Separator($wp_customize, 'bigmart_th_separator1', array( 'section' => 'bigmart_top_header_options', ))); $wp_customize->add_setting('bigmart_th_center_display', array( 'default' => 'text', 'sanitize_callback' => 'bigmart_sanitize_choices', 'transport' => 'refresh' )); $wp_customize->add_control('bigmart_th_center_display', array( 'section' => 'bigmart_top_header_options', 'type' => 'select', 'label' => esc_html__('Display in Center Header', 'bigmart'), 'choices' => array( 'social' => esc_html__('Social Icons', 'bigmart'), 'widget' => esc_html__('Widget', 'bigmart'), 'text' => esc_html__('HTML Text', 'bigmart'), 'date' => esc_html__('Date', 'bigmart'), 'menu' => esc_html__('Menu', 'bigmart') ) )); $wp_customize->add_setting('bigmart_th_left_display', array( 'default' => 'date', 'sanitize_callback' => 'bigmart_sanitize_choices', 'transport' => 'refresh' )); $wp_customize->add_control('bigmart_th_left_display', array( 'section' => 'bigmart_top_header_options', 'type' => 'select', 'label' => esc_html__('Display in Left Header', 'bigmart'), 'choices' => array( 'social' => esc_html__('Social Icons', 'bigmart'), 'widget' => esc_html__('Widget', 'bigmart'), 'text' => esc_html__('HTML Text', 'bigmart'), 'date' => esc_html__('Date & Time', 'bigmart'), 'menu' => esc_html__('Menu', 'bigmart') ) )); $wp_customize->add_setting('bigmart_th_right_display', array( 'default' => 'social', 'sanitize_callback' => 'bigmart_sanitize_choices', 'transport' => 'refresh' )); $wp_customize->add_control('bigmart_th_right_display', array( 'section' => 'bigmart_top_header_options', 'type' => 'select', 'label' => esc_html__('Display in Right Header', 'bigmart'), 'choices' => array( 'social' => esc_html__('Social Icons', 'bigmart'), 'widget' => esc_html__('Widget', 'bigmart'), 'text' => esc_html__('HTML Text', 'bigmart'), 'date' => esc_html__('Date & Time', 'bigmart'), 'menu' => esc_html__('Menu', 'bigmart') ) )); $wp_customize->add_setting('bigmart_th_separator2', array( 'sanitize_callback' => 'bigmart_sanitize_text', 'transport' => 'refresh' )); $wp_customize->add_control(new Bigmart_Separator($wp_customize, 'bigmart_th_separator2', array( 'section' => 'bigmart_top_header_options', ))); $wp_customize->add_setting('bigmart_th_heading', array( 'sanitize_callback' => 'bigmart_sanitize_text', 'transport' => 'refresh' )); $wp_customize->add_control(new Bigmart_Heading($wp_customize, 'bigmart_th_heading', array( 'section' => 'bigmart_top_header_options', 'label' => esc_html__('Top Header Contents', 'bigmart') ))); $wp_customize->add_setting('bigmart_th_menu', array( 'sanitize_callback' => 'bigmart_sanitize_choices', 'default' => 'none', 'transport' => 'refresh' )); $wp_customize->add_control('bigmart_th_menu', array( 'section' => 'bigmart_top_header_options', 'type' => 'select', 'label' => esc_html__('Select Menu', 'bigmart'), 'choices' => bigmart_get_menulist() )); $wp_customize->add_setting('bigmart_th_widget', array( 'sanitize_callback' => 'bigmart_sanitize_choices', 'default' => 'none', 'transport' => 'refresh' )); $wp_customize->add_control('bigmart_th_widget', array( 'section' => 'bigmart_top_header_options', 'type' => 'select', 'label' => esc_html__('Select Widget', 'bigmart'), 'choices' => bigmart_widget_lists() )); $wp_customize->add_setting('bigmart_th_text', array( 'sanitize_callback' => 'bigmart_sanitize_text', 'default' => esc_html__('Welcome To Bigmart', 'bigmart'), 'transport' => 'refresh' )); $wp_customize->add_control(new Bigmart_Page_Editor($wp_customize, 'bigmart_th_text', array( 'section' => 'bigmart_top_header_options', 'label' => esc_html__('Html Text', 'bigmart'), 'include_admin_print_footer' => true ))); $wp_customize->add_setting('bigmart_th_social_link', array( 'sanitize_callback' => 'bigmart_sanitize_text', 'transport' => 'refresh' )); $wp_customize->add_control(new Bigmart_Text_Info($wp_customize, 'bigmart_th_social_link', array( 'label' => esc_html__('Social Icons', 'bigmart'), 'section' => 'bigmart_top_header_options', 'description' => sprintf(esc_html__('Add your %s here', 'bigmart'), 'Social Icons') ))); $wp_customize->add_setting('bigmart_th_height', array( 'sanitize_callback' => 'bigmart_sanitize_integer', 'default' => 42, 'transport' => 'refresh' )); $wp_customize->add_control(new Bigmart_Range_Slider($wp_customize, 'bigmart_th_height', array( 'section' => 'bigmart_top_header_options', 'label' => esc_html__('Height', 'bigmart'), 'input_attrs' => array( 'min' => 5, 'max' => 100, 'step' => 1 ) ))); $wp_customize->add_setting('bigmart_th_bg_color', array( 'default' => '#0075F2', 'sanitize_callback' => 'bigmart_sanitize_color_alpha', 'transport' => 'refresh' )); $wp_customize->add_control(new Bigmart_Alpha_Color($wp_customize, 'bigmart_th_bg_color', array( 'label' => esc_html__('Background Color', 'bigmart'), 'section' => 'bigmart_top_header_options', 'palette' => array( '#FFFFFF', '#000000', '#f5245f', '#1267b3', '#feb600', '#00C569', 'rgba( 255, 255, 255, 0.2 )', 'rgba( 0, 0, 0, 0.2 )' ) ))); $wp_customize->add_setting('bigmart_th_bottom_border_color', array( 'default' => '', 'sanitize_callback' => 'bigmart_sanitize_color_alpha', 'transport' => 'refresh' )); $wp_customize->add_control(new Bigmart_Alpha_Color($wp_customize, 'bigmart_th_bottom_border_color', array( 'label' => esc_html__('Bottom Border Color', 'bigmart'), 'description' => esc_html__('Leave Empty to Hide Border', 'bigmart'), 'section' => 'bigmart_top_header_options' ))); $wp_customize->add_setting('bigmart_th_text_color', array( 'default' => '#FFFFFF', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'refresh' )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'bigmart_th_text_color', array( 'section' => 'bigmart_top_header_options', 'label' => esc_html__('Text Color', 'bigmart') ))); $wp_customize->add_setting('bigmart_th_anchor_color', array( 'default' => '#EEEEEE', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'refresh' )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'bigmart_th_anchor_color', array( 'section' => 'bigmart_top_header_options', 'label' => esc_html__('Anchor(Link) Color', 'bigmart') ))); /** Middle Header Options */ $wp_customize->add_section('bigmart_main_header_options', array( 'title' => esc_html__('Middle Header', 'bigmart'), 'panel' => 'bigmart_header_settings', )); $wp_customize->add_setting('bigmart_mh_spacing_right', array( 'sanitize_callback' => 'bigmart_sanitize_number_blank', )); $wp_customize->add_setting('bigmart_mh_spacing_top', array( 'sanitize_callback' => 'bigmart_sanitize_number_blank', )); $wp_customize->add_setting('bigmart_mh_spacing_bottom', array( 'sanitize_callback' => 'bigmart_sanitize_number_blank', )); $wp_customize->add_setting('bigmart_mh_spacing_left', array( 'sanitize_callback' => 'bigmart_sanitize_number_blank', )); $wp_customize->add_setting('bigmart_mh_spacing_right_tablet', array( 'sanitize_callback' => 'bigmart_sanitize_number_blank', )); $wp_customize->add_setting('bigmart_mh_spacing_top_tablet', array( 'sanitize_callback' => 'bigmart_sanitize_number_blank', )); $wp_customize->add_setting('bigmart_mh_spacing_bottom_tablet', array( 'sanitize_callback' => 'bigmart_sanitize_number_blank', )); $wp_customize->add_setting('bigmart_mh_spacing_left_tablet', array( 'sanitize_callback' => 'bigmart_sanitize_number_blank', )); $wp_customize->add_setting('bigmart_mh_spacing_right_mobile', array( 'sanitize_callback' => 'bigmart_sanitize_number_blank', )); $wp_customize->add_setting('bigmart_mh_spacing_top_mobile', array( 'sanitize_callback' => 'bigmart_sanitize_number_blank', )); $wp_customize->add_setting('bigmart_mh_spacing_bottom_mobile', array( 'sanitize_callback' => 'bigmart_sanitize_number_blank', )); $wp_customize->add_setting('bigmart_mh_spacing_left_mobile', array( 'sanitize_callback' => 'bigmart_sanitize_number_blank', )); $wp_customize->add_control(new Bigmart_Dimensions($wp_customize, 'bigmart_mh_spacing', array( 'section' => 'bigmart_main_header_options', 'label' => esc_html__('Middle Header Spacing(px)', 'bigmart'), 'settings' => array( 'desktop_right' => 'bigmart_mh_spacing_right', 'desktop_top' => 'bigmart_mh_spacing_top', 'desktop_bottom' => 'bigmart_mh_spacing_bottom', 'desktop_left' => 'bigmart_mh_spacing_left', 'tablet_right' => 'bigmart_mh_spacing_right_tablet', 'tablet_top' => 'bigmart_mh_spacing_top_tablet', 'tablet_bottom' => 'bigmart_mh_spacing_bottom_tablet', 'tablet_left' => 'bigmart_mh_spacing_left_tablet', 'mobile_right' => 'bigmart_mh_spacing_right_mobile', 'mobile_top' => 'bigmart_mh_spacing_top_mobile', 'mobile_bottom' => 'bigmart_mh_spacing_bottom_mobile', 'mobile_left' => 'bigmart_mh_spacing_left_mobile' ), 'input_attrs' => array( 'min' => 0, 'max' => 400, 'step' => 1, ) ))); /** Bottom Header Options */ $wp_customize->add_section('bigmart_bottom_header_options', array( 'title' => esc_html__('Bottom Header', 'bigmart'), 'panel' => 'bigmart_header_settings', )); $wp_customize->add_setting('bigmart_ms_bg_color', array( 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'refresh' )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'bigmart_ms_bg_color', array( 'section' => 'bigmart_bottom_header_options', 'label' => esc_html__('Background Color', 'bigmart') ))); $wp_customize->add_section(new Bigmart_Upgrade_Section($wp_customize, 'bigmart_header_sep2_section', array( 'panel' => 'bigmart_header_settings', ))); /** Header Contents Options */ $wp_customize->add_section('bigmart_header_content', array( 'title' => esc_html__('Header Contents', 'bigmart'), 'panel' => 'bigmart_header_settings', )); $wp_customize->add_setting('bigmart_mh_show_category_search', array( 'sanitize_callback' => 'bigmart_sanitize_boolean', 'default' => true )); $wp_customize->add_control(new Bigmart_Toggle($wp_customize, 'bigmart_mh_show_category_search', array( 'section' => 'bigmart_header_content', 'label' => esc_html__('Show Category Search', 'bigmart') ))); $wp_customize->add_setting('bigmart_mh_show_minicart', array( 'sanitize_callback' => 'bigmart_sanitize_boolean', 'default' => true )); $wp_customize->add_control(new Bigmart_Toggle($wp_customize, 'bigmart_mh_show_minicart', array( 'section' => 'bigmart_header_content', 'label' => esc_html__('Show Mini Cart', 'bigmart') ))); $wp_customize->add_setting('bigmart_show_toggle_menu', array( 'sanitize_callback' => 'bigmart_sanitize_boolean', 'default' => true )); $wp_customize->add_control(new Bigmart_Toggle($wp_customize, 'bigmart_show_toggle_menu', array( 'section' => 'bigmart_header_content', 'label' => esc_html__('Show Toggle Menu', 'bigmart') ))); $wp_customize->add_setting('bigmart_hc_separator1', array( 'sanitize_callback' => 'bigmart_sanitize_text', 'transport' => 'refresh' )); $wp_customize->add_control(new Bigmart_Separator($wp_customize, 'bigmart_hc_separator1', array( 'section' => 'bigmart_header_content', ))); $wp_customize->add_setting('bigmart_contact_no', array( 'sanitize_callback' => 'bigmart_sanitize_text', 'default' => esc_html__('+ 474 876543210', 'bigmart'), )); $wp_customize->add_control('bigmart_contact_no', array( 'section' => 'bigmart_header_content', 'type' => 'text', 'label' => esc_html__('Contact No.', 'bigmart'), )); $wp_customize->add_setting('bigmart_toggle_menu_label', array( 'sanitize_callback' => 'bigmart_sanitize_text', 'default' => esc_html__('Categories', 'bigmart'), )); $wp_customize->add_control('bigmart_toggle_menu_label', array( 'section' => 'bigmart_header_content', 'type' => 'text', 'label' => esc_html__('Toggle Menu Label', 'bigmart'), )); $wp_customize->add_setting('bigmart_toggle_menu', array( 'sanitize_callback' => 'bigmart_sanitize_choices', 'default' => 'none', 'transport' => 'refresh' )); $wp_customize->add_control('bigmart_toggle_menu', array( 'section' => 'bigmart_header_content', 'type' => 'select', 'label' => esc_html__('Select Toggle Menu', 'bigmart'), 'choices' => bigmart_get_menulist() )); $wp_customize->add_setting('bigmart_show_menu_on', array( 'sanitize_callback' => 'bigmart_sanitize_choices', 'default' => 'click', 'transport' => 'refresh' )); $wp_customize->add_control('bigmart_show_menu_on', array( 'section' => 'bigmart_header_content', 'type' => 'select', 'label' => esc_html__('Show Toggle Menu Dropdown on', 'bigmart'), 'choices' => array( 'click' => esc_html__('Click', 'bigmart'), 'hover' => esc_html__('Hover', 'bigmart'), ) )); /** Title & Tagline */ $wp_customize->get_section('title_tagline')->panel = 'bigmart_header_settings'; $wp_customize->get_section('title_tagline')->title = esc_html__('Title & Logo', 'bigmart'); $wp_customize->add_setting('bigmart_display_title', array( 'default' => true, 'transport' => 'postMessage', 'sanitize_callback' => 'bigmart_sanitize_checkbox', )); $wp_customize->add_control('bigmart_display_title', array( 'label' => esc_html__('Display Site Title', 'bigmart'), 'section' => 'title_tagline', 'type' => 'checkbox' )); $wp_customize->add_setting('bigmart_display_tagline', array( 'default' => true, 'transport' => 'postMessage', 'sanitize_callback' => 'bigmart_sanitize_checkbox', )); $wp_customize->add_control('bigmart_display_tagline', array( 'label' => esc_html__('Display Site Tagline', 'bigmart'), 'section' => 'title_tagline', 'type' => 'checkbox' )); $wp_customize->add_setting('bigmart_logo_width', array( 'sanitize_callback' => 'bigmart_sanitize_number_blank', )); $wp_customize->add_setting('bigmart_logo_width_tablet', array( 'sanitize_callback' => 'bigmart_sanitize_number_blank', )); $wp_customize->add_setting('bigmart_logo_width_mobile', array( 'sanitize_callback' => 'bigmart_sanitize_number_blank', )); $wp_customize->add_control(new Bigmart_Responsive_Range_Slider($wp_customize, 'bigmart_logo_width', array( 'section' => 'title_tagline', 'label' => esc_html__('Logo Width(px)', 'bigmart'), 'input_attrs' => array( 'min' => 0, 'max' => 1000, 'step' => 1, ), 'settings' => array( 'desktop' => 'bigmart_logo_width', 'tablet' => 'bigmart_logo_width_tablet', 'mobile' => 'bigmart_logo_width_mobile', ), ))); $wp_customize->add_setting('bigmart_title_color', array( 'default' => '#000000', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'bigmart_title_color', array( 'section' => 'title_tagline', 'label' => esc_html__('Site Title Color', 'bigmart') ))); $wp_customize->add_setting('bigmart_tagline_color', array( 'default' => '#000000', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'bigmart_tagline_color', array( 'section' => 'title_tagline', 'label' => esc_html__('Site Tagline Color', 'bigmart') ))); $wp_customize->add_section('bigmart_page_banner_options', array( 'title' => esc_html__('Page Banner', 'bigmart'), 'panel' => 'bigmart_header_settings', )); $wp_customize->add_setting('bigmart_page_banner_heading', array( 'sanitize_callback' => 'bigmart_sanitize_text', )); $wp_customize->add_control(new Bigmart_Heading($wp_customize, 'bigmart_page_banner_heading', array( 'section' => 'bigmart_page_banner_options', 'label' => esc_html__('Page Banner', 'bigmart') ))); $wp_customize->add_setting('bigmart_page_banner_style', array( 'sanitize_callback' => 'bigmart_sanitize_text', 'default' => 'banner-style1' )); $wp_customize->add_control(new Bigmart_Selector($wp_customize, 'bigmart_page_banner_style', array( 'section' => 'bigmart_page_banner_options', 'label' => esc_html__('Page Banner Style', 'bigmart'), 'class' => 'ht-full-width', 'description' => esc_html__('Applies to all the General Pages.', 'bigmart'), 'options' => array( 'banner-style1' => BIGMART_OPT_DIR_URI_IMAGES . 'page-banners/banner-style1.jpg', 'banner-style2' => BIGMART_OPT_DIR_URI_IMAGES . 'page-banners/banner-style2.jpg', ) ))); $wp_customize->add_setting('bigmart_page_banner_bg_url', array( 'sanitize_callback' => 'bigmart_sanitize_link', )); $wp_customize->add_setting('bigmart_page_banner_bg_id', array( 'sanitize_callback' => 'bigmart_sanitize_integer', )); $wp_customize->add_setting('bigmart_page_banner_bg_repeat', array( 'default' => 'no-repeat', 'sanitize_callback' => 'sanitize_text_field', )); $wp_customize->add_setting('bigmart_page_banner_bg_size', array( 'default' => 'cover', 'sanitize_callback' => 'sanitize_text_field', )); $wp_customize->add_setting('bigmart_page_banner_bg_position', array( 'default' => 'center-center', 'sanitize_callback' => 'sanitize_text_field', )); $wp_customize->add_setting('bigmart_page_banner_bg_attach', array( 'default' => 'scroll', 'sanitize_callback' => 'sanitize_text_field', )); $wp_customize->add_setting('bigmart_page_banner_bg_color', array( 'default' => '#ddc6aa', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_setting('bigmart_page_banner_bg_overlay', array( 'sanitize_callback' => 'bigmart_sanitize_color_alpha', )); // Registers example_background control $wp_customize->add_control(new Bigmart_Background_Image($wp_customize, 'bigmart_page_banner_bg', array( 'label' => esc_html__('Page Banner Image', 'bigmart'), 'section' => 'bigmart_page_banner_options', 'settings' => array( 'image_url' => 'bigmart_page_banner_bg_url', 'image_id' => 'bigmart_page_banner_bg_id', 'repeat' => 'bigmart_page_banner_bg_repeat', 'size' => 'bigmart_page_banner_bg_size', 'position' => 'bigmart_page_banner_bg_position', 'attach' => 'bigmart_page_banner_bg_attach', 'color' => 'bigmart_page_banner_bg_color', 'overlay' => 'bigmart_page_banner_bg_overlay' ) ))); $wp_customize->add_setting('bigmart_page_banner_title_color', array( 'default' => '#FFFFFF', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'bigmart_page_banner_title_color', array( 'label' => esc_html__('Page Title Color', 'bigmart'), 'section' => 'bigmart_page_banner_options', 'settings' => 'bigmart_page_banner_title_color', ))); $wp_customize->add_setting('bigmart_page_banner_padding', array( 'sanitize_callback' => 'bigmart_sanitize_number_absint', 'default' => 40, 'transport' => 'refresh' )); $wp_customize->add_control(new Bigmart_Range_Slider($wp_customize, 'bigmart_page_banner_padding', array( 'section' => 'bigmart_page_banner_options', 'label' => esc_html__('Page Banner Padding (Top/Bottom)', 'bigmart'), 'input_attrs' => array( 'min' => 10, 'max' => 250, 'step' => 1 ) ))); $wp_customize->add_setting('bigmart_breacrumb_heading', array( 'sanitize_callback' => 'bigmart_sanitize_text', 'transport' => 'refresh' )); $wp_customize->add_control(new Bigmart_Heading($wp_customize, 'bigmart_breacrumb_heading', array( 'section' => 'bigmart_page_banner_options', 'label' => esc_html__('Breadcrumb', 'bigmart') ))); $wp_customize->add_setting('bigmart_breadcrumb', array( 'sanitize_callback' => 'bigmart_sanitize_boolean', 'default' => true )); $wp_customize->add_control(new Bigmart_Toggle($wp_customize, 'bigmart_breadcrumb', array( 'section' => 'bigmart_page_banner_options', 'label' => esc_html__('BreadCrumb', 'bigmart'), 'description' => esc_html__('Breadcrumbs are a great way of letting your visitors find out where they are on your site.', 'bigmart') ))); $wp_customize->add_setting('bigmart_breadcrumb_text_color', array( 'default' => '#FFFFFF', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'bigmart_breadcrumb_text_color', array( 'label' => esc_html__('Breadcrumb Text Color', 'bigmart'), 'section' => 'bigmart_page_banner_options', ))); $wp_customize->add_setting('bigmart_breadcrumb_link_color', array( 'default' => '#FFFFFF', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'bigmart_breadcrumb_link_color', array( 'label' => esc_html__('Breadcrumb Link Color', 'bigmart'), 'section' => 'bigmart_page_banner_options', )));