2 defined('_JEXEC') or die;
4 // Note: it is important to remove spaces between elements.
5 $attributes = array('class' => array(),
6 'title' => $item->params->get('menu-anchor_title', ''));
8 $linktype = $item->menu_image
9 ? ('<img class="art-menu-image" src="' . $item->menu_image . '" alt="' . $item->title . '" />'
10 . ($item->params->get('menu_text', 1) ? $item->title : ''))
13 if ('default' == $menutype) {
14 echo '<span class="separator">' . $linktype . '</span>';
15 } else if ('horizontal' == $menutype || 'vertical' == $menutype) {
16 if ('alias' == $item->type && in_array($item->params->get('aliasoptions'), $path) || in_array($item->id, $path))
17 $attributes['class'][] = 'active';
18 $attributes['class'][] = $item->deeper ? 'separator' : 'separator-without-submenu';
19 echo artxTagBuilder('a', $attributes, $linktype);