add_section( 'sec_search', array( 'title' => __('Search Options', 'bm-hope'), 'description' => __('Search Options', 'bm-hope') ) ); // Make Live Search Or Not $wp_customize->add_setting( 'set_live_search', array( 'type' => 'theme_mod', 'default' => '', 'sanitize_callback' => 'bm_hope_sanitize_checkbox' ) ); $wp_customize->add_control( 'set_live_search', array( 'label' => __('Use Live Search?', 'bm-hope'), 'description' => __('If WooCommerce Is Activated The Search Will Be Among Products / If It Is Blog The Search Will Be Among Posts', 'bm-hope'), 'section' => 'sec_search', 'type' => 'checkbox' ) ); // Font Section $wp_customize->add_section( 'sec_font', array( 'title' => __('Font Options', 'bm-hope'), 'description' => __('Font Options', 'bm-hope') ) ); // Font Select $wp_customize->add_setting( 'set_font_name',array( 'type' => 'theme_mod', 'default' => 'Montserrat', 'sanitize_callback' => 'sanitize_text_field', 'transport' => 'refresh' ) ); // Font Select $wp_customize->add_control( 'set_font_name', array( 'label' => __( 'Font Select', 'bm-hope' ), 'description' => __('Please Select The Main Font', 'bm-hope'), 'section' => 'sec_font', 'type' => 'select', 'choices' => array( 'Archivo Narrow' => __( 'Archivo Narrow', 'bm-hope' ), 'Cinzel' => __( 'Cinzel', 'bm-hope' ), 'Montserrat' => __( 'Montserrat', 'bm-hope' ), 'Open Sans' => __( 'Open Sans', 'bm-hope' ), 'Roboto' => __( 'Roboto', 'bm-hope' ), 'Notable' => __( 'Notable', 'bm-hope' ), 'Lato' => __( 'Lato', 'bm-hope' ), 'Open Sans Condensed' => __( 'Open Sans Condensed', 'bm-hope' ), 'Dancing Script' => __( 'Dancing Script', 'bm-hope' ), 'Amatic SC' => __( 'Amatic SC', 'bm-hope' ), ) ) ); // ------------------------------------------------------------------------------------------------------------------- // // Color Section $wp_customize->add_section( 'sec_color', array( 'title' => __('Color Options', 'bm-hope'), 'description' => __('Color Options', 'bm-hope') ) ); // Background Color $wp_customize->add_setting( 'background_color_main' , array( 'default' => '#ededed', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'background_color_main', array( 'label' => __('Background Color', 'bm-hope'), 'description' => __('Please, Choose Background Color', 'bm-hope'), 'section' => 'sec_color', ))); // Body Text Color $wp_customize->add_setting( 'body_text_color' , array( 'default' => '#000000', 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'refresh', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'body_text_color', array( 'label' => __('Body Text Color', 'bm-hope'), 'description' => __('Please, Choose Body Text Color', 'bm-hope'), 'section' => 'sec_color', )) ); // Link Text Color $wp_customize->add_setting( 'link_text_color' , array( 'default' => '#512222', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'refresh', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'link_text_color', array( 'label' => __('Link Text Color', 'bm-hope'), 'description' => __('Please, Choose Link Text Color', 'bm-hope'), 'section' => 'sec_color', ))); // Link Hover Text Color $wp_customize->add_setting( 'link_hover_color' , array( 'default' => '#b08f26', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'refresh', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'link_hover_color', array( 'label' => __('Hover Link Color', 'bm-hope'), 'description' => __('Please, Choose Hover Link Color', 'bm-hope'), 'section' => 'sec_color', ))); // Top Bar Background Color $wp_customize->add_setting( 'top_bar_background_color' , array( 'default' => '#D7DDE8', 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'refresh', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'top_bar_background_color', array( 'label' => __('Top Bar Background Color', 'bm-hope'), 'description' => __('Please, Choose Top Bar Background Color', 'bm-hope'), 'section' => 'sec_color', )) ); // Top Bar Border Color $wp_customize->add_setting( 'top_bar_border_color' , array( 'default' => '#b08f26', 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'refresh', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'top_bar_border_color', array( 'label' => __('Top Bar Border Color', 'bm-hope'), 'description' => __('Please, Choose Top Bar Border Color Color', 'bm-hope'), 'section' => 'sec_color', )) ); // Top Bar Link Color $wp_customize->add_setting( 'top_bar_link_color' , array( 'default' => '#000000', 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'refresh', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'top_bar_link_color', array( 'label' => __('Top Bar Link Color', 'bm-hope'), 'description' => __('Please, Choose Top Bar Hover Color', 'bm-hope'), 'section' => 'sec_color', )) ); // Top Bar Hover Color $wp_customize->add_setting( 'top_bar_hover_color' , array( 'default' => '#b08f26', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'top_bar_hover_color', array( 'label' => __('Top Bar Link Hover Color', 'bm-hope'), 'description' => __('Please, Choose Top Bar Link Hover Color', 'bm-hope'), 'section' => 'sec_color', )) ); // Top Bar Border Hover Color $wp_customize->add_setting( 'top_bar_border_hover_color' , array( 'default' => '#000000', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'top_bar_border_hover_color', array( 'label' => __('Top Bar Link Border Hover Color', 'bm-hope'), 'description' => __('Please, Choose Top Bar Link Border Hover Color', 'bm-hope'), 'section' => 'sec_color', )) ); // Main Menu Background Color $wp_customize->add_setting( 'main_menu_background_color' , array( 'default' => '#d7dde8', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'main_menu_background_color', array( 'label' => __('Main Menu Background Color', 'bm-hope'), 'description' => __('Please, Choose Main Menu Background Color', 'bm-hope'), 'section' => 'sec_color', )) ); // Main Menu Border Color $wp_customize->add_setting( 'main_menu_border_color' , array( 'default' => '#000000', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'main_menu_border_color', array( 'label' => __('Main Menu Border Color', 'bm-hope'), 'description' => __('Please, Choose Main Menu Border Color', 'bm-hope'), 'section' => 'sec_color', )) ); // Main Menu Link Color $wp_customize->add_setting( 'main_menu_link_color' , array( 'default' => '#000000', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'main_menu_link_color', array( 'label' => __('Main Menu Link Color', 'bm-hope'), 'description' => __('Please, Choose Main Menu Link Color', 'bm-hope'), 'section' => 'sec_color', )) ); // Main Menu Hover Link Text Color $wp_customize->add_setting( 'main_menu_hover_link_color' , array( 'default' => '#ffffff', 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'refresh', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'main_menu_hover_link_color', array( 'label' => __('Main Menu Hover Link Color', 'bm-hope'), 'description' => __('Please, Choose Main Menu Hover Link Color', 'bm-hope'), 'section' => 'sec_color', )) ); // Main Menu Hover Border Color $wp_customize->add_setting( 'main_menu_hover_border_color' , array( 'default' => '#ffffff', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'main_menu_hover_border_color', array( 'label' => __('Main Menu Hover Border Color', 'bm-hope'), 'description' => __('Please, Choose Main Menu Hover Border Color', 'bm-hope'), 'section' => 'sec_color', )) ); // Main Menu Active Link Text Color $wp_customize->add_setting( 'main_menu_active_link_color' , array( 'default' => '#b08f26', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'main_menu_active_link_color', array( 'label' => __('Main Menu Active Link Color', 'bm-hope'), 'description' => __('Please, Choose Main Menu Active Link Color', 'bm-hope'), 'section' => 'sec_color', )) ); // Search Section Background Color $wp_customize->add_setting( 'search_section_background_color' , array( 'default' => '#2d2d2d', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'search_section_background_color', array( 'label' => __('Search Bar Section Background Color', 'bm-hope'), 'description' => __('Please, Choose Search Bar Section Background Color', 'bm-hope'), 'section' => 'sec_color', )) ); // Search Section Border Color $wp_customize->add_setting( 'search_section_border_color' , array( 'default' => '#b08f26', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'search_section_border_color', array( 'label' => __('Search Bar Section Border Color', 'bm-hope'), 'description' => __('Please, Choose Search Bar Section Border Color', 'bm-hope'), 'section' => 'sec_color', )) ); // Search Bar Border Color $wp_customize->add_setting( 'search_bar_border_color' , array( 'default' => '#b08f26', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'search_bar_border_color', array( 'label' => __('Search Bar Border Color', 'bm-hope'), 'description' => __('Please, Choose Search Bar Border Color', 'bm-hope'), 'section' => 'sec_color', )) ); // Search Button Border Color $wp_customize->add_setting( 'search_button_border_color' , array( 'default' => '#b08f26', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'search_button_border_color', array( 'label' => __('Search Button Border Color', 'bm-hope'), 'description' => __('Please, Choose Search Button Border Color', 'bm-hope'), 'section' => 'sec_color', )) ); // Search Button Text Color $wp_customize->add_setting( 'search_button_text_color' , array( 'default' => '#b08f26', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'search_button_text_color', array( 'label' => __('Search Button Text Color', 'bm-hope'), 'description' => __('Please, Choose Search Button Text Color', 'bm-hope'), 'section' => 'sec_color', )) ); // Search Button Hover Border Color $wp_customize->add_setting( 'search_button_hover_border_color' , array( 'default' => '#ffffff', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'search_button_hover_border_color', array( 'label' => __('Search Button Hover Border Color', 'bm-hope'), 'description' => __('Please, Choose Search Button Hover Color', 'bm-hope'), 'section' => 'sec_color', )) ); // Search Button Hover Background Color $wp_customize->add_setting( 'search_button_hover_background_color' , array( 'default' => '#b08f26', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'search_button_hover_background_color', array( 'label' => __('Search Button Hover Background Color', 'bm-hope'), 'description' => __('Please, Choose Search Button Hover Background Color', 'bm-hope'), 'section' => 'sec_color', )) ); // Search Button Hover Text Color $wp_customize->add_setting( 'search_button_hover_text_color' , array( 'default' => '#000000', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', )) ; $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'search_button_hover_text_color', array( 'label' => __('Search Button Hover Text Color', 'bm-hope'), 'description' => __('Please, Choose Search Button Hover text Color', 'bm-hope'), 'section' => 'sec_color', )) ); // Pagination Border Color $wp_customize->add_setting( 'paination_border_color' , array( 'default' => '#b08f26', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'paination_border_color', array( 'label' => __('Pagination Border Color', 'bm-hope'), 'description' => __('Please, Choose Pagination Border Color', 'bm-hope'), 'section' => 'sec_color', )) ); // Pagination Background Color $wp_customize->add_setting( 'pagination_background_color' , array( 'default' => '#D7DDE8', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'pagination_background_color', array( 'label' => __('Pagination Background Color', 'bm-hope'), 'description' => __('Please, Choose Pagination Background Color', 'bm-hope'), 'section' => 'sec_color', )) ); // Pagination Normal Text Color $wp_customize->add_setting( 'pagination_normal_text_color' , array( 'default' => '#000000', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'pagination_normal_text_color', array( 'label' => __('Pagination Text Color', 'bm-hope'), 'description' => __('Please, Choose Pagination Text Color', 'bm-hope'), 'section' => 'sec_color', )) ); // Pagination Active / Hover Text Color $wp_customize->add_setting( 'pagination_active_text_color' , array( 'default' => '#b08f26', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'pagination_active_text_color', array( 'label' => __('Pagination Active - Hover Text Color', 'bm-hope'), 'description' => __('Please, Choose Pagination Active - Hover Text Color', 'bm-hope'), 'section' => 'sec_color', )) ); // Side Bar Widget Border Color $wp_customize->add_setting( 'sidebar_widget_border_color' , array( 'default' => '#b08f26', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'sidebar_widget_border_color', array( 'label' => __('Side Bar Widget Border Color', 'bm-hope'), 'description' => __('Please, Choose Side Bar Widget Border Color', 'bm-hope'), 'section' => 'sec_color', )) ); // Side Bar Widget Background Color $wp_customize->add_setting( 'sidebar_widget_background_color' , array( 'default' => '#d7dde8', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'sidebar_widget_background_color', array( 'label' => __('Side Bar Widget Background Color', 'bm-hope'), 'description' => __('Please, Choose Side Bar Widget Background Color', 'bm-hope'), 'section' => 'sec_color', )) ); // ------------------------------------------------------------------------------------------------------------------------------ // //WooCommerce Color Section $wp_customize->add_section( 'sec_woocommerce_color', array( 'title' => __('WooCommerce Color Options', 'bm-hope'), 'description' => __('WooCommerce Color Options', 'bm-hope') ) ); // Drop Down Link Background Color $wp_customize->add_setting( 'dropdown_link_background_color' , array( 'default' => '#eaeaea', 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'refresh', ) ); $wp_customize->add_control(new WP_Customize_Color_Control( $wp_customize, 'dropdown_link_background_color', array( 'label' => __('Accounts Drop Down Background Color', 'bm-hope'), 'description' => __('Please, Choose Accounts Drop Down Background Color', 'bm-hope'), 'section' => 'sec_woocommerce_color', )) ); // Drop Down Link Text Color $wp_customize->add_setting( 'dropdown_link_color' , array( 'default' => '#000000', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control(new WP_Customize_Color_Control( $wp_customize, 'dropdown_link_color', array( 'label' => __('Accounts Drop Down Text Color', 'bm-hope'), 'description' => __('Please, Choose Accounts Drop Down Text Color', 'bm-hope'), 'section' => 'sec_woocommerce_color', )) ); // Drop Down Hover Link Background Color $wp_customize->add_setting( 'dropdown_hover_link_background_color' , array( 'default' => '#e0e0e0', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control(new WP_Customize_Color_Control( $wp_customize, 'dropdown_hover_link_background_color', array( 'label' => __('Accounts Drop Down Hover Background Color', 'bm-hope'), 'description' => __('Please, Choose Accounts Drop Down Hover Background Color', 'bm-hope'), 'section' => 'sec_woocommerce_color', )) ); // Drop Down Hover Link Text Color $wp_customize->add_setting( 'dropdown_hover_link_color' , array( 'default' => '#b08f26', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control(new WP_Customize_Color_Control( $wp_customize, 'dropdown_hover_link_color', array( 'label' => __('Accounts Drop Down Hover Link Color', 'bm-hope'), 'description' => __('Please, Choose Accounts Drop Down Text Link Color', 'bm-hope'), 'section' => 'sec_woocommerce_color', )) ); // Product Loop Title Text Color $wp_customize->add_setting( 'product_loop_title_text_color' , array( 'default' => '#b08f26', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control(new WP_Customize_Color_Control( $wp_customize, 'product_loop_title_text_color', array( 'label' => __('Product Loop Title Color', 'bm-hope'), 'description' => __('Please, Choose Product Loop In Homepage Title Text Color', 'bm-hope'), 'section' => 'sec_woocommerce_color', )) ); // Product Loop Price Text Color $wp_customize->add_setting( 'product_loop_price_text_color' , array( 'default' => '#000000', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control(new WP_Customize_Color_Control( $wp_customize, 'product_loop_price_text_color', array( 'label' => __('Product Loop Price Title Color', 'bm-hope'), 'description' => __('Please, Choose Product Loop In Homepage Price Title Text Color', 'bm-hope'), 'section' => 'sec_woocommerce_color', )) ); // WooCommerce Button Background Color $wp_customize->add_setting( 'woo_button_background_color' , array( 'default' => '#000000', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control(new WP_Customize_Color_Control( $wp_customize, 'woo_button_background_color', array( 'label' => __('Add To Cart / Read More / Sale / Categories Background Color', 'bm-hope'), 'description' => __('Please, Choose Add To Cart / Read More / Sale / Categories Background Color', 'bm-hope'), 'section' => 'sec_woocommerce_color', )) ); // WooCommerce Button Text Color $wp_customize->add_setting( 'woo_button_text_color' , array( 'default' => '#b08f26', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control(new WP_Customize_Color_Control( $wp_customize, 'woo_button_text_color', array( 'label' => __('Add To Cart / Read More / Sale / Categories Text Color', 'bm-hope'), 'description' => __('Please, Choose Add To Cart / Read More / Sale / Categories Text Color', 'bm-hope'), 'section' => 'sec_woocommerce_color', )) ); // WooCommerce Button Hover Text Color $wp_customize->add_setting( 'woo_button_hover_text_color' , array( 'default' => '#e5bb12', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control(new WP_Customize_Color_Control( $wp_customize, 'woo_button_hover_text_color', array( 'label' => __('Add To Cart / Read More / Categories Hover Text Color', 'bm-hope'), 'description' => __('Please, Choose Add To Cart / Read More / Categories Hover Text Color', 'bm-hope'), 'section' => 'sec_woocommerce_color', )) ); // WooCommerce Instock text Color (Single Product) $wp_customize->add_setting( 'instock_text_color' , array( 'default' => '#b08f26', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control(new WP_Customize_Color_Control( $wp_customize, 'instock_text_color', array( 'label' => __('Instock Text Color', 'bm-hope'), 'description' => __('Please, Choose Single Product Instock Text Color', 'bm-hope'), 'section' => 'sec_woocommerce_color', )) ); // WooCommerce Breadcrumb Text Color $wp_customize->add_setting( 'woo_breadcrumb_text_color' , array( 'default' => '#b08f26', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control(new WP_Customize_Color_Control( $wp_customize, 'woo_breadcrumb_text_color', array( 'label' => __('Breadcrumb Text Color', 'bm-hope'), 'description' => __('Please, Choose Breadcrumb Text Color', 'bm-hope'), 'section' => 'sec_woocommerce_color', )) ); // WooCommerce Breadcrumb Link Text Color $wp_customize->add_setting( 'woo_breadcrumb_link_text_color' , array( 'default' => '#000000', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control(new WP_Customize_Color_Control( $wp_customize, 'woo_breadcrumb_link_text_color', array( 'label' => __('Breadcrumb Link Text Color', 'bm-hope'), 'description' => __('Please, Choose Breadcrumb Link Text Color', 'bm-hope'), 'section' => 'sec_woocommerce_color', )) ); // WooCommerce Zoom Background Color $wp_customize->add_setting( 'gallery_trigger_background_color' , array( 'default' => '#b08f26', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control(new WP_Customize_Color_Control( $wp_customize, 'gallery_trigger_background_color', array( 'label' => __('Gallery Trigger Background Color', 'bm-hope'), 'description' => __('Please, Choose Single Product Gallery Trigger Zoom Background Color', 'bm-hope'), 'section' => 'sec_woocommerce_color', )) ); // WooCommerce Zoom Hover Background Color $wp_customize->add_setting( 'gallery_trigger_hover_background_color' , array( 'default' => '#ffffff', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control(new WP_Customize_Color_Control( $wp_customize, 'gallery_trigger_hover_background_color', array( 'label' => __('Gallery Trigger Hover Background Color', 'bm-hope'), 'description' => __('Please, Choose Single Product Gallery Trigger Hover Zoom Background Color', 'bm-hope'), 'section' => 'sec_woocommerce_color', )) ); // WooCommerce Product Tabs Text Color $wp_customize->add_setting( 'product_tabs_text_color' , array( 'default' => '#000000', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control(new WP_Customize_Color_Control( $wp_customize, 'product_tabs_text_color', array( 'label' => __('Product Tabs Text Color', 'bm-hope'), 'description' => __('Please, Choose Single Product Tabs Text Color', 'bm-hope'), 'section' => 'sec_woocommerce_color', )) ); // WooCommerce Product Tabs Hover Text Color $wp_customize->add_setting( 'product_tabs_hover_text_color' , array( 'default' => '#b08f26', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control(new WP_Customize_Color_Control( $wp_customize, 'product_tabs_hover_text_color', array( 'label' => __('Product Tabs Hover Text Color', 'bm-hope'), 'description' => __('Please, Choose Single Product Tabs Hover Text Color', 'bm-hope'), 'section' => 'sec_woocommerce_color', )) ); // WooCommerce Product Tabs Background Color $wp_customize->add_setting( 'product_tabs_background_color' , array( 'default' => '', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control(new WP_Customize_Color_Control( $wp_customize, 'product_tabs_background_color', array( 'label' => __('Product Tabs Background Color', 'bm-hope'), 'description' => __('Please, Choose Single Product Tabs Background Color', 'bm-hope'), 'section' => 'sec_woocommerce_color', )) ); // WooCommerce Product Tabs Border Color $wp_customize->add_setting( 'product_tabs_border_color' , array( 'default' => '#b08f26', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control(new WP_Customize_Color_Control( $wp_customize, 'product_tabs_border_color', array( 'label' => __('Product Tabs Border Color', 'bm-hope'), 'description' => __('Please, Choose Single Product Tabs Border Color', 'bm-hope'), 'section' => 'sec_woocommerce_color', )) ); // WooCommerce Product Tabs Active Background Color $wp_customize->add_setting( 'product_tabs_active_background_color' , array( 'default' => '#ffffff', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control(new WP_Customize_Color_Control( $wp_customize, 'product_tabs_active_background_color', array( 'label' => __('Product Tabs Active Background Color', 'bm-hope'), 'description' => __('Please, Choose Single Product Tabs Active Background Color', 'bm-hope'), 'section' => 'sec_woocommerce_color', )) ); // User Form Background Color $wp_customize->add_setting( 'user_form_background_color' , array( 'default' => '#e0e0e0', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control(new WP_Customize_Color_Control( $wp_customize, 'user_form_background_color', array( 'label' => __('User Form Background Color', 'bm-hope'), 'description' => __('Please, Choose User Form Background Color', 'bm-hope'), 'section' => 'sec_woocommerce_color', )) ); // User Register Form Paragraph Text Color $wp_customize->add_setting( 'user_register_form_p_text_color' , array( 'default' => '#000000', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control(new WP_Customize_Color_Control( $wp_customize, 'user_register_form_p_text_color', array( 'label' => __('User Register Form Paragraph Text Color', 'bm-hope'), 'description' => __('Please, Choose User Register Form Paragraph Text Color', 'bm-hope'), 'section' => 'sec_woocommerce_color', )) ); // User Form Button Color $wp_customize->add_setting( 'user_form_button_text_color' , array( 'default' => '#b08f26', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control(new WP_Customize_Color_Control( $wp_customize, 'user_form_button_text_color', array( 'label' => __('User Form Button Text Color', 'bm-hope'), 'description' => __('Please, Choose User Form Button Text Color', 'bm-hope'), 'section' => 'sec_woocommerce_color', )) ); // User Form Button Background Color $wp_customize->add_setting( 'user_form_button_background_color' , array( 'default' => '#000000', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control(new WP_Customize_Color_Control( $wp_customize, 'user_form_button_background_color', array( 'label' => __('User Form Button Background Color', 'bm-hope'), 'description' => __('Please, Choose User Form Button Background Color', 'bm-hope'), 'section' => 'sec_woocommerce_color', )) ); // User Form Button Hover Text Color $wp_customize->add_setting( 'user_form_button_hover_text_color' , array( 'default' => '#e5bb12', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control(new WP_Customize_Color_Control( $wp_customize, 'user_form_button_hover_text_color', array( 'label' => __('User Form Button Hover Text Color', 'bm-hope'), 'description' => __('Please, Choose User Form Button Hover Text Color', 'bm-hope'), 'section' => 'sec_woocommerce_color', )) ); // ------------------------------------------------------------------------------------------------------------------------------------- // //Copyright Section $wp_customize->add_section( 'sec_copyright', array( 'title' => __('Copyright Settings', 'bm-hope'), 'description' => __('Copyright Section', 'bm-hope') ) ); // Field1 - Copyright Text Box $wp_customize->add_setting( 'set_copyright', array( 'type' => 'theme_mod', 'default' => '', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( 'set_copyright', array( 'label' => __('Copyright', 'bm-hope'), 'description' => __('Please, Add Your Copyright Information Here', 'bm-hope'), 'section' => 'sec_copyright', 'type' => 'text' ) ); // Copyright Text Color $wp_customize->add_setting( 'set_copyright_text_color', array( 'type' => 'theme_mod', 'default' => '#af994f', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control(new WP_Customize_Color_Control( $wp_customize, 'set_copyright_text_color', array( 'label' => __('Copyright Text Color', 'bm-hope'), 'description' => __('Please, Choose Your Copyright Text Color Here', 'bm-hope'), 'section' => 'sec_copyright', )) ); // ------------------------------------------------------------------------------------------------------------------------------------- // // Footer Section Settings $wp_customize->add_section( 'sec_footer_settings', array( 'title' => __('Footer Section Settings', 'bm-hope'), 'description' => __('Footer Section Main Settings', 'bm-hope') ) ); // Footer 1 Color $wp_customize->add_setting( 'footer_1_color' , array( 'default' => '#D7DDE8', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control(new WP_Customize_Color_Control( $wp_customize, 'footer_1_color', array( 'label' => __('Footer 1 Color', 'bm-hope'), 'description' => __('Please, Choose Footer 1 Color', 'bm-hope'), 'section' => 'sec_footer_settings', )) ); // Footer 2 Color $wp_customize->add_setting( 'footer_2_color' , array( 'default' => '#000000', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control(new WP_Customize_Color_Control( $wp_customize, 'footer_2_color', array( 'label' => __('Footer 2 Color', 'bm-hope'), 'description' => __('Please, Choose Footer 2 Color', 'bm-hope'), 'section' => 'sec_footer_settings', )) ); // Footer Separator Text Content $wp_customize->add_setting( 'set_footer_separator_text', array( 'type' => 'theme_mod', 'default' => 'BM Hope', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( 'set_footer_separator_text', array( 'label' => __('Footer Separator Text', 'bm-hope'), 'description' => __('Please, Add Your Footer Separator Text Content Here', 'bm-hope'), 'section' => 'sec_footer_settings', 'type' => 'text' ) ); // Footer Separator Text Color $wp_customize->add_setting( 'set_footer_separator_text_color', array( 'type' => 'theme_mod', 'transport' => 'refresh', 'default' => '#ffffff', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control(new WP_Customize_Color_Control( $wp_customize, 'set_footer_separator_text_color', array( 'label' => __('Footer Separator Text Color', 'bm-hope'), 'description' => __('Please, Choose Your Footer Separator Text Color Here', 'bm-hope'), 'section' => 'sec_footer_settings', )) ); // Footer Separator Background Color $wp_customize->add_setting( 'set_footer_separator_background', array( 'type' => 'theme_mod', 'default' => '#000000', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control(new WP_Customize_Color_Control( $wp_customize, 'set_footer_separator_background', array( 'label' => __('Footer Separator Background Color', 'bm-hope'), 'description' => __('Please, Choose Your Footer Separator Background Color Here', 'bm-hope'), 'section' => 'sec_footer_settings', )) ); // Footer Menu Active Link Color $wp_customize->add_setting( 'footer_menu_active_link_color', array( 'type' => 'theme_mod', 'transport' => 'refresh', 'default' => '#b08f26', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control(new WP_Customize_Color_Control( $wp_customize, 'footer_menu_active_link_color', array( 'label' => __('Footer Menu Active Link Color', 'bm-hope'), 'description' => __('Please, Choose Your Footer Menu Active Link Color Here', 'bm-hope'), 'section' => 'sec_footer_settings', )) ); // Footer Menu Link Color $wp_customize->add_setting( 'footer_menu_link_color', array( 'type' => 'theme_mod', 'transport' => 'refresh', 'default' => '#D7DDE8', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control(new WP_Customize_Color_Control( $wp_customize, 'footer_menu_link_color', array( 'label' => __('Footer Menu Link Color', 'bm-hope'), 'description' => __('Please, Choose Your Footer Menu Link Color Here', 'bm-hope'), 'section' => 'sec_footer_settings', )) ); // ---------------------------------------------------------------------------------------------------------------------------------- // // Slider Section $wp_customize->add_section( 'sec_slider', array( 'title' => __('Slider Settings', 'bm-hope'), 'description' => __('Slider Section', 'bm-hope') ) ); // Make Slider Visible ? $wp_customize->add_setting( 'set_slider_visibility', array( 'type' => 'theme_mod', 'default' => '', 'sanitize_callback' => 'bm_hope_sanitize_checkbox' ) ); $wp_customize->add_control( 'set_slider_visibility', array( 'label' => __('Make Slider Visible?', 'bm-hope'), 'section' => 'sec_slider', 'type' => 'checkbox' ) ); // Slider Button Background Color $wp_customize->add_setting( 'slider_button_background_color', array( 'type' => 'theme_mod', 'transport' => 'refresh', 'default' => '#000000', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control(new WP_Customize_Color_Control( $wp_customize, 'slider_button_background_color', array( 'label' => __('Set Slider Button Background Color', 'bm-hope'), 'section' => 'sec_slider', )) ); // Slider Button Text Color $wp_customize->add_setting( 'slider_button_text_color', array( 'transport' => 'refresh', 'type' => 'theme_mod', 'default' => '#b08f26', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control(new WP_Customize_Color_Control( $wp_customize, 'slider_button_text_color', array( 'label' => __('Set Slider Button Text Color', 'bm-hope'), 'section' => 'sec_slider', )) ); // Slider Button Hover Background Color $wp_customize->add_setting( 'slider_button_hover_background_color', array( 'type' => 'theme_mod', 'transport' => 'refresh', 'default' => '#bc9f29', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control(new WP_Customize_Color_Control( $wp_customize, 'slider_button_hover_background_color', array( 'label' => __('Set Slider Button Hover Background Color', 'bm-hope'), 'section' => 'sec_slider', )) ); // Slider Button Hover Text Color $wp_customize->add_setting( 'slider_button_hover_text_color', array( 'type' => 'theme_mod', 'transport' => 'refresh', 'default' => '#000000', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control(new WP_Customize_Color_Control( $wp_customize, 'slider_button_hover_text_color', array( 'label' => __('Set Slider Button Hover Text Color', 'bm-hope'), 'section' => 'sec_slider', )) ); // Slider Pagination Color $wp_customize->add_setting( 'slider_pagination_color', array( 'type' => 'theme_mod', 'transport' => 'refresh', 'default' => '#999999', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control(new WP_Customize_Color_Control( $wp_customize, 'slider_pagination_color', array( 'label' => __('Set Slider Pagination Color', 'bm-hope'), 'section' => 'sec_slider', )) ); // Slider Pagination Active Color $wp_customize->add_setting( 'slider_pagination_active_color', array( 'type' => 'theme_mod', 'transport' => 'refresh', 'default' => '#bc9f29', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control(new WP_Customize_Color_Control( $wp_customize, 'slider_pagination_active_color', array( 'label' => __('Set Slider Active Pagination Color', 'bm-hope'), 'section' => 'sec_slider', )) ); // Field1 - Slider Page Number 1 $wp_customize->add_setting( 'set_slider_page1', array( 'type' => 'theme_mod', 'default' => '', 'sanitize_callback' => 'absint' ) ); $wp_customize->add_control( 'set_slider_page1', array( 'label' => __('Set Slider 1', 'bm-hope'), 'section' => 'sec_slider', 'type' => 'dropdown-pages' ) ); // Field2 - Slider Button Number 1 $wp_customize->add_setting( 'set_slider_button_text1', array( 'type' => 'theme_mod', 'default' => '', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( 'set_slider_button_text1', array( 'label' => __('Button Text For Slide 1', 'bm-hope'), 'section' => 'sec_slider', 'type' => 'text' ) ); // Field3 - Slider Button URL Number 1 $wp_customize->add_setting( 'set_slider_button_url1', array( 'type' => 'theme_mod', 'default' => '', 'sanitize_callback' => 'esc_url_raw' ) ); $wp_customize->add_control( 'set_slider_button_url1', array( 'label' => __('URL Address For Slide 1', 'bm-hope'), 'section' => 'sec_slider', 'type' => 'url' ) ); /*----------------------------------------*/ // Field4 - Slider Page Number 2 $wp_customize->add_setting( 'set_slider_page2', array( 'type' => 'theme_mod', 'default' => '', 'sanitize_callback' => 'absint' ) ); $wp_customize->add_control( 'set_slider_page2', array( 'label' => __('Set Slider 2', 'bm-hope'), 'section' => 'sec_slider', 'type' => 'dropdown-pages' ) ); // Field5 - Slider Button Number 2 $wp_customize->add_setting( 'set_slider_button_text2', array( 'type' => 'theme_mod', 'default' => '', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( 'set_slider_button_text2', array( 'label' => __('Button Text For Slide 2', 'bm-hope'), 'section' => 'sec_slider', 'type' => 'text' ) ); // Field6 - Slider Button URL Number 2 $wp_customize->add_setting( 'set_slider_button_url2', array( 'type' => 'theme_mod', 'default' => '', 'sanitize_callback' => 'esc_url_raw' ) ); $wp_customize->add_control( 'set_slider_button_url2', array( 'label' => __('URL Address For Slide 2', 'bm-hope'), 'section' => 'sec_slider', 'type' => 'url' ) ); /*------------------------------------------*/ // Field7 - Slider Page Number 3 $wp_customize->add_setting( 'set_slider_page3', array( 'type' => 'theme_mod', 'default' => '', 'sanitize_callback' => 'absint' ) ); $wp_customize->add_control( 'set_slider_page3', array( 'label' => __('Set Slider 3', 'bm-hope'), 'section' => 'sec_slider', 'type' => 'dropdown-pages' ) ); // Field8 - Slider Button Number 3 $wp_customize->add_setting( 'set_slider_button_text3', array( 'type' => 'theme_mod', 'default' => '', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( 'set_slider_button_text3', array( 'label' => __('Button Text For Slide 3', 'bm-hope'), 'section' => 'sec_slider', 'type' => 'text' ) ); // Field9 - Slider Button URL Number 3 $wp_customize->add_setting( 'set_slider_button_url3', array( 'type' => 'theme_mod', 'default' => '', 'sanitize_callback' => 'esc_url_raw' ) ); $wp_customize->add_control( 'set_slider_button_url3', array( 'label' => __('URL Address For Slide 3', 'bm-hope'), 'section' => 'sec_slider', 'type' => 'url' ) ); // ---------------------------------------------------------------------------------------------------------------------------------- // // Top Bar Section $wp_customize->add_section( 'sec_topbar_main_icons', array( 'title' => __('Top Bar Main', 'bm-hope'), 'description' => __('Top Bar Main / Icons Hide / Show', 'bm-hope') ) ); // Whole Top Bar Visibilty? $wp_customize->add_setting( 'set_topbar_visibility', array( 'type' => 'theme_mod', 'default' => '', 'sanitize_callback' => 'bm_hope_sanitize_checkbox' ) ); $wp_customize->add_control( 'set_topbar_visibility', array( 'label' => __('Make Top Bar Visible?', 'bm-hope'), 'section' => 'sec_topbar_main_icons', 'type' => 'checkbox' ) ); // Cart Visibilty $wp_customize->add_setting( 'set_cart_visibility', array( 'type' => 'theme_mod', 'default' => '', 'sanitize_callback' => 'bm_hope_sanitize_checkbox' ) ); $wp_customize->add_control( 'set_cart_visibility', array( 'label' => __('Make Cart Visible?', 'bm-hope'), 'section' => 'sec_topbar_main_icons', 'type' => 'checkbox' ) ); // Wishlist Visibilty $wp_customize->add_setting( 'set_wishlist_visibility', array( 'type' => 'theme_mod', 'default' => '', 'sanitize_callback' => 'bm_hope_sanitize_checkbox' ) ); $wp_customize->add_control( 'set_wishlist_visibility', array( 'label' => __('Make Wishlist Visible?', 'bm-hope'), 'section' => 'sec_topbar_main_icons', 'type' => 'checkbox' ) ); // Wishlist Page URL $wp_customize->add_setting( 'set_wishlist_page_url', array( 'type' => 'theme_mod', 'default' => '', 'sanitize_callback' => 'esc_url_raw' ) ); $wp_customize->add_control( 'set_wishlist_page_url', array( 'label' => __('URL For Wishlist Page', 'bm-hope'), 'description' => __('URL For Wishlist Page To Be Added To The Icon', 'bm-hope'), 'section' => 'sec_topbar_main_icons', 'type' => 'url' ) ); // ---------------------------------------------------------------------------------------------------------------------------------- // //Home Page Settings $wp_customize->add_section( 'sec_home_page', array( 'title' => __('Home Page Settings', 'bm-hope'), 'description' => __('Home Page Products & Blogs Settings Section', 'bm-hope') ) ); //Product Categories Visibilty checkbox $wp_customize->add_setting( 'set_categories_visibility', array( 'type' => 'theme_mod', 'default' => '', 'sanitize_callback' => 'bm_hope_sanitize_checkbox' ) ); $wp_customize->add_control( 'set_categories_visibility', array( 'label' => __('Make Product Categories Visible?', 'bm-hope'), 'section' => 'sec_home_page', 'type' => 'checkbox' ) ); //Field1 - First Widget Title $wp_customize->add_setting( 'set_field1_title', array( 'type' => 'theme_mod', 'default' => '', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( 'set_field1_title', array( 'label' => __('Provide Name For The Product Categories Field', 'bm-hope'), 'description' => __('Provide Name For The Product Categories Field Default Will Be Product Categories', 'bm-hope'), 'section' => 'sec_home_page', 'type' => 'text' ) ); // Field2 - Product Categories Limit $wp_customize->add_setting( 'set_categories_limit', array( 'type' => 'theme_mod', 'default' => '', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( 'set_categories_limit', array( 'label' => __('Product Categories Limit', 'bm-hope'), 'description' => __('Product Categories Limit', 'bm-hope'), 'section' => 'sec_home_page', 'type' => 'number' ) ); // Field3 - Product Categories Max Columns $wp_customize->add_setting( 'set_categories_max_col', array( 'type' => 'theme_mod', 'default' => '', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( 'set_categories_max_col', array( 'label' => __('Product Categories Max Columns', 'bm-hope'), 'description' => __('Product Categories Max Columns', 'bm-hope'), 'section' => 'sec_home_page', 'type' => 'number' ) ); // Product Categories Empty Stock Visibility $wp_customize->add_setting( 'set_categories_empty_visibility',array( 'default' => '', 'sanitize_callback' => 'bm_hope_sanitize_select', 'type' => 'theme_mod', ) ); $wp_customize->add_control( 'set_categories_empty_visibility', array( 'label' => __( 'Product Categories Empty Stock Visibility', 'bm-hope' ), 'description' => __('Product Empty Stock Categories Hide / Show', 'bm-hope'), 'section' => 'sec_home_page', 'priority' => 10, 'type' => 'select', 'capability' => 'edit_theme_options', 'choices' => array( 0 => __( 'Show', 'bm-hope' ), 1 => __( 'Hide', 'bm-hope' ), ) ) ); //Popular Products Visibilty checkbox $wp_customize->add_setting( 'set_popular_visibility', array( 'type' => 'theme_mod', 'default' => '', 'sanitize_callback' => 'bm_hope_sanitize_checkbox' ) ); $wp_customize->add_control( 'set_popular_visibility', array( 'label' => __('Make Popular Products visible?', 'bm-hope'), 'section' => 'sec_home_page', 'type' => 'checkbox' ) ); //Field1 - First Widget Title $wp_customize->add_setting( 'set_field2_title', array( 'type' => 'theme_mod', 'default' => '', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( 'set_field2_title', array( 'label' => __('Provide Name For The Product Field', 'bm-hope'), 'description' => __('Provide Name For The Product Field Default Will Be Popular Products', 'bm-hope'), 'section' => 'sec_home_page', 'type' => 'text' ) ); // Field2 - Popular Products Maximum Number $wp_customize->add_setting( 'set_popular_max_num', array( 'type' => 'theme_mod', 'default' => '', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( 'set_popular_max_num', array( 'label' => __('Popular Products Max Number', 'bm-hope'), 'description' => __('Popular Products Max Number', 'bm-hope'), 'section' => 'sec_home_page', 'type' => 'number' ) ); // Field3 - Popular Products Max Columns $wp_customize->add_setting( 'set_popular_max_col', array( 'type' => 'theme_mod', 'default' => '', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( 'set_popular_max_col', array( 'label' => __('Popular Products Max Columns', 'bm-hope'), 'description' => __('Popular Products Max Columns', 'bm-hope'), 'section' => 'sec_home_page', 'type' => 'number' ) ); //New Arrivals Products Visibilty checkbox $wp_customize->add_setting( 'set_new_arrivals_visibility', array( 'type' => 'theme_mod', 'default' => '', 'sanitize_callback' => 'bm_hope_sanitize_checkbox' ) ); $wp_customize->add_control( 'set_new_arrivals_visibility', array( 'label' => __('Make New Arrivals Products visible?', 'bm-hope'), 'section' => 'sec_home_page', 'type' => 'checkbox' ) ); //Field4 - Second Widget Title $wp_customize->add_setting( 'set_field3_title', array( 'type' => 'theme_mod', 'default' => '', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( 'set_field3_title', array( 'label' => __('Provide Name For The New Arrivals Field', 'bm-hope'), 'description' => __('Provide Name For The New Arrivals Field Default Will Be New Arrivals Products', 'bm-hope'), 'section' => 'sec_home_page', 'type' => 'text' ) ); // Field5 - New Arrivals Products Max Numbers $wp_customize->add_setting( 'set_new_arrivals_max_num', array( 'type' => 'theme_mod', 'default' => '', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( 'set_new_arrivals_max_num', array( 'label' => __('New Arrivals Products Max Number', 'bm-hope'), 'description' => __('New Arrivals Products Max Number', 'bm-hope'), 'section' => 'sec_home_page', 'type' => 'number' ) ); // Field6 - New Arrivals Products Max Columns $wp_customize->add_setting( 'set_new_arrivals_max_col', array( 'type' => 'theme_mod', 'default' => '', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( 'set_new_arrivals_max_col', array( 'label' => __('New Arrivals Products Max Columns', 'bm-hope'), 'description' => __('New Arrivals Products Max Columns', 'bm-hope'), 'section' => 'sec_home_page', 'type' => 'number' ) ); //Deal of the week Visibilty checkbox $wp_customize->add_setting( 'set_deal_visibility', array( 'type' => 'theme_mod', 'default' => '', 'sanitize_callback' => 'bm_hope_sanitize_checkbox' ) ); $wp_customize->add_control( 'set_deal_visibility', array( 'label' => __('Make Deal of the week visible?', 'bm-hope'), 'section' => 'sec_home_page', 'type' => 'checkbox' ) ); //Deal of the week title $wp_customize->add_setting( 'set_deal_title', array( 'type' => 'theme_mod', 'default' => '', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( 'set_deal_title', array( 'label' => __('Provide Name For The Deal Field', 'bm-hope'), 'description' => __('Provide Name For The Deal Field Default Will Be Deal of the week', 'bm-hope'), 'section' => 'sec_home_page', 'type' => 'text' ) ); //Deal of the week Product ID $wp_customize->add_setting( 'set_deal', array( 'type' => 'theme_mod', 'default' => '', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( 'set_deal', array( 'label' => __('Deal of the Week Product ID', 'bm-hope'), 'description' => __('Product ID to display', 'bm-hope'), 'section' => 'sec_home_page', 'type' => 'number' ) ); // Deal Of The Week Background Color $wp_customize->add_setting( 'deal_of_the_week_background_color' , array( 'default' => '', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control(new WP_Customize_Color_Control( $wp_customize, 'deal_of_the_week_background_color', array( 'label' => __('Deal Of The Week Section Background Color', 'bm-hope'), 'description' => __('Please, Choose Deal Of The Week Section Background Color', 'bm-hope'), 'section' => 'sec_home_page', )) ); // Deal Of The Week Paragraph Text Color $wp_customize->add_setting( 'deal_of_the_week_p_text_color' , array( 'default' => '', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control(new WP_Customize_Color_Control( $wp_customize, 'deal_of_the_week_p_text_color', array( 'label' => __('Deal Of The Week Paragraph Text Color', 'bm-hope'), 'description' => __('Please, Choose Deal Of The Week Paragraph Text Color', 'bm-hope'), 'section' => 'sec_home_page', )) ); // Deal Of The Week Heading Text Color $wp_customize->add_setting( 'deal_of_the_week_h3_text_color' , array( 'default' => '', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control(new WP_Customize_Color_Control( $wp_customize, 'deal_of_the_week_h3_text_color', array( 'label' => __('Deal Of The Week H3 Text Color', 'bm-hope'), 'description' => __('Please, Choose Deal Of The Week Heading3 Text Color', 'bm-hope'), 'section' => 'sec_home_page', )) ); // Deal Of The Week Heading Hover Text Color $wp_customize->add_setting( 'deal_of_the_week_h3_hover_text_color' , array( 'default' => '', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control(new WP_Customize_Color_Control( $wp_customize, 'deal_of_the_week_h3_hover_text_color', array( 'label' => __('Deal Of The Week H3 Hover Text Color', 'bm-hope'), 'description' => __('Please, Choose Deal Of The Week Heading3 Hover Text Color', 'bm-hope'), 'section' => 'sec_home_page', )) ); // Deal Of The Week Discount Box Background Color $wp_customize->add_setting( 'deal_of_the_week_discount_background_color' , array( 'default' => '', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control(new WP_Customize_Color_Control( $wp_customize, 'deal_of_the_week_discount_background_color', array( 'label' => __('Deal Of The Week Discount Widget Background Color', 'bm-hope'), 'description' => __('Please, Choose Deal Of The Week Discount Widget Background Color', 'bm-hope'), 'section' => 'sec_home_page', )) ); // Deal Of The Week Discount Text Color $wp_customize->add_setting( 'deal_of_the_week_discount_text_color' , array( 'default' => '', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control(new WP_Customize_Color_Control( $wp_customize, 'deal_of_the_week_discount_text_color', array( 'label' => __('Deal Of The Week Discount Widget Text / Border Color', 'bm-hope'), 'description' => __('Please, Choose Deal Of The Week Discount Widget Text / Border Color', 'bm-hope'), 'section' => 'sec_home_page', )) ); // Deal Of The Week Button Background Color $wp_customize->add_setting( 'deal_of_the_week_button_background_color' , array( 'default' => '', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control(new WP_Customize_Color_Control( $wp_customize, 'deal_of_the_week_button_background_color', array( 'label' => __('Deal Of The Week Button Background Color', 'bm-hope'), 'description' => __('Please, Choose Deal Of The Week Button Background Color', 'bm-hope'), 'section' => 'sec_home_page', )) ); // Deal Of The Week Button text Color $wp_customize->add_setting( 'deal_of_the_week_button_text_color' , array( 'default' => '', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control(new WP_Customize_Color_Control( $wp_customize, 'deal_of_the_week_button_text_color', array( 'label' => __('Deal Of The Week Button Text Color', 'bm-hope'), 'description' => __('Please, Choose Deal Of The Week Button Text Color', 'bm-hope'), 'section' => 'sec_home_page', )) ); // Deal Of The Week Button Hover Text Color $wp_customize->add_setting( 'deal_of_the_week_button_hover_text_color' , array( 'default' => '', 'type' => 'theme_mod', 'transport' => 'refresh', 'sanitize_callback' => 'sanitize_hex_color', ) ); $wp_customize->add_control(new WP_Customize_Color_Control( $wp_customize, 'deal_of_the_week_button_hover_text_color', array( 'label' => __('Deal Of The Week Button Hover Text Color', 'bm-hope'), 'description' => __('Please, Choose Deal Of The Week Button Hover Text Color', 'bm-hope'), 'section' => 'sec_home_page', )) ); // ------------------------------------------------------------------------------------------------------------ // //Blog Visibilty checkbox $wp_customize->add_setting( 'set_blog_visibility', array( 'type' => 'theme_mod', 'default' => '', 'sanitize_callback' => 'bm_hope_sanitize_checkbox' ) ); $wp_customize->add_control( 'set_blog_visibility', array( 'label' => __('Make Blog visible?', 'bm-hope'), 'section' => 'sec_home_page', 'type' => 'checkbox' ) ); // Field 10 - Blog Title $wp_customize->add_setting( 'set_blog_title', array( 'type' => 'theme_mod', 'default' => '', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( 'set_blog_title', array( 'label' => __('Blog Section Title', 'bm-hope'), 'description' => __('Blog Section Title', 'bm-hope'), 'section' => 'sec_home_page', 'type' => 'text' ) ); // Field11 - Blog Number $wp_customize->add_setting( 'set_blog_number', array( 'type' => 'theme_mod', 'default' => '', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( 'set_blog_number', array( 'label' => __('Blog Number', 'bm-hope'), 'description' => __('Blog Number to be shown in Home Page', 'bm-hope'), 'section' => 'sec_home_page', 'type' => 'number' ) ); } add_action('customize_register', 'bm_hope_customizer'); // Adding Customizer Value To Css function mytheme_customize_css() { ?> default ); } function bm_hope_sanitize_select( $input, $setting ) { // Ensure input is a slug. $input = sanitize_key( $input ); // Get list of choices from the control associated with the setting. $choices = $setting->manager->get_control( $setting->id )->choices; // If the input is a valid key, return it; otherwise, return the default. return ( array_key_exists( $input, $choices ) ? $input : $setting->default ); }