Your IP : 216.73.216.65


Current Path : /home/ataenra/www/templates/t4_builder/html/mod_menu/
Upload File :
Current File : /home/ataenra/www/templates/t4_builder/html/mod_menu/default_heading.php

<?php
/**
T4 Overide
 */

defined('_JEXEC') or die;

$title      = $item->anchor_title ? ' title="' . $item->anchor_title . '"' : '';
$anchor_css = $item->anchor_css ?: '';

$linktype   = $item->title;

if ($item->menu_image)
{
	if ($item->menu_image_css)
	{
		$image_attributes['class'] = $item->menu_image_css;
		$linktype = JHtml::_('image', $item->menu_image, $item->title, $image_attributes);
	}
	else
	{
		$linktype = JHtml::_('image', $item->menu_image, $item->title);
	}

	if ($item->params->get('menu_text', 1))
	{
		$linktype .= '<span class="image-title">' . $item->title . '</span>';
	}
}

if ($item->level > 1) {
	$anchor_css .= " dropdown-item";
} else {
	$anchor_css .= " nav-link";
}

$attributes = '';

if($item->deeper){
	if(!$item->mega_sub){
		$anchor_css .= ' dropdown-toggle';
	}
	$attributes .= 'role = "button"';
	$attributes .= 'aria-haspopup = "true"';
	$attributes .= 'aria-expanded = "false"';
	$attributes = 'data-toggle = "dropdown"';
}

$linktype = $item->icon . $linktype . $item->caret . $item->caption;

?>
<a href="#" class="nav-header <?php echo $anchor_css; ?>"<?php echo $title; ?> <?php echo $attributes; ?>><?php echo $linktype; ?></a>