add_section( 'ample_shop_company_info_section', array( 'priority' => 6, 'capability' => 'edit_theme_options', 'title' => esc_html__('Shop Info', 'ample-shop'), 'panel' => 'ample_shop_homepage_settings_panel', ) ); $wp_customize->add_setting( 'ample_shop_info_header_section', array( 'default' => $default['ample_shop_info_header_section'], 'sanitize_callback' => 'ample_shop_sanitize_select', ) ); $hide_show_top_header_option = ample_shop_slider_option(); $wp_customize->add_control( 'ample_shop_info_header_section', array( 'type' => 'radio', 'label' => esc_html__('Company Info Option', 'ample-shop'), 'description' => esc_html__('Show/hide Option for Company Info Section.', 'ample-shop'), 'section' => 'ample_shop_company_info_section', 'choices' => $hide_show_top_header_option, 'priority' => 5 ) ); /** * Field for icon location * */ $wp_customize->add_setting( 'ample_shop_info_header_section_location_icon', array( 'default' => $default['ample_shop_info_header_section_location_icon'], 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( 'ample_shop_info_header_section_location_icon', array( 'type' => 'text', 'description' => esc_html__('Insert Font Awesome Icon For Location', 'ample-shop'), 'section' => 'ample_shop_company_info_section', 'priority' => 6 ) ); /** * Field for Company Info Phone Number * */ $wp_customize->add_setting( 'ample_shop_info_header_location', array( 'default' => $default['ample_shop_info_header_location'], 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( 'ample_shop_info_header_location', array( 'type' => 'text', 'label' => esc_html__('Address', 'ample-shop'), 'section' => 'ample_shop_company_info_section', 'priority' => 7 ) ); /** * Field for Font Awesome Icon Icon * */ $wp_customize->add_setting( 'ample_shop_info_header_section_phone_number_icon', array( 'default' => $default['ample_shop_info_header_section_phone_number_icon'], 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( 'ample_shop_info_header_section_phone_number_icon', array( 'type' => 'text', 'description' => esc_html__('Insert Font Awesome Icon For Phone', 'ample-shop'), 'section' => 'ample_shop_company_info_section', 'priority' => 8 ) ); /** * Field for Company Info Phone Number * */ $wp_customize->add_setting( 'ample_shop_info_header_phone_no', array( 'default' => $default['ample_shop_info_header_phone_no'], 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( 'ample_shop_info_header_phone_no', array( 'type' => 'text', 'label' => esc_html__('Phone Number', 'ample-shop'), 'section' => 'ample_shop_company_info_section', 'priority' => 9 ) ); /** * Field for Fonsome Icon * */ $wp_customize->add_setting( 'ample_shop_email_icon', array( 'default' => $default['ample_shop_email_icon'], 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control( 'ample_shop_email_icon', array( 'type' => 'text', 'description' => esc_html__('Insert Font Awesome Icon Class For Email', 'ample-shop'), 'section' => 'ample_shop_company_info_section', 'priority' => 10 ) ); /** * Field for Company Info Email Address * */ $wp_customize->add_setting( 'ample_shop_info_header_email', array( 'default' => $default['ample_shop_info_header_email'], 'sanitize_callback' => 'sanitize_email', ) ); $wp_customize->add_control( 'ample_shop_info_header_email', array( 'type' => 'email', 'label' => esc_html__('Email Address', 'ample-shop'), 'section' => 'ample_shop_company_info_section', 'priority' => 11 ) );