HEX
Server: Apache
System: Linux hc1-wd209-6459bb5d78-7wsj2 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64
User: w5726 (15726)
PHP: 7.3.33
Disabled: apache_child_terminate,apache_setenv,define_syslog_variables,diskfreespace,disk_free_space,disk_total_space,dl,exec,leak,link,openlog,passthru,pfsockopen,popen,posix_getgrnam,posix_getpgid,posix_getpwuid,posix_getpwnam,posix_getrlimit,posix_initgroups,posix_kill,posix_mkfifo,posix_mknod,posix_setpgid,posix_setsid,posix_setuid,posix_uname,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,putenv,readlink,register_tick_function,shell_exec,show_source,symlink,syslog,system
Upload Files
File: /data/web/virtuals/5726/virtual/www/wp-content/plugins/styles/classes/styles-control-color.php
<?php

class Styles_Control_Color extends Styles_Control {
	var $suffix = 'text color';
	var $template = '$selector { color: $value; }';

	public function __construct( $group, $element ) {
		parent::__construct( $group, $element );
	}

	/**
	 * Register item with $wp_customize
	 */
	public function add_item() {
		global $wp_customize;

		$wp_customize->add_setting( $this->setting, $this->get_setting_args() );

		$control = new WP_Customize_Color_Control(
			$wp_customize,
			Styles_Helpers::get_control_id( $this->id ),
			$this->get_control_args()
		);
		$wp_customize->add_control( $control );
	}

	/**
	 * Return CSS based on setting value
	 */
	public function get_css(){
		$selector = $this->selector;
		$value = $this->get_element_setting_value();

		$css = '';
		if ( $value ) {
			$args = array(
				'template' => $this->template,
				'value' => $value,
			);
			$css = $this->apply_template( $args );
		}

		// Filter effects final CSS output, but not postMessage updates
		return apply_filters( 'styles_css_color', $css );
	}

	public function post_message( $js ) {
		$js .= str_replace(
			array( '@setting@', '@selector@' ),
			array( $this->setting, $this->jquery_selector() ),
			file_get_contents( STYLES_DIR . '/js/post-message-part-color.js' )
		);

		return $js . PHP_EOL;
	}

}