예제 #1
0
	protected function _setBreadcrumb()
	{
		$app          = JFactory::getApplication();
		$pathway      = $app->getPathway();
		$pathwayArray = array();

		$pathwayArray[] = JUDownloadFrontHelperBreadcrumb::getRootPathway();

		$pathwayArray[] = JUDownloadFrontHelperBreadcrumb::createPathwayItem($this->getName());

		$pathway->setPathway($pathwayArray);
	}
예제 #2
0
	protected function _setBreadcrumb()
	{
		$app          = JFactory::getApplication();
		$pathway      = $app->getPathway();
		$pathwayArray = array();

		$pathwayArray[] = JUDownloadFrontHelperBreadcrumb::getRootPathway();

		$linkMaintenance = JRoute::_(JUDownloadHelperRoute::getMaintenanceRoute(true), false);
		$pathwayArray[]  = JUDownloadFrontHelperBreadcrumb::createPathwayItem($this->getName(), $linkMaintenance);

		$pathway->setPathway($pathwayArray);
	}
예제 #3
0
	protected function _setBreadcrumb()
	{
		$app          = JFactory::getApplication();
		$pathway      = $app->getPathway();
		$pathwayArray = array();

		$pathwayArray[] = JUDownloadFrontHelperBreadcrumb::getRootPathway();

		$linkLicense    = JRoute::_(JUDownloadHelperRoute::getLicenseRoute($this->item->id));
		$pathwayArray[] = JUDownloadFrontHelperBreadcrumb::createPathwayItem($this->item->title, $linkLicense);

		$pathway->setPathway($pathwayArray);
	}
예제 #4
0
	protected function _setBreadcrumb()
	{
		$app          = JFactory::getApplication();
		$pathway      = $app->getPathway();
		$pathwayArray = array();

		$pathwayArray[] = JUDownloadFrontHelperBreadcrumb::getRootPathway();

		$linkTopComments = JRoute::_(JUDownloadHelperRoute::getTopCommentsRoute());
		$pathwayArray[]  = JUDownloadFrontHelperBreadcrumb::createPathwayItem($this->getName(), $linkTopComments);

		$pathway->setPathway($pathwayArray);
	}
예제 #5
0
	protected function _setBreadcrumb()
	{
		$app           = JFactory::getApplication();
		$jInput        = $app->input;
		$parent_cat_id = $jInput->getInt('parent_cat_id', 0);

		$pathway        = $app->getPathway();
		$pathwayArray   = array();
		$pathwayArray[] = JUDownloadFrontHelperBreadcrumb::getRootPathway();

		$linkSearch     = JRoute::_(JUDownloadHelperRoute::getSearchRoute());
		$pathwayArray[] = JUDownloadFrontHelperBreadcrumb::createPathwayItem($this->getName(), $linkSearch);

		if ($this->searchword)
		{
			$pathwayArray[] = JUDownloadFrontHelperBreadcrumb::createPathwayItem($this->searchword);
		}

		$pathway->setPathway($pathwayArray);
	}
예제 #6
0
	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);
	}
예제 #7
0
	public static function getBreadcrumbCategory($categoryId)
	{
		
		$app   = JFactory::getApplication();
		$menus = $app->getMenu('site');

		
		$categoryPath = JUDownloadHelper::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 = JUDownloadHelperRoute::findItemId($needles, true);
			}

			if (!$findMenuTreeLevel1)
			{
				
				$pathwayArray[] = JUDownloadFrontHelperBreadcrumb::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 = JUDownloadHelperRoute::getCategoryRoute($categoryPathItem->id, $topCategoryLevelId);
					$pathwayArray[]    = $pathwayItem;
				}
			}
		}

		return $pathwayArray;
	}
예제 #8
0
	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);
	}
예제 #9
0
	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);
	}
예제 #10
0
	protected function _setBreadcrumb()
	{
		$app          = JFactory::getApplication();
		$pathway      = $app->getPathway();
		$pathwayArray = array();

		$pathwayArray[] = JUDownloadFrontHelperBreadcrumb::getRootPathway();

		$linkTags       = JRoute::_(JUDownloadHelperRoute::getTagsRoute());
		$pathwayArray[] = JUDownloadFrontHelperBreadcrumb::createPathwayItem('tags', $linkTags);

		$linkTag        = JRoute::_(JUDownloadHelperRoute::getTagRoute($this->tag->id));
		$pathwayArray[] = JUDownloadFrontHelperBreadcrumb::createPathwayItem($this->tag->title, $linkTag);

		$pathway->setPathway($pathwayArray);
	}