2019-02-10 20:21:07 +01:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Handles CSS properties.
|
|
|
|
* Extend this class in order to handle exceptions.
|
|
|
|
*
|
|
|
|
* @package Kirki
|
|
|
|
* @subpackage Controls
|
2020-07-12 11:16:33 +02:00
|
|
|
* @copyright Copyright (c) 2020, David Vongries
|
2020-02-25 18:04:54 +01:00
|
|
|
* @license https://opensource.org/licenses/MIT
|
2019-02-10 20:21:07 +01:00
|
|
|
* @since 2.2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Output for CSS properties.
|
|
|
|
*/
|
|
|
|
class Kirki_Output_Property {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The property we're modifying.
|
|
|
|
*
|
|
|
|
* @access protected
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $property;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The value
|
|
|
|
*
|
|
|
|
* @access protected
|
|
|
|
* @var string|array
|
|
|
|
*/
|
|
|
|
protected $value;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Constructor.
|
|
|
|
*
|
|
|
|
* @access public
|
|
|
|
* @param string $property The CSS property we're modifying.
|
|
|
|
* @param mixed $value The value.
|
|
|
|
*/
|
|
|
|
public function __construct( $property, $value ) {
|
|
|
|
$this->property = $property;
|
|
|
|
$this->value = $value;
|
|
|
|
$this->process_value();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Modifies the value.
|
|
|
|
*
|
|
|
|
* @access protected
|
|
|
|
*/
|
|
|
|
protected function process_value() {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the value.
|
|
|
|
*
|
|
|
|
* @access protected
|
|
|
|
*/
|
|
|
|
public function get_value() {
|
|
|
|
return $this->value;
|
|
|
|
}
|
|
|
|
}
|