b0y-101 Mini Shell


Current Path : E:/www/plan/components/com_jevents/views/default/helpers/
File Upload :
Current File : E:/www/plan/components/com_jevents/views/default/helpers/defaultvieweventcatrownew.php

<?php 
defined('_JEXEC') or die('Restricted access');

use Joomla\String\StringHelper;

function DefaultViewEventCatRowNew($view,$row,$args="") {
	$jinput = JFactory::getApplication()->input;
	// I choost not to use $row->fgcolor()
	$fgcolor="inherit";

	$router = JRouter::getInstance("site");
	$vars = $router->getVars();
	$vars["catids"]=$row->catid();

	if (array_key_exists("Itemid", $vars) && is_null($vars["Itemid"])) {
		$vars["Itemid"] = $jinput->getInt("Itemid",0);
	}
	$eventlink = "index.php?";
	foreach ($vars as $key=>$val) {
		$eventlink.= $key."=".$val."&";
	}
	$eventlink = JString::substr($eventlink,0,JString::strlen($eventlink)-1);
	$eventlink = JRoute::_($eventlink);
		?>
		<a class="ev_link_cat" href="<?php echo $eventlink; ?>"  style="color:<?php echo $fgcolor;?>;" title="<?php echo JEventsHTML::special($row->catname());?>"><?php echo $row->catname();?></a>
		<?php
}

Copyright © 2019 by b0y-101