/** * @return array */ protected function buildPageCssClasses() { $pieces = [$this->pageCssClasses->getModule(), $this->pageCssClasses->getControllerAction()]; if ($this->request->getArea() === Core\Controller\AreaEnum::AREA_ADMIN) { $pieces[] = 'in-admin'; } elseif ($this->request->isHomepage() === true) { $pieces[] = 'is-homepage'; } else { $pieces[] = $this->pageCssClasses->getDetails(); } return $pieces; }
/** * @param array $params * @param \Smarty_Internal_Template $smarty * * @return mixed */ public function process(array $params, \Smarty_Internal_Template $smarty) { if (isset($params['type'])) { switch ($params['type']) { case 'module': return $this->pageCssClasses->getModule(); case 'controllerAction': return $this->pageCssClasses->getControllerAction(); case 'details': return $this->pageCssClasses->getDetails(); } } return ''; }