getOptions(); $first = reset($all); return $first['name']; } public function getTemplate($id, $context = Theme::CONTEXT_BACKOFFICE) { if ($this->hasOption($context)) { $arr = $this->getOption($context); $templates = $arr['templates']; if (isset($templates[$id])) { return ROOT_PATH . $templates[$id]; } else { return parent::getTemplate($id, $context); } } else { return parent::getTemplate($id, $context); } } public function getStylesheet($context = Theme::CONTEXT_BACKOFFICE) { if ($this->hasOption($context)) { $arr = $this->getOption($context); return ROOT_URL . $arr['path']; } else { return parent::getStylesheet($context); } } }