HEX
Server: Apache
System: Linux webm020.cluster128.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: thanexcelr (29537)
PHP: 7.3.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/thanexcelr/www/wp-content/themes/fifteen/framework/customizer/skins.php
<?php
function fifteen_customize_register_skins( $wp_customize ) {
	
	$wp_customize->get_section('colors')->panel = "fifteen_design_panel";
	$wp_customize->get_section('background_image')->panel = "fifteen_design_panel";
	$wp_customize->get_section('custom_css')->panel = "fifteen_design_panel";
	//Replace Header Text Color with, separate colors for Title and Description
	$wp_customize->get_control('header_textcolor')->label = __('Site Title Color','fifteen');
	$wp_customize->get_setting('header_textcolor')->default = "#ffffff";
	$wp_customize->get_section('colors')->title  = __('Theme Skins & Colors', 'fifteen');

	$wp_customize->add_setting('fifteen_header_desccolor', array(
	    'default'     => '#ffffff',
	    'sanitize_callback' => 'sanitize_hex_color',
	));

	$wp_customize->add_control(new WP_Customize_Color_Control(
		$wp_customize,
		'fifteen_header_desccolor', array(
			'label' => __('Site Tagline Color','fifteen'),
			'section' => 'colors',
			'settings' => 'fifteen_header_desccolor',
			'type' => 'color'
		) )
	);

//Select the Default Theme Skin
        $wp_customize->add_setting(
            'fifteen_skin',
            array(
                'default'=> 'default',
                'sanitize_callback' => 'fifteen_sanitize_skin'
            )
        );

        $skins = array( 'default' => __('Default(Gray)','fifteen'),
            'orange' =>  __('Dark Orange','fifteen'),
            'pink' => __('Pink','fifteen'),
            'slick' => __('Slick','fifteen'),
        );

        $wp_customize->add_control(
            'fifteen_skin',array(
                'settings' => 'fifteen_skin',
                'section'  => 'colors',
                'label' => __('Choose Skin', 'fifteen'),
                'description' => __('Fifteen theme has 3 skins Orange, Pink and Slick', 'fifteen'),
                'type' => 'select',
                'choices' => $skins,
            )
        );

        function fifteen_sanitize_skin( $input ) {
            if ( in_array($input, array('default','orange','slick','pink') ) )
                return $input;
            else
                return '';
        }
}
add_action( 'customize_register', 'fifteen_customize_register_skins' );