get_setting( 'blogname' )->capture_lite = 'postMessage'; $wp_customize->get_setting( 'blogdescription' )->capture_lite = 'postMessage'; $wp_customize->add_setting('color_scheme', array( 'default' => '#ffbe00', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control( new WP_Customize_Color_Control($wp_customize,'color_scheme',array( 'label' => __('Color Scheme','buildcon-lite'), 'description' => __('Select color from here.','buildcon-lite'), 'section' => 'colors', 'settings' => 'color_scheme' )) ); $wp_customize->add_setting('topbar-color', array( 'default' => '#000000', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control( new WP_Customize_Color_Control($wp_customize,'topbar-color',array( 'description' => __('Select background color for topbar.','buildcon-lite'), 'section' => 'colors', 'settings' => 'topbar-color' )) ); $wp_customize->add_setting('headerbg-color', array( 'default' => '#131413', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control( new WP_Customize_Color_Control($wp_customize,'headerbg-color',array( 'description' => __('Select background color for header.','buildcon-lite'), 'section' => 'colors', 'settings' => 'headerbg-color' )) ); $wp_customize->add_setting('nav-color', array( 'default' => '#ffffff', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control( new WP_Customize_Color_Control($wp_customize,'nav-color',array( 'description' => __('Select color for navigation.','buildcon-lite'), 'section' => 'colors', 'settings' => 'nav-color' )) ); $wp_customize->add_setting('footer-color', array( 'default' => '#000000', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control( new WP_Customize_Color_Control($wp_customize,'footer-color',array( 'description' => __('Select background color for footer.','buildcon-lite'), 'section' => 'colors', 'settings' => 'footer-color' )) ); // Slider Section Start $wp_customize->add_section( 'slider_section', array( 'title' => __('Slider Settings', 'buildcon-lite'), 'priority' => null, 'description' => __('Recommended image size (1420x567). Slider will work only when you select the static front page.','buildcon-lite'), ) ); $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:','buildcon-lite'), '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:','buildcon-lite'), '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:','buildcon-lite'), 'section' => 'slider_section' )); $wp_customize->add_setting('slide_text',array( 'default' => __('Our Projects','buildcon-lite'), 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('slide_text',array( 'label' => __('Add slider link button text.','buildcon-lite'), 'section' => 'slider_section', 'setting' => 'slide_text', 'type' => 'text' )); $wp_customize->add_setting('hide_slider',array( 'default' => true, 'sanitize_callback' => 'buildcon_lite_sanitize_checkbox', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( 'hide_slider', array( 'settings' => 'hide_slider', 'section' => 'slider_section', 'label' => __('Check this to hide slider.','buildcon-lite'), 'type' => 'checkbox' )); // Slider Section End // Homepage Section Start $wp_customize->add_section( 'homepage_section', array( 'title' => __('Homepage Services', 'buildcon-lite'), 'priority' => null, 'description' => __('Select pages for homepage services. This section will be displayed only when you select the static front page.','buildcon-lite'), ) ); $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', 'label' => __('Select page for first Services box','buildcon-lite'), 'section' => 'homepage_section' )); $wp_customize->add_setting('page-setting2',array( 'default' => '0', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'absint' )); $wp_customize->add_control('page-setting2',array( 'type' => 'dropdown-pages', 'label' => __('Select page for second Services box','buildcon-lite'), 'section' => 'homepage_section' )); $wp_customize->add_setting('page-setting3',array( 'default' => '0', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'absint' )); $wp_customize->add_control('page-setting3',array( 'type' => 'dropdown-pages', 'label' => __('Select page for third Services box','buildcon-lite'), 'section' => 'homepage_section' )); $wp_customize->add_setting('hide_section',array( 'default' => true, 'sanitize_callback' => 'buildcon_lite_sanitize_checkbox', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( 'hide_section', array( 'settings' => 'hide_section', 'section' => 'homepage_section', 'label' => __('Check this to hide section.','buildcon-lite'), 'type' => 'checkbox' )); // Get a Quote $wp_customize->add_section( 'strip_section', array( 'title' => __('Quote Strip', 'buildcon-lite'), 'priority' => null, 'description' => __('Add Get a Quote strip content here.','buildcon-lite'), ) ); $wp_customize->add_setting('quote-text',array( 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('quote-text',array( 'type' => 'text', 'label' => __('Add text here.','buildcon-lite'), 'section' => 'strip_section' )); $wp_customize->add_setting('quote-link',array( 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('quote-link',array( 'type' => 'text', 'label' => __('Add link here.','buildcon-lite'), 'section' => 'strip_section' )); // Contact Section $wp_customize->add_section( 'contact_section', array( 'title' => __('Top Header', 'buildcon-lite'), 'priority' => null, 'description' => __('Add your top header info here.','buildcon-lite'), ) ); $wp_customize->add_setting('phone-txt',array( 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('phone-txt',array( 'type' => 'text', 'label' => __('Add phone number.','buildcon-lite'), 'section' => 'contact_section' )); $wp_customize->add_setting('email-txt',array( 'sanitize_callback' => 'sanitize_email' )); $wp_customize->add_control('email-txt',array( 'type' => 'text', 'label' => __('Add email address.','buildcon-lite'), 'section' => 'contact_section' )); $wp_customize->add_setting('time-txt',array( 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('time-txt',array( 'type' => 'text', 'label' => __('Add timing.','buildcon-lite'), 'section' => 'contact_section' )); $wp_customize->add_setting('fb-txt',array( 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('fb-txt',array( 'type' => 'text', 'label' => __('Add facebook link.','buildcon-lite'), 'section' => 'contact_section' )); $wp_customize->add_setting('gplus-txt',array( 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('gplus-txt',array( 'type' => 'text', 'label' => __('Add google plus link.','buildcon-lite'), 'section' => 'contact_section' )); $wp_customize->add_setting('twitt-txt',array( 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('twitt-txt',array( 'type' => 'text', 'label' => __('Add twitter link.','buildcon-lite'), 'section' => 'contact_section' )); $wp_customize->add_setting('linked-txt',array( 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('linked-txt',array( 'type' => 'text', 'label' => __('Add linkedin link.','buildcon-lite'), 'section' => 'contact_section' )); } add_action( 'customize_register', 'buildcon_lite_customize_register' ); function buildcon_lite_css(){ ?>