2 defined('_JEXEC') or die;
4 // Note: it is important to remove spaces between elements.
6 'class' => array($item->params->get('menu-anchor_css', '')),
7 'title' => $item->params->get('menu-anchor_title', ''));
8 switch ($item->browserNav) {
11 $attributes['href'] = $item->flink;
15 $attributes['href'] = $item->flink;
16 $attributes['target'] = '_blank';
20 $attributes['href'] = $item->flink;
21 $attributes['onclick'] = 'window.open(this.href,\'targetWindow\','
22 . '\'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes\');return false;';
26 $linktype = $item->menu_image
27 ? ('<img class="art-menu-image" src="' . $item->menu_image . '" alt="' . $item->title . '" />'
28 . ($item->params->get('menu_text', 1) ? $item->title : ''))
31 if (('horizontal' == $menutype || 'vertical' == $menutype)
32 && ('alias' == $item->type && in_array($item->params->get('aliasoptions'), $path) || in_array($item->id, $path)))
34 $attributes['class'][] = 'active';
37 echo artxTagBuilder('a', $attributes, $linktype);