protected function _setBreadcrumb() { $app = JFactory::getApplication(); $pathway = $app->getPathway(); $pathwayArray = array(); $pathwayArray[] = JUDirectoryFrontHelperBreadcrumb::getRootPathway(); $pathwayArray[] = JUDirectoryFrontHelperBreadcrumb::createPathwayItem($this->getName()); $pathway->setPathway($pathwayArray); }
protected function _setBreadcrumb() { $app = JFactory::getApplication(); $pathway = $app->getPathway(); $pathwayArray = array(); $pathwayArray[] = JUDirectoryFrontHelperBreadcrumb::getRootPathway(); $linkTopComments = JRoute::_(JUDirectoryHelperRoute::getTopCommentsRoute()); $pathwayArray[] = JUDirectoryFrontHelperBreadcrumb::createPathwayItem($this->getName(), $linkTopComments); $pathway->setPathway($pathwayArray); }
protected function _setBreadcrumb() { $app = JFactory::getApplication(); $pathway = $app->getPathway(); $pathwayArray = array(); $pathwayArray[] = JUDirectoryFrontHelperBreadcrumb::getRootPathway(); $linkMaintenance = JRoute::_(JUDirectoryHelperRoute::getMaintenanceRoute(true), false); $pathwayArray[] = JUDirectoryFrontHelperBreadcrumb::createPathwayItem($this->getName(), $linkMaintenance); $pathway->setPathway($pathwayArray); }
public static function getBreadcrumbCategory($categoryId) { $app = JFactory::getApplication(); $menus = $app->getMenu('site'); $categoryPath = JUDirectoryHelper::getCategoryPath($categoryId); $pathwayArray = array(); if (!empty($categoryPath)) { if (!isset($categoryPath[1])) { $findMenuTreeLevel1 = false; } else { $topCategoryLevelId = $categoryPath[1]->id; $needles = array('tree' => array((int) $topCategoryLevelId)); $findMenuTreeLevel1 = JUDirectoryHelperRoute::findItemId($needles, true); } if (!$findMenuTreeLevel1) { $pathwayArray[] = JUDirectoryFrontHelperBreadcrumb::getRootPathway(); array_shift($categoryPath); } else { $menuTreeLevel1 = $menus->getItem($findMenuTreeLevel1); $pathwayItem = new stdClass(); $pathwayItem->name = html_entity_decode($menuTreeLevel1->title, ENT_COMPAT, 'UTF-8'); $pathwayItem->link = JRoute::_($menuTreeLevel1->link); $pathwayArray[] = $pathwayItem; array_shift($categoryPath); array_shift($categoryPath); } if (!empty($categoryPath)) { foreach ($categoryPath as $categoryPathItem) { $pathwayItem = new stdClass(); $pathwayItem->name = html_entity_decode($categoryPathItem->title, ENT_COMPAT, 'UTF-8'); $pathwayItem->link = JUDirectoryHelperRoute::getCategoryRoute($categoryPathItem->id, $topCategoryLevelId); $pathwayArray[] = $pathwayItem; } } } return $pathwayArray; }
protected function _setBreadcrumb() { $categoryId = JUDirectoryFrontHelperCategory::getMainCategoryId($this->item->id); $app = JFactory::getApplication(); $pathway = $app->getPathway(); $pathwayArray = array(); if ($categoryId) { $pathwayArray = JUDirectoryFrontHelperBreadcrumb::getBreadcrumbCategory($categoryId); } else { $pathwayArray[] = JUDirectoryFrontHelperBreadcrumb::getRootPathway(); } $linkListing = JRoute::_(JUDirectoryHelperRoute::getListingRoute($this->item->id)); $pathwayArray[] = JUDirectoryFrontHelperBreadcrumb::createPathwayItem($this->item->title, $linkListing); if ($this->_layout == 'print') { $pathwayArray[] = JUDirectoryFrontHelperBreadcrumb::createPathwayItem('PRINT'); $document = JFactory::getDocument(); $document->setMetaData('robots', 'noindex, nofollow'); } $pathway->setPathway($pathwayArray); }
protected function _setBreadcrumb() { $app = JFactory::getApplication(); $pathway = $app->getPathway(); $pathwayArray = array(); if ($this->categoryId) { $pathwayArray = JUDirectoryFrontHelperBreadcrumb::getBreadcrumbCategory($this->categoryId); } else { $pathwayArray[] = JUDirectoryFrontHelperBreadcrumb::getRootPathway(); } $linkFeatured = JRoute::_(JUDirectoryHelperRoute::getFeaturedRoute($this->categoryId, $this->fetchAllSubCat)); $pathwayArray[] = JUDirectoryFrontHelperBreadcrumb::createPathwayItem($this->getName(), $linkFeatured); $pathway->setPathway($pathwayArray); }
protected function _setBreadcrumb() { $app = JFactory::getApplication(); $pathway = $app->getPathway(); $pathwayArray = array(); if ($this->category->id) { $pathwayArray = JUDirectoryFrontHelperBreadcrumb::getBreadcrumbCategory($this->category->id); } else { $pathwayArray[] = JUDirectoryFrontHelperBreadcrumb::getRootPathway(); } $pathway->setPathway($pathwayArray); }
protected function _setBreadcrumb() { $app = JFactory::getApplication(); $pathway = $app->getPathway(); $pathwayArray = array(); $pathwayArray[] = JUDirectoryFrontHelperBreadcrumb::getRootPathway(); $linkTags = JRoute::_(JUDirectoryHelperRoute::getTagsRoute()); $pathwayArray[] = JUDirectoryFrontHelperBreadcrumb::createPathwayItem('tags', $linkTags); $linkTag = JRoute::_(JUDirectoryHelperRoute::getTagRoute($this->tag->id)); $pathwayArray[] = JUDirectoryFrontHelperBreadcrumb::createPathwayItem($this->tag->title, $linkTag); $pathway->setPathway($pathwayArray); }