Select Your Theme Color';
$name = '_customize-color-radio-' . $this->id;
foreach($this->choices as $key => $value ) {
?>
Predefined Default Background';
$name = '_customize-radio-' . $this->id;
foreach($this->choices as $key => $value ) {
?>
';
} }
//Line Break
class WP_line_break_header_Customize_Control extends WP_Customize_Control {
public $type = 'new_menu';
function render_content()
{
echo '
';
} }
//Theme Layout Panel
$wp_customize->add_panel('callcenter_theme_style_setting', array(
'priority' => 200,
'capability' => 'edit_theme_options',
'theme_supports' => '',
'title' => __( 'Theme Style Palette', 'callcenter' ),
) );
/* Theme Header Style settings */
$wp_customize->add_section( 'callcenter_theme_skin_color', array(
'title' => __('Set Your Header Color', 'callcenter'),
'panel' => 'callcenter_theme_style_setting',
) );
$wp_customize->add_setting('callcenter_hedaer_skin_enable', array(
'default' => 'false',
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control('callcenter_hedaer_skin_enable', array(
'label' => __('Enable/Disable Header Custom Color Feature','callcenter'),
'section' => 'callcenter_theme_skin_color',
'type' => 'radio',
'choices' => array('true' => 'On','false' => 'Off',)
) );
//Line break
$wp_customize->add_setting(
'callcenter_break_section', array(
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control(new WP_line_break_Customize_Control($wp_customize,'callcenter_break_section', array(
'section' => 'callcenter_theme_skin_color',
'type' => 'radio',
'settings' => 'callcenter_break_section',)
) );
//header background color
$wp_customize->add_setting('callcenter_header_background', array(
'default' => '#fff',
'sanitize_callback' => 'esc_url_raw',
) );
$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize,'callcenter_header_background', array(
'label' => __('Header Background Color', 'callcenter' ),
'section' => 'callcenter_theme_skin_color',
'settings' => 'callcenter_header_background',)
) );
//Site Title Text color
$wp_customize->add_setting('callcenter_site_title_color', array(
'default' => '#f26200',
'sanitize_callback' => 'esc_url_raw',
) );
$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize,'callcenter_site_title_color', array(
'label' => __('Site Title Text Color', 'callcenter' ),
'section' => 'callcenter_theme_skin_color',
'settings' => 'callcenter_site_title_color',)
) );
//Line break
$wp_customize->add_setting(
'callcenter_menu_setting_section',
array('sanitize_callback' => 'sanitize_text_field',)
);
$wp_customize->add_control(new WP_line_break_header_Customize_Control($wp_customize,'callcenter_menu_setting_section', array(
'section' => 'callcenter_theme_skin_color',
'type' => 'radio',
'settings' => 'callcenter_menu_setting_section',)
) );
//Menu Background color
$wp_customize->add_setting('callcenter_menu_background', array(
'default' => '#fff',
'sanitize_callback' => 'esc_url_raw',
) );
$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize,'callcenter_menu_background', array(
'label' => __('Menu Background Color', 'callcenter' ),
'section' => 'callcenter_theme_skin_color',
'settings' => 'callcenter_menu_background',)
) );
//Menu Background Hover color
$wp_customize->add_setting('callcenter_menu_background_hover', array(
'default' => '#f5f5f5',
'sanitize_callback' => 'esc_url_raw',
) );
$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize,'callcenter_menu_background_hover', array(
'label' => __('Menu Background Hover/Active Color', 'callcenter' ),
'section' => 'callcenter_theme_skin_color',
'settings' => 'callcenter_menu_background_hover',)
) );
//Menu Border color Bottom color
$wp_customize->add_setting('callcenter_menu_border_color', array(
'default' => '#fff',
'sanitize_callback' => 'esc_url_raw',
) );
$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize,'callcenter_menu_border_color', array(
'label' => __('Menu Border Bottom color', 'callcenter' ),
'section' => 'callcenter_theme_skin_color',
'settings' => 'callcenter_menu_border_color',)
) );
//Menu Border color Bottom Hover/Active color
$wp_customize->add_setting('callcenter_menu_border_active_color', array(
'default' => '#f26200',
'sanitize_callback' => 'esc_url_raw',
) );
$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize,'callcenter_menu_border_active_color', array(
'label' => __('Menu Border Bottom Hover/Active color', 'callcenter' ),
'section' => 'callcenter_theme_skin_color',
'settings' => 'callcenter_menu_border_active_color',)
) );
//Menu text color & Menu active color
$wp_customize->add_setting('callcenter_menu_color', array(
'default' => '#333',
'sanitize_callback' => 'esc_url_raw',
) );
$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize,'callcenter_menu_color', array(
'label' => __('Menu Text Color', 'callcenter' ),
'section' => 'callcenter_theme_skin_color',
'settings' => 'callcenter_menu_color',)
) );
//Menu active color-radio-
$wp_customize->add_setting('callcenter_menu_active_color', array(
'default' => '#f26200',
'sanitize_callback' => 'esc_url_raw',
) );
$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize,'callcenter_menu_active_color', array(
'label' => __('Menu Text Hover/Active Color', 'callcenter' ),
'section' => 'callcenter_theme_skin_color',
'settings' => 'callcenter_menu_active_color',)
) );
//Sub Menu Background Color
$wp_customize->add_setting('callcenter_menu_submenu_background', array(
'default' => '#fff',
'sanitize_callback' => 'esc_url_raw',
) );
$wp_customize->add_control(new WP_Customize_Color_Control( $wp_customize,'callcenter_menu_submenu_background', array(
'label' => __('Sub Menu Background Color', 'callcenter' ),
'section' => 'callcenter_theme_skin_color',
'settings' => 'callcenter_menu_submenu_background',)
) );
//Sub Menu Hover Color
$wp_customize->add_setting('callcenter_menu_submenu_background_hover', array(
'default' => '#f26200',
'sanitize_callback' => 'esc_url_raw',
) );
$wp_customize->add_control(new WP_Customize_Color_Control( $wp_customize,'callcenter_menu_submenu_background_hover', array(
'label' => __('Sub Menu Background Hover color', 'callcenter' ),
'section' => 'callcenter_theme_skin_color',
'settings' => 'callcenter_menu_submenu_background_hover',)
) );
//Sub Menu text Color
$wp_customize->add_setting('callcenter_menu_submenu_color', array(
'default' => '#333',
'sanitize_callback' => 'esc_url_raw',
) );
$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize,'callcenter_menu_submenu_color', array(
'label' => __('Sub Menu Text Color', 'callcenter' ),
'section' => 'callcenter_theme_skin_color',
'settings' => 'callcenter_menu_submenu_color',)
) );
//Line break
$wp_customize->add_setting('callcenter_menu_setting_section', array(
'sanitize_callback' => 'sanitize_text_field',
'sanitize_callback' => 'esc_url_raw',
));
$wp_customize->add_control(new WP_line_break_header_Customize_Control($wp_customize,'callcenter_menu_setting_section', array(
'section' => 'callcenter_theme_skin_color',
'type' => 'radio',
'settings' => 'callcenter_menu_setting_section',)
) );
/* Theme Footer Style settings */
$wp_customize->add_section( 'callcenter_footer_color' , array(
'title' => __('Set Your Footer Color', 'callcenter'),
'panel' => 'callcenter_theme_style_setting',
) );
//Footer Enable Color
$wp_customize->add_setting('callcenter_footer_color_enable', array(
'default' => 'false',
'sanitize_callback' => 'sanitize_text_field',
'sanitize_callback' => 'esc_url_raw',
) );
$wp_customize->add_control('callcenter_footer_color_enable', array(
'label' => __('Enable/Disable Footer Custom Color Feature','callcenter'),
'section' => 'callcenter_footer_color',
'type' => 'radio',
'choices' => array('true' => 'On','false' => 'Off',)
) );
//Footer background
$wp_customize->add_setting('callcenter_footer_background', array(
'default' => '#202830',
'sanitize_callback' => 'esc_url_raw',
) );
$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize,'callcenter_footer_background', array(
'label' => __('Footer Background Color ', 'callcenter' ),
'section' => 'callcenter_footer_color',
'settings' => 'callcenter_footer_background',)
) );
//Footer Widget Heading color
$wp_customize->add_setting('callcenter_footer_head_color', array(
'default' => '#fff',
'sanitize_callback' => 'esc_url_raw',
) );
$wp_customize->add_control(new WP_Customize_Color_Control($wp_customize,'callcenter_footer_head_color', array(
'label' => __('Footer Widget Heading Color ', 'callcenter' ),
'section' => 'callcenter_footer_color',
'settings' => 'callcenter_footer_head_color',)
) );
//Footer color
$wp_customize->add_setting('callcenter_footer_text_color', array(
'default' => '#969ea7',
'sanitize_callback' => 'esc_url_raw',
) );
$wp_customize->add_control( new WP_Customize_Color_Control($wp_customize,'callcenter_footer_text_color', array(
'label' => __('Footer Text Color ', 'callcenter' ),
'section' => 'callcenter_footer_color',
'settings' => 'callcenter_footer_text_color',)
) );
//Footer Copyright background
$wp_customize->add_setting('callcenter_footer_copy_background', array(
'default' => '#1a2128',
'sanitize_callback' => 'esc_url_raw',
) );
$wp_customize->add_control(new WP_Customize_Color_Control( $wp_customize,'callcenter_footer_copy_background', array(
'label' => __('Footer Copyright Background Color ', 'callcenter' ),
'section' => 'callcenter_footer_color',
'settings' => 'callcenter_footer_copy_background',)
) );
//Footer Copyright Color
$wp_customize->add_setting('callcenter_footer_copy_color', array(
'default' => '#969ea7',
'sanitize_callback' => 'esc_url_raw',
) );
$wp_customize->add_control(new WP_Customize_Color_Control( $wp_customize,'callcenter_footer_copy_color', array(
'label' => __('Footer Copyright Text Color ', 'callcenter' ),
'section' => 'callcenter_footer_color',
'settings' => 'callcenter_footer_copy_color',)
) );
//Line break
$wp_customize->add_setting(
'callcenter_footer_setting_section', array(
'sanitize_callback' => 'sanitize_text_field',
) );
$wp_customize->add_control(new WP_line_break_header_Customize_Control($wp_customize,'callcenter_footer_setting_section', array(
'section' => 'callcenter_footer_color',
'type' => 'radio',
'settings' => 'callcenter_footer_setting_section',)
) );
/* Theme Footer Style settings end */
}
add_action( 'customize_register', 'callcenter_style_customizer' );