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' => '#e42e54',
'sanitize_callback' => 'sanitize_hex_color'
));
$wp_customize->add_control(
new WP_Customize_Color_Control($wp_customize,'color_scheme',array(
'label' => __('Color Scheme','skt-girlie-lite'),
'description' => __( 'More color options in PRO Version.', 'skt-girlie-lite'),
'section' => 'colors',
'settings' => 'color_scheme'
))
);
// Home Second Section
$wp_customize->add_section('section_second', array(
'title' => __('Homepage Four Boxes Section','skt-girlie-lite'),
'description' => __('Select Pages from the dropdown for homepage four boxes section','skt-girlie-lite'),
'priority' => null
));
$wp_customize->add_setting('page-column1', array(
'default' => '0',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'skt_girlie_sanitize_integer',
));
$wp_customize->add_control( 'page-column1',array('type' => 'dropdown-pages',
'section' => 'section_second',
));
$wp_customize->add_setting('page-column2', array(
'default' => '0',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'skt_girlie_sanitize_integer',
));
$wp_customize->add_control( 'page-column2',array('type' => 'dropdown-pages',
'section' => 'section_second',
));
$wp_customize->add_setting('page-column3', array(
'default' => '0',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'skt_girlie_sanitize_integer',
));
$wp_customize->add_control( 'page-column3',array('type' => 'dropdown-pages',
'label' => __('','skt-girlie-lite'),
'section' => 'section_second',
));
$wp_customize->add_setting('page-column4', array(
'default' => '0',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'skt_girlie_sanitize_integer',
));
$wp_customize->add_control( 'page-column4',array('type' => 'dropdown-pages',
'label' => __('','skt-girlie-lite'),
'section' => 'section_second',
));
$wp_customize->add_setting('hide_boxes',array(
'sanitize_callback' => 'skt_girlie_sanitize_checkbox',
'default' => true,
));
$wp_customize->add_control( 'hide_boxes', array(
'section' => 'section_second',
'label' => __('Hide This Section','skt-girlie-lite'),
'type' => 'checkbox'
));
// Slider Section
$wp_customize->add_section( 'slider_section', array(
'title' => esc_html__('Slider Settings', 'skt-girlie-lite'),
'priority' => null,
'description' => esc_html__('Featured Image Size Should be ( 1420 X 650 ) More slider settings available in PRO Version','skt-girlie-lite'),
)
);
$wp_customize->add_setting('page-setting7',array(
'default' => '0',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'skt_girlie_sanitize_integer'
));
$wp_customize->add_control('page-setting7',array(
'type' => 'dropdown-pages',
'label' => esc_html__('Select page for slide one:','skt-girlie-lite'),
'section' => 'slider_section'
));
$wp_customize->add_setting('page-setting8',array(
'default' => '0',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'skt_girlie_sanitize_integer'
));
$wp_customize->add_control('page-setting8',array(
'type' => 'dropdown-pages',
'label' => esc_html__('Select page for slide two:','skt-girlie-lite'),
'section' => 'slider_section'
));
$wp_customize->add_setting('page-setting9',array(
'default' => '0',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'skt_girlie_sanitize_integer'
));
$wp_customize->add_control('page-setting9',array(
'type' => 'dropdown-pages',
'label' => esc_html__('Select page for slide three:','skt-girlie-lite'),
'section' => 'slider_section'
));
//Slider hide
$wp_customize->add_setting('hide_slides',array(
'sanitize_callback' => 'skt_girlie_sanitize_checkbox',
'default' => true,
));
$wp_customize->add_control( 'hide_slides', array(
'section' => 'slider_section',
'label' => esc_html__('Uncheck To Show Slider','skt-girlie-lite'),
'type' => 'checkbox'
)); // Slider Section
$wp_customize->add_section('social_sec',array(
'title' => __('Social Settings','skt-girlie-lite'),
'description' => __( 'More social icon available in PRO Version.', 'skt-girlie-lite' ),
'priority' => null
));
$wp_customize->add_setting('fb_link',array(
'default' => null,
'sanitize_callback' => 'esc_url_raw'
));
$wp_customize->add_control('fb_link',array(
'label' => __('Add facebook link here','skt-girlie-lite'),
'section' => 'social_sec',
'setting' => 'fb_link'
));
$wp_customize->add_setting('twitt_link',array(
'default' => null,
'sanitize_callback' => 'esc_url_raw'
));
$wp_customize->add_control('twitt_link',array(
'label' => __('Add twitter link here','skt-girlie-lite'),
'section' => 'social_sec',
'setting' => 'twitt_link'
));
$wp_customize->add_setting('gplus_link',array(
'default' => null,
'sanitize_callback' => 'esc_url_raw'
));
$wp_customize->add_control('gplus_link',array(
'label' => __('Add google plus link here','skt-girlie-lite'),
'section' => 'social_sec',
'setting' => 'gplus_link'
));
$wp_customize->add_setting('linked_link',array(
'default' => null,
'sanitize_callback' => 'esc_url_raw'
));
$wp_customize->add_control('linked_link',array(
'label' => __('Add linkedin link here','skt-girlie-lite'),
'section' => 'social_sec',
'setting' => 'linked_link'
));
$wp_customize->add_section('footer_area',array(
'title' => __('Footer Area','skt-girlie-lite'),
'description' => '',
'priority' => null,
));
$wp_customize->add_setting('skt_girlie_options[credit-info]', array(
'type' => 'info_control',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
)
);
$wp_customize->add_control( new skt_girlie_Info( $wp_customize, 'cred_section', array(
'section' => 'footer_area',
'settings' => 'skt_girlie_options[credit-info]'
) )
);
$wp_customize->add_setting('about_title',array(
'default' => null,
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control('about_title',array(
'label' => __('Add title for about girlie','skt-girlie-lite'),
'section' => 'footer_area',
'setting' => 'about_title'
));
$wp_customize->add_setting('about_description',array(
'default' => null,
'sanitize_callback' => 'wp_htmledit_pre'
));
$wp_customize->add_control( new WP_Customize_Textarea_Control( $wp_customize,'about_description', array(
'label' => __('Add description for our philosophy','skt-girlie-lite'),
'section' => 'footer_area',
'setting' => 'about_description'
)) );
$wp_customize->add_setting('recentpost_title',array(
'default' => null,
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control('recentpost_title',array(
'label' => __('Add title for recent posts','skt-girlie-lite'),
'section' => 'footer_area',
'setting' => 'recentpost_title'
));
$wp_customize->add_setting('contact_title',array(
'default' => null,
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control('contact_title',array(
'label' => __('Add Footer Contact Info','skt-girlie-lite'),
'section' => 'footer_area',
'setting' => 'contact_title'
));
$wp_customize->add_setting('contact_add',array(
'default' => null,
'sanitize_callback' => 'wp_htmledit_pre'
));
$wp_customize->add_control( new WP_Customize_Textarea_Control( $wp_customize, 'contact_add', array(
'label' => __('Add contact address here','skt-girlie-lite'),
'section' => 'footer_area',
'setting' => 'contact_add'
)
)
);
$wp_customize->add_setting('contact_no',array(
'default' => null,
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control('contact_no',array(
'label' => __('Add contact number here.','skt-girlie-lite'),
'section' => 'footer_area',
'setting' => 'contact_no'
));
$wp_customize->add_setting('contact_mail',array(
'default' => null,
'sanitize_callback' => 'sanitize_email'
));
$wp_customize->add_control('contact_mail',array(
'label' => __('Add you email here','skt-girlie-lite'),
'section' => 'footer_area',
'setting' => 'contact_mail'
));
}
add_action( 'customize_register', 'skt_girlie_customize_register' );
//Integer
function skt_girlie_sanitize_integer( $input ) {
if( is_numeric( $input ) ) {
return intval( $input );
}
}
function skt_girlie_sanitize_checkbox( $checked ) {
// Boolean check.
return ( ( isset( $checked ) && true == $checked ) ? true : false );
}
function skt_girlie_custom_css(){
?>