OXID eShop CE  4.9.5
 All Classes Files Functions Variables Pages
tags.php
Go to the documentation of this file.
1 <?php
2 
6 class Tags extends oxUBase
7 {
8 
14  protected $_sThisTemplate = "page/tags/tags.tpl";
15 
22  public function render()
23  {
24  // if tags are off - showing 404 page
25  if (!$this->showTags()) {
26  error_404_handler();
27  }
28 
29  return parent::render();
30  }
31 
37  public function getTagCloudManager()
38  {
39  $oTagList = oxNew("oxTagList");
40  //$oTagList->loadList();
41  $oTagCloud = oxNew("oxTagCloud");
42  $oTagCloud->setTagList($oTagList);
43  $oTagCloud->setExtendedMode(true);
44 
45  return $oTagCloud;
46  }
47 
51  public function getTitleSuffix()
52  {
53  }
54 
60  public function getTitlePageSuffix()
61  {
62  if (($iPage = $this->getActPage())) {
63  return oxRegistry::getLang()->translateString('PAGE') . " " . ($iPage + 1);
64  }
65  }
66 
72  public function getBreadCrumb()
73  {
74  $aPaths = array();
75  $aCatPath = array();
76 
77  $iBaseLanguage = oxRegistry::getLang()->getBaseLanguage();
78  $aCatPath['title'] = oxRegistry::getLang()->translateString('TAGS', $iBaseLanguage, false);
79  $aCatPath['link'] = $this->getLink();
80  $aPaths[] = $aCatPath;
81 
82  return $aPaths;
83  }
84 }