tags.php

Go to the documentation of this file.
00001 <?php
00002 
00006 class Tags extends oxUBase
00007 {
00008 
00014     protected $_sThisTemplate = "page/tags/tags.tpl";
00015 
00022     public function render()
00023     {
00024         // if tags are off - showing 404 page
00025         if (!$this->showTags()) {
00026             error_404_handler();
00027         }
00028 
00029         return parent::render();
00030     }
00031 
00037     public function getTagCloudManager()
00038     {
00039         $oTagList = oxNew("oxTagList");
00040         //$oTagList->loadList();
00041         $oTagCloud = oxNew("oxTagCloud");
00042         $oTagCloud->setTagList($oTagList);
00043         $oTagCloud->setExtendedMode(true);
00044 
00045         return $oTagCloud;
00046     }
00047 
00051     public function getTitleSuffix()
00052     {
00053     }
00054 
00060     public function getTitlePageSuffix()
00061     {
00062         if (($iPage = $this->getActPage())) {
00063             return oxRegistry::getLang()->translateString('PAGE') . " " . ($iPage + 1);
00064         }
00065     }
00066 
00072     public function getBreadCrumb()
00073     {
00074         $aPaths = array();
00075         $aCatPath = array();
00076 
00077         $iBaseLanguage = oxRegistry::getLang()->getBaseLanguage();
00078         $aCatPath['title'] = oxRegistry::getLang()->translateString('TAGS', $iBaseLanguage, false);
00079         $aCatPath['link'] = $this->getLink();
00080         $aPaths[] = $aCatPath;
00081 
00082         return $aPaths;
00083     }
00084 }