Exemplo n.º 1
0
 /**
  * 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;
 }
Exemplo n.º 2
0
 /**
  * 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;
 }