public static function getCategoryRoute($catid, $language = 0) { if ($catid instanceof JCategoryNode) { $id = $catid->id; $category = $catid; } else { $id = (int) $catid; $category = JCategories::getInstance('Eventgallery')->get($id); } if ($id < 1 || !$category instanceof JCategoryNode) { return ''; } $needles = array(); $link = EventgalleryHelpersRoute::createCategoryRoute($id); return $link; }
<p class="imagetype-details eventgallery-hide-on-imagetype-change"> <span class="description"><?php echo $lineitem->getImageType()->getDescription(); ?> </span> <span class="singleprice"><?php echo JText::sprintf('COM_EVENTGALLERY_LINEITEM_PRICE_PER_ITEM_WITH_PLACEHOLDER', $lineitem->getImageType()->getPrice()); ?> </span> </p> <p> <a class="open-event" href="<?php echo JRoute::_(EventgalleryHelpersRoute::createEventRoute($lineitem->getFile()->getFolder()->getFolderName(), $lineitem->getFile()->getFolder()->getFolderTags(), $lineitem->getFile()->getFolder()->getCategoryId())); ?> "><small><?php echo JText::_('COM_EVENTGALLERY_LINEITEM_OPEN_EVENT'); ?> </small></a> <a class="clone" href="<?php echo JRoute::_("index.php?option=com_eventgallery&view=cart&task=cloneLineItem&lineitemid=" . $lineitem->getId()); ?> "><small><?php echo JText::_('COM_EVENTGALLERY_LINEITEM_CLONE'); ?> </small></a> <a class="delete delete-lineitem" data-lineitemid="<?php echo $lineitem->getId(); ?>