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         $oManager = oxNew( "oxTagCloud" );
00038         $oManager->setExtendedMode( true );
00039         return $oManager;
00040     }
00041 
00047     public function getTitleSuffix()
00048     {
00049     }
00050 
00056     public function getTitlePageSuffix()
00057     {
00058         if ( ( $iPage = $this->getActPage() ) ) {
00059             return oxRegistry::getLang()->translateString( 'INC_HEADER_TITLEPAGE' ). ( $iPage + 1 );
00060         }
00061     }
00062 
00068     public function getBreadCrumb()
00069     {
00070         $aPaths = array();
00071         $aCatPath = array();
00072 
00073         $aCatPath['title'] = oxRegistry::getLang()->translateString( 'TAGS', oxRegistry::getLang()->getBaseLanguage(), false );
00074         $aCatPath['link']  = $this->getLink();
00075         $aPaths[] = $aCatPath;
00076 
00077         return $aPaths;
00078     }
00079 
00080 }