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' => '#112502',
'sanitize_callback' => 'sanitize_hex_color'
));
$wp_customize->add_control(
new WP_Customize_Color_Control($wp_customize,'color_scheme',array(
'label' => __('Color Scheme','businessmentor'),
'description' => __('More color options in PRO Version','businessmentor'),
'section' => 'colors',
'settings' => 'color_scheme'
))
);
// Slider Section
$wp_customize->add_section(
'slider_section',
array(
'title' => __('Slider Settings', 'businessmentor'),
'priority' => null,
'description' => __('Featured Image Size Should be same ( 1400x600 ) More slider settings available in PRO Version.','businessmentor'),
)
);
$wp_customize->add_setting('page-setting7',array(
'sanitize_callback' => 'businessmentor_sanitize_integer'
));
$wp_customize->add_control('page-setting7',array(
'type' => 'dropdown-pages',
'label' => __('Select page for slide one:','businessmentor'),
'section' => 'slider_section'
));
$wp_customize->add_setting('page-setting8',array(
'sanitize_callback' => 'businessmentor_sanitize_integer'
));
$wp_customize->add_control('page-setting8',array(
'type' => 'dropdown-pages',
'label' => __('Select page for slide two:','businessmentor'),
'section' => 'slider_section'
));
$wp_customize->add_setting('page-setting9',array(
'sanitize_callback' => 'businessmentor_sanitize_integer'
));
$wp_customize->add_control('page-setting9',array(
'type' => 'dropdown-pages',
'label' => __('Select page for slide three:','businessmentor'),
'section' => 'slider_section'
)); // Slider Section
// Home Three Boxes Section
$wp_customize->add_section('section_second', array(
'title' => __('Homepage Four Boxes Section','businessmentor'),
'description' => __('Select Pages from the dropdown for homepage four boxes section','businessmentor'),
'priority' => null
));
$wp_customize->add_setting('page-column1', array(
'sanitize_callback' => 'businessmentor_sanitize_integer',
));
$wp_customize->add_control( 'page-column1',array('type' => 'dropdown-pages',
'label' => __('','businessmentor'),
'section' => 'section_second',
));
$wp_customize->add_setting('page-column2', array(
'sanitize_callback' => 'businessmentor_sanitize_integer',
));
$wp_customize->add_control( 'page-column2',array('type' => 'dropdown-pages',
'label' => __('','businessmentor'),
'section' => 'section_second',
));
$wp_customize->add_setting('page-column3', array(
'sanitize_callback' => 'businessmentor_sanitize_integer',
));
$wp_customize->add_control( 'page-column3',array('type' => 'dropdown-pages',
'label' => __('','businessmentor'),
'section' => 'section_second',
));
$wp_customize->add_setting('page-column4', array(
'sanitize_callback' => 'businessmentor_sanitize_integer',
));
$wp_customize->add_control( 'page-column4',array('type' => 'dropdown-pages',
'label' => __('','businessmentor'),
'section' => 'section_second',
)); //end four column page boxes
// Home Welcome Section
$wp_customize->add_section('section_first',array(
'title' => __('Homepage Responsive Design Section','businessmentor'),
'description' => __('Select Page from the dropdown for first section','businessmentor'),
'priority' => null
));
$wp_customize->add_setting('page-setting1', array(
'sanitize_callback' => 'businessmentor_sanitize_integer',
));
$wp_customize->add_control( 'page-setting1',array('type' => 'dropdown-pages',
'label' => __('','businessmentor'),
'section' => 'section_first',
));
$wp_customize->add_section('social_sec',array(
'title' => __('Social Settings','businessmentor'),
'description' => __('Add social icons link here.
More icon available in in PRO Version','businessmentor'),
'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','businessmentor'),
'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','businessmentor'),
'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','businessmentor'),
'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','businessmentor'),
'section' => 'social_sec',
'setting' => 'linked_link'
));
$wp_customize->add_section('footer_area',array(
'title' => __('Footer Area','businessmentor'),
'priority' => null,
'description' => __('Add footer copyright text','businessmentor')
));
$wp_customize->add_setting('businessmentor_options[credit-info]', array(
'type' => 'info_control',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
)
);
$wp_customize->add_control( new businessmentor_Info( $wp_customize, 'cred_section', array(
'label' => __('','businessmentor'),
'section' => 'footer_area',
'settings' => 'businessmentor_options[credit-info]'
) )
);
$wp_customize->add_setting('about_title',array(
'default' => __('About Us','businessmentor'),
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control('about_title',array(
'label' => __('Add title for about us','businessmentor'),
'section' => 'footer_area',
'setting' => 'about_title'
));
$wp_customize->add_setting('about_description',array(
'default' => __('Te equidem interesset his. Ut eum tale fugit nobis, in mei consetetur appellantur interpretaris. Cu erat voluptua persequeris per. Quot expetenda sadipscing ex mei, ius agam erroribus cu. Debitis qualisque in eam, per ad integre constituto constituam.','businessmentor'),
'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','businessmentor'),
'section' => 'footer_area',
'setting' => 'about_description'
)) );
$wp_customize->add_setting('menu_title',array(
'default' => __('Main Navigation','businessmentor'),
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control('menu_title',array(
'label' => __('Add title for menu','businessmentor'),
'section' => 'footer_area',
'setting' => 'menu_title'
));
$wp_customize->add_setting('recentpost_title',array(
'default' => __('Recent Posts','businessmentor'),
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control('recentpost_title',array(
'label' => __('Add title for footer recent posts','businessmentor'),
'section' => 'footer_area',
'setting' => 'recentpost_title'
));
$wp_customize->add_setting('contact_title',array(
'default' => __('Contact Info','businessmentor'),
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control('contact_title',array(
'label' => __('Add title for footer contact info','businessmentor'),
'section' => 'footer_area',
'setting' => 'contact_title'
));
$wp_customize->add_setting('copyright_text',array(
'default' => __('2016 Business mentor. All Right Reserved','businessmentor'),
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control('copyright_text',array(
'label' => __('Change Copyright Text','businessmentor'),
'section' => 'footer_area',
'setting' => 'copyright_text'
));
$wp_customize->add_section('contact_sec',array(
'title' => __('Contact Details','businessmentor'),
'description' => __('Add you contact details here','businessmentor'),
'priority' => null
));
$wp_customize->add_setting('contact_add',array(
'default' => __('222 Queen DC, Canberra SPN 2000, Australia','businessmentor'),
'sanitize_callback' => 'wp_htmledit_pre'
));
$wp_customize->add_control( new WP_Customize_Textarea_Control( $wp_customize, 'contact_add', array(
'label' => __('Add contact address here','businessmentor'),
'section' => 'contact_sec',
'setting' => 'contact_add'
)
)
);
$wp_customize->add_setting('contact_no',array(
'default' => __(' +123 456 7890','businessmentor'),
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control('contact_no',array(
'label' => __('Add contact number here.','businessmentor'),
'section' => 'contact_sec',
'setting' => 'contact_no'
));
$wp_customize->add_setting('contact_mail',array(
'default' => 'info@company.com',
'sanitize_callback' => 'sanitize_email'
));
$wp_customize->add_control('contact_mail',array(
'label' => __('Add you email here','businessmentor'),
'section' => 'contact_sec',
'setting' => 'contact_mail'
));
$wp_customize->add_section( 'theme_doc_sec', array(
'title' => __('Theme Documentation', 'businessmentor'),
'priority' => null,
'description' => sprintf( __( 'For documentation and support check this link %s.', 'businessmentor' ), sprintf( '%2$s', esc_url( '"'.GRC_THEME_DOC.'"' ), __( 'Business mentor Documentation', 'businessmentor' ))),
) );
$wp_customize->add_setting('businessmentor_options[info]', array(
'type' => 'info_control',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'sanitize_text_field'
)
);
$wp_customize->add_control( new businessmentor_Info( $wp_customize, 'doc_section', array(
'section' => 'theme_doc_sec',
'settings' => 'businessmentor_options[info]',
'priority' => null
) )
);
}
add_action( 'customize_register', 'businessmentor_customize_register' );
//Integer
function businessmentor_sanitize_integer( $input ) {
if( is_numeric( $input ) ) {
return intval( $input );
}
}
function businessmentor_custom_css(){
?>