Exemplo n.º 1
0
 /**
  * @param \Enlight_View_Default $view
  * @param string $templatePath
  */
 protected function extendsTemplate($view, $templatePath)
 {
     $version = $this->bootstrap->get('shop')->getTemplate()->getVersion();
     if ($version >= 3) {
         $view->addTemplateDir($this->bootstrapPath . 'Views/responsive/');
     } else {
         $view->addTemplateDir($this->bootstrapPath . 'Views/emotion/');
         $view->extendsTemplate($templatePath);
     }
 }
Exemplo n.º 2
0
 /**
  * @param ActionEventArgs $args
  */
 public function onPostDispatchSecureBackendIndex(ActionEventArgs $args)
 {
     $view = $args->getSubject()->View();
     $view->addTemplateDir($this->bootstrap->Path() . 'Views/');
     $view->extendsTemplate('backend/custom_sort/header.tpl');
 }