HEX
Server: Apache/2
System: Linux saturn 4.18.0-477.15.1.lve.2.el8.x86_64 #1 SMP Wed Aug 2 10:43:45 UTC 2023 x86_64
User: centuryt (1072)
PHP: 7.4.33
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/centuryt/public_html/wp-content/themes/woostify/inc/customizer/sections/color/color.php
<?php
/**
 * Color customizer
 *
 * @package woostify
 */

// Default values.
$defaults = woostify_options();

// options values
$options = woostify_options( false );

// Theme color.
$wp_customize->add_setting(
	'woostify_setting[theme_color]',
	array(
		'default'           => $defaults['theme_color'],
		'sanitize_callback' => 'woostify_sanitize_rgba_color',
		'type'              => 'option',
		'transport'         => 'postMessage',
	)
);
$wp_customize->add_control(
	new Woostify_Color_Group_Control(
		$wp_customize,
		'woostify_setting[theme_color]',
		array(
			'label'           => __( 'Theme Color', 'woostify' ),
			'section'         => 'woostify_color',
			'settings'        => array(
				'woostify_setting[theme_color]',
			),
			'enable_swatches' => false,
			'is_global_color' => true,
			'global_color' => $defaults['theme_color'],
		)
	)
);

// Text Color.
$wp_customize->add_setting(
	'woostify_setting[text_color]',
	array(
		'default'           => $defaults['text_color'],
		'sanitize_callback' => 'woostify_sanitize_rgba_color',
		'type'              => 'option',
		'transport'         => 'postMessage',
	)
);
$wp_customize->add_control(
	new Woostify_Color_Group_Control(
		$wp_customize,
		'woostify_setting[text_color]',
		array(
			'label'           => __( 'Text Color', 'woostify' ),
			'section'         => 'woostify_color',
			'settings'        => array(
				'woostify_setting[text_color]',
			),
			'enable_swatches' => false,
			'is_global_color' => true,
			'global_color' => $defaults['text_color'],
		)
	)
);

// Accent Color.
$wp_customize->add_setting(
	'woostify_setting[accent_color]',
	array(
		'default'           => $defaults['accent_color'],
		'sanitize_callback' => 'woostify_sanitize_rgba_color',
		'type'              => 'option',
		'transport'         => 'postMessage',
	)
);
$wp_customize->add_control(
	new Woostify_Color_Group_Control(
		$wp_customize,
		'woostify_setting[accent_color]',
		array(
			'label'           => __( 'Link / Accent Color', 'woostify' ),
			'section'         => 'woostify_color',
			'settings'        => array(
				'woostify_setting[accent_color]',
			),
			'enable_swatches' => false,
			'is_global_color' => true,
			'global_color' => $defaults['accent_color'],
		)
	)
);

// Link Hover Color.
$wp_customize->add_setting(
	'woostify_setting[link_hover_color]',
	array(
		'default'           => $defaults['link_hover_color'],
		'sanitize_callback' => 'woostify_sanitize_rgba_color',
		'type'              => 'option',
		'transport'         => 'postMessage',
	)
);
$wp_customize->add_control(
	new Woostify_Color_Group_Control(
		$wp_customize,
		'woostify_setting[link_hover_color]',
		array(
			'label'           => __( 'Link Hover Color', 'woostify' ),
			'section'         => 'woostify_color',
			'settings'        => array(
				'woostify_setting[link_hover_color]',
			),
			'enable_swatches' => false,
			'is_global_color' => true,
			'global_color' => $defaults['link_hover_color'],
		)
	)
);

// Extra Color 1.
$wp_customize->add_setting(
	'woostify_setting[extra_color_1]',
	array(
		'default'           => $defaults['extra_color_1'],
		'sanitize_callback' => 'woostify_sanitize_rgba_color',
		'type'              => 'option',
		'transport'         => 'postMessage',
	)
);
$wp_customize->add_control(
	new Woostify_Color_Group_Control(
		$wp_customize,
		'woostify_setting[extra_color_1]',
		array(
			'label'           => __( 'Extra Color 1', 'woostify' ),
			'section'         => 'woostify_color',
			'settings'        => array(
				'woostify_setting[extra_color_1]',
			),
			'enable_swatches' => false,
			'is_global_color' => true,
			'global_color' => $defaults['extra_color_1'],
		)
	)
);

// Extra Color 2.
$wp_customize->add_setting(
	'woostify_setting[extra_color_2]',
	array(
		'default'           => $defaults['extra_color_2'],
		'sanitize_callback' => 'woostify_sanitize_rgba_color',
		'type'              => 'option',
		'transport'         => 'postMessage',
	)
);
$wp_customize->add_control(
	new Woostify_Color_Group_Control(
		$wp_customize,
		'woostify_setting[extra_color_2]',
		array(
			'label'           => __( 'Extra Color 2', 'woostify' ),
			'section'         => 'woostify_color',
			'settings'        => array(
				'woostify_setting[extra_color_2]',
			),
			'enable_swatches' => false,
			'is_global_color' => true,
			'global_color' => $defaults['extra_color_2'],
		)
	)
);