selective_refresh) ? 'postMessage' : 'refresh'; /* Home Page Panel */ $wp_customize->add_panel('colors_back_settings', array( 'priority' => 108, 'capability' => 'edit_theme_options', 'title' => esc_html__('Colors & Background', 'busicare'), )); $wp_customize->add_section("background_image", array( 'title' => esc_html__('Background Image', 'busicare'), 'panel' => 'colors_back_settings', )); /* ------------------------------------------------ */ /* Header Color Settings */ $wp_customize->add_section('header_color_settings', array( 'title' => esc_html__('Header', 'busicare'), 'panel' => 'colors_back_settings', )); // Header enable/disable $wp_customize->add_setting( 'header_clr_enable', array('capability' => 'edit_theme_options', 'default' => false, 'sanitize_callback' => 'busicare_sanitize_checkbox', )); $wp_customize->add_control( 'header_clr_enable', array( 'type' => 'checkbox', 'label' => esc_html__('Click here to apply the below color settings', 'busicare'), 'section' => 'header_color_settings', ) ); class WP_Sitetitle_Color_Customize_Control extends WP_Customize_Control { public $type = 'new_menu'; /** * Render the control's content. */ public function render_content() { ?>

add_setting( 'site_title_color', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control(new WP_Sitetitle_Color_Customize_Control($wp_customize, 'site_title_color', array( 'section' => 'header_color_settings', 'setting' => 'site_title_color', )) ); //Site title link color $wp_customize->add_setting('site_title_link_color', array( 'default' => '#061018', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'site_title_link_color', array( 'label' => esc_html__('Link Color', 'busicare'), 'section' => 'header_color_settings', 'settings' => 'site_title_link_color',) )); //Site title link hover color $wp_customize->add_setting('site_title_link_hover_color', array( 'default' => '#22a2c4', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'site_title_link_hover_color', array( 'label' => esc_html__('Link Hover Color', 'busicare'), 'section' => 'header_color_settings', 'settings' => 'site_title_link_hover_color',) )); class WP_Sitetagline_Color_Customize_Control extends WP_Customize_Control { public $type = 'new_menu'; /** * Render the control's content. */ public function render_content() { ?>

add_setting( 'site_tagline_color', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control(new WP_Sitetagline_Color_Customize_Control($wp_customize, 'site_tagline_color', array( 'section' => 'header_color_settings', 'setting' => 'site_tagline_color', )) ); //Site tagline text color $wp_customize->add_setting('site_tagline_text_color', array( 'default' => '#1c314c', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'site_tagline_text_color', array( 'label' => esc_html__('Text Color', 'busicare'), 'section' => 'header_color_settings', 'settings' => 'site_tagline_text_color',) )); //Site tagline text hover color $wp_customize->add_setting('site_tagline_hover_color', array( 'default' => '#22a2c4', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'site_tagline_hover_color', array( 'label' => esc_html__('Text Hover Color', 'busicare'), 'section' => 'header_color_settings', 'settings' => 'site_tagline_hover_color',) )); /* ------------------------------------------------ */ /* Primary Menu Color Settings */ $wp_customize->add_section('primary_menu_color_settings', array( 'title' => esc_html__('Primary Menu', 'busicare'), 'panel' => 'colors_back_settings', )); class WP_Menus_Color_Customize_Control extends WP_Customize_Control { public $type = 'new_menu'; /** * Render the control's content. */ public function render_content() { ?>

add_setting( 'menus_color', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control(new WP_Menus_Color_Customize_Control($wp_customize, 'menus_color', array( 'section' => 'primary_menu_color_settings', 'setting' => 'menus_color', )) ); // enable/disable $wp_customize->add_setting( 'apply_menu_clr_enable', array('capability' => 'edit_theme_options', 'default' => false, 'sanitize_callback' => 'busicare_sanitize_checkbox', )); $wp_customize->add_control( 'apply_menu_clr_enable', array( 'type' => 'checkbox', 'label' => esc_html__('Click here to apply the below color settings', 'busicare'), 'section' => 'primary_menu_color_settings', ) ); //Menus text/link color $wp_customize->add_setting('menus_link_color', array( 'default' => '#061018', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'menus_link_color', array( 'label' => esc_html__('Text/Link Color', 'busicare'), 'section' => 'primary_menu_color_settings', 'settings' => 'menus_link_color',) )); //Menus text/link hover color $wp_customize->add_setting('menus_link_hover_color', array( 'default' => '#22a2c4', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'menus_link_hover_color', array( 'label' => esc_html__('Link Hover Color', 'busicare'), 'section' => 'primary_menu_color_settings', 'settings' => 'menus_link_hover_color',) )); //Menus text/link active color $wp_customize->add_setting('menus_link_active_color', array( 'default' => '#22a2c4', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'menus_link_active_color', array( 'label' => esc_html__('Active Link Color', 'busicare'), 'section' => 'primary_menu_color_settings', 'settings' => 'menus_link_active_color',) )); class WP_Submenus_Color_Customize_Control extends WP_Customize_Control { public $type = 'new_menu'; /** * Render the control's content. */ public function render_content() { ?>

add_setting( 'submenus_color', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control(new WP_Submenus_Color_Customize_Control($wp_customize, 'submenus_color', array( 'section' => 'primary_menu_color_settings', 'setting' => 'submenus_color', )) ); //Submenus Background color $wp_customize->add_setting('submenus_background_color', array( 'default' => '#fff', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'submenus_background_color', array( 'label' => esc_html__('Background Color', 'busicare'), 'section' => 'primary_menu_color_settings', 'settings' => 'submenus_background_color',) )); //Submenus text/link color $wp_customize->add_setting('submenus_link_color', array( 'default' => '#212529', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'submenus_link_color', array( 'label' => esc_html__('Text/Link Color', 'busicare'), 'section' => 'primary_menu_color_settings', 'settings' => 'submenus_link_color',) )); //Submenus text/link hover color $wp_customize->add_setting('submenus_link_hover_color', array( 'default' => '#22a2c4', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'submenus_link_hover_color', array( 'label' => esc_html__('Link Hover Color', 'busicare'), 'section' => 'primary_menu_color_settings', 'settings' => 'submenus_link_hover_color',) )); /* ------------------------------------------------ */ /* Banner Color Settings */ $wp_customize->add_section('banner_color_settings', array( 'title' => esc_html__('Banner', 'busicare'), 'panel' => 'colors_back_settings', )); class WP_Banner_Color_Customize_Control extends WP_Customize_Control { public $type = 'new_menu'; /** * Render the control's content. */ public function render_content() { ?>

add_setting( 'banner_title_color', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control(new WP_Banner_Color_Customize_Control($wp_customize, 'banner_title_color', array( 'section' => 'banner_color_settings', 'setting' => 'banner_title_color', )) ); //Banner title color $wp_customize->add_setting('banner_text_color', array( 'default' => '#fff', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'banner_text_color', array( 'label' => esc_html__('Title Color', 'busicare'), 'section' => 'banner_color_settings', 'settings' => 'banner_text_color',) )); class WP_Breadcrumb_Color_Customize_Control extends WP_Customize_Control { public $type = 'new_menu'; /** * Render the control's content. */ public function render_content() { ?>

add_setting('enable_brd_link_clr_setting', array( 'default' => false, 'sanitize_callback' => 'busicare_sanitize_checkbox', )); $wp_customize->add_control('enable_brd_link_clr_setting', array( 'label' => esc_html__('Click here to apply the below color settings', 'busicare'), 'section' => 'banner_color_settings', 'type' => 'checkbox', )); $wp_customize->add_setting( 'breadcrumb_title_color', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'sanitize_text_field', ) ); $wp_customize->add_control(new WP_Breadcrumb_Color_Customize_Control($wp_customize, 'breadcrumb_title_color', array( 'section' => 'banner_color_settings', 'setting' => 'breadcrumb_title_color', )) ); //Breadcrumb title link color $wp_customize->add_setting('breadcrumb_title_link_color', array( 'default' => '#ffffff', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'breadcrumb_title_link_color', array( 'label' => esc_html__('Link Color', 'busicare'), 'section' => 'banner_color_settings', 'settings' => 'breadcrumb_title_link_color',) )); //Breadcrumb title link hover color $wp_customize->add_setting('breadcrumb_title_link_hover_color', array( 'default' => '#22a2c4', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'breadcrumb_title_link_hover_color', array( 'label' => esc_html__('Link Hover Color', 'busicare'), 'section' => 'banner_color_settings', 'settings' => 'breadcrumb_title_link_hover_color',) )); /* ------------------------------------------------ */ /* Content Color Settings */ $wp_customize->add_section('content_color_settings', array( 'title' => esc_html__('Content', 'busicare'), 'panel' => 'colors_back_settings', )); //H1 color $wp_customize->add_setting('h1_color', array( 'default' => '#1c314c', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'h1_color', array( 'label' => esc_html__('H1 Color', 'busicare'), 'section' => 'content_color_settings', 'settings' => 'h1_color',) )); //H2 color $wp_customize->add_setting('h2_color', array( 'default' => '#1c314c', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'h2_color', array( 'label' => esc_html__('H2 Color', 'busicare'), 'section' => 'content_color_settings', 'settings' => 'h2_color',) )); //H3 color $wp_customize->add_setting('h3_color', array( 'default' => '#1c314c', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'h3_color', array( 'label' => esc_html__('H3 Color', 'busicare'), 'section' => 'content_color_settings', 'settings' => 'h3_color',) )); //H4 color $wp_customize->add_setting('h4_color', array( 'default' => '#1c314c', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'h4_color', array( 'label' => esc_html__('H4 Color', 'busicare'), 'section' => 'content_color_settings', 'settings' => 'h4_color',) )); //H5 color $wp_customize->add_setting('h5_color', array( 'default' => '#1c314c', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'h5_color', array( 'label' => esc_html__('H5 Color', 'busicare'), 'section' => 'content_color_settings', 'settings' => 'h5_color',) )); //H6 color $wp_customize->add_setting('h6_color', array( 'default' => '#1c314c', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'h6_color', array( 'label' => esc_html__('H6 Color', 'busicare'), 'section' => 'content_color_settings', 'settings' => 'h6_color',) )); //P color $wp_customize->add_setting('p_color', array( 'default' => '#777777', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'p_color', array( 'label' => esc_html__('Paragraph Text Color', 'busicare'), 'section' => 'content_color_settings', 'settings' => 'p_color',) )); /* ------------------------------------------------ */ /* Sidebar Widget Color Settings */ $wp_customize->add_section('sidebar_widget_color_settings', array( 'title' => esc_html__('Sidebar', 'busicare'), 'panel' => 'colors_back_settings', )); // enable/disable Callout section from service page $wp_customize->add_setting( 'apply_sibar_link_hover_clr_enable', array('capability' => 'edit_theme_options', 'default' => false, 'sanitize_callback' => 'busicare_sanitize_checkbox', )); $wp_customize->add_control( 'apply_sibar_link_hover_clr_enable', array( 'type' => 'checkbox', 'label' => esc_html__('Click here to apply the below color settings', 'busicare'), 'section' => 'sidebar_widget_color_settings', ) ); //Sidebar widget title color $wp_customize->add_setting('sidebar_widget_title_color', array( 'default' => '#ffffff', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'sidebar_widget_title_color', array( 'label' => esc_html__('Title Color', 'busicare'), 'section' => 'sidebar_widget_color_settings', 'settings' => 'sidebar_widget_title_color',) )); //Sidebar widget text color $wp_customize->add_setting('sidebar_widget_text_color', array( 'default' => '#777777', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'sidebar_widget_text_color', array( 'label' => esc_html__('Text Color', 'busicare'), 'section' => 'sidebar_widget_color_settings', 'settings' => 'sidebar_widget_text_color',) )); //Sidebar widget link color $wp_customize->add_setting('sidebar_widget_link_color', array( 'default' => '#777777', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'sidebar_widget_link_color', array( 'label' => esc_html__('Link Color', 'busicare'), 'section' => 'sidebar_widget_color_settings', 'settings' => 'sidebar_widget_link_color',) )); //Sidebar widget link hover color $wp_customize->add_setting('sidebar_widget_link_hover_color', array( 'default' => '#22a2c4', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'sidebar_widget_link_hover_color', array( 'label' => esc_html__('Link Hover Color', 'busicare'), 'section' => 'sidebar_widget_color_settings', 'settings' => 'sidebar_widget_link_hover_color',) )); /* ------------------------------------------------ */ /* Footer Widget Color Settings */ $wp_customize->add_section('footer_widget_color_settings', array( 'title' => esc_html__('Footer Widgets', 'busicare'), 'panel' => 'colors_back_settings', )); // enable/disable Callout section from service page $wp_customize->add_setting( 'apply_ftrsibar_link_hover_clr_enable', array('capability' => 'edit_theme_options', 'default' => false, 'sanitize_callback' => 'busicare_sanitize_checkbox', )); $wp_customize->add_control( 'apply_ftrsibar_link_hover_clr_enable', array( 'type' => 'checkbox', 'label' => esc_html__('Click here to apply the below color settings', 'busicare'), 'section' => 'footer_widget_color_settings', ) ); //Footer widget background color $wp_customize->add_setting('footer_widget_background_color', array( 'default' => '#21202e', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'footer_widget_background_color', array( 'label' => esc_html__('Background Color', 'busicare'), 'section' => 'footer_widget_color_settings', 'settings' => 'footer_widget_background_color',) )); //Footer widget title color $wp_customize->add_setting('footer_widget_title_color', array( 'default' => '#22a2c4', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'footer_widget_title_color', array( 'label' => esc_html__('Title Color', 'busicare'), 'section' => 'footer_widget_color_settings', 'settings' => 'footer_widget_title_color',) )); //Footer widget text color $wp_customize->add_setting('footer_widget_text_color', array( 'default' => '#fff', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'footer_widget_text_color', array( 'label' => esc_html__('Text Color', 'busicare'), 'section' => 'footer_widget_color_settings', 'settings' => 'footer_widget_text_color',) )); //Footer widget link color $wp_customize->add_setting('footer_widget_link_color', array( 'default' => '#ffffff', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'footer_widget_link_color', array( 'label' => esc_html__('Link Color', 'busicare'), 'section' => 'footer_widget_color_settings', 'settings' => 'footer_widget_link_color',) )); //Footer widget link hover color $wp_customize->add_setting('footer_widget_link_hover_color', array( 'default' => '#22a2c4', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'footer_widget_link_hover_color', array( 'label' => esc_html__('Link Hover Color', 'busicare'), 'section' => 'footer_widget_color_settings', 'settings' => 'footer_widget_link_hover_color',) )); } add_action('customize_register', 'busicare_color_back_settings_customizer');