예제 #1
0
파일: Theme.php 프로젝트: elvyrra/hawk
 /**
  * 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;
 }
예제 #2
0
파일: Plugin.php 프로젝트: elvyrra/hawk
 /**
  * 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;
 }