tags.php

Go to the documentation of this file.
00001 <?php
00002 
00006 class Tags extends oxUBase
00007 {
00013     protected $_sThisTemplate = "page/tags/tags.tpl";
00014 
00021     public function render()
00022     {
00023         // if tags are off - showing 404 page
00024         if ( !$this->showTags()  ) {
00025             error_404_handler();
00026         }
00027         return parent::render();
00028     }
00029 
00035     public function getTagCloudManager()
00036     {
00037         $oTagList = oxNew( "oxtaglist" );
00038         $oTagCloud = oxNew( "oxTagCloud" );
00039         $oTagCloud->setTagList($oTagList);
00040         $oTagCloud->setExtendedMode( true );
00041         return $oTagCloud;
00042     }
00043 
00049     public function getTitleSuffix()
00050     {
00051     }
00052 
00058     public function getTitlePageSuffix()
00059     {
00060         if ( ( $iPage = $this->getActPage() ) ) {
00061             return oxRegistry::getLang()->translateString( 'INC_HEADER_TITLEPAGE' ). ( $iPage + 1 );
00062         }
00063     }
00064 
00070     public function getBreadCrumb()
00071     {
00072         $aPaths = array();
00073         $aCatPath = array();
00074 
00075         $aCatPath['title'] = oxRegistry::getLang()->translateString( 'TAGS', oxRegistry::getLang()->getBaseLanguage(), false );
00076         $aCatPath['link']  = $this->getLink();
00077         $aPaths[] = $aCatPath;
00078 
00079         return $aPaths;
00080     }
00081 
00082 }