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' => '#5e9240',
'sanitize_callback' => 'sanitize_hex_color'
));
$wp_customize->add_control(
new WP_Customize_Color_Control($wp_customize,'color_scheme',array(
'label' => __('Color Scheme','beauty-spa'),
'description' => __('More color options in PRO Version','beauty-spa'),
'section' => 'colors',
'settings' => 'color_scheme'
))
);
// Slider Section
$wp_customize->add_section(
'slider_section',
array(
'title' => __('Slider Settings', 'beauty-spa'),
'priority' => null,
'description' => __('Featured Image Size Should be same ( 1400x600 ) More slider settings available in PRO Version.','beauty-spa'),
)
);
$wp_customize->add_setting('page-setting7',array(
'sanitize_callback' => 'beauty_spa_sanitize_integer'
));
$wp_customize->add_control('page-setting7',array(
'type' => 'dropdown-pages',
'label' => __('Select page for slide one:','beauty-spa'),
'section' => 'slider_section'
));
$wp_customize->add_setting('page-setting8',array(
'sanitize_callback' => 'beauty_spa_sanitize_integer'
));
$wp_customize->add_control('page-setting8',array(
'type' => 'dropdown-pages',
'label' => __('Select page for slide two:','beauty-spa'),
'section' => 'slider_section'
));
$wp_customize->add_setting('page-setting9',array(
'sanitize_callback' => 'beauty_spa_sanitize_integer'
));
$wp_customize->add_control('page-setting9',array(
'type' => 'dropdown-pages',
'label' => __('Select page for slide three:','beauty-spa'),
'section' => 'slider_section'
)); // Slider Section
// Home Three Boxes Section
$wp_customize->add_section('section_second', array(
'title' => __('Homepage Three Boxes Section','beauty-spa'),
'description' => __('Select Pages from the dropdown for homepage three boxes section','beauty-spa'),
'priority' => null
));
$wp_customize->add_setting('page-column1', array(
'sanitize_callback' => 'beauty_spa_sanitize_integer',
));
$wp_customize->add_control( 'page-column1',array('type' => 'dropdown-pages',
'label' => __('','beauty-spa'),
'section' => 'section_second',
));
$wp_customize->add_setting('page-column2', array(
'sanitize_callback' => 'beauty_spa_sanitize_integer',
));
$wp_customize->add_control( 'page-column2',array('type' => 'dropdown-pages',
'label' => __('','beauty-spa'),
'section' => 'section_second',
));
$wp_customize->add_setting('page-column3', array(
'sanitize_callback' => 'beauty_spa_sanitize_integer',
));
$wp_customize->add_control( 'page-column3',array('type' => 'dropdown-pages',
'label' => __('','beauty-spa'),
'section' => 'section_second',
));//end four column page boxes
//Why Choose Us section
$wp_customize->add_section('welcome_sec',array(
'title' => __('Welcome Section','beauty-spa'),
'description' => __('Add your details here','beauty-spa'),
'priority' => null
));
$wp_customize->add_setting('welcome_title',array(
'default' => __('Welcome to Beauty Spa','beauty-spa'),
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control('welcome_title',array(
'label' => __('Add title for welcome','beauty-spa'),
'section' => 'welcome_sec',
'setting' => 'welcome_title'
));
$wp_customize->add_setting('welcome_description',array(
'default' => __('This is an example page. Its different from a blog post because it will stay in one place and will show up in your site navigation in most theme. Most people start with an About page that introduces them to potential site visitors.This is an example page. Its different from a blog post because it will stay in one place and will show up in your site navigation . Most people start with an About page that introduces them to potential site visitors. ','beauty-spa'),
'sanitize_callback' => 'wp_htmledit_pre'
));
$wp_customize->add_control( new WP_Customize_Textarea_Control( $wp_customize, 'welcome_description', array(
'label' => __('Add here your welcome description','beauty-spa'),
'section' => 'welcome_sec',
'setting' => 'welcome_description'
)
)
);
$wp_customize->add_setting('welcome_link',array(
'default' => '#',
'sanitize_callback' => 'esc_url_raw'
));
$wp_customize->add_control('welcome_link',array(
'label' => __('Add read more button link here','beauty-spa'),
'section' => 'welcome_sec',
'setting' => 'welcome_link'
));
$wp_customize->add_section('social_sec',array(
'title' => __('Social Settings','beauty-spa'),
'description' => __('Add social icons link here.
More icon available in in PRO Version','beauty-spa'),
'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','beauty-spa'),
'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','beauty-spa'),
'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','beauty-spa'),
'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','beauty-spa'),
'section' => 'social_sec',
'setting' => 'linked_link'
));
$wp_customize->add_section('footer_area',array(
'title' => __('Footer Area','beauty-spa'),
'priority' => null,
'description' => __('Add footer copyright text','beauty-spa')
));
$wp_customize->add_setting('beauty_spa_options[credit-info]', array(
'type' => 'info_control',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
)
);
$wp_customize->add_control( new beauty_spa_Info( $wp_customize, 'cred_section', array(
'label' => __('','beauty-spa'),
'section' => 'footer_area',
'settings' => 'beauty_spa_options[credit-info]'
) )
);
$wp_customize->add_setting('about_title',array(
'default' => __('About Us','beauty-spa'),
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control('about_title',array(
'label' => __('Add title for about us','beauty-spa'),
'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.','beauty-spa'),
'sanitize_callback' => 'wp_htmledit_pre'
));
$wp_customize->add_control( new WP_Customize_Textarea_Control( $wp_customize,'about_description', array(
'label' => __('Add description for about us','beauty-spa'),
'section' => 'footer_area',
'setting' => 'about_description'
)) );
$wp_customize->add_setting('menu_title',array(
'default' => __('Main Navigation','beauty-spa'),
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control('menu_title',array(
'label' => __('Add title for menu','beauty-spa'),
'section' => 'footer_area',
'setting' => 'menu_title'
));
$wp_customize->add_setting('recentpost_title',array(
'default' => __('Recent Posts','beauty-spa'),
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control('recentpost_title',array(
'label' => __('Add title for footer recent posts','beauty-spa'),
'section' => 'footer_area',
'setting' => 'recentpost_title'
));
$wp_customize->add_setting('contact_title',array(
'default' => __('Contact Info','beauty-spa'),
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control('contact_title',array(
'label' => __('Add title for footer contact info','beauty-spa'),
'section' => 'footer_area',
'setting' => 'contact_title'
));
$wp_customize->add_setting('copyright_text',array(
'default' => __('2016 beauty-spa. All Right Reserved','beauty-spa'),
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control('copyright_text',array(
'label' => __('Change Copyright Text','beauty-spa'),
'section' => 'footer_area',
'setting' => 'copyright_text'
));
$wp_customize->add_section('contact_sec',array(
'title' => __('Contact Details','beauty-spa'),
'description' => __('Add you contact details here','beauty-spa'),
'priority' => null
));
$wp_customize->add_setting('contact_add',array(
'default' => __('4212 E Valley Mesa St. Petter , Ohio United State.','beauty-spa'),
'sanitize_callback' => 'wp_htmledit_pre'
));
$wp_customize->add_control( new WP_Customize_Textarea_Control( $wp_customize, 'contact_add', array(
'label' => __('Add contact address here','beauty-spa'),
'section' => 'contact_sec',
'setting' => 'contact_add'
)
)
);
$wp_customize->add_setting('contact_no',array(
'default' => __(' +123 456 7890','beauty-spa'),
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control('contact_no',array(
'label' => __('Add contact number here.','beauty-spa'),
'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','beauty-spa'),
'section' => 'contact_sec',
'setting' => 'contact_mail'
));
}
add_action( 'customize_register', 'beauty_spa_customize_register' );
//Integer
function beauty_spa_sanitize_integer( $input ) {
if( is_numeric( $input ) ) {
return intval( $input );
}
}
function beauty_spa_custom_css(){
?>