| Server IP : 87.98.231.4 / Your IP : 216.73.217.178 [ Web Server : Apache System : Linux webm007.cluster103.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : grupmartgn ( 667608) PHP Version : 8.5.7 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/grupmartgn/elanartcrafts/administrator/modules/mod_vmmenu/tmpl/ |
Upload File : |
<?php
/**
*
* @version $Id$
* @package VirtueMart
* @author Valérie Isaksen
* @subpackage mod_vmmenu
* @copyright Copyright (C) VirtueMart Team - All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
*
* http://virtuemart.net
*/
// No direct access.
defined('_JEXEC') or die;
$show_vmmenu = $params->get('show_vmmenu', 1);
$vmMenu="";
$user = JFactory::getUser();
$lang = JFactory::getLanguage();
if ($show_vmmenu) {
$hideMainmenu=false;
}
// Check if there are any components, otherwise, don't render the menu
if ($vmComponentItems) {
$class = '';
if ($hideMainmenu) {
$class = "disabled";
}
if(JVM_VERSION<3){
$vmMenu='<ul id="menu">';
$vmMenu.='<li class="node '.$class.'"><a href="'.$vmComponentItems->link.'">'.$vmComponentItems->text.'</a>';
} else{
$vmMenu='<ul id="vm-menu" class="nav '.$class.'" >';
$vmMenu.='<li class="dropdown" ><a class="dropdown-toggle" data-toggle="dropdown" href="#">'.$vmComponentItems->text.'<span class="caret"></span></a>';
}
if (!$hideMainmenu) {
if (!empty($vmComponentItems->submenu)) {
if(JVM_VERSION<3){
$vmMenu.='<ul>';
} else {
$vmMenu.='<ul class="dropdown-menu">';
}
foreach ($vmComponentItems->submenu as $sub) {
$vmMenu.='<li><a class="'.$sub->class.'" href="'.$sub->link.'">'.$sub->text.'</a></li>';
}
$vmMenu.='</ul>';
}
}
$vmMenu.='</li></ul>';
}
echo $vmMenu;