🚀 Hostinger Optimized
🖥️ Server: Apache
💻 System: Linux webm015.cluster127.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: stakrfrcol (69043)
🐘 PHP: 8.3.31
🚫 Disabled: _dyuweyrj4,_dyuweyrj4r,dl

💻 Terminal

📁 /home/stakrfrcol/agency
$

📄 class-kirki-output-field-dimensions.php

📁 Path: ./wp-content/themes/xhyre/includes/kirki/modules/css/field/class-kirki-output-field-dimensions.php
📊 Size: 1.37 KB
🔒 Perm: 0644
📝 MIME: text/x-php
<?php
/**
 * Handles CSS output for dimensions fields.
 *
 * @package	 Kirki
 * @subpackage  Controls
 * @copyright   Copyright (c) 2020, David Vongries
 * @license	 https://opensource.org/licenses/MIT
 * @since	   2.2.0
 */
/**
 * Output overrides.
 */
class Kirki_Output_Field_Dimensions extends Kirki_Output {
	/**
	 * Processes a single item from the `output` array.
	 *
	 * @access protected
	 * @param array $output The `output` item.
	 * @param array $value  The field's value.
	 */
	protected function process_output( $output, $value ) {
		$output = wp_parse_args(
			$output,
			array(
				'element'	 => '',
				'property'	=> '',
				'media_query' => 'global',
				'prefix'	  => '',
				'suffix'	  => '',
			)
		);
		if ( ! is_array( $value ) ) {
			return;
		}
		foreach ( array_keys( $value ) as $key ) {
			$property = ( empty( $output['property'] ) ) ? $key : $output['property'] . '-' . $key;
			if ( isset( $output['choice'] ) && $output['property'] ) {
				if ( $key === $output['choice'] ) {
					$property = $output['property'];
				} else {
					continue;
				}
			}
			if ( false !== strpos( $output['property'], '%%' ) ) {
				$property = str_replace( '%%', $key, $output['property'] );
			}
			$this->styles[ $output['media_query'] ][ $output['element'] ][ $property ] = $output['prefix'] . $this->process_property_value( $property, $value[ $key ] ) . $output['suffix'];
		}
	}
}
← Back📥 Raw✏️ Edit🔒 Chmod
✨ File Manager Magic ✨