コード例 #1
0
ファイル: renderer.php プロジェクト: blakeHelm/BallotPath
 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())));
 }