/** * Get the customized variables values * * @return array The custom values */ public function getVariablesCustomValues() { $options = Option::getPluginOptions('theme-' . $this->name); $values = array(); foreach ($options as $key => $value) { if (preg_match('/^custom\\-value\\-(.+?)$/', $key, $m)) { $values[$m[1]] = $value; } } return $values; }
/** * Get the plugin options * * @return array The plugin options, where keys are the options names, and values, the values for each option */ public function getOptions() { if (!isset($this->options)) { $this->options = Option::getPluginOptions($this->name); } return $this->options; }