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