inc/customizer/colors.php
public function add_color_inline_css( $name, array $args ) {

		if ( empty( $name ) || empty( $args['css'] ) ) {

			return;

		}

		$default = $this->get_default_color( $name, 'default' );
		$hex     = trim( get_theme_mod( $name, $default ), '#' );
		$css     = sprintf( Rock_Customizer::parse_css_rules( $args['css'] ), '#' . $hex );

		if ( ! empty( $args['rgba_css'] ) ) {

			$css .= sprintf(
				Rock_Customizer::parse_css_rules( $args['rgba_css'] ),
				implode( ', ', rock_hex2rgb( $hex ) )
			);

		}

		wp_add_inline_style( Rock_Customizer::$stylesheet, $css );

	}
public function add_color_inline_css( $name, array $args ) {

		if ( empty( $name ) || empty( $args['css'] ) ) {

			return;

		}

		$default = $this->get_default_color( $name, 'default' );
		$hex     = trim( get_theme_mod( $name, $default ), '#' );
		$css     = sprintf( Rock_Customizer::parse_css_rules( $args['css'] ), '#' . $hex );

		if ( ! empty( $args['rgba_css'] ) ) {

			$css .= sprintf(
				Rock_Customizer::parse_css_rules( $args['rgba_css'] ),
				implode( ', ', rock_hex2rgb( $hex ) )
			);

		}

		wp_add_inline_style( Rock_Customizer::$stylesheet, $css );

	}
public function add_color_inline_css ( $ name , array $ args ) { if ( empty ( $ name ) || empty ( $ args [ 'css' ] ) ) { return ; } $ default = $ this -> get_default_color ( $ name , 'default' ) ; $ hex = trim ( get_theme_mod ( $ name , $ default ) , '#' ) ; $ css = sprintf ( Rock_Customizer :: parse_css_rules ( $ args [ 'css' ] ) , '#' . $ hex ) ; if ( ! empty ( $ args [ 'rgba_css' ] ) ) { $ css .= sprintf ( Rock_Customizer :: parse_css_rules ( $ args [ 'rgba_css' ] ) , implode ( ', ' , rock_hex2rgb ( $ hex ) ) ) ; } wp_add_inline_style ( Rock_Customizer :: $ stylesheet , $ css ) ; }
Add color inline CSS.

@see   $this->enqueue_colors_inline_css()
@since 1.0.0

@param string $name
@param array  $args
Add color inline CSS .