Beispiel #1
0
    // The next item is deeper.
    if ($item->deeper) {
        echo '<ul>';
    } elseif ($item->shallower) {
        echo '</li>';
        echo str_repeat('</ul></li>', $item->level_diff);
    } else {
        echo '</li>';
    }
}
?>
</ul>
<?php 
// Do Mobile version
?>
<div class="mobilebtn">
<select size="1" class="menu<?php 
echo $class_sfx;
?>
 xtcmobilemenu" <?php 
echo $tag;
?>
 onchange="location.href=this.value">
<?php 
foreach ($list as $i => &$item) {
    $selected = $item->id == $active_id ? 'selected="selected"' : NULL;
    echo '<option value="' . $item->flink . '" ' . $selected . '>' . str_repeat('-', $item->level - 1) . cleanXmenu($item->title) . '</option>';
}
?>
</select>
    </div>
<?php

/**
 * @version		1.0.2
 * @package		Hipster template for Joomla! 3.x
 * @author		JoomlaXTC http://www.joomlaxtc.com
 * @copyright	Copyright (C) 2014 Monev Software LLC. All rights reserved.
 * @license		http://opensource.org/licenses/GPL-2.0 GNU Public License, version 2.0
 */
defined('_JEXEC') or die;
$class = $item->anchor_css ? 'class="' . $item->anchor_css . '" ' : '';
$title = $item->anchor_title ? 'title="' . $item->anchor_title . '" ' : '';
if ($item->menu_image) {
    $item->params->get('menu_text', 1) ? $linktype = '<img src="' . $item->menu_image . '" alt="' . cleanXmenu($item->title) . '" /><span class="image-title">' . parseXmenu($item->title) . '</span> ' : ($linktype = '<img src="' . $item->menu_image . '" alt="' . cleanXmenu($item->title) . '" />');
} else {
    $linktype = parseXmenu($item->title);
}
switch ($item->browserNav) {
    default:
    case 0:
        ?>
<a <?php 
        echo $class;
        ?>
href="<?php 
        echo $item->flink;
        ?>
" <?php 
        echo $title;
        ?>
><?php 
Beispiel #3
0
    // The next item is deeper.
    if ($item->deeper) {
        echo '<ul>';
    } elseif ($item->shallower) {
        echo '</li>';
        echo str_repeat('</ul></li>', $item->level_diff);
    } else {
        echo '</li>';
    }
}
?>
</ul>
<?php 
// Do Mobile version
?>
</div>
    <a data-target=".nav-collapse" data-toggle="collapse" class="xtc-iconsidemob">
<select size="1" class="menu<?php 
echo $class_sfx;
?>
 " <?php 
echo $tag;
?>
 onchange="location.href=this.value">
<?php 
foreach ($list as $i => &$item) {
    $selected = $item->id == $active_id ? 'selected="selected"' : NULL;
    echo '<option value="' . $item->flink . '" ' . $selected . '>' . cleanXmenu($item->title) . '</option>';
}
?>
</select> </a>