get_setting( 'blogname' )->transport = 'allrounderr'; $wp_customize->get_setting( 'blogdescription' )->transport = 'responsive'; $wp_customize->add_section('all_rounder_header', array( 'title' => __('Allrounder Header Phone and email edit', 'all-rounder'), 'description' => '', 'priority' => 30, )); $wp_customize->add_section('all_rounder_social', array( 'title' => __('Allrounder Social Link', 'all-rounder'), 'description' => '', 'priority' => 35, )); $wp_customize->add_section('all_rounder_banner', array( 'title' => __('Allrounder Header Banner', 'all-rounder'), 'description' => __('banner Size Should be ( 1400x500 ).','all-rounder'), 'priority' => 36, )); $wp_customize->add_section('all_rounder_footer', array( 'title' => __('Allrounder Footer', 'all-rounder'), 'description' => '', 'priority' => 37, )); // ============================= // = Text Input phone number = // ============================= $wp_customize->add_setting('all_rounder_phone', array( 'default' => '123456789', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('all_rounder_phone', array( 'label' => __('Phone Number', 'all-rounder'), 'section' => 'all_rounder_header', 'setting' => 'all_rounder_phone', 'type' => 'number' )); // ============================= // = Text Input Email = // ============================= $wp_customize->add_setting('all_rounder_email', array( 'default' => 'support@themestulip.com', 'sanitize_callback' => 'sanitize_email' )); $wp_customize->add_control('all_rounder_email', array( 'label' => __('Email', 'all-rounder'), 'section' => 'all_rounder_header', 'setting' => 'all_rounder_email', 'type' => 'email' )); // ============================= // = Text Input facebook = // ============================= $wp_customize->add_setting('all_rounder_fb', array( 'default' => '#', 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control('all_rounder_fb', array( 'label' => __('Facebook', 'all-rounder'), 'section' => 'all_rounder_social', 'setting' => 'all_rounder_fb', )); // ============================= // = Text Input Twitter = // ============================= $wp_customize->add_setting('all_rounder_twitter', array( 'default' => '#', 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control('all_rounder_twitter', array( 'label' => __('Twitter', 'all-rounder'), 'section' => 'all_rounder_social', 'setting' => 'all_rounder_twitter', )); // ============================= // = Text Input googleplus = // ============================= $wp_customize->add_setting('all_rounder_glplus', array( 'default' => '#', 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control('all_rounder_glplus', array( 'label' => __('Google Plus', 'all-rounder'), 'section' => 'all_rounder_social', 'setting' => 'all_rounder_glplus', )); // ============================= // = Text Input linkedin = // ============================= $wp_customize->add_setting('all_rounder_in', array( 'default' => '#', 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control('all_rounder_in', array( 'label' => __('Linkedin', 'all-rounder'), 'section' => 'all_rounder_social', 'setting' => 'all_rounder_in', )); // ============================= // = banner Upload = // ============================= $wp_customize->add_setting('all_rounder_banners', array( 'default' => esc_url(home_url()).'/wp-content/themes/all-rounder/images/banner2.jpg', 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control( new WP_Customize_Image_Control($wp_customize, 'all_rounder_banners', array( 'label' => __('Upload Header Banner', 'all-rounder'), 'section' => 'all_rounder_banner', 'setting' => 'all_rounder_banners', ))); // ============================= // = Footer = // ============================= //1st section label name $wp_customize->add_setting('all_rounder_1st_label_name', array( 'default' => 'About Us', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('all_rounder_1st_label_name', array( 'label' => __('1st footer section name', 'all-rounder'), 'section' => 'all_rounder_footer', 'setting' => 'all_rounder_1st_label_name' )); // 1st section description $wp_customize->add_setting('all_rounder_1st_footer_content', array( 'default' => 'It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters', 'sanitize_callback' => 'esc_textarea' )); $wp_customize->add_control('all_rounder_1st_footer_content', array( 'label' => __('1st footer section content', 'all-rounder'), 'section' => 'all_rounder_footer', 'setting' => 'all_rounder_1st_footer_content', 'type' =>'textarea' )); //2nd section label name $wp_customize->add_setting('all_rounder_second_label_name', array( 'default' => 'Social Connect', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('all_rounder_second_label_name', array( 'label' => __('2nd footer section name', 'all-rounder'), 'section' => 'all_rounder_footer', 'setting' => 'all_rounder_second_label_name' )); // ============================= // = Footer Contact Address = // ============================= //last section label name $wp_customize->add_setting('all_rounder_last_label_name', array( 'default' => 'Contact Address', 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('all_rounder_last_label_name', array( 'label' => __('last footer section name', 'all-rounder'), 'section' => 'all_rounder_footer', 'setting' => 'all_rounder_last_label_name' )); // last section description $wp_customize->add_setting('all_rounder_last_footer_content', array( 'default' => 'Newyork, USA', 'sanitize_callback' => 'esc_textarea' )); $wp_customize->add_control('all_rounder_last_footer_content', array( 'label' => __('Last footer section content', 'all-rounder'), 'section' => 'all_rounder_footer', 'setting' => 'all_rounder_last_footer_content', 'type' =>'textarea' )); // Footer design and developed $wp_customize->add_setting('all_rounder_design', array( 'default' => 'Design and Developed by Tulip Themes', 'sanitize_callback' => 'esc_textarea' )); $wp_customize->add_control('all_rounder_design', array( 'label' => __('Design and developed', 'all-rounder'), 'section' => 'all_rounder_footer', 'setting' => 'all_rounder_design', 'type' =>'textarea' )); // Footer copyright $wp_customize->add_setting('all_rounder_copyright', array( 'default' => '@2017 Themestulip. All Right Reserved', 'sanitize_callback' => 'esc_textarea' )); $wp_customize->add_control('all_rounder_copyright', array( 'label' => __('Copyright', 'all-rounder'), 'section' => 'all_rounder_footer', 'setting' => 'all_rounder_copyright', 'type' =>'textarea' )); } add_action('customize_register', 'all_rounder_customize_register'); ?>