/** * * 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, ''') !== false) { $value = str_replace(''', '\'', $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); }