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' => '#E19105',
'sanitize_callback' => 'sanitize_hex_color'
));
$wp_customize->add_control(
new WP_Customize_Color_Control($wp_customize,'color_scheme',array(
'label' => __('Color Scheme','beautyhome'),
'description' => __('More color options in PRO Version','beautyhome'),
'section' => 'colors',
'settings' => 'color_scheme'
))
);
// Slider Section
$wp_customize->add_section( 'slider_section', array(
'title' => __('Slider Settings', 'beautyhome'),
'priority' => null,
'description' => __('Featured Image Size Should be ( 1400x590 ) More slider settings available in PRO Version','beautyhome'),
)
);
$wp_customize->add_setting('page-setting7',array(
'sanitize_callback' => 'beautyhome_sanitize_integer'
));
$wp_customize->add_control('page-setting7',array(
'type' => 'dropdown-pages',
'label' => __('Select page for slide one:','beautyhome'),
'section' => 'slider_section'
));
$wp_customize->add_setting('page-setting8',array(
'sanitize_callback' => 'beautyhome_sanitize_integer'
));
$wp_customize->add_control('page-setting8',array(
'type' => 'dropdown-pages',
'label' => __('Select page for slide two:','beautyhome'),
'section' => 'slider_section'
));
$wp_customize->add_setting('page-setting9',array(
'sanitize_callback' => 'beautyhome_sanitize_integer'
));
$wp_customize->add_control('page-setting9',array(
'type' => 'dropdown-pages',
'label' => __('Select page for slide three:','beautyhome'),
'section' => 'slider_section'
)); // Slider Section
// Home What We Do Section
$wp_customize->add_section('section_first',array(
'title' => __('Homepage What We Do Section','beautyhome'),
'description' => __('Select Page from the dropdown for what we do section','beautyhome'),
'priority' => null
));
$wp_customize->add_setting('page-setting1', array(
'sanitize_callback' => 'beautyhome_sanitize_integer',
));
$wp_customize->add_control( 'page-setting1',array('type' => 'dropdown-pages',
'label' => __('','beautyhome'),
'section' => 'section_first',
));
// Home Three Boxes Section
$wp_customize->add_section('section_second', array(
'title' => __('Homepage Four Boxes Section','beautyhome'),
'description' => __('Select Pages from the dropdown for homepage four boxes section','beautyhome'),
'priority' => null
));
$wp_customize->add_setting('page-column1', array(
'sanitize_callback' => 'beautyhome_sanitize_integer',
));
$wp_customize->add_control( 'page-column1',array('type' => 'dropdown-pages',
'label' => __('','beautyhome'),
'section' => 'section_second',
));
$wp_customize->add_setting('page-column2', array(
'sanitize_callback' => 'beautyhome_sanitize_integer',
));
$wp_customize->add_control( 'page-column2',array('type' => 'dropdown-pages',
'label' => __('','beautyhome'),
'section' => 'section_second',
));
$wp_customize->add_setting('page-column3', array(
'sanitize_callback' => 'beautyhome_sanitize_integer',
));
$wp_customize->add_control( 'page-column3',array('type' => 'dropdown-pages',
'label' => __('','beautyhome'),
'section' => 'section_second',
));
$wp_customize->add_setting('page-column4', array(
'sanitize_callback' => 'beautyhome_sanitize_integer',
));
$wp_customize->add_control( 'page-column4',array('type' => 'dropdown-pages',
'label' => __('','beautyhome'),
'section' => 'section_second',
)); //end three column part
$wp_customize->add_section('social_sec',array(
'title' => __('Social Settings','beautyhome'),
'description' => __('More social icon available in PRO Version','beautyhome'),
'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','beautyhome'),
'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','beautyhome'),
'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','beautyhome'),
'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','beautyhome'),
'section' => 'social_sec',
'setting' => 'linked_link'
));
$wp_customize->add_section('footer_area',array(
'title' => __('Footer Area','beautyhome'),
'priority' => null,
'description' => __('','beautyhome')
));
$wp_customize->add_setting('beautyhome_options[credit-info]', array(
'type' => 'info_control',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
)
);
$wp_customize->add_control( new beautyhome_Info( $wp_customize, 'cred_section', array(
'label' => __('','beautyhome'),
'section' => 'footer_area',
'settings' => 'beautyhome_options[credit-info]'
) )
);
$wp_customize->add_setting('about_title',array(
'default' => __('About Us','beautyhome'),
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control('about_title',array(
'label' => __('Add title for about us','beautyhome'),
'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.','beautyhome'),
'sanitize_callback' => 'esc_textarea',
) );
$wp_customize->add_control( 'about_description', array(
'type' => 'textarea',
'label' => __( 'About Description', 'beautyhome' ),
'section' => 'footer_area',
'setting' => 'about_description',
) );
$wp_customize->add_setting('menu_title',array(
'default' => __('Footer Menu','beautyhome'),
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control('menu_title',array(
'label' => __('Add title for footer menu','beautyhome'),
'section' => 'footer_area',
'setting' => 'menu_title'
));
$wp_customize->add_setting('latestpost_title',array(
'default' => __('Latest Posts','beautyhome'),
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control('latestpost_title',array(
'label' => __('Add title for footer latest posts','beautyhome'),
'section' => 'footer_area',
'setting' => 'latestpost_title'
));
$wp_customize->add_setting('contact_title',array(
'default' => __('Contact Info','beautyhome'),
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control('contact_title',array(
'label' => __('Add title for footer contact info','beautyhome'),
'section' => 'footer_area',
'setting' => 'contact_title'
));
$wp_customize->add_setting('copyright_text',array(
'default' => __('Copyright 2016. All Rights Reserved.','beautyhome'),
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control('copyright_text',array(
'label' => __('Change Copyright Text','beautyhome'),
'section' => 'footer_area',
'setting' => 'copyright_text'
));
$wp_customize->add_section('contact_sec',array(
'title' => __('Contact Details','beautyhome'),
'description' => __('Add you contact details here','beautyhome'),
'priority' => null
));
$wp_customize->add_setting('contact_add',array(
'default' => __('10 Bridge, Newyork, United State.','beautyhome'),
'sanitize_callback' => 'esc_textarea',
));
$wp_customize->add_control( 'contact_add', array(
'type' => 'textarea',
'label' => __('Add contact address here','beautyhome'),
'section' => 'contact_sec',
'setting' => 'contact_add'
));
$wp_customize->add_setting('contact_no',array(
'default' => __('(906) 999 888 7777','beautyhome'),
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control('contact_no',array(
'label' => __('Add contact number here.','beautyhome'),
'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','beautyhome'),
'section' => 'contact_sec',
'setting' => 'contact_mail'
));
$wp_customize->add_setting('faxno',array(
'default' => __('(903) 333 6666 7777','beautyhome'),
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control('faxno',array(
'label' => __('Add fax number here.','beautyhome'),
'section' => 'contact_sec',
'setting' => 'faxno'
));
$wp_customize->add_setting('beautyhome_options[layout-info]', array(
'type' => 'info_control',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
)
);
$wp_customize->add_control( new beautyhome_Info( $wp_customize, 'layout_section', array(
'section' => 'theme_layout_sec',
'settings' => 'beautyhome_options[layout-info]',
'priority' => null
) )
);
$wp_customize->add_setting('beautyhome_options[font-info]', array(
'type' => 'info_control',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
)
);
$wp_customize->add_control( new beautyhome_Info( $wp_customize, 'font_section', array(
'section' => 'theme_font_sec',
'settings' => 'beautyhome_options[font-info]',
'priority' => null
) )
);
$wp_customize->add_setting('beautyhome_options[info]', array(
'type' => 'info_control',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
)
);
$wp_customize->add_control( new beautyhome_Info( $wp_customize, 'doc_section', array(
'section' => 'theme_doc_sec',
'settings' => 'beautyhome_options[info]',
'priority' => 10
) )
);
}
add_action( 'customize_register', 'beautyhome_customize_register' );
//Integer
function beautyhome_sanitize_integer( $input ) {
if( is_numeric( $input ) ) {
return intval( $input );
}
}
function beautyhome_custom_css(){
?>