| Server IP : 195.130.67.5 / Your IP : 216.73.216.231 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/icd/modules/mod_mj_menu/tmpl/ |
Upload File : |
<?php
/**
* Mobile Joomla!
* http://www.mobilejoomla.com
*
* @version 1.2.9
* @license GNU/GPL v2 - http://www.gnu.org/licenses/gpl-2.0.html
* @copyright (C) 2008-2014 Kuneri Ltd.
* @date June 2014
*/
defined('_JEXEC') or die('Restricted access');
/** @var $active_id integer */
/** @var $is_submenu bool */
/** @var $is_vertical bool */
/** @var $menu array */
/** @var $params JRegistry */
/** @var $submenu array */
?>
<?php if(!$is_submenu) : ?>
<div class="menu<?php echo htmlspecialchars($params->get('class_sfx')); ?>">
<?php endif; ?>
<ul class="<?php echo $params->get('layout') . $params->get('class_prefix') . htmlspecialchars($params->get('class_sfx')); ?>">
<?php
foreach($menu as $item)
{
$is_active = $item->id == $active_id;
$class = $item->anchor_css ? ' class="'.$item->anchor_css.'"' : '';
if($item->type == 'separator')
$outline = array('<span'.$class.'>', '</span>');
else
{
$target = $item->browserNav > 0 ? ' target="_blank"' : '';
$outline = array('<a'.$class.' href="'.$item->flink.'"'.$target.'>', '</a>');
}
$text = $item->title;
$img = $item->menu_image ? '<img src="'.$item->menu_image.'" />' : '';
switch($params->get('format'))
{
case 0: break;
case 1: $text = $img; break;
case 2: $text = $img.$text; break;
case 3: $text = $text.$img; break;
case 4: $text = $img.'<br />'.$text; break;
case 5: $text = $text.'<br />'.$img; break;
}
?>
<li<?php echo $is_active ? ' class="current"' : ''; ?>>
<?php echo $outline[0] . $text . $outline[1]; ?>
</li>
<?php
if($is_active && count($submenu))
JMobileMenuHelper::renderSubmenu($submenu, $params);
}
?>
</ul>
<?php if( ($is_vertical xor $is_submenu) || ((!$is_vertical) && (!$is_submenu) && !$params->get('has_submenu')) ) : ?>
</div>
<div class="clear"></div>
<?php endif; ?>