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); } }
/** * @param string $id * @param string $context * @return string */ public function getTemplate($id, $context = Theme::CONTEXT_BACKOFFICE) { switch ($id) { /* case 'header' : $template = Template::getTemplate( 'theme/' . self::THEME_ID . '/header.tpl', self::EXTENSION_ID ); break; */ case 'header-logo': $template = Template::getTemplate('theme/' . self::THEME_ID . '/header-logo.tpl', self::EXTENSION_ID); break; /* case 'footer' : $template = Template::getTemplate( 'theme/' . self::THEME_ID . '/footer.tpl', self::EXTENSION_ID ); break; case 'login-message' : $template = Template::getTemplate( 'theme/' . self::THEME_ID . '/login-message.tpl', self::EXTENSION_ID ); break; */ /* case 'footer' : $template = Template::getTemplate( 'theme/' . self::THEME_ID . '/footer.tpl', self::EXTENSION_ID ); break; case 'login-message' : $template = Template::getTemplate( 'theme/' . self::THEME_ID . '/login-message.tpl', self::EXTENSION_ID ); break; */ default: $template = parent::getTemplate($id); } return $template; }