label ); ?>

get_setting( 'blogname' )->transport = 'postMessage'; $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; $wp_customize->remove_control('header_textcolor'); $wp_customize->remove_control('display_header_text'); $wp_customize->add_setting('color_scheme',array( 'default' => '#31cafd', 'sanitize_callback' => 'sanitize_hex_color' )); $wp_customize->add_control( new WP_Customize_Color_Control($wp_customize,'color_scheme',array( 'label' => __('Color Scheme','clean-lite'), 'description' => __('More color options in PRO Version','clean-lite'), 'section' => 'colors', 'settings' => 'color_scheme' )) ); // Slider Section $wp_customize->add_section( 'slider_section', array( 'title' => __('Slider Settings', 'clean-lite'), 'priority' => null, 'description' => __('Featured Image Size Should be ( 1400x530 ) More slider settings available in PRO Version [ This only work when static front page is selected. ]','clean-lite'), ) ); $wp_customize->add_setting('page-setting7',array( 'sanitize_callback' => 'clean_lite_sanitize_integer' )); $wp_customize->add_control('page-setting7',array( 'type' => 'dropdown-pages', 'label' => __('Select page for slide one:','clean-lite'), 'section' => 'slider_section' )); $wp_customize->add_setting('page-setting8',array( 'sanitize_callback' => 'clean_lite_sanitize_integer' )); $wp_customize->add_control('page-setting8',array( 'type' => 'dropdown-pages', 'label' => __('Select page for slide two:','clean-lite'), 'section' => 'slider_section' )); $wp_customize->add_setting('page-setting9',array( 'sanitize_callback' => 'clean_lite_sanitize_integer' )); $wp_customize->add_control('page-setting9',array( 'type' => 'dropdown-pages', 'label' => __('Select page for slide three:','clean-lite'), 'section' => 'slider_section' )); // Slider Section // Home Three Boxes Section $wp_customize->add_section('section_second', array( 'title' => __('Homepage Four Boxes Section','clean-lite'), 'description' => __('Select Pages from the dropdown for homepage four boxes section [ This only work when static front page is selected. ]','clean-lite'), 'priority' => null )); $wp_customize->add_setting('page-column1', array( 'sanitize_callback' => 'clean_lite_sanitize_integer', )); $wp_customize->add_control( 'page-column1',array('type' => 'dropdown-pages', 'label' => __('','clean-lite'), 'section' => 'section_second', )); $wp_customize->add_setting('page-column2', array( 'sanitize_callback' => 'clean_lite_sanitize_integer', )); $wp_customize->add_control( 'page-column2',array('type' => 'dropdown-pages', 'label' => __('','clean-lite'), 'section' => 'section_second', )); $wp_customize->add_setting('page-column3', array( 'sanitize_callback' => 'clean_lite_sanitize_integer', )); $wp_customize->add_control( 'page-column3',array('type' => 'dropdown-pages', 'label' => __('','clean-lite'), 'section' => 'section_second', )); $wp_customize->add_setting('page-column4', array( 'sanitize_callback' => 'clean_lite_sanitize_integer', )); $wp_customize->add_control( 'page-column4',array('type' => 'dropdown-pages', 'label' => __('','clean-lite'), 'section' => 'section_second', )); //end three column part // Home Welcome Section $wp_customize->add_section('section_first',array( 'title' => __('Homepage Welcome Section','clean-lite'), 'description' => __('Select Page from the dropdown for first section [ This only work when static front page is selected. ]','clean-lite'), 'priority' => null )); $wp_customize->add_setting('page-setting1', array( 'sanitize_callback' => 'clean_lite_sanitize_integer', )); $wp_customize->add_control( 'page-setting1',array('type' => 'dropdown-pages', 'label' => __('','clean-lite'), 'section' => 'section_first', )); $wp_customize->add_section('social_sec',array( 'title' => __('Social Settings','clean-lite'), 'description' => __('More social icon available in PRO Version','clean-lite'), 'priority' => null )); $wp_customize->add_setting('fb_link',array( 'default' => '#facebook', 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control('fb_link',array( 'label' => __('Add facebook link here','clean-lite'), 'section' => 'social_sec', 'setting' => 'fb_link' )); $wp_customize->add_setting('twitt_link',array( 'default' => '#twitter', 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control('twitt_link',array( 'label' => __('Add twitter link here','clean-lite'), 'section' => 'social_sec', 'setting' => 'twitt_link' )); $wp_customize->add_setting('gplus_link',array( 'default' => '#gplus', 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control('gplus_link',array( 'label' => __('Add google plus link here','clean-lite'), 'section' => 'social_sec', 'setting' => 'gplus_link' )); $wp_customize->add_setting('linked_link',array( 'default' => '#linkedin', 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control('linked_link',array( 'label' => __('Add linkedin link here','clean-lite'), 'section' => 'social_sec', 'setting' => 'linked_link' )); $wp_customize->add_section('footer_area',array( 'title' => __('Footer Area','clean-lite'), 'priority' => null, 'description' => __('','clean-lite') )); $wp_customize->add_setting('clean_lite_options[credit-info]', array( 'type' => 'info_control', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new clean_lite_Info( $wp_customize, 'cred_section', array( 'label' => __('','clean-lite'), 'section' => 'footer_area', 'settings' => 'clean_lite_options[credit-info]' ) ) ); $wp_customize->add_setting('menu_title',array( 'default' => __('Main Menu','clean-lite'), 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('menu_title',array( 'label' => __('Add title for menu','clean-lite'), 'section' => 'footer_area', 'setting' => 'menu_title' )); $wp_customize->add_setting('newsfeed_title',array( 'default' => __('Latest News Feed','clean-lite'), 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('newsfeed_title',array( 'label' => __('Add title for latest news feed','clean-lite'), 'section' => 'footer_area', 'setting' => 'newsfeed_title' )); $wp_customize->add_setting('about_title',array( 'default' => __('About Us','clean-lite'), 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('about_title',array( 'label' => __('Add title for about us','clean-lite'), 'section' => 'footer_area', 'setting' => 'about_title' )); $wp_customize->add_setting( 'about_description', array( 'default' => __('Donec ut ex ac nulla pellentesque mollis in a enim. Praesent placerat sapien mauris, vitae sodales tellus venenatis ac. Suspendisse suscipit velit id ultricies auctor. Duis turpis arcu, aliquet sed sollicitudin sed, porta quis urna. Quisque velit nibh, egestas et erat a, vehicula interdum augue.','clean-lite'), 'sanitize_callback' => 'esc_textarea', ) ); $wp_customize->add_control( 'about_description', array( 'type' => 'textarea', 'label' => __( 'About Description', 'clean-lite' ), 'section' => 'footer_area', 'setting' => 'about_description', ) ); $wp_customize->add_setting('contact_title',array( 'default' => __('Contact Info','clean-lite'), 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('contact_title',array( 'label' => __('Add title for footer contact info','clean-lite'), 'section' => 'footer_area', 'setting' => 'contact_title' )); $wp_customize->add_section('contact_sec',array( 'title' => __('Contact Details','clean-lite'), 'description' => __('Add you contact details here','clean-lite'), 'priority' => null )); $wp_customize->add_setting('contact_add',array( 'default' => __('100 King St, Melbourne PIC 4000, Australia','clean-lite'), 'sanitize_callback' => 'esc_textarea', )); $wp_customize->add_control( 'contact_add', array( 'type' => 'textarea', 'label' => __('Add contact address here','clean-lite'), 'section' => 'contact_sec', 'setting' => 'contact_add' )); $wp_customize->add_setting('contact_no',array( 'default' => __('Phone: +123 456 7890','clean-lite'), 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('contact_no',array( 'label' => __('Add contact number here.','clean-lite'), 'section' => 'contact_sec', 'setting' => 'contact_no' )); $wp_customize->add_setting('contact_mail',array( 'default' => 'contact@company.com', 'sanitize_callback' => 'sanitize_email' )); $wp_customize->add_control('contact_mail',array( 'label' => __('Add you email here','clean-lite'), 'section' => 'contact_sec', 'setting' => 'contact_mail' )); $wp_customize->add_setting('clean_lite_options[layout-info]', array( 'type' => 'info_control', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new clean_lite_Info( $wp_customize, 'layout_section', array( 'section' => 'theme_layout_sec', 'settings' => 'clean_lite_options[layout-info]', 'priority' => null ) ) ); $wp_customize->add_setting('clean_lite_options[font-info]', array( 'type' => 'info_control', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new clean_lite_Info( $wp_customize, 'font_section', array( 'section' => 'theme_font_sec', 'settings' => 'clean_lite_options[font-info]', 'priority' => null ) ) ); $wp_customize->add_setting('clean_lite_options[info]', array( 'type' => 'info_control', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field' ) ); $wp_customize->add_control( new clean_lite_Info( $wp_customize, 'doc_section', array( 'section' => 'theme_doc_sec', 'settings' => 'clean_lite_options[info]', 'priority' => 10 ) ) ); } add_action( 'customize_register', 'clean_lite_customize_register' ); //Integer function clean_lite_sanitize_integer( $input ) { if( is_numeric( $input ) ) { return intval( $input ); } } function clean_lite_custom_css(){ ?>