add_section( 'boutique_shop_section_collection', array( 'title' => __( 'Collection Section', 'boutique-shop' ), 'priority' => 110, 'capability' => 'edit_theme_options', 'panel' => 'home_page_panel', ) ); // Enable Section $wp_customize->add_setting('theme_options[boutique_shop_enable_featured_mission_section]', array( 'default' => $default['boutique_shop_enable_featured_mission_section'], 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'boutique_shop_sanitize_checkbox' ) ); $wp_customize->add_control('theme_options[boutique_shop_enable_featured_mission_section]', array( 'label' => __('Enable Section', 'boutique-shop'), 'section' => 'boutique_shop_section_collection', 'settings' => 'theme_options[boutique_shop_enable_featured_mission_section]', 'type' => 'checkbox', ) ); // Collection Title $wp_customize->add_setting('theme_options[boutique_shop_collection_section_title]', array( 'default' => $default['boutique_shop_collection_section_title'], 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control('theme_options[boutique_shop_collection_section_title]', array( 'label' => __('Collection Section Title', 'boutique-shop'), 'section' => 'boutique_shop_section_collection', 'settings' => 'theme_options[boutique_shop_collection_section_title]', 'type' => 'text' ) ); // Collection Text $wp_customize->add_setting('theme_options[boutique_shop_collection_section_text]', array( 'default' => $default['boutique_shop_collection_section_text'], 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control('theme_options[boutique_shop_collection_section_text]', array( 'label' => __('Collection Section Text', 'boutique-shop'), 'section' => 'boutique_shop_section_collection', 'settings' => 'theme_options[boutique_shop_collection_section_text]', 'type' => 'text' ) ); // Collection Name $wp_customize->add_setting('theme_options[boutique_shop_collection_title]', array( 'default' => $default['boutique_shop_collection_title'], 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control('theme_options[boutique_shop_collection_title]', array( 'label' => __('Collection Name', 'boutique-shop'), 'section' => 'boutique_shop_section_collection', 'settings' => 'theme_options[boutique_shop_collection_title]', 'type' => 'text' ) ); // Collection Button Text $wp_customize->add_setting('theme_options[boutique_shop_collection_btn_text]', array( 'default' => $default['boutique_shop_collection_btn_text'], 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control('theme_options[boutique_shop_collection_title]', array( 'label' => __('Collection Button Text', 'boutique-shop'), 'section' => 'boutique_shop_section_collection', 'settings' => 'theme_options[boutique_shop_collection_title]', 'type' => 'text' ) ); // Collection Button Link $wp_customize->add_setting('theme_options[boutique_shop_collection_btn_link]', array( 'default' => $default['boutique_shop_collection_btn_link'], 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_url_raw' ) ); $wp_customize->add_control('theme_options[boutique_shop_collection_btn_link]', array( 'label' => __('Collection Button Link', 'boutique-shop'), 'section' => 'boutique_shop_section_collection', 'settings' => 'theme_options[boutique_shop_collection_btn_link]', 'type' => 'url' ) ); // Collection Price $wp_customize->add_setting('theme_options[boutique_shop_collection_price]', array( 'default' => $default['boutique_shop_collection_price'], 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control('theme_options[boutique_shop_collection_price]', array( 'label' => __('Collection Button Text', 'boutique-shop'), 'section' => 'boutique_shop_section_collection', 'settings' => 'theme_options[boutique_shop_collection_price]', 'type' => 'text' ) ); // Mens Collection $wp_customize->add_setting( 'boutique_shop_men_collection_img', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_url_raw' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'boutique_shop_men_collection_img', array( 'label' => __('Mens Collection Image', 'boutique-shop'), 'settings' => 'boutique_shop_men_collection_img', 'section' => 'boutique_shop_section_collection' ) ) ); // Collection Title $wp_customize->add_setting('theme_options[boutique_shop_men_collection_title]', array( 'default' => $default['boutique_shop_men_collection_title'], 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control('theme_options[boutique_shop_men_collection_title]', array( 'label' => __('Mens Collection Text', 'boutique-shop'), 'section' => 'boutique_shop_section_collection', 'settings' => 'theme_options[boutique_shop_men_collection_title]', 'type' => 'text' ) ); // Collection Title Link $wp_customize->add_setting('theme_options[boutique_shop_men_collection_link]', array( 'default' => $default['boutique_shop_men_collection_link'], 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_url_raw' ) ); $wp_customize->add_control('theme_options[boutique_shop_men_collection_link]', array( 'label' => __('Mens Collection Link', 'boutique-shop'), 'section' => 'boutique_shop_section_collection', 'settings' => 'theme_options[boutique_shop_men_collection_link]', 'type' => 'url' ) ); // Womens Collection $wp_customize->add_setting( 'boutique_shop_women_collection_img', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_url_raw' ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'boutique_shop_women_collection_img', array( 'label' => __('Womens Collection Image', 'boutique-shop'), 'settings' => 'boutique_shop_women_collection_img', 'section' => 'boutique_shop_section_collection' ) ) ); // Collection Title $wp_customize->add_setting('theme_options[boutique_shop_women_collection_title]', array( 'default' => $default['boutique_shop_women_collection_title'], 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control('theme_options[boutique_shop_women_collection_title]', array( 'label' => __('Womens Collection Text', 'boutique-shop'), 'section' => 'boutique_shop_section_collection', 'settings' => 'theme_options[boutique_shop_women_collection_title]', 'type' => 'text' ) ); // Collection Title Link $wp_customize->add_setting('theme_options[boutique_shop_women_collection_link]', array( 'default' => $default['boutique_shop_women_collection_link'], 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_url_raw' ) ); $wp_customize->add_control('theme_options[boutique_shop_women_collection_link]', array( 'label' => __('Womens Collection Link', 'boutique-shop'), 'section' => 'boutique_shop_section_collection', 'settings' => 'theme_options[boutique_shop_women_collection_link]', 'type' => 'url' ) );