setTheme($data['theme']) ->addCssFile('assets/styles/'.$page_header->getTheme().'.css') ->show(); if (CWebUser::isLoggedIn()) { $buttons = [ (new CButton('back', _s('Go to "%1$s"', CMenuHelper::getFirstLabel()))) ->setAttribute('data-url', CMenuHelper::getFirstUrl()) ->onClick('document.location = this.dataset.url;') ]; } else { $buttons = [ (new CButton('login', _s('Go to "%1$s"', _('Login')))) ->setAttribute('data-url', 'index.php') ->onClick('document.location = this.dataset.url;') ]; } echo 'addClass(ZBX_STYLE_LAYOUT_WRAPPER) ->show(); echo ''; echo '';