default ); } $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; wp_enqueue_style('bicycle-repair-shop-customize-controls', trailingslashit(esc_url(get_template_directory_uri())).'/css/customize-controls.css'); //Logo $wp_customize->add_setting('bicycle_repair_shop_logo_width',array( 'default'=> '', 'transport' => 'refresh', 'sanitize_callback' => 'bicycle_repair_shop_sanitize_integer' )); $wp_customize->add_control(new Bicycle_Repair_Shop_Slider_Custom_Control( $wp_customize, 'bicycle_repair_shop_logo_width',array( 'label' => esc_html__('Logo Width','bicycle-repair-shop'), 'section'=> 'title_tagline', 'settings'=>'bicycle_repair_shop_logo_width', 'input_attrs' => array( 'step' => 1, 'min' => 0, 'max' => 100, ), ))); // color site title $wp_customize->add_setting('bicycle_repair_shop_sitetitle_color',array( 'default' => '', 'sanitize_callback' => 'bicycle_repair_shop_sanitize_hex_color', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( 'bicycle_repair_shop_sitetitle_color', array( 'settings' => 'bicycle_repair_shop_sitetitle_color', 'section' => 'title_tagline', 'label' => __('Site Title Color', 'bicycle-repair-shop'), 'type' => 'color' )); $wp_customize->add_setting('bicycle_repair_shop_title_enable',array( 'default' => false, 'sanitize_callback' => 'bicycle_repair_shop_sanitize_checkbox', )); $wp_customize->add_control( 'bicycle_repair_shop_title_enable', array( 'settings' => 'bicycle_repair_shop_title_enable', 'section' => 'title_tagline', 'label' => __('Enable Site Title','bicycle-repair-shop'), 'type' => 'checkbox' )); // color site tagline $wp_customize->add_setting('bicycle_repair_shop_sitetagline_color',array( 'default' => '', 'sanitize_callback' => 'bicycle_repair_shop_sanitize_hex_color', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( 'bicycle_repair_shop_sitetagline_color', array( 'settings' => 'bicycle_repair_shop_sitetagline_color', 'section' => 'title_tagline', 'label' => __('Site Tagline Color', 'bicycle-repair-shop'), 'type' => 'color' )); $wp_customize->add_setting('bicycle_repair_shop_tagline_enable',array( 'default' => false, 'sanitize_callback' => 'bicycle_repair_shop_sanitize_checkbox', )); $wp_customize->add_control( 'bicycle_repair_shop_tagline_enable', array( 'settings' => 'bicycle_repair_shop_tagline_enable', 'section' => 'title_tagline', 'label' => __('Enable Site Tagline','bicycle-repair-shop'), 'type' => 'checkbox' )); // woocommerce section $wp_customize->add_section('bicycle_repair_shop_woocommerce_page_settings', array( 'title' => __('WooCommerce Page Settings', 'bicycle-repair-shop'), 'priority' => null, 'panel' => 'woocommerce', )); $wp_customize->add_setting('bicycle_repair_shop_shop_page_sidebar',array( 'default' => false, 'sanitize_callback' => 'bicycle_repair_shop_sanitize_checkbox' )); $wp_customize->add_control('bicycle_repair_shop_shop_page_sidebar',array( 'type' => 'checkbox', 'label' => __(' Check To Enable Shop page sidebar','bicycle-repair-shop'), 'section' => 'bicycle_repair_shop_woocommerce_page_settings', )); // shop page sidebar alignment $wp_customize->add_setting('bicycle_repair_shop_shop_page_sidebar_position', array( 'default' => 'Right Sidebar', 'sanitize_callback' => 'bicycle_repair_shop_sanitize_choices', )); $wp_customize->add_control('bicycle_repair_shop_shop_page_sidebar_position',array( 'type' => 'radio', 'label' => __('Shop Page Sidebar', 'bicycle-repair-shop'), 'section' => 'bicycle_repair_shop_woocommerce_page_settings', 'choices' => array( 'Left Sidebar' => __('Left Sidebar', 'bicycle-repair-shop'), 'Right Sidebar' => __('Right Sidebar', 'bicycle-repair-shop'), ), )); $wp_customize->add_setting('bicycle_repair_shop_wooproducts_nav',array( 'default' => 'Yes', 'sanitize_callback' => 'bicycle_repair_shop_sanitize_choices' )); $wp_customize->add_control('bicycle_repair_shop_wooproducts_nav',array( 'type' => 'select', 'label' => __('Shop Page Products Navigation','bicycle-repair-shop'), 'choices' => array( 'Yes' => __('Yes','bicycle-repair-shop'), 'No' => __('No','bicycle-repair-shop'), ), 'section' => 'bicycle_repair_shop_woocommerce_page_settings', )); $wp_customize->add_setting( 'bicycle_repair_shop_single_page_sidebar',array( 'default' => false, 'sanitize_callback' => 'bicycle_repair_shop_sanitize_checkbox' ) ); $wp_customize->add_control('bicycle_repair_shop_single_page_sidebar',array( 'type' => 'checkbox', 'label' => __('Check To Enable Single Product Page Sidebar','bicycle-repair-shop'), 'section' => 'bicycle_repair_shop_woocommerce_page_settings' )); // single product page sidebar alignment $wp_customize->add_setting('bicycle_repair_shop_single_product_page_layout', array( 'default' => 'Right Sidebar', 'sanitize_callback' => 'bicycle_repair_shop_sanitize_choices', )); $wp_customize->add_control('bicycle_repair_shop_single_product_page_layout',array( 'type' => 'radio', 'label' => __('Single product Page Sidebar', 'bicycle-repair-shop'), 'section' => 'bicycle_repair_shop_woocommerce_page_settings', 'choices' => array( 'Left Sidebar' => __('Left Sidebar', 'bicycle-repair-shop'), 'Right Sidebar' => __('Right Sidebar', 'bicycle-repair-shop'), ), )); $wp_customize->add_setting('bicycle_repair_shop_related_product_enable',array( 'default' => true, 'sanitize_callback' => 'bicycle_repair_shop_sanitize_checkbox' )); $wp_customize->add_control('bicycle_repair_shop_related_product_enable',array( 'type' => 'checkbox', 'label' => __('Check To Enable Related product','bicycle-repair-shop'), 'section' => 'bicycle_repair_shop_woocommerce_page_settings', )); $wp_customize->add_setting( 'bicycle_repair_shop_woo_product_img_border_radius', array( 'default' => '0', 'transport' => 'refresh', 'sanitize_callback' => 'bicycle_repair_shop_sanitize_integer' ) ); $wp_customize->add_control(new Bicycle_Repair_Shop_Slider_Custom_Control( $wp_customize, 'bicycle_repair_shop_woo_product_img_border_radius',array( 'label' => esc_html__('Product Img Border Radius','bicycle-repair-shop'), 'section'=> 'bicycle_repair_shop_woocommerce_page_settings', 'settings'=>'bicycle_repair_shop_woo_product_img_border_radius', 'input_attrs' => array( 'step' => 1, 'min' => 0, 'max' => 100, ), ))); // Add a setting for number of products per row $wp_customize->add_setting('bicycle_repair_shop_products_per_row', array( 'default' => '3', 'transport' => 'refresh', 'sanitize_callback' => 'bicycle_repair_shop_sanitize_integer' )); $wp_customize->add_control('bicycle_repair_shop_products_per_row', array( 'label' => __('Products Per Row', 'bicycle-repair-shop'), 'section' => 'bicycle_repair_shop_woocommerce_page_settings', 'settings' => 'bicycle_repair_shop_products_per_row', 'type' => 'select', 'choices' => array( '2' => '2', '3' => '3', '4' => '4', ), )); // Add a setting for the number of products per page $wp_customize->add_setting('bicycle_repair_shop_products_per_page', array( 'default' => '9', 'transport' => 'refresh', 'sanitize_callback' => 'bicycle_repair_shop_sanitize_integer' )); $wp_customize->add_control('bicycle_repair_shop_products_per_page', array( 'label' => __('Products Per Page', 'bicycle-repair-shop'), 'section' => 'bicycle_repair_shop_woocommerce_page_settings', 'settings' => 'bicycle_repair_shop_products_per_page', 'type' => 'number', 'input_attrs' => array( 'min' => 1, 'step' => 1, ), )); $wp_customize->add_setting('bicycle_repair_shop_product_sale_position',array( 'default' => 'Left', 'sanitize_callback' => 'bicycle_repair_shop_sanitize_choices' )); $wp_customize->add_control('bicycle_repair_shop_product_sale_position',array( 'type' => 'radio', 'label' => __('Product Sale Position','bicycle-repair-shop'), 'section' => 'bicycle_repair_shop_woocommerce_page_settings', 'choices' => array( 'Left' => __('Left','bicycle-repair-shop'), 'Right' => __('Right','bicycle-repair-shop'), ), ) ); //Theme Options $wp_customize->add_panel( 'bicycle_repair_shop_panel_area', array( 'priority' => 10, 'capability' => 'edit_theme_options', 'title' => __( 'Theme Options Panel', 'bicycle-repair-shop' ), ) ); //Site Layout Section $wp_customize->add_section('bicycle_repair_shop_site_layoutsec',array( 'title' => __('Manage Site Layout Section ','bicycle-repair-shop'), 'description' => __('

Manage Site Layout Section

','bicycle-repair-shop'), 'priority' => 1, 'panel' => 'bicycle_repair_shop_panel_area', )); $wp_customize->add_setting('bicycle_repair_shop_preloader',array( 'default' => false, 'sanitize_callback' => 'bicycle_repair_shop_sanitize_checkbox', )); $wp_customize->add_control( 'bicycle_repair_shop_preloader', array( 'section' => 'bicycle_repair_shop_site_layoutsec', 'label' => __('Check to Show preloader','bicycle-repair-shop'), 'type' => 'checkbox' )); $wp_customize->add_setting('bicycle_repair_shop_preloader_bg_image',array( 'default' => '', 'sanitize_callback' => 'esc_url_raw', )); $wp_customize->add_control( new WP_Customize_Image_Control($wp_customize,'bicycle_repair_shop_preloader_bg_image',array( 'section' => 'bicycle_repair_shop_site_layoutsec', 'label' => __('Preloader Background Image','bicycle-repair-shop'), ))); $wp_customize->add_setting('bicycle_repair_shop_box_layout',array( 'default' => false, 'sanitize_callback' => 'bicycle_repair_shop_sanitize_checkbox', )); $wp_customize->add_control( 'bicycle_repair_shop_box_layout', array( 'section' => 'bicycle_repair_shop_site_layoutsec', 'label' => __('Check to Show Box Layout','bicycle-repair-shop'), 'type' => 'checkbox' )); $wp_customize->add_setting( 'bicycle_repair_shop_theme_page_breadcrumb',array( 'default' => false, 'sanitize_callback' => 'bicycle_repair_shop_sanitize_checkbox', ) ); $wp_customize->add_control('bicycle_repair_shop_theme_page_breadcrumb',array( 'section' => 'bicycle_repair_shop_site_layoutsec', 'label' => __( 'Check To Enable Theme Page Breadcrumb','bicycle-repair-shop' ), 'type' => 'checkbox' )); // Add Settings and Controls for Page Layout $wp_customize->add_setting('bicycle_repair_shop_sidebar_page_layout',array( 'default' => 'full', 'sanitize_callback' => 'bicycle_repair_shop_sanitize_choices' )); $wp_customize->add_control('bicycle_repair_shop_sidebar_page_layout',array( 'type' => 'radio', 'label' => __('Theme Page Sidebar Position', 'bicycle-repair-shop'), 'section' => 'bicycle_repair_shop_site_layoutsec', 'choices' => array( 'left' => __('Left','bicycle-repair-shop'), 'right' => __('Right','bicycle-repair-shop'), 'full' => __('No Sidebar','bicycle-repair-shop') ), ) ); $wp_customize->add_setting( 'bicycle_repair_shop_layout_settings_upgraded_features',array( 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('bicycle_repair_shop_layout_settings_upgraded_features', array( 'type'=> 'hidden', 'description' => "Unlock Premium Customization Features: Upgrade to Pro", 'section' => 'bicycle_repair_shop_site_layoutsec' )); //Global Color $wp_customize->add_section('bicycle_repair_shop_global_color', array( 'title' => __('Manage Global Color Section', 'bicycle-repair-shop'), 'panel' => 'bicycle_repair_shop_panel_area', )); $wp_customize->add_setting('bicycle_repair_shop_first_color', array( 'default' => '#0f1010', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'bicycle_repair_shop_first_color', array( 'label' => __('Theme Color', 'bicycle-repair-shop'), 'section' => 'bicycle_repair_shop_global_color', 'settings' => 'bicycle_repair_shop_first_color', ))); $wp_customize->add_setting('bicycle_repair_shop_second_color', array( 'default' => '#555555', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'bicycle_repair_shop_second_color', array( 'label' => __('Theme Color', 'bicycle-repair-shop'), 'section' => 'bicycle_repair_shop_global_color', 'settings' => 'bicycle_repair_shop_second_color', ))); $wp_customize->add_setting( 'bicycle_repair_shop_global_color_settings_upgraded_features',array( 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('bicycle_repair_shop_global_color_settings_upgraded_features', array( 'type'=> 'hidden', 'description' => "Unlock Premium Customization Features: Upgrade to Pro", 'section' => 'bicycle_repair_shop_global_color' )); // Header Section $wp_customize->add_section('bicycle_repair_shop_header_section', array( 'title' => __('Manage Top Header Section', 'bicycle-repair-shop'), 'description' => __('

Manage Header Section

','bicycle-repair-shop'), 'priority' => null, 'panel' => 'bicycle_repair_shop_panel_area', )); $wp_customize->add_setting('bicycle_repair_shop_topbar',array( 'default' => true, 'sanitize_callback' => 'bicycle_repair_shop_sanitize_checkbox', )); $wp_customize->add_control( 'bicycle_repair_shop_topbar', array( 'section' => 'bicycle_repair_shop_header_section', 'label' => __('Check to show topbar','bicycle-repair-shop'), 'type' => 'checkbox' )); $wp_customize->add_setting('bicycle_repair_shop_stickyheader',array( 'default' => false, 'sanitize_callback' => 'bicycle_repair_shop_sanitize_checkbox', )); $wp_customize->add_control( 'bicycle_repair_shop_stickyheader', array( 'section' => 'bicycle_repair_shop_header_section', 'label' => __('Check To Show Sticky Header','bicycle-repair-shop'), 'type' => 'checkbox' )); $wp_customize->add_setting('bicycle_repair_shop_email_address',array( 'default' => '', 'sanitize_callback' => 'sanitize_email', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( 'bicycle_repair_shop_email_address', array( 'settings' => 'bicycle_repair_shop_email_address', 'section' => 'bicycle_repair_shop_header_section', 'label' => __('Add Email Address', 'bicycle-repair-shop'), 'type' => 'text' )); $wp_customize->add_setting('bicycle_repair_shop_product_discount_text',array( 'default'=> '', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('bicycle_repair_shop_product_discount_text',array( 'label' => esc_html__('Add Product Discount Text','bicycle-repair-shop'), 'section'=> 'bicycle_repair_shop_header_section', 'type'=> 'text' )); $wp_customize->add_setting('bicycle_repair_shop_headerbutton_txt',array( 'default' => '', 'sanitize_callback' => 'sanitize_text_field', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( 'bicycle_repair_shop_headerbutton_txt', array( 'settings' => 'bicycle_repair_shop_headerbutton_txt', 'section' => 'bicycle_repair_shop_header_section', 'label' => __('Shop Button Text', 'bicycle-repair-shop'), 'type' => 'text' )); // header btn link $wp_customize->add_setting('bicycle_repair_shop_headerbutton_link',array( 'default' => '', 'sanitize_callback' => 'sanitize_text_field', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( 'bicycle_repair_shop_headerbutton_link', array( 'settings' => 'bicycle_repair_shop_headerbutton_link', 'section' => 'bicycle_repair_shop_header_section', 'label' => __('Shop Button Link', 'bicycle-repair-shop'), 'type' => 'text' )); // header menu $wp_customize->add_setting('bicycle_repair_shop_menu_color',array( 'default' => '', 'sanitize_callback' => 'bicycle_repair_shop_sanitize_hex_color', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( 'bicycle_repair_shop_menu_color', array( 'settings' => 'bicycle_repair_shop_menu_color', 'section' => 'bicycle_repair_shop_header_section', 'label' => __('Menu Color', 'bicycle-repair-shop'), 'type' => 'color' )); // header menu hover color $wp_customize->add_setting('bicycle_repair_shop_menuhrv_color',array( 'default' => '', 'sanitize_callback' => 'bicycle_repair_shop_sanitize_hex_color', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( 'bicycle_repair_shop_menuhrv_color', array( 'settings' => 'bicycle_repair_shop_menuhrv_color', 'section' => 'bicycle_repair_shop_header_section', 'label' => __('Menu Hover Color', 'bicycle-repair-shop'), 'type' => 'color' )); // header sub menu color $wp_customize->add_setting('bicycle_repair_shop_submenu_color',array( 'default' => '', 'sanitize_callback' => 'bicycle_repair_shop_sanitize_hex_color', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( 'bicycle_repair_shop_submenu_color', array( 'settings' => 'bicycle_repair_shop_submenu_color', 'section' => 'bicycle_repair_shop_header_section', 'label' => __('SubMenu Color', 'bicycle-repair-shop'), 'type' => 'color' )); // header sub menu hover color $wp_customize->add_setting('bicycle_repair_shop_submenuhrv_color',array( 'default' => '', 'sanitize_callback' => 'bicycle_repair_shop_sanitize_hex_color', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( 'bicycle_repair_shop_submenuhrv_color', array( 'settings' => 'bicycle_repair_shop_submenuhrv_color', 'section' => 'bicycle_repair_shop_header_section', 'label' => __('SubMenu Hover Color', 'bicycle-repair-shop'), 'type' => 'color' )); $wp_customize->add_setting( 'bicycle_repair_shop_header_settings_upgraded_features',array( 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('bicycle_repair_shop_header_settings_upgraded_features', array( 'type'=> 'hidden', 'description' => "Unlock Premium Customization Features: Upgrade to Pro", 'section' => 'bicycle_repair_shop_header_section' )); // Home Category Dropdown Section $wp_customize->add_section('bicycle_repair_shop_one_cols_section',array( 'title' => __('Manage Slider Section','bicycle-repair-shop'), 'description' => __('

Manage Slider Section

Select Category from the Dropdowns for slider, Also use the given image dimension (1200 x 600).','bicycle-repair-shop'), 'priority' => null, 'panel' => 'bicycle_repair_shop_panel_area' )); //Hide Section $wp_customize->add_setting('bicycle_repair_shop_hide_categorysec',array( 'default' => false, 'sanitize_callback' => 'bicycle_repair_shop_sanitize_checkbox', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( 'bicycle_repair_shop_hide_categorysec', array( 'settings' => 'bicycle_repair_shop_hide_categorysec', 'section' => 'bicycle_repair_shop_one_cols_section', 'label' => __('Check To Enable This Section','bicycle-repair-shop'), 'type' => 'checkbox' )); // Add a category dropdown Slider Coloumn $wp_customize->add_setting( 'bicycle_repair_shop_slidersection', array( 'default' => '0', 'sanitize_callback' => 'absint' ) ); $wp_customize->add_control( new Bicycle_Repair_Shop_Category_Dropdown_Custom_Control( $wp_customize, 'bicycle_repair_shop_slidersection', array( 'section' => 'bicycle_repair_shop_one_cols_section', 'label' => __('Select Category to display slider','bicycle-repair-shop'), 'settings' => 'bicycle_repair_shop_slidersection', ) ) ); $wp_customize->add_setting('bicycle_repair_shop_button_text',array( 'default' => 'SHOP NOW', 'sanitize_callback' => 'sanitize_text_field', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( 'bicycle_repair_shop_button_text', array( 'settings' => 'bicycle_repair_shop_button_text', 'section' => 'bicycle_repair_shop_one_cols_section', 'label' => __('Add Button Text', 'bicycle-repair-shop'), 'type' => 'text' )); $wp_customize->add_setting('bicycle_repair_shop_button_link_slider',array( 'default'=> '', 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control('bicycle_repair_shop_button_link_slider',array( 'label' => esc_html__('Add Button Link','bicycle-repair-shop'), 'section'=> 'bicycle_repair_shop_one_cols_section', 'type'=> 'url' )); //Slider height $wp_customize->add_setting('bicycle_repair_shop_slider_img_height',array( 'default'=> '', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('bicycle_repair_shop_slider_img_height',array( 'label' => __('Slider Image Height','bicycle-repair-shop'), 'description' => __('Add the slider image height here (eg. 600px)','bicycle-repair-shop'), 'input_attrs' => array( 'placeholder' => __( '500px', 'bicycle-repair-shop' ), ), 'section'=> 'bicycle_repair_shop_one_cols_section', 'type'=> 'text' )); // color slider title $wp_customize->add_setting('bicycle_repair_shop_slidertitle_color',array( 'default' => '', 'sanitize_callback' => 'bicycle_repair_shop_sanitize_hex_color', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( 'bicycle_repair_shop_slidertitle_color', array( 'settings' => 'bicycle_repair_shop_slidertitle_color', 'section' => 'bicycle_repair_shop_one_cols_section', 'label' => __('Title Color', 'bicycle-repair-shop'), 'type' => 'color' )); $wp_customize->add_setting('bicycle_repair_shop_sliderpara_color',array( 'default' => '', 'sanitize_callback' => 'bicycle_repair_shop_sanitize_hex_color', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( 'bicycle_repair_shop_sliderpara_color', array( 'settings' => 'bicycle_repair_shop_sliderpara_color', 'section' => 'bicycle_repair_shop_one_cols_section', 'label' => __('Content Color', 'bicycle-repair-shop'), 'type' => 'color' )); // color slider button1 text $wp_customize->add_setting('bicycle_repair_shop_sliderbutton1text_color',array( 'default' => '', 'sanitize_callback' => 'bicycle_repair_shop_sanitize_hex_color', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( 'bicycle_repair_shop_sliderbutton1text_color', array( 'settings' => 'bicycle_repair_shop_sliderbutton1text_color', 'section' => 'bicycle_repair_shop_one_cols_section', 'label' => __('Button Text Color', 'bicycle-repair-shop'), 'type' => 'color' )); // color slider button1 $wp_customize->add_setting('bicycle_repair_shop_sliderbutton1_color',array( 'default' => '', 'sanitize_callback' => 'bicycle_repair_shop_sanitize_hex_color', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( 'bicycle_repair_shop_sliderbutton1_color', array( 'settings' => 'bicycle_repair_shop_sliderbutton1_color', 'section' => 'bicycle_repair_shop_one_cols_section', 'label' => __('Button Background Color', 'bicycle-repair-shop'), 'type' => 'color' )); $wp_customize->add_setting( 'bicycle_repair_shop_slider_settings_upgraded_features',array( 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('bicycle_repair_shop_slider_settings_upgraded_features', array( 'type'=> 'hidden', 'description' => "Unlock Premium Customization Features: Upgrade to Pro", 'section' => 'bicycle_repair_shop_one_cols_section' )); // Hot Products Category Section $wp_customize->add_section('bicycle_repair_shop_two_cols_section',array( 'title' => __('Manage Best Selling Products Section','bicycle-repair-shop'), 'description' => __('

Manage Products Section

','bicycle-repair-shop'), 'priority' => null, 'panel' => 'bicycle_repair_shop_panel_area' )); //Hide Section $wp_customize->add_setting('bicycle_repair_shop_product_selling',array( 'default' => false, 'sanitize_callback' => 'bicycle_repair_shop_sanitize_checkbox', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( 'bicycle_repair_shop_product_selling', array( 'settings' => 'bicycle_repair_shop_product_selling', 'section' => 'bicycle_repair_shop_two_cols_section', 'label' => __('Check To Enable This Section','bicycle-repair-shop'), 'type' => 'checkbox' )); $wp_customize->add_setting('bicycle_repair_shop_product_title',array( 'default' => '', 'sanitize_callback' => 'sanitize_text_field', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( 'bicycle_repair_shop_product_title', array( 'settings' => 'bicycle_repair_shop_product_title', 'section' => 'bicycle_repair_shop_two_cols_section', 'label' => __('Add Section Title', 'bicycle-repair-shop'), 'type' => 'text' )); $wp_customize->add_setting('bicycle_repair_shop_product_text',array( 'default' => '', 'sanitize_callback' => 'sanitize_text_field', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( 'bicycle_repair_shop_product_text', array( 'settings' => 'bicycle_repair_shop_product_text', 'section' => 'bicycle_repair_shop_two_cols_section', 'label' => __('Add Section Text', 'bicycle-repair-shop'), 'type' => 'text' )); $args = array( 'type' => 'product', 'child_of' => 0, 'parent' => '', 'orderby' => 'term_group', 'order' => 'ASC', 'hide_empty' => false, 'hierarchical' => 1, 'number' => '', 'taxonomy' => 'product_cat', 'pad_counts' => false ); $categories = get_categories($args); $cat_posts = array(); $m = 0; $cat_posts[]='Select'; foreach($categories as $category){ if($m==0){ $default = $category->slug; $m++; } $cat_posts[$category->slug] = $category->name; } $wp_customize->add_setting('bicycle_repair_shop_hot_products_cat',array( 'default' => 'select', 'sanitize_callback' => 'bicycle_repair_shop_sanitize_select', )); $wp_customize->add_control('bicycle_repair_shop_hot_products_cat',array( 'type' => 'select', 'choices' => $cat_posts, 'label' => __('Select category to display products ','bicycle-repair-shop'), 'section' => 'bicycle_repair_shop_two_cols_section', )); // product color $wp_customize->add_setting('bicycle_repair_shop_product_title_color',array( 'default' => '', 'sanitize_callback' => 'bicycle_repair_shop_sanitize_hex_color', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( 'bicycle_repair_shop_product_title_color', array( 'settings' => 'bicycle_repair_shop_product_title_color', 'section' => 'bicycle_repair_shop_two_cols_section', 'label' => __('Product Section Title Color', 'bicycle-repair-shop'), 'type' => 'color' )); $wp_customize->add_setting('bicycle_repair_shop_product_para_color',array( 'default' => '', 'sanitize_callback' => 'bicycle_repair_shop_sanitize_hex_color', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( 'bicycle_repair_shop_product_para_color', array( 'settings' => 'bicycle_repair_shop_product_para_color', 'section' => 'bicycle_repair_shop_two_cols_section', 'label' => __('Product Section Text Color', 'bicycle-repair-shop'), 'type' => 'color' )); $wp_customize->add_setting('bicycle_repair_shop_main_product_title_color',array( 'default' => '', 'sanitize_callback' => 'bicycle_repair_shop_sanitize_hex_color', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( 'bicycle_repair_shop_main_product_title_color', array( 'settings' => 'bicycle_repair_shop_main_product_title_color', 'section' => 'bicycle_repair_shop_two_cols_section', 'label' => __('Product Text Color', 'bicycle-repair-shop'), 'type' => 'color' )); $wp_customize->add_setting('bicycle_repair_shop_main_product_price_color',array( 'default' => '', 'sanitize_callback' => 'bicycle_repair_shop_sanitize_hex_color', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( 'bicycle_repair_shop_main_product_price_color', array( 'settings' => 'bicycle_repair_shop_main_product_price_color', 'section' => 'bicycle_repair_shop_two_cols_section', 'label' => __('Product Price Color', 'bicycle-repair-shop'), 'type' => 'color' )); $wp_customize->add_setting( 'bicycle_repair_shop_product_settings_upgraded_features',array( 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('bicycle_repair_shop_product_settings_upgraded_features', array( 'type'=> 'hidden', 'description' => "Unlock Premium Customization Features: Upgrade to Pro", 'section' => 'bicycle_repair_shop_two_cols_section' )); //Blog post $wp_customize->add_section('bicycle_repair_shop_blog_post_settings',array( 'title' => __('Manage Post Section', 'bicycle-repair-shop'), 'priority' => null, 'panel' => 'bicycle_repair_shop_panel_area' ) ); $wp_customize->add_setting('bicycle_repair_shop_metafields_date', array( 'default' => true, 'sanitize_callback' => 'bicycle_repair_shop_sanitize_checkbox', )); $wp_customize->add_control('bicycle_repair_shop_metafields_date', array( 'settings' => 'bicycle_repair_shop_metafields_date', 'section' => 'bicycle_repair_shop_blog_post_settings', 'label' => __('Check to Enable Date', 'bicycle-repair-shop'), 'type' => 'checkbox', )); $wp_customize->add_setting('bicycle_repair_shop_metafields_comments', array( 'default' => true, 'sanitize_callback' => 'bicycle_repair_shop_sanitize_checkbox', )); $wp_customize->add_control('bicycle_repair_shop_metafields_comments', array( 'settings' => 'bicycle_repair_shop_metafields_comments', 'section' => 'bicycle_repair_shop_blog_post_settings', 'label' => __('Check to Enable Comments', 'bicycle-repair-shop'), 'type' => 'checkbox', )); $wp_customize->add_setting('bicycle_repair_shop_metafields_author', array( 'default' => true, 'sanitize_callback' => 'bicycle_repair_shop_sanitize_checkbox', )); $wp_customize->add_control('bicycle_repair_shop_metafields_author', array( 'settings' => 'bicycle_repair_shop_metafields_author', 'section' => 'bicycle_repair_shop_blog_post_settings', 'label' => __('Check to Enable Author', 'bicycle-repair-shop'), 'type' => 'checkbox', )); $wp_customize->add_setting('bicycle_repair_shop_metafields_time', array( 'default' => true, 'sanitize_callback' => 'bicycle_repair_shop_sanitize_checkbox', )); $wp_customize->add_control('bicycle_repair_shop_metafields_time', array( 'settings' => 'bicycle_repair_shop_metafields_time', 'section' => 'bicycle_repair_shop_blog_post_settings', 'label' => __('Check to Enable Time', 'bicycle-repair-shop'), 'type' => 'checkbox', )); $wp_customize->add_setting('bicycle_repair_shop_metabox_seperator',array( 'default' => '|', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('bicycle_repair_shop_metabox_seperator',array( 'type' => 'text', 'label' => __('Metabox Seperator','bicycle-repair-shop'), 'description' => __('Ex: "/", "|", "-", ...','bicycle-repair-shop'), 'section' => 'bicycle_repair_shop_blog_post_settings' )); // Add Settings and Controls for Post Layout $wp_customize->add_setting('bicycle_repair_shop_sidebar_post_layout',array( 'default' => 'right', 'sanitize_callback' => 'bicycle_repair_shop_sanitize_choices' )); $wp_customize->add_control('bicycle_repair_shop_sidebar_post_layout',array( 'type' => 'radio', 'label' => __('Theme Post Sidebar Position', 'bicycle-repair-shop'), 'description' => __('This option work for blog page, archive page and search page.', 'bicycle-repair-shop'), 'section' => 'bicycle_repair_shop_blog_post_settings', 'choices' => array( 'left' => __('Left','bicycle-repair-shop'), 'right' => __('Right','bicycle-repair-shop'), 'three-column' => __('Three Columns','bicycle-repair-shop'), 'four-column' => __('Four Columns','bicycle-repair-shop'), 'grid' => __('Grid Layout','bicycle-repair-shop'), 'full' => __('No Sidebar','bicycle-repair-shop') ), ) ); $wp_customize->add_setting('bicycle_repair_shop_blog_post_description_option',array( 'default' => 'Excerpt Content', 'sanitize_callback' => 'bicycle_repair_shop_sanitize_choices' )); $wp_customize->add_control('bicycle_repair_shop_blog_post_description_option',array( 'type' => 'radio', 'label' => __('Post Description Length','bicycle-repair-shop'), 'section' => 'bicycle_repair_shop_blog_post_settings', 'choices' => array( 'No Content' => __('No Content','bicycle-repair-shop'), 'Excerpt Content' => __('Excerpt Content','bicycle-repair-shop'), 'Full Content' => __('Full Content','bicycle-repair-shop'), ), ) ); $wp_customize->add_setting('bicycle_repair_shop_blog_post_thumb',array( 'sanitize_callback' => 'bicycle_repair_shop_sanitize_checkbox', 'default' => 1, )); $wp_customize->add_control('bicycle_repair_shop_blog_post_thumb',array( 'type' => 'checkbox', 'label' => esc_html__('Show / Hide Blog Post Thumbnail', 'bicycle-repair-shop'), 'section' => 'bicycle_repair_shop_blog_post_settings', )); $wp_customize->add_setting( 'bicycle_repair_shop_blog_post_page_image_box_shadow', array( 'default' => '0', 'transport' => 'refresh', 'sanitize_callback' => 'bicycle_repair_shop_sanitize_integer' ) ); $wp_customize->add_control(new bicycle_repair_shop_Slider_Custom_Control( $wp_customize, 'bicycle_repair_shop_blog_post_page_image_box_shadow',array( 'label' => esc_html__('Blog Page Image Box Shadow','bicycle-repair-shop'), 'section'=> 'bicycle_repair_shop_blog_post_settings', 'settings'=>'bicycle_repair_shop_blog_post_page_image_box_shadow', 'input_attrs' => array( 'step' => 1, 'min' => 0, 'max' => 100, ), ))); $wp_customize->add_setting( 'bicycle_repair_shop_post_settings_upgraded_features',array( 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('bicycle_repair_shop_post_settings_upgraded_features', array( 'type'=> 'hidden', 'description' => "Unlock Premium Customization Features: Upgrade to Pro", 'section' => 'bicycle_repair_shop_blog_post_settings' )); //Single Post Settings $wp_customize->add_section('bicycle_repair_shop_single_post_settings',array( 'title' => __('Manage Single Post Section', 'bicycle-repair-shop'), 'priority' => null, 'panel' => 'bicycle_repair_shop_panel_area' )); $wp_customize->add_setting( 'bicycle_repair_shop_single_page_breadcrumb',array( 'default' => true, 'sanitize_callback' => 'bicycle_repair_shop_sanitize_checkbox', )); $wp_customize->add_control('bicycle_repair_shop_single_page_breadcrumb',array( 'section' => 'bicycle_repair_shop_single_post_settings', 'label' => __( 'Check To Enable Breadcrumb','bicycle-repair-shop' ), 'type' => 'checkbox' )); $wp_customize->add_setting('bicycle_repair_shop_single_post_date',array( 'default' => true, 'sanitize_callback' => 'bicycle_repair_shop_sanitize_checkbox' )); $wp_customize->add_control('bicycle_repair_shop_single_post_date',array( 'type' => 'checkbox', 'label' => __('Enable / Disable Date ','bicycle-repair-shop'), 'section' => 'bicycle_repair_shop_single_post_settings' )); $wp_customize->add_setting('bicycle_repair_shop_single_post_author',array( 'default' => true, 'sanitize_callback' => 'bicycle_repair_shop_sanitize_checkbox' )); $wp_customize->add_control('bicycle_repair_shop_single_post_author',array( 'type' => 'checkbox', 'label' => __('Enable / Disable Author','bicycle-repair-shop'), 'section' => 'bicycle_repair_shop_single_post_settings' )); $wp_customize->add_setting('bicycle_repair_shop_single_post_comment',array( 'default' => true, 'sanitize_callback' => 'bicycle_repair_shop_sanitize_checkbox' )); $wp_customize->add_control('bicycle_repair_shop_single_post_comment',array( 'type' => 'checkbox', 'label' => __('Enable / Disable Comments','bicycle-repair-shop'), 'section' => 'bicycle_repair_shop_single_post_settings' )); $wp_customize->add_setting('bicycle_repair_shop_single_post_time',array( 'default' => true, 'sanitize_callback' => 'bicycle_repair_shop_sanitize_checkbox' )); $wp_customize->add_control('bicycle_repair_shop_single_post_time',array( 'type' => 'checkbox', 'label' => __('Enable / Disable Time','bicycle-repair-shop'), 'section' => 'bicycle_repair_shop_single_post_settings' )); $wp_customize->add_setting('bicycle_repair_shop_single_post_metabox_seperator',array( 'default' => '|', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('bicycle_repair_shop_single_post_metabox_seperator',array( 'type' => 'text', 'label' => __('Metabox Seperator','bicycle-repair-shop'), 'description' => __('Ex: "/", "|", "-", ...','bicycle-repair-shop'), 'section' => 'bicycle_repair_shop_single_post_settings' )); $wp_customize->add_setting('bicycle_repair_shop_sidebar_single_post_layout',array( 'default' => 'right', 'sanitize_callback' => 'bicycle_repair_shop_sanitize_choices' )); $wp_customize->add_control('bicycle_repair_shop_sidebar_single_post_layout',array( 'type' => 'radio', 'label' => __('Single post sidebar layout', 'bicycle-repair-shop'), 'section' => 'bicycle_repair_shop_single_post_settings', 'choices' => array( 'left' => __('Left','bicycle-repair-shop'), 'right' => __('Right','bicycle-repair-shop'), 'full' => __('No Sidebar','bicycle-repair-shop') ), )); $wp_customize->add_setting( 'bicycle_repair_shop_single_post_settings_upgraded_features',array( 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('bicycle_repair_shop_single_post_settings_upgraded_features', array( 'type'=> 'hidden', 'description' => "Unlock Premium Customization Features: Upgrade to Pro", 'section' => 'bicycle_repair_shop_single_post_settings' )); // Footer Section $wp_customize->add_section('bicycle_repair_shop_footer', array( 'title' => __('Manage Footer Section','bicycle-repair-shop'), 'description' => __('

Manage Footer Section

','bicycle-repair-shop'), 'priority' => null, 'panel' => 'bicycle_repair_shop_panel_area', )); $wp_customize->add_setting('bicycle_repair_shop_footer_widget', array( 'default' => true, 'sanitize_callback' => 'bicycle_repair_shop_sanitize_checkbox', )); $wp_customize->add_control('bicycle_repair_shop_footer_widget', array( 'settings' => 'bicycle_repair_shop_footer_widget', // Corrected setting name 'section' => 'bicycle_repair_shop_footer', 'label' => __('Check to Enable Footer Widget', 'bicycle-repair-shop'), 'type' => 'checkbox', )); $wp_customize->add_setting('bicycle_repair_shop_footer_bg_image',array( 'default' => '', 'sanitize_callback' => 'esc_url_raw', )); $wp_customize->add_control( new WP_Customize_Image_Control($wp_customize,'bicycle_repair_shop_footer_bg_image',array( 'label' => __('Footer Background Image','bicycle-repair-shop'), 'section' => 'bicycle_repair_shop_footer', ))); $wp_customize->add_setting('bicycle_repair_shop_copyright_line',array( 'sanitize_callback' => 'sanitize_text_field', )); $wp_customize->add_control( 'bicycle_repair_shop_copyright_line', array( 'section' => 'bicycle_repair_shop_footer', 'label' => __('Copyright Line','bicycle-repair-shop'), 'type' => 'text', 'priority' => null, )); $wp_customize->add_setting('bicycle_repair_shop_copyright_link',array( 'default' => '', 'sanitize_callback' => 'sanitize_text_field', )); $wp_customize->add_control( 'bicycle_repair_shop_copyright_link', array( 'section' => 'bicycle_repair_shop_footer', 'label' => __('Copyright Link','bicycle-repair-shop'), 'type' => 'text', 'priority' => null, )); // footer bg color $wp_customize->add_setting('bicycle_repair_shop_footerbg_color',array( 'default' => '', 'sanitize_callback' => 'bicycle_repair_shop_sanitize_hex_color', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( 'bicycle_repair_shop_footerbg_color', array( 'settings' => 'bicycle_repair_shop_footerbg_color', 'section' => 'bicycle_repair_shop_footer', 'label' => __('BG Color', 'bicycle-repair-shop'), 'type' => 'color' )); // footer coypright color $wp_customize->add_setting('bicycle_repair_shop_footercoypright_color',array( 'default' => '', 'sanitize_callback' => 'bicycle_repair_shop_sanitize_hex_color', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( 'bicycle_repair_shop_footercoypright_color', array( 'settings' => 'bicycle_repair_shop_footercoypright_color', 'section' => 'bicycle_repair_shop_footer', 'label' => __('Coypright Color', 'bicycle-repair-shop'), 'type' => 'color' )); // footer title color $wp_customize->add_setting('bicycle_repair_shop_footertitle_color',array( 'default' => '', 'sanitize_callback' => 'bicycle_repair_shop_sanitize_hex_color', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( 'bicycle_repair_shop_footertitle_color', array( 'settings' => 'bicycle_repair_shop_footertitle_color', 'section' => 'bicycle_repair_shop_footer', 'label' => __('Title Color', 'bicycle-repair-shop'), 'type' => 'color' )); // footer description color $wp_customize->add_setting('bicycle_repair_shop_footerdescription_color',array( 'default' => '', 'sanitize_callback' => 'bicycle_repair_shop_sanitize_hex_color', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( 'bicycle_repair_shop_footerdescription_color', array( 'settings' => 'bicycle_repair_shop_footerdescription_color', 'section' => 'bicycle_repair_shop_footer', 'label' => __('Description Color', 'bicycle-repair-shop'), 'type' => 'color' )); // footer list color $wp_customize->add_setting('bicycle_repair_shop_footerlist_color',array( 'default' => '', 'sanitize_callback' => 'bicycle_repair_shop_sanitize_hex_color', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( 'bicycle_repair_shop_footerlist_color', array( 'settings' => 'bicycle_repair_shop_footerlist_color', 'section' => 'bicycle_repair_shop_footer', 'label' => __('List Color', 'bicycle-repair-shop'), 'type' => 'color' )); $wp_customize->add_setting('bicycle_repair_shop_scroll_hide', array( 'default' => true, 'sanitize_callback' => 'bicycle_repair_shop_sanitize_checkbox' )); $wp_customize->add_control( new WP_Customize_Control($wp_customize,'bicycle_repair_shop_scroll_hide',array( 'label' => __( 'Check To Show Scroll To Top', 'bicycle-repair-shop' ), 'section' => 'bicycle_repair_shop_footer', 'settings' => 'bicycle_repair_shop_scroll_hide', 'type' => 'checkbox', ))); $wp_customize->add_setting('bicycle_repair_shop_scroll_position',array( 'default' => 'Right', 'sanitize_callback' => 'bicycle_repair_shop_sanitize_choices' )); $wp_customize->add_control('bicycle_repair_shop_scroll_position',array( 'type' => 'radio', 'section' => 'bicycle_repair_shop_footer', 'label' => __('Scroll To Top Positions','bicycle-repair-shop'), 'choices' => array( 'Right' => __('Right','bicycle-repair-shop'), 'Left' => __('Left','bicycle-repair-shop'), 'Center' => __('Center','bicycle-repair-shop') ), ) ); $wp_customize->add_setting('bicycle_repair_shop_scroll_text',array( 'default' => __('TOP','bicycle-repair-shop'), 'sanitize_callback' => 'sanitize_text_field', )); $wp_customize->add_control('bicycle_repair_shop_scroll_text',array( 'label' => __('Scroll To Top Button Text','bicycle-repair-shop'), 'section' => 'bicycle_repair_shop_footer', 'type' => 'text' )); $wp_customize->add_setting( 'bicycle_repair_shop_scroll_top_shape', array( 'default' => 'circle', 'sanitize_callback' => 'sanitize_text_field', )); $wp_customize->add_control( 'bicycle_repair_shop_scroll_top_shape', array( 'label' => __( 'Scroll to Top Button Shape', 'bicycle-repair-shop' ), 'section' => 'bicycle_repair_shop_footer', 'settings' => 'bicycle_repair_shop_scroll_top_shape', 'type' => 'radio', 'choices' => array( 'box' => __( 'Box', 'bicycle-repair-shop' ), 'curved' => __( 'Curved', 'bicycle-repair-shop'), 'circle' => __( 'Circle', 'bicycle-repair-shop' ), ), )); $wp_customize->add_setting('bicycle_repair_shop_footer_widget_areas',array( 'default' => 4, 'sanitize_callback' => 'bicycle_repair_shop_sanitize_choices', )); $wp_customize->add_control('bicycle_repair_shop_footer_widget_areas',array( 'type' => 'radio', 'section' => 'bicycle_repair_shop_footer', 'label' => __('Footer widget area', 'bicycle-repair-shop'), 'choices' => array( '1' => __('One', 'bicycle-repair-shop'), '2' => __('Two', 'bicycle-repair-shop'), '3' => __('Three', 'bicycle-repair-shop'), '4' => __('Four', 'bicycle-repair-shop') ), )); $wp_customize->add_setting( 'bicycle_repair_shop_footer_settings_upgraded_features',array( 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('bicycle_repair_shop_footer_settings_upgraded_features', array( 'type'=> 'hidden', 'description' => "Unlock Premium Customization Features: Upgrade to Pro", 'section' => 'bicycle_repair_shop_footer' )); // Google Fonts $wp_customize->add_section( 'bicycle_repair_shop_google_fonts_section', array( 'title' => __( 'Google Fonts', 'bicycle-repair-shop' ), 'priority' => 24, ) ); $font_choices = array( 'Kaushan Script:' => 'Kaushan Script', 'Emilys Candy:' => 'Emilys Candy', 'Poppins:0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900' => 'Poppins', 'Source Sans Pro:400,700,400italic,700italic' => 'Source Sans Pro', 'Open Sans:400italic,700italic,400,700' => 'Open Sans', 'Oswald:400,700' => 'Oswald', 'Playfair Display:400,700,400italic' => 'Playfair Display', 'Montserrat:400,700' => 'Montserrat', 'Raleway:400,700' => 'Raleway', 'Droid Sans:400,700' => 'Droid Sans', 'Lato:400,700,400italic,700italic' => 'Lato', 'Arvo:400,700,400italic,700italic' => 'Arvo', 'Lora:400,700,400italic,700italic' => 'Lora', 'Merriweather:400,300italic,300,400italic,700,700italic' => 'Merriweather', 'Oxygen:400,300,700' => 'Oxygen', 'PT Serif:400,700' => 'PT Serif', 'PT Sans:400,700,400italic,700italic' => 'PT Sans', 'PT Sans Narrow:400,700' => 'PT Sans Narrow', 'Cabin:400,700,400italic' => 'Cabin', 'Fjalla One:400' => 'Fjalla One', 'Francois One:400' => 'Francois One', 'Josefin Sans:400,300,600,700' => 'Josefin Sans', 'Libre Baskerville:400,400italic,700' => 'Libre Baskerville', 'Arimo:400,700,400italic,700italic' => 'Arimo', 'Ubuntu:400,700,400italic,700italic' => 'Ubuntu', 'Bitter:400,700,400italic' => 'Bitter', 'Droid Serif:400,700,400italic,700italic' => 'Droid Serif', 'Roboto:400,400italic,700,700italic' => 'Roboto', 'Open Sans Condensed:700,300italic,300' => 'Open Sans Condensed', 'Roboto Condensed:400italic,700italic,400,700' => 'Roboto Condensed', 'Roboto Slab:400,700' => 'Roboto Slab', 'Yanone Kaffeesatz:400,700' => 'Yanone Kaffeesatz', 'Rokkitt:400' => 'Rokkitt', ); $wp_customize->add_setting( 'bicycle_repair_shop_headings_fonts', array( 'sanitize_callback' => 'bicycle_repair_shop_sanitize_fonts', )); $wp_customize->add_control( 'bicycle_repair_shop_headings_fonts', array( 'type' => 'select', 'description' => __('Select your desired font for the headings.', 'bicycle-repair-shop'), 'section' => 'bicycle_repair_shop_google_fonts_section', 'choices' => $font_choices )); $wp_customize->add_setting( 'bicycle_repair_shop_body_fonts', array( 'sanitize_callback' => 'bicycle_repair_shop_sanitize_fonts' )); $wp_customize->add_control( 'bicycle_repair_shop_body_fonts', array( 'type' => 'select', 'description' => __( 'Select your desired font for the body.', 'bicycle-repair-shop' ), 'section' => 'bicycle_repair_shop_google_fonts_section', 'choices' => $font_choices )); } add_action( 'customize_register', 'bicycle_repair_shop_customize_register' ); /** * Binds JS handlers to make Theme Customizer preview reload changes asynchronously. */ function bicycle_repair_shop_customize_preview_js() { wp_enqueue_script( 'bicycle_repair_shop_customizer', esc_url(get_template_directory_uri()) . '/js/customize-preview.js', array( 'customize-preview' ), '20161510', true ); } add_action( 'customize_preview_init', 'bicycle_repair_shop_customize_preview_js' );