add_section('bigmart_sidebar_settings', array( 'title' => esc_html__('Sidebar Settings', 'bigmart'), 'priority' => 30 )); $wp_customize->add_setting('bigmart_page_layout', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => 'right-sidebar' )); $wp_customize->add_control(new Bigmart_Selector($wp_customize, 'bigmart_page_layout', array( 'section' => 'bigmart_sidebar_settings', 'label' => esc_html__('Page Layout', 'bigmart'), 'class' => 'ht-one-forth-width', 'description' => esc_html__('Applies to all the General Pages and Portfolio Pages.', 'bigmart'), 'options' => array( 'right-sidebar' => BIGMART_OPT_DIR_URI_IMAGES . 'sidebar-layouts/right-sidebar.jpg', 'left-sidebar' => BIGMART_OPT_DIR_URI_IMAGES . 'sidebar-layouts/left-sidebar.jpg', 'no-sidebar' => BIGMART_OPT_DIR_URI_IMAGES . 'sidebar-layouts/no-sidebar.jpg', 'no-sidebar-narrow' => BIGMART_OPT_DIR_URI_IMAGES . 'sidebar-layouts/no-sidebar-narrow.jpg' ) ))); $wp_customize->add_setting('bigmart_post_layout', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => 'right-sidebar' )); $wp_customize->add_control(new Bigmart_Selector($wp_customize, 'bigmart_post_layout', array( 'section' => 'bigmart_sidebar_settings', 'label' => esc_html__('Post Layout', 'bigmart'), 'class' => 'ht-one-forth-width', 'description' => esc_html__('Applies to all the Posts.', 'bigmart'), 'options' => array( 'right-sidebar' => BIGMART_OPT_DIR_URI_IMAGES . 'sidebar-layouts/right-sidebar.jpg', 'left-sidebar' => BIGMART_OPT_DIR_URI_IMAGES . 'sidebar-layouts/left-sidebar.jpg', 'no-sidebar' => BIGMART_OPT_DIR_URI_IMAGES . 'sidebar-layouts/no-sidebar.jpg', 'no-sidebar-narrow' => BIGMART_OPT_DIR_URI_IMAGES . 'sidebar-layouts/no-sidebar-narrow.jpg' ) ))); $wp_customize->add_setting('bigmart_archive_layout', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => 'right-sidebar' )); $wp_customize->add_control(new Bigmart_Selector($wp_customize, 'bigmart_archive_layout', array( 'section' => 'bigmart_sidebar_settings', 'label' => esc_html__('Archive Page Layout', 'bigmart'), 'class' => 'ht-one-forth-width', 'description' => esc_html__('Applies to all Archive Pages.', 'bigmart'), 'options' => array( 'right-sidebar' => BIGMART_OPT_DIR_URI_IMAGES . 'sidebar-layouts/right-sidebar.jpg', 'left-sidebar' => BIGMART_OPT_DIR_URI_IMAGES . 'sidebar-layouts/left-sidebar.jpg', 'no-sidebar' => BIGMART_OPT_DIR_URI_IMAGES . 'sidebar-layouts/no-sidebar.jpg', 'no-sidebar-narrow' => BIGMART_OPT_DIR_URI_IMAGES . 'sidebar-layouts/no-sidebar-narrow.jpg' ) ))); $wp_customize->add_setting('bigmart_home_blog_layout', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => 'right-sidebar' )); $wp_customize->add_control(new Bigmart_Selector($wp_customize, 'bigmart_home_blog_layout', array( 'section' => 'bigmart_sidebar_settings', 'label' => esc_html__('Blog Page Layout', 'bigmart'), 'class' => 'ht-one-forth-width', 'description' => esc_html__('Applies to Blog Page.', 'bigmart'), 'options' => array( 'right-sidebar' => BIGMART_OPT_DIR_URI_IMAGES . 'sidebar-layouts/right-sidebar.jpg', 'left-sidebar' => BIGMART_OPT_DIR_URI_IMAGES . 'sidebar-layouts/left-sidebar.jpg', 'no-sidebar' => BIGMART_OPT_DIR_URI_IMAGES . 'sidebar-layouts/no-sidebar.jpg', 'no-sidebar-narrow' => BIGMART_OPT_DIR_URI_IMAGES . 'sidebar-layouts/no-sidebar-narrow.jpg' ) ))); $wp_customize->add_setting('bigmart_search_layout', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => 'right-sidebar' )); $wp_customize->add_control(new Bigmart_Selector($wp_customize, 'bigmart_search_layout', array( 'section' => 'bigmart_sidebar_settings', 'label' => esc_html__('Search Page Layout', 'bigmart'), 'class' => 'ht-one-forth-width', 'description' => esc_html__('Applies to Search Page.', 'bigmart'), 'options' => array( 'right-sidebar' => BIGMART_OPT_DIR_URI_IMAGES . 'sidebar-layouts/right-sidebar.jpg', 'left-sidebar' => BIGMART_OPT_DIR_URI_IMAGES . 'sidebar-layouts/left-sidebar.jpg', 'no-sidebar' => BIGMART_OPT_DIR_URI_IMAGES . 'sidebar-layouts/no-sidebar.jpg', 'no-sidebar-narrow' => BIGMART_OPT_DIR_URI_IMAGES . 'sidebar-layouts/no-sidebar-narrow.jpg' ) ))); $wp_customize->add_setting('bigmart_shop_layout', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => 'right-sidebar' )); $wp_customize->add_control(new Bigmart_Selector($wp_customize, 'bigmart_shop_layout', array( 'section' => 'bigmart_sidebar_settings', 'label' => esc_html__('Shop Page Layout(WooCommerce)', 'bigmart'), 'class' => 'ht-one-forth-width', 'description' => esc_html__('Applies to Shop Page, Product Category, Product Tag and all Single Products Pages.', 'bigmart'), 'options' => array( 'right-sidebar' => BIGMART_OPT_DIR_URI_IMAGES . 'sidebar-layouts/right-sidebar.jpg', 'left-sidebar' => BIGMART_OPT_DIR_URI_IMAGES . 'sidebar-layouts/left-sidebar.jpg', 'no-sidebar' => BIGMART_OPT_DIR_URI_IMAGES . 'sidebar-layouts/no-sidebar.jpg', 'no-sidebar-narrow' => BIGMART_OPT_DIR_URI_IMAGES . 'sidebar-layouts/no-sidebar-narrow.jpg' ), )));