packages/kirki-framework/module-css/src/Output.php
protected function process_output( $output, $value ) {
		if ( ! isset( $output['element'] ) || ! isset( $output['property'] ) ) {
			return;
		}
		$output['media_query'] = ( isset( $output['media_query'] ) ) ? $output['media_query'] : 'global';
		$output['prefix']      = ( isset( $output['prefix'] ) ) ? $output['prefix'] : '';
		$output['units']       = ( isset( $output['units'] ) ) ? $output['units'] : '';
		$output['suffix']      = ( isset( $output['suffix'] ) ) ? $output['suffix'] : '';

		// Properties that can accept multiple values.
		// Useful for example for gradients where all browsers use the "background-image" property
		// and the browser prefixes go in the value_pattern arg.
		$accepts_multiple = [
			'background-image',
			'background',
		];
		if ( in_array( $output['property'], $accepts_multiple, true ) ) {
			if ( isset( $this->styles[ $output['media_query'] ][ $output['element'] ][ $output['property'] ] ) && ! is_array( $this->styles[ $output['media_query'] ][ $output['element'] ][ $output['property'] ] ) ) {
				$this->styles[ $output['media_query'] ][ $output['element'] ][ $output['property'] ] = (array) $this->styles[ $output['media_query'] ][ $output['element'] ][ $output['property'] ];
			}
			$this->styles[ $output['media_query'] ][ $output['element'] ][ $output['property'] ][] = $output['prefix'] . $value . $output['units'] . $output['suffix'];
			return;
		}
		if ( is_string( $value ) || is_numeric( $value ) ) {
			$this->styles[ $output['media_query'] ][ $output['element'] ][ $output['property'] ] = $output['prefix'] . $this->process_property_value( $output['property'], $value ) . $output['units'] . $output['suffix'];
		}
	}
protected function process_output( $output, $value ) {
		if ( ! isset( $output['element'] ) || ! isset( $output['property'] ) ) {
			return;
		}
		$output['media_query'] = ( isset( $output['media_query'] ) ) ? $output['media_query'] : 'global';
		$output['prefix']      = ( isset( $output['prefix'] ) ) ? $output['prefix'] : '';
		$output['units']       = ( isset( $output['units'] ) ) ? $output['units'] : '';
		$output['suffix']      = ( isset( $output['suffix'] ) ) ? $output['suffix'] : '';

		// Properties that can accept multiple values.
		// Useful for example for gradients where all browsers use the "background-image" property
		// and the browser prefixes go in the value_pattern arg.
		$accepts_multiple = [
			'background-image',
			'background',
		];
		if ( in_array( $output['property'], $accepts_multiple, true ) ) {
			if ( isset( $this->styles[ $output['media_query'] ][ $output['element'] ][ $output['property'] ] ) && ! is_array( $this->styles[ $output['media_query'] ][ $output['element'] ][ $output['property'] ] ) ) {
				$this->styles[ $output['media_query'] ][ $output['element'] ][ $output['property'] ] = (array) $this->styles[ $output['media_query'] ][ $output['element'] ][ $output['property'] ];
			}
			$this->styles[ $output['media_query'] ][ $output['element'] ][ $output['property'] ][] = $output['prefix'] . $value . $output['units'] . $output['suffix'];
			return;
		}
		if ( is_string( $value ) || is_numeric( $value ) ) {
			$this->styles[ $output['media_query'] ][ $output['element'] ][ $output['property'] ] = $output['prefix'] . $this->process_property_value( $output['property'], $value ) . $output['units'] . $output['suffix'];
		}
	}
protected function process_output ( $ output , $ value ) { if ( ! isset ( $ output [ 'element' ] ) || ! isset ( $ output [ 'property' ] ) ) { return ; } $ output [ 'media_query' ] = ( isset ( $ output [ 'media_query' ] ) ) ? $ output [ 'media_query' ] : 'global' ; $ output [ 'prefix' ] = ( isset ( $ output [ 'prefix' ] ) ) ? $ output [ 'prefix' ] : '' ; $ output [ 'units' ] = ( isset ( $ output [ 'units' ] ) ) ? $ output [ 'units' ] : '' ; $ output [ 'suffix' ] = ( isset ( $ output [ 'suffix' ] ) ) ? $ output [ 'suffix' ] : '' ; // Properties that can accept multiple values. // Useful for example for gradients where all browsers use the "background-image" property // and the browser prefixes go in the value_pattern arg. $ accepts_multiple = [ 'background-image' , 'background' , ] ; if ( in_array ( $ output [ 'property' ] , $ accepts_multiple , true ) ) { if ( isset ( $ this -> styles [ $ output [ 'media_query' ] ] [ $ output [ 'element' ] ] [ $ output [ 'property' ] ] ) && ! is_array ( $ this -> styles [ $ output [ 'media_query' ] ] [ $ output [ 'element' ] ] [ $ output [ 'property' ] ] ) ) { $ this -> styles [ $ output [ 'media_query' ] ] [ $ output [ 'element' ] ] [ $ output [ 'property' ] ] = ( array ) $ this -> styles [ $ output [ 'media_query' ] ] [ $ output [ 'element' ] ] [ $ output [ 'property' ] ] ; } $ this -> styles [ $ output [ 'media_query' ] ] [ $ output [ 'element' ] ] [ $ output [ 'property' ] ] [ ] = $ output [ 'prefix' ] . $ value . $ output [ 'units' ] . $ output [ 'suffix' ] ; return ; } if ( is_string ( $ value ) || is_numeric ( $ value ) ) { $ this -> styles [ $ output [ 'media_query' ] ] [ $ output [ 'element' ] ] [ $ output [ 'property' ] ] = $ output [ 'prefix' ] . $ this -> process_property_value ( $ output [ 'property' ] , $ value ) . $ output [ 'units' ] . $ output [ 'suffix' ] ; } }
Parses an output and creates the styles array for it.

@access protected
@param array        $output The field output.
@param string|array $value  The value.

@return null
Parses an output and creates the styles array for it .