add_section('businessroy_quick_info', array( 'title' => esc_html__('Quick Information', 'business-roy'), 'panel' => 'businessroy_header_settings', 'priority' => 200 )); $wp_customize->add_setting('businessroy_quick_nav', array( 'transport' => 'postMessage', 'sanitize_callback' => 'wp_kses_post', 'priority' => -1, )); $wp_customize->add_control(new Businessroy_Custom_Control_Tab($wp_customize, 'businessroy_quick_nav', array( 'type' => 'tab', 'section' => 'businessroy_quick_info', 'buttons' => array( array( 'name' => esc_html__('Settings', 'business-roy'), 'fields' => array( 'businessroy_quick_content', ), 'active' => true, ), array( 'name' => esc_html__('Style', 'business-roy'), 'fields' => array( ) ) ) ))); $wp_customize->add_setting('businessroy_quick_content', array( 'transport' => 'postMessage', 'sanitize_callback' => 'businessroy_themes_sanitize_repeater', 'default' => json_encode(array( array( 'icon' => 'fa-regular fa-envelope-open', 'label' => esc_html('Quick Questions? Email Us','business-roy'), 'val' => 'example@example.com', 'enable' => 'enable' ), array( 'icon' => 'fa-solid fa-headset', 'label' => esc_html('Talk to an Expert (Aradia)','business-roy'), 'val' => '(555)-555-5555', 'enable' => 'enable' ), array( 'icon' => 'fas fa-map-marker-alt', 'label' => esc_html('Office Address','business-roy'), 'val' => '123 Main Street, Springfield, USA', 'enable' => 'enable' ) )) )); $wp_customize->add_control(new Businessroy_Themes_Repeater_Control($wp_customize, 'businessroy_quick_content', array( 'label' => esc_html__('Information', 'business-roy'), 'section' => 'businessroy_quick_info', 'box_label' => esc_html__('Information Item', 'business-roy'), 'add_label' => esc_html__('Add New', 'business-roy'), 'sortable' => 'enable', 'limit' => 3, ), array( 'icon' => array( 'type' => 'icon', 'label' => esc_html__('Icon', 'business-roy'), 'default' => '' ), 'label' => array( 'type' => 'text', 'label' => esc_html__('Label', 'business-roy'), 'default' => '' ), 'val' => array( 'type' => 'text', 'label' => esc_html__('Value', 'business-roy'), 'default' => '' ), 'enable' => array( 'type' => 'switch', 'label' => esc_html__('Enable', 'business-roy'), 'switch' => array( 'enable' => esc_html__('Yes', 'business-roy'), 'disable' => esc_html__('No', 'business-roy') ), 'default' => 'enable' ) ) )); $wp_customize->selective_refresh->add_partial( 'businessroy_quick_content', array ( 'settings' => array( 'businessroy_quick_content' ), 'selector' => '.iktheme-quick-contact', 'container_inclusive' => true, 'fallback_refresh' => false, 'render_callback' => function () { return businessroy_themes_quick_contact_info_header(); } )); $wp_customize->add_setting('businessroy_pro_quick_info', array( 'sanitize_callback' => 'businessroy_sanitize_text' )); $wp_customize->add_control(new Businessroy_Themes_Upgrade_Text($wp_customize, 'businessroy_pro_quick_info', array( 'section' => 'businessroy_quick_info', 'label' => esc_html__('For More Settings,', 'business-roy'), 'choices' => array( esc_html__('Advanced Customization ( Icon, Label/Title & Link )', 'business-roy'), esc_html__('Change Title, Text & Icon Color', 'business-roy'), ), 'priority' => 250, )));