get_setting( 'blogname' )->photobook_lite = 'postMessage'; $wp_customize->get_setting( 'blogdescription' )->photobook_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('headerbg-color', array( 'default' => '#000000', '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('headertxt-color', array( 'default' => '#ffffff', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control( new WP_Customize_Color_Control($wp_customize,'headertxt-color',array( 'description' => __('Select text color for top header and navigation menu.','buildcon-lite'), 'section' => 'colors', 'settings' => 'headertxt-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' )) ); // Top Header Start $wp_customize->add_section( 'tophead_section', array( 'title' => __('Top Header', 'buildcon-lite'), 'priority' => null, 'description' => __('Add top header info here.','buildcon-lite'), ) ); $wp_customize->add_setting('call-txt',array( 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('call-txt',array( 'type' => 'text', 'label' => __('Add phone number here.','buildcon-lite'), 'section' => 'tophead_section' )); $wp_customize->add_setting('email-txt',array( 'sanitize_callback' => 'sanitize_email' )); $wp_customize->add_control('email-txt',array( 'type' => 'text', 'label' => __('Add email here.','buildcon-lite'), 'section' => 'tophead_section' )); $wp_customize->add_setting('wrkhrs-txt',array( 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('wrkhrs-txt',array( 'type' => 'text', 'label' => __('Add timing here.','buildcon-lite'), 'section' => 'tophead_section' )); $wp_customize->add_setting('facebook',array( 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control('facebook',array( 'type' => 'url', 'label' => __('Add facebook link here.','buildcon-lite'), 'section' => 'tophead_section' )); $wp_customize->add_setting('google-plus',array( 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control('google-plus',array( 'type' => 'url', 'label' => __('Add google plus link here.','buildcon-lite'), 'section' => 'tophead_section' )); $wp_customize->add_setting('twitter',array( 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control('twitter',array( 'type' => 'url', 'label' => __('Add twitter link here.','buildcon-lite'), 'section' => 'tophead_section' )); $wp_customize->add_setting('linkedin',array( 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control('linkedin',array( 'type' => 'url', 'label' => __('Add linkedin link here.','buildcon-lite'), 'section' => 'tophead_section' )); $wp_customize->add_setting('pinterest',array( 'sanitize_callback' => 'esc_url_raw' )); $wp_customize->add_control('pinterest',array( 'type' => 'url', 'label' => __('Add pinterest link here.','buildcon-lite'), 'section' => 'tophead_section' )); $wp_customize->add_setting('hide_tophead',array( 'default' => true, 'sanitize_callback' => 'buildcon_lite_sanitize_checkbox', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( 'hide_tophead', array( 'settings' => 'hide_tophead', 'section' => 'tophead_section', 'label' => __('Check this to hide section.','buildcon-lite'), 'type' => 'checkbox' )); // Top Header End // 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' => __('Read More','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 // Welcome Section Start $wp_customize->add_section( 'homepage_welcome_section', array( 'title' => __('Welcome Section', 'buildcon-lite'), 'priority' => null, 'description' => __('Select pages for Welcome Section. This section will be displayed only when you select the static front page.','buildcon-lite'), ) ); $wp_customize->add_setting('wel-section-ttl',array( 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('wel-section-ttl',array( 'type' => 'text', 'label' => __('Add Section Title Here','buildcon-lite'), 'section' => 'homepage_welcome_section' )); $wp_customize->add_setting('wel-setting1',array( 'default' => '0', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'absint' )); $wp_customize->add_control('wel-setting1',array( 'type' => 'dropdown-pages', 'label' => __('Select page for first box','buildcon-lite'), 'section' => 'homepage_welcome_section' )); $wp_customize->add_setting('wel-setting2',array( 'default' => '0', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'absint' )); $wp_customize->add_control('wel-setting2',array( 'type' => 'dropdown-pages', 'label' => __('Select page for second box','buildcon-lite'), 'section' => 'homepage_welcome_section' )); $wp_customize->add_setting('wel-setting3',array( 'default' => '0', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'absint' )); $wp_customize->add_control('wel-setting3',array( 'type' => 'dropdown-pages', 'label' => __('Select page for third box','buildcon-lite'), 'section' => 'homepage_welcome_section' )); $wp_customize->add_setting('wel_more_text',array( 'default' => __('Read More','buildcon-lite'), 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('wel_more_text',array( 'label' => __('Add more link button text.','buildcon-lite'), 'section' => 'homepage_welcome_section', 'setting' => 'wel_more_text', 'type' => 'text' )); $wp_customize->add_setting('hide_wel_section',array( 'default' => true, 'sanitize_callback' => 'buildcon_lite_sanitize_checkbox', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( 'hide_wel_section', array( 'settings' => 'hide_wel_section', 'section' => 'homepage_welcome_section', 'label' => __('Check this to hide section.','buildcon-lite'), 'type' => 'checkbox' )); // Welcome Section End // Service Sertion Start $wp_customize->add_section( 'homepage_service_section', array( 'title' => __('Services Section', '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('ser-section-ttl',array( 'sanitize_callback' => 'sanitize_text_field' )); $wp_customize->add_control('ser-section-ttl',array( 'type' => 'text', 'label' => __('Add Section Title Here','buildcon-lite'), 'section' => 'homepage_service_section' )); $wp_customize->add_setting('ser-setting1',array( 'default' => '0', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'absint' )); $wp_customize->add_control('ser-setting1',array( 'type' => 'dropdown-pages', 'label' => __('Select page for first Service box','buildcon-lite'), 'section' => 'homepage_service_section' )); $wp_customize->add_setting('ser-setting2',array( 'default' => '0', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'absint' )); $wp_customize->add_control('ser-setting2',array( 'type' => 'dropdown-pages', 'label' => __('Select page for second Service box','buildcon-lite'), 'section' => 'homepage_service_section' )); $wp_customize->add_setting('ser-setting3',array( 'default' => '0', 'capability' => 'edit_theme_options', 'sanitize_callback' => 'absint' )); $wp_customize->add_control('ser-setting3',array( 'type' => 'dropdown-pages', 'label' => __('Select page for third Service box','buildcon-lite'), 'section' => 'homepage_service_section' )); $wp_customize->add_setting('hide_ser_section',array( 'default' => true, 'sanitize_callback' => 'buildcon_lite_sanitize_checkbox', 'capability' => 'edit_theme_options', )); $wp_customize->add_control( 'hide_ser_section', array( 'settings' => 'hide_ser_section', 'section' => 'homepage_service_section', 'label' => __('Check this to hide section.','buildcon-lite'), 'type' => 'checkbox' )); // Service Section End } add_action( 'customize_register', 'buildcon_lite_customize_register' ); function buildcon_lite_css(){ ?>