return WCF::getTPL()->fetch('boxSidebarCommentList', 'wcf', [
'boxCommentList' => $this->objectList,
'boxSortField' => $this->sortField
- ]);
+ ], true);
}
}
}
}
- $this->content = WCF::getTPL()->fetch('boxArticleCategories', 'wcf', ['categoryList' => $categoryList, 'activeCategory' => $activeCategory]);
+ $this->content = WCF::getTPL()->fetch('boxArticleCategories', 'wcf', ['categoryList' => $categoryList, 'activeCategory' => $activeCategory], true);
}
}
}
'boxArticleList' => $this->objectList,
'boxSortField' => $this->sortField,
'boxPosition' => $this->box->position
- ]);
+ ], true);
}
}
* @inheritDoc
*/
protected function getTemplate() {
- return WCF::getTPL()->fetch('boxFollowingsOnline', 'wcf', ['usersOnlineList' => $this->objectList]);
+ return WCF::getTPL()->fetch('boxFollowingsOnline', 'wcf', ['usersOnlineList' => $this->objectList], true);
}
/**
'lastCommentTime' => $this->objectList->getMinCommentTime(),
'pageID' => RequestHandler::getInstance()->getActiveRequest()->getPageID(),
'likeData' => (MODULE_LIKE && $this->objectList) ? $this->objectList->getLikeData() : []
- ]);
+ ], true);
}
/**
$templateName = 'boxPaidSubscriptionsSidebar';
}
- WCF::getTPL()->assign([
- 'subscriptions' => $subscriptions
- ]);
-
- $this->content = WCF::getTPL()->fetch($templateName);
+ $this->content = WCF::getTPL()->fetch($templateName, 'wcf', ['subscriptions' => $subscriptions], true);
}
}
}
'eventList' => $this->objectList,
'lastEventTime' => $this->objectList->getLastEventTime(),
'filteredByFollowedUsers' => $this->filteredByFollowedUsers
- ]);
+ ], true);
}
else {
return WCF::getTPL()->fetch('boxRecentActivitySidebar', 'wcf', [
'eventList' => $this->objectList
- ]);
+ ], true);
}
}
*/
protected function loadContent() {
if (!WCF::getUser()->userID && !REGISTER_DISABLED) {
- $this->content = WCF::getTPL()->fetch('boxRegisterButton');
+ $this->content = WCF::getTPL()->fetch('boxRegisterButton', 'wcf', [], true);
}
}
}
*/
protected function loadContent() {
if (WCF::getUser()->userID) {
- $this->content = WCF::getTPL()->fetch('boxSignedInAs');
+ $this->content = WCF::getTPL()->fetch('boxSignedInAs', 'wcf', [], true);
}
}
}
* @inheritDoc
*/
protected function getTemplate() {
- return WCF::getTPL()->fetch('boxStaffOnline', 'wcf', ['usersOnlineList' => $this->objectList]);
+ return WCF::getTPL()->fetch('boxStaffOnline', 'wcf', ['usersOnlineList' => $this->objectList], true);
}
/**
* @inheritDoc
*/
protected function loadContent() {
- WCF::getTPL()->assign([
- 'statistics' => UserStatsCacheBuilder::getInstance()->getData()
- ]);
-
- $this->content = WCF::getTPL()->fetch('boxStatistics');
+ $this->content = WCF::getTPL()->fetch('boxStatistics', 'wcf', ['statistics' => UserStatsCacheBuilder::getInstance()->getData()], true);
}
}
$tags = $tagCloud->getTags();
if (!empty($tags)) {
- WCF::getTPL()->assign([
+ $this->content = WCF::getTPL()->fetch('tagCloudBox', 'wcf', [
'tags' => $tags,
'taggableObjectType' => $this->objectType
- ]);
-
- $this->content = WCF::getTPL()->fetch('tagCloudBox');
+ ], true);
}
}
}
}
if (!empty($visibleUserProfiles)) {
- WCF::getTPL()->assign([
+ $this->content = WCF::getTPL()->fetch($this->templateName, 'wcf', [
'birthdayUserProfiles' => $visibleUserProfiles
- ]);
- $this->content = WCF::getTPL()->fetch($this->templateName);
+ ], true);
}
}
}
return WCF::getTPL()->fetch('boxUserList', 'wcf', [
'boxUsers' => $this->userIDs !== null ? $userProfiles : $this->objectList->getObjects(),
'boxSortField' => $this->box->sortField
- ]);
+ ], true);
}
/**
$templateName = 'boxUsersOnline';
}
- return WCF::getTPL()->fetch($templateName, 'wcf', ['usersOnlineList' => $this->objectList, '__showRecord' => $this->showRecord]);
+ return WCF::getTPL()->fetch($templateName, 'wcf', ['usersOnlineList' => $this->objectList, '__showRecord' => $this->showRecord], true);
}
/**
'whoWasOnlineList' => $this->users,
'boxPosition' => $this->box->position,
'whoWasOnlineTimeFormat' => DateUtil::TIME_FORMAT
- ]);
+ ], true);
}
/**