label ); ?>
get_setting( 'blogname' )->transport = 'postMessage';
$wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage';
$wp_customize->add_setting('color_scheme',array(
'default' => '#e65526',
'sanitize_callback' => 'sanitize_hex_color'
));
$wp_customize->add_control(
new WP_Customize_Color_Control($wp_customize,'color_scheme',array(
'label' => __('Color Scheme','organizing'),
'description' => __('More color options in PRO Version','organizing'),
'section' => 'colors',
'settings' => 'color_scheme'
))
);
// Slider Section
$wp_customize->add_section(
'slider_section',
array(
'title' => __('Slider Settings', 'organizing'),
'priority' => null,
'description' => __('Featured Image Size Should be same ( 1400x600 ) More slider settings available in PRO Version.','organizing'),
)
);
$wp_customize->add_setting('page-setting7',array(
'default' => '0',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'absint'
));
$wp_customize->add_control('page-setting7',array(
'type' => 'dropdown-pages',
'label' => __('Select page for slide one:','organizing'),
'section' => 'slider_section'
));
$wp_customize->add_setting('page-setting8',array(
'default' => '0',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'absint'
));
$wp_customize->add_control('page-setting8',array(
'type' => 'dropdown-pages',
'label' => __('Select page for slide two:','organizing'),
'section' => 'slider_section'
));
$wp_customize->add_setting('page-setting9',array(
'default' => '0',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'absint'
));
$wp_customize->add_control('page-setting9',array(
'type' => 'dropdown-pages',
'label' => __('Select page for slide three:','organizing'),
'section' => 'slider_section'
)); // Slider Section
$wp_customize->add_setting('slider_readmore',array(
'default' => null,
'sanitize_callback' => 'sanitize_text_field'
));
$wp_customize->add_control('slider_readmore',array(
'settings' => 'slider_readmore',
'section' => 'slider_section',
'label' => __('Add text for slide read more button','organizing'),
'type' => 'text'
));// Slider Read more
$wp_customize->add_setting('disabled_slides',array(
'default' => true,
'sanitize_callback' => 'sanitize_text_field',
'capability' => 'edit_theme_options',
));
$wp_customize->add_control( 'disabled_slides', array(
'settings' => 'disabled_slides',
'section' => 'slider_section',
'label' => __('Uncheck To Enable This Section','organizing'),
'type' => 'checkbox'
));//Disable Slider Section
// Homepage Who We Are Section
$wp_customize->add_section('section_first',array(
'title' => __('Who We Are Section','organizing'),
'description' => __('Select Page from the dropdown for who we are section','organizing'),
'priority' => null
));
$wp_customize->add_setting('page-setting1', array(
'default' => '0',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'absint'
));
$wp_customize->add_control( 'page-setting1',array('type' => 'dropdown-pages',
'section' => 'section_first',
));
$wp_customize->add_setting('disabled_welcomepg',array(
'default' => true,
'sanitize_callback' => 'sanitize_text_field',
'capability' => 'edit_theme_options',
));
$wp_customize->add_control( 'disabled_welcomepg', array(
'settings' => 'disabled_welcomepg',
'section' => 'section_first',
'label' => __('Uncheck To Enable This Section','organizing'),
'type' => 'checkbox'
));//Home Welcome Section
// Home Three Boxes Section
$wp_customize->add_section('section_second', array(
'title' => __('Homepage Three Boxes Section','organizing'),
'description' => __('Select Pages from the dropdown for homepage three boxes section','organizing'),
'priority' => null
));
$wp_customize->add_setting('page-column1', array(
'default' => '0',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'absint'
));
$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' => 'absint'
));
$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' => 'absint'
));
$wp_customize->add_control( 'page-column3',array('type' => 'dropdown-pages',
'section' => 'section_second',
));//end three column page boxes
$wp_customize->add_setting('disabled_pgboxes',array(
'default' => true,
'sanitize_callback' => 'sanitize_text_field',
'capability' => 'edit_theme_options',
));
$wp_customize->add_control( 'disabled_pgboxes', array(
'settings' => 'disabled_pgboxes',
'section' => 'section_second',
'label' => __('Uncheck To Enable This Section','organizing'),
'type' => 'checkbox'
));//Disable page boxes Section
}
add_action( 'customize_register', 'organizing_customize_register' );
function organizing_custom_css(){
?>