/**
  * @see    \wcf\system\dashboard\box\AbstractContentDashboardBox::render()
  */
 protected function render()
 {
     if ($this->tagCloud === null) {
         return '';
     }
     WCF::getTPL()->assign(array('tags' => $this->tagCloud->getTags(), 'taggableObjectType' => 'de.incendium.cms.news.entry'));
     return WCF::getTPL()->fetch('tagCloudBox');
 }
 /**
  * @see	\wcf\system\dashboard\box\AbstractContentDashboardBox::render()
  */
 protected function render()
 {
     if ($this->tagCloud === null) {
         return '';
     }
     WCF::getTPL()->assign(array('tags' => $this->tagCloud->getTags()));
     return WCF::getTPL()->fetch('dashboardSidebarBoxTagCloud', 'news');
 }
 /**
  * @inheritDoc
  */
 protected function loadContent()
 {
     if (MODULE_TAGGING && WCF::getSession()->getPermission('user.tag.canViewTag') && WCF::getSession()->getPermission('user.filebase.canViewEntry')) {
         $languageIDs = [];
         if (LanguageFactory::getInstance()->multilingualismEnabled()) {
             $languageIDs = WCF::getUser()->getLanguageIDs();
         }
         $tagCloud = new TypedTagCloud('de.incendium.filebase.entry', $languageIDs);
         $tags = $tagCloud->getTags();
         if (!empty($tags)) {
             $this->content = WCF::getTPL()->fetch('tagCloudBox', 'wcf', ['tags' => $tags, 'taggableObjectType' => 'de.incendium.filebase.entry']);
         }
     }
 }
示例#4
0
 /**
  * @see	\wcf\page\IPage::assignVariables()
  */
 public function assignVariables()
 {
     parent::assignVariables();
     WCF::getTPL()->assign(array('tag' => $this->tag, 'tags' => $this->tagCloud->getTags(100), 'availableObjectTypes' => $this->availableObjectTypes, 'objectType' => $this->objectType->objectType, 'resultListTemplateName' => $this->objectType->getProcessor()->getTemplateName(), 'resultListApplication' => $this->objectType->getProcessor()->getApplication(), 'allowSpidersToIndexThisPage' => true));
     if (count($this->objectList) === 0) {
         @header('HTTP/1.0 404 Not Found');
     }
 }