Esempio n. 1
0
 /**
  * @see	\wcf\page\IPage::assignVariables()
  */
 public function assignVariables()
 {
     parent::assignVariables();
     WCF::getTPL()->assign(array('contentNodeTree' => $this->contentNodeTree, 'sidebarNodeTree' => $this->sidebarNodeTree, 'page' => $this->page, 'likeData' => MODULE_LIKE && $this->commentList ? $this->commentList->getLikeData() : array(), 'commentCanAdd' => WCF::getUser()->userID && $this->page->getPermission('canAddComment'), 'commentList' => $this->commentList, 'commentObjectTypeID' => $this->commentObjectTypeID, 'lastCommentTime' => $this->commentList ? $this->commentList->getMinCommentTime() : 0, 'allowSpidersToIndexThisPage' => $this->page->allowIndexing));
     // sidebar
     WCF::getTPL()->assign(array('sidebarCollapsed' => UserCollapsibleContentHandler::getInstance()->isCollapsed('com.woltlab.wcf.collapsibleSidebar', 'de.codequake.cms.page'), 'sidebarName' => 'de.codequake.cms.page'));
 }