Example #1
0
 protected function _setBreadcrumb()
 {
     $app = JFactory::getApplication();
     $pathway = $app->getPathway();
     $pathwayArray = array();
     $pathwayArray[] = JUDirectoryFrontHelperBreadcrumb::getRootPathway();
     $pathwayArray[] = JUDirectoryFrontHelperBreadcrumb::createPathwayItem($this->getName());
     $pathway->setPathway($pathwayArray);
 }
Example #2
0
 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);
 }
Example #3
0
 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);
 }
Example #4
0
 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);
 }
Example #5
0
 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);
 }
Example #6
0
 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);
 }