Пример #1
0
 public function RenderPageList(PageList $pageList)
 {
     $customParams = array();
     $template = $pageList->GetParentPage()->GetCustomTemplate(PagePart::PageList, null, 'page_list.tpl', $customParams);
     $this->DisplayTemplate($template, array('PageList' => $pageList), array_merge($customParams, array('Authentication' => $pageList->GetParentPage()->GetAuthenticationViewData(), 'List' => $pageList->GetViewData())));
 }
Пример #2
0
 public function RenderPageList(PageList $pageList)
 {
     $customParams = array();
     $defaultTemplate = $pageList->isTypeSidebar() ? 'page_list_sidebar.tpl' : 'page_list_menu.tpl';
     $template = $pageList->GetParentPage()->GetCustomTemplate(PagePart::PageList, null, $defaultTemplate, $customParams);
     $this->DisplayTemplate($template, array('PageList' => $pageList), array_merge($customParams, array('Authentication' => $pageList->GetParentPage()->GetAuthenticationViewData(), 'List' => $pageList->GetViewData())));
 }