OSDN Git Service

初回コミット(v2.6.17.1)
[magic3/magic3.git] / templates / art41_sample1 / html / mod_menu / default_separator.php
1 <?php
2 defined('_JEXEC') or die;
3
4 // Note: it is important to remove spaces between elements.
5 $attributes = array('class' => array(),
6     'title' => $item->params->get('menu-anchor_title', ''));
7
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 : ''))
11     : $item->title;
12
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);
20 }