Example #1
0
 /**
  * Returns current color 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 _getColor($view = 'all')
 {
     if ($this->_obj->getParameter('color')) {
         View::addRequiredLib($this->_obj->getParameter('color'), 'css', 't41');
         return $this->_obj->getParameter('color');
     } else {
         return View::getColor($view);
     }
 }
Example #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();
     }
 }