Exemple #1
0
 /**
  * Short cut to CustomizerAbstract::getOption()
  *
  * @param string $option_name
  *
  * @return string
  * @access public
  * @since 0.2
  * @author Michal Kalkowski <michal at silversite.pl>
  */
 function get_customizer_option($option_name)
 {
     return CustomizerAbstract::getOption($option_name);
 }
 /**
  *
  * Get control value
  *
  * @return string
  * @access public
  */
 public function getValue()
 {
     $value = \Kirki::get_option(CustomizerAbstract::getId(), $this->getName());
     //todo add filters from ZF2
     $value = htmlspecialchars_decode($value, ENT_NOQUOTES);
     if (strpos($value, '&#039;') !== false) {
         $value = str_replace('&#039;', '\'', $value);
     }
     return $value;
 }
 /**
  * Get field option data
  *
  * @param string $option_name
  *
  * @static
  * @access
  * @return string
  */
 public static function getOption($option_name)
 {
     $customizer_id = CustomizerAbstract::getId();
     $value = \Kirki::get_option($customizer_id, $option_name);
     return htmlspecialchars_decode($value, ENT_NOQUOTES);
 }