add_panel( 'info_setting', array( 'priority' => 220, 'capability' => 'edit_theme_options', 'title' => __('Üst Bilgi Çubuğu', 'atlas'), ) ); $wp_customize->add_section( 'top_section', array( 'title' => __('Üst Bilgi Çubuğu','atlas'), 'panel' => 'info_setting',) ); $wp_customize->add_setting( 'top_section_phone', array( 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'default' => '( 000 ) 000-00-00' )); $wp_customize->add_control( 'top_section_phone', array( 'label' => __( 'Telefon', 'atlas' ), 'type' => 'text', 'section' => 'top_section' )); $wp_customize->add_setting( 'top_section_mail', array( 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'default' => 'info@domain.com' )); $wp_customize->add_control( 'top_section_mail', array( 'label' => __( 'E-Mail', 'atlas' ), 'type' => 'text', 'section' => 'top_section' )); $wp_customize->add_setting( 'top_section_map', array( 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', 'default' => 'Konum' )); $wp_customize->add_control( 'top_section_map', array( 'label' => __( 'Konum', 'atlas' ), 'description' => __( 'Ülke, İl , İlçe bilgilerimizi düzenleyin', 'atlas' ), 'type' => 'text', 'section' => 'top_section' )); $wp_customize->add_section( 'social_section', array( 'title' => __('Sosyal Bağlantılar','atlas'), 'panel' => 'info_setting',) ); $wp_customize->add_setting( 'top_section_facebook_url', array( 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_url_raw', 'default' => '#' )); $wp_customize->add_control( 'top_section_facebook_url', array( 'label' => __( 'Facebook URL', 'atlas' ), 'type' => 'text', 'section' => 'social_section' )); $wp_customize->add_setting( 'top_section_twitter_url', array( 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_url_raw', 'default' => '#' )); $wp_customize->add_control( 'top_section_twitter_url', array( 'label' => __( 'Twitter URL', 'atlas' ), 'type' => 'text', 'section' => 'social_section' )); $wp_customize->add_setting( 'top_section_ınstagram_url', array( 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_url_raw', 'default' => '#' )); $wp_customize->add_control( 'top_section_ınstagram_url', array( 'label' => __( 'İnstagram URL', 'atlas' ), 'type' => 'text', 'section' => 'social_section' )); $wp_customize->add_setting( 'top_section_youtube_url', array( 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_url_raw', 'default' => '#' )); $wp_customize->add_control( 'top_section_youtube_url', array( 'label' => __( 'Youtube URL', 'atlas' ), 'type' => 'text', 'section' => 'social_section' )); $wp_customize->add_setting( 'top_section_linkedin_url', array( 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_url_raw', 'default' => '#' )); $wp_customize->add_control( 'top_section_linkedin_url', array( 'label' => __( 'Linkedin URL', 'atlas' ), 'type' => 'text', 'section' => 'social_section' )); $wp_customize->add_setting( 'top_section_google_url', array( 'type' => 'theme_mod', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_url_raw', 'default' => '#' )); $wp_customize->add_control( 'top_section_google_url', array( 'label' => __( 'Google URL', 'atlas' ), 'type' => 'text', 'section' => 'social_section' )); } add_action( 'customize_register', 'atlas_info_customizer' );