/**
  * Get breakcrumb links
  * 
  * @param int $id
  * @return string html of breadcrumb
  */
 protected function getBreadcrumb($id)
 {
     if ('' == $this->Registry->Ini->CATEGORIES) {
         return '';
     }
     $Renderer = new \Lampcms\Category\Renderer($this->Registry);
     return $Renderer->getBreadCrumb($id);
 }
Esempio n. 2
0
 /**
  * (non-PHPdoc)
  * @see Lampcms\Controllers.Viewquestions::makeQlistHeader()
  */
 protected function makeQlistHeader()
 {
     $Renderer = new \Lampcms\Category\Renderer($this->Registry);
     $breadCrumb = $Renderer->getBreadCrumb($this->aCategory['id'], false);
     $subs = '';
     $subCategories = $Renderer->getSubCategoriesOf(53);
     //$this->aCategory['id']
     if (!empty($subCategories)) {
         $subs = \tplSubcategories::parse(array($this->_('Sub categories'), \tplSubcategory::loop($subCategories)), false);
     }
     $this->aPageVars['qheader'] = $breadCrumb . $subs;
     return $this;
 }