default ); } function bizgrowth_sanitize_checkbox( $checked ) { // Boolean check. return ( ( isset( $checked ) && true == $checked ) ? true : false ); } $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; //Layout Options $wp_customize->add_section('layout_option',array( 'title' => __('Site Layout','bizgrowth'), 'priority' => 1, )); $wp_customize->add_setting('sitebox_layout',array( 'sanitize_callback' => 'bizgrowth_sanitize_checkbox', )); $wp_customize->add_control( 'sitebox_layout', array( 'section' => 'layout_option', 'label' => __('Check to Box Layout','bizgrowth'), 'description' => __('if you want to box layout please check the Box Layout Option.','bizgrowth'), 'type' => 'checkbox' )); //Layout Section $wp_customize->add_setting('color_scheme',array( 'default' => '#0294cf', 'sanitize_callback' => 'sanitize_hex_color' )); $wp_customize->add_control( new WP_Customize_Color_Control($wp_customize,'color_scheme',array( 'label' => __('Color Scheme','bizgrowth'), 'description' => __('More color options in PRO Version','bizgrowth'), 'section' => 'colors', 'settings' => 'color_scheme' )) ); // Slider Section $wp_customize->add_section( 'slider_section', array( 'title' => __('Slider Section', 'bizgrowth'), 'priority' => null, 'description' => __('Default image size for slider is 1400 x 827 pixel.','bizgrowth'), )); $wp_customize->add_setting('page-setting7',array( 'default' => '0', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'bizgrowth_sanitize_dropdown_pages' )); $wp_customize->add_control('page-setting7',array( 'type' => 'dropdown-pages', 'label' => __('Select page for slide one:','bizgrowth'), 'section' => 'slider_section' )); $wp_customize->add_setting('page-setting8',array( 'default' => '0', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'bizgrowth_sanitize_dropdown_pages' )); $wp_customize->add_control('page-setting8',array( 'type' => 'dropdown-pages', 'label' => __('Select page for slide two:','bizgrowth'), 'section' => 'slider_section' )); $wp_customize->add_setting('page-setting9',array( 'default' => '0', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'bizgrowth_sanitize_dropdown_pages' )); $wp_customize->add_control('page-setting9',array( 'type' => 'dropdown-pages', 'label' => __('Select page for slide three:','bizgrowth'), '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( 'type' => 'text', 'label' => __('Add slider Read more button name here','bizgrowth'), 'section' => 'slider_section', 'setting' => 'slider_readmore' )); // Slider Read More Button Text $wp_customize->add_setting('show_slider',array( 'default' => false, 'sanitize_callback' => 'bizgrowth_sanitize_checkbox', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( 'show_slider', array( 'settings' => 'show_slider', 'section' => 'slider_section', 'label' => __('Check To Show This Section','bizgrowth'), 'type' => 'checkbox' ));//Show Slider Section // Four Boxes Section $wp_customize->add_section('section_second', array( 'title' => __('Homepage Four Boxes Section','bizgrowth'), 'description' => __('Select pages from the dropdown for four boxes services section','bizgrowth'), 'priority' => null )); $wp_customize->add_setting('page-column1',array( 'default' => '0', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'bizgrowth_sanitize_dropdown_pages' )); $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' => 'bizgrowth_sanitize_dropdown_pages' )); $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' => 'bizgrowth_sanitize_dropdown_pages' )); $wp_customize->add_control( 'page-column3',array( 'type' => 'dropdown-pages', 'section' => 'section_second', )); $wp_customize->add_setting('page-column4',array( 'default' => '0', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'bizgrowth_sanitize_dropdown_pages' )); $wp_customize->add_control( 'page-column4',array( 'type' => 'dropdown-pages', 'section' => 'section_second', )); $wp_customize->add_setting('show_servicesbox',array( 'default' => false, 'sanitize_callback' => 'bizgrowth_sanitize_checkbox', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( 'show_servicesbox', array( 'settings' => 'show_servicesbox', 'section' => 'section_second', 'label' => __('Check To Show This Section','bizgrowth'), 'type' => 'checkbox' ));//Show four boxes Section // Welcome section $wp_customize->add_section('section_first', array( 'title' => __('Homepage Responsive Design Section','bizgrowth'), 'description' => __('Select Pages from the dropdown for welcome section','bizgrowth'), 'priority' => null )); $wp_customize->add_setting('page-setting1',array( 'default' => '0', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'bizgrowth_sanitize_dropdown_pages' )); $wp_customize->add_control( 'page-setting1',array( 'type' => 'dropdown-pages', 'section' => 'section_first', )); $wp_customize->add_setting('show_welcome_page',array( 'default' => false, 'sanitize_callback' => 'bizgrowth_sanitize_checkbox', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( 'show_welcome_page', array( 'settings' => 'show_welcome_page', 'section' => 'section_first', 'label' => __('Check To Show This Section','bizgrowth'), 'type' => 'checkbox' ));//Show Welcome Page Section $wp_customize->add_section('social_sec',array( 'title' => __('Footer social icons','bizgrowth'), 'description' => __( 'Add social icons link here to display icons in footer', 'bizgrowth' ), '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','bizgrowth'), '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','bizgrowth'), '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','bizgrowth'), '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','bizgrowth'), 'section' => 'social_sec', 'setting' => 'linked_link' )); $wp_customize->add_setting('show_socialicons',array( 'default' => false, 'sanitize_callback' => 'bizgrowth_sanitize_checkbox', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( 'show_socialicons', array( 'settings' => 'show_socialicons', 'section' => 'social_sec', 'label' => __('Check To show This Section','bizgrowth'), 'type' => 'checkbox' ));//Show Social icons Section } add_action( 'customize_register', 'bizgrowth_customize_register' ); function bizgrowth_custom_css(){ ?>