protected function _gen_options() { $this->align_mode = PrisnaGWTConfig::getSettingValue('align_mode'); $this->_gen_layout(); $this->_gen_languages(); $this->_gen_google_analytics(); $this->_gen_banner(); $this->_gen_flags(); $result = array(); foreach ($this->_properties as $key => $property) { if (array_key_exists('option_id', $property) && !PrisnaGWTValidator::isEmpty($property['option_id'])) { $result[$key] = array('option_id' => $property['option_id'], 'value' => $this->_prepare_option_value($key, $property['value'])); } } $this->options_formatted = PrisnaGWTCommon::renderObject($result, array('type' => 'html', 'content' => "\t\t{{ option_id }}: {{ value }},\n")); $this->options_formatted = preg_replace('/,\\n$/', "\n", $this->options_formatted); }
public static function isAvailable() { if (PrisnaGWTConfig::getSettingValue('test_mode') == 'true' && !current_user_can('administrator')) { return false; } return true; }