Your IP : 216.73.216.240
<?php
/*
# ------------------------------------------------------------------------
# Extensions for Joomla 2.5.x - Joomla 3.x
# ------------------------------------------------------------------------
# Copyright (C) 2011-2013 Ext-Joom.com. All Rights Reserved.
# @license - PHP files are GNU/GPL V2.
# Author: Ext-Joom.com
# Websites: http://www.ext-joom.com
# Date modified: 20/11/2013 - 13:00
# ------------------------------------------------------------------------
*/
// No direct access.
defined('_JEXEC') or die;
// Note. It is important to remove spaces between elements.
$document = JFactory::getDocument();
if ($ext_style_menu == 0) { $document->addStyleSheet(JURI::base() . 'modules/mod_ext_menumatic/css/horizontal-menumatic.css'); $ext_style = 'horizontal'; }
else { $document->addStyleSheet(JURI::base() . 'modules/mod_ext_menumatic/css/vertical-menumatic.css'); $ext_style = 'vertical'; }
if ($ext_menu == 1) {
if ($ext_mootools == 1) { $document->addScript(JURI::base() . 'modules/mod_ext_menumatic/js/mootools-yui-compressed.js'); }
if ($ext_mootools == 2) { $document->addScript('http://ajax.googleapis.com/ajax/libs/mootools/1.3.2/mootools-yui-compressed.js'); }
$document->addScript(JURI::base() . 'modules/mod_ext_menumatic/js/MenuMatic_0.68.3.js');
}
?>
<ul id="extnav_<?php echo $ext_id;?>" class="extnav_<?php echo $ext_style;?> <?php echo $class_sfx;?>">
<?php
foreach ($list as $i => &$item) :
$class = 'item-'.$item->id;
if ($item->id == $active_id) {
$class .= ' current';
}
if (in_array($item->id, $path)) {
$class .= ' active';
}
elseif ($item->type == 'alias') {
$aliasToId = $item->params->get('aliasoptions');
if (count($path) > 0 && $aliasToId == $path[count($path) - 1]) {
$class .= ' active';
}
elseif (in_array($aliasToId, $path)) {
$class .= ' alias-parent-active';
}
}
if ($item->type == 'separator') {
$class .= ' divider';
}
if ($item->deeper) {
$class .= ' deeper';
}
if ($item->parent) {
$class .= ' parent';
}
if (!empty($class)) {
$class = ' class="'.trim($class) .'"';
}
echo '<li'.$class.'>';
// Render the menu item.
switch ($item->type) :
case 'separator':
case 'url':
case 'component':
case 'heading':
require JModuleHelper::getLayoutPath('mod_menu', 'default_'.$item->type);
break;
default:
require JModuleHelper::getLayoutPath('mod_menu', 'default_url');
break;
endswitch;
// The next item is deeper.
if ($item->deeper) {
echo '<ul class="nav-child unstyled small">';
}
// The next item is shallower.
elseif ($item->shallower) {
echo '</li>';
echo str_repeat('</ul></li>', $item->level_diff);
}
// The next item is on the same level.
else {
echo '</li>';
}
endforeach;
?>
</ul>
<?php if ($ext_menu == 1) {?>
<script type="text/javascript">
window.addEvent('domready', function() {
var myMenu = new MenuMatic({
id: 'extnav_<?php echo $ext_id;?>',
subMenusContainerId:'subMenusContainer_<?php echo $ext_style;?>',
direction:{x:"<?php echo $ext_direction_x;?>",y:"<?php echo $ext_direction_y;?>"},
orientation:'<?php echo $ext_style; ?>',
opacity:'<?php echo $ext_opacity; ?>',
hideDelay:'<?php echo $ext_hidedelay; ?>',
duration:'<?php echo $ext_duration; ?>',
effect:'<?php echo $ext_effect; ?>',
physics:<?php echo $ext_physics;?>
});
});
</script>
<?php }?>