Exemple #1
0
 /**
  * Returns current theme from decorator parameter or
  * the one defined by the view, and requires that file
  * to be called in the rendered view
  * 
  * @param string $view
  * @return string
  */
 protected function _getTheme($view = 'all')
 {
     if ($this->getParameter('theme')) {
         View::addRequiredLib($this->getParameter('theme'), 'css', 't41');
         return $this->getParameter('theme');
     } else {
         View::addRequiredLib(View::getTheme($view), 'css', 't41');
         return View::getTheme($view);
     }
 }
Exemple #2
0
 public function display($content = null, $error = false)
 {
     if ($this->_template) {
         if (View::getTheme('web')) {
             $this->componentAdd(View::getTheme('web'), 'css', 't41');
         }
         if (View::getColor('web')) {
             $this->componentAdd(View::getColor('web'), 'css', 't41');
         }
         return $this->_render();
     }
 }