OSDN Git Service

初回コミット(v2.6.17.1)
[magic3/magic3.git] / templates / art30_041_sample2 / html / mod_menu / default_separator.php
1 <?php
2
3 defined('_JEXEC') or die;
4
5 // Note. It is important to remove spaces between elements.
6 $attributes = array('class' => array(),
7     'title' => $item->params->get('menu-anchor_title', ''));
8
9 $linktype = $item->menu_image
10     ? ('<img class="art-menu-image" src="' . $item->menu_image . '" alt="' . $item->title . '" />'
11         . ($item->params->get('menu_text', 1) ? $item->title : ''))
12     : $item->title;
13
14 if ('default' == $menutype) {
15     echo '<span class="separator">' . $linktype . '</span>';
16 } else if ('horizontal' == $menutype || 'vertical' == $menutype) {
17     if (in_array($item->id, $path))
18         $attributes['class'][] = 'active';
19     $attributes['class'][] = $item->deeper ? 'separator' : 'separator-without-submenu';
20     if ($params->get('startLevel') == $item->level)
21         $linktype = '<span class="l"></span><span class="r"></span><span class="t">' . $linktype . '</span>';
22     echo artxTagBuilder('a', $attributes, $linktype);
23 }