add_section('borno_topbar', array( 'title' => __('Header', 'borno'), 'panel' => 'borno', 'priority' => 2, )); $wp_customize->add_setting('borno_show_topbar_settings', array( 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'type' => 'theme_mod', 'sanitize_callback' => function ($input) { return ((isset($input) && true == $input) ? true : false); } )); $wp_customize->add_control('borno_show_topbar_ctrl', array( 'label' => __('Show topbar', 'borno'), 'section' => 'borno_topbar', 'settings' => 'borno_show_topbar_settings', 'type' => 'checkbox' )); $wp_customize->add_setting('borno_topbar_left_text_settings', array( 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('borno_topbar_left_text_ctrl', array( 'label' => __('Temperature', 'borno'), 'section' => 'borno_topbar', 'settings' => 'borno_topbar_left_text_settings', 'type' => 'text' )); $wp_customize->add_setting('borno_topbar_tel_settings', array( 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('borno_topbar_tel_ctrl', array( 'label' => __('Phone Number', 'borno'), 'section' => 'borno_topbar', 'settings' => 'borno_topbar_tel_settings', 'type' => 'text' )); $wp_customize->add_setting('borno_topbar_email_settings', array( 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('borno_topbar_email_ctrl', array( 'label' => __('Email Address', 'borno'), 'section' => 'borno_topbar', 'settings' => 'borno_topbar_email_settings', 'type' => 'text' )); $wp_customize->add_setting('borno_show_topbar_right_btn_settings', array( 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'type' => 'theme_mod', 'sanitize_callback' => function ($input) { return ((isset($input) && true == $input) ? true : false); } )); $wp_customize->add_control('borno_show_topbar_right_btn_ctrl', array( 'label' => __('Show right side button', 'borno'), 'section' => 'borno_topbar', 'settings' => 'borno_show_topbar_right_btn_settings', 'type' => 'checkbox' )); $wp_customize->add_setting('borno_show_topbar_right_face_btn_link_settings', array( 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('borno_show_topbar_right_facebbtn_link_ctrl', array( 'label' => __('facebook', 'borno'), 'section' => 'borno_topbar', 'settings' => 'borno_show_topbar_right_face_btn_link_settings', 'type' => 'text' )); $wp_customize->add_setting('borno_show_topbar_right_twitter_btn_link_settings', array( 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('borno_show_topbar_right_twitterbtn_link_ctrl', array( 'label' => __('Twitter', 'borno'), 'section' => 'borno_topbar', 'settings' => 'borno_show_topbar_right_twitter_btn_link_settings', 'type' => 'text' )); $wp_customize->add_setting('borno_show_topbar_right_linkdin_btn_link_settings', array( 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('borno_show_topbar_right_linkdinbtn_link_ctrl', array( 'label' => __('Linkdin', 'borno'), 'section' => 'borno_topbar', 'settings' => 'borno_show_topbar_right_linkdin_btn_link_settings', 'type' => 'text' )); $wp_customize->add_setting('borno_show_topbar_right_linkdin_pintbtn_link_settings', array( 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('borno_show_topbar_right_pintbtn_link_ctrl', array( 'label' => __('Pintarest', 'borno'), 'section' => 'borno_topbar', 'settings' => 'borno_show_topbar_right_linkdin_pintbtn_link_settings', 'type' => 'text' )); $wp_customize->add_setting('borno_show_topbar_right_Youtube_btn_link_settings', array( 'capability' => 'edit_theme_options', 'transport' => 'refresh', 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('borno_show_topbar_right_youtubbtn_link_ctrl', array( 'label' => __('Yutube', 'borno'), 'section' => 'borno_topbar', 'settings' => 'borno_show_topbar_right_Youtube_btn_link_settings', 'type' => 'text' ));