protected function doBuild(PageContext $ctxt, PageBuilderContext $builderCtxt, RequestArrayAdapter $requestParams, ArrayAdapter $buildParams) { //1. ЗАГОЛОВОК $builderCtxt->setTitle($this->popupPage->getTitle()); //2. JAVASCRIPT $builderCtxt->setJsParams($this->popupPage->getJsParams()); //3. SMARTY RESOURCES $builderCtxt->setSmartyParam4Resources('IDENT', $this->popupPage->getIdent()); $builderCtxt->setSmartyParam4Resources('MATHJAX_DISABLE', true); $builderCtxt->setSmartyParams4Resources($this->popupPage->getSmartyParams4Resources()); //4. GET SMARTY PARAMS FOR TPL $smartyParams['page'] = $this->popupPage; $smartyParams['content'] = $this->PPM->getPopupPageContent($this->popupPage); $smartyParams['header'] = PopupPagesManager::inst()->isShowPageHeader(); $smartyParams['list'] = $this->popupPage->getIdent() == PP_404::getIdent(); return $smartyParams; }
public function isShowPageHeader() { $ident = $this->getCurPage()->getIdent(); $headerPages[] = PP_404::getIdent(); $headerPages[] = PP_plugin::getIdent(); return in_array($ident, $headerPages) || $this->isPageAsPlugin($ident); }