protected function _setBreadcrumb() { $app = JFactory::getApplication(); $pathway = $app->getPathway(); $pathwayArray = array(); if ($this->category->id) { $pathwayArray = JUDownloadFrontHelperBreadcrumb::getBreadcrumbCategory($this->category->id); } else { $pathwayArray[] = JUDownloadFrontHelperBreadcrumb::getRootPathway(); } $pathway->setPathway($pathwayArray); }
protected function _setBreadcrumb() { $categoryId = JUDownloadFrontHelperCategory::getMainCategoryId($this->item->id); $app = JFactory::getApplication(); $pathway = $app->getPathway(); $pathwayArray = array(); if ($categoryId) { $pathwayArray = JUDownloadFrontHelperBreadcrumb::getBreadcrumbCategory($categoryId); } else { $pathwayArray[] = JUDownloadFrontHelperBreadcrumb::getRootPathway(); } $linkDocument = JRoute::_(JUDownloadHelperRoute::getDocumentRoute($this->item->id)); $pathwayArray[] = JUDownloadFrontHelperBreadcrumb::createPathwayItem($this->item->title, $linkDocument); if ($this->_layout == 'changelogs') { $pathwayArray[] = JUDownloadFrontHelperBreadcrumb::createPathwayItem('CHANGELOGS'); } elseif ($this->_layout == 'versions') { $pathwayArray[] = JUDownloadFrontHelperBreadcrumb::createPathwayItem('VERSIONS'); } elseif ($this->_layout == 'print') { $pathwayArray[] = JUDownloadFrontHelperBreadcrumb::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 = JUDownloadFrontHelperBreadcrumb::getBreadcrumbCategory($this->categoryId); } else { $pathwayArray[] = JUDownloadFrontHelperBreadcrumb::getRootPathway(); } $linkFeatured = JRoute::_(JUDownloadHelperRoute::getFeaturedRoute($this->categoryId, $this->fetchAllSubCat)); $pathwayArray[] = JUDownloadFrontHelperBreadcrumb::createPathwayItem($this->getName(), $linkFeatured); $pathway->setPathway($pathwayArray); }