| Server IP : 46.105.57.169 / Your IP : 216.73.216.144 Web Server : Apache System : Linux webd003.cluster120.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : maitricfuz ( 93378) PHP Version : 8.4.10 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/maitricfuz/www/new-saint-martin/plugins/maximenuck/menus/helper/ |
Upload File : |
<?php
/**
* @name Maximenu CK
* @copyright Copyright (C) 2018. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* @author Cedric Keiflin - https://www.template-creator.com - https://www.joomlack.fr
*/
// No direct access
defined('_JEXEC') or die;
use Maximenuck\Helperfront;
/**
* Helper Class.
*/
class MaximenuckHelpersourceMenus {
private static $params;
private static $flexi_exists;
/*
* Get the items from the source
*/
public static function getItems($params, $all = false, $level = 1, $parent_id = 0) {
if (empty(self::$params)) {
self::$params = $params;
}
require_once MAXIMENUCK_FRONT_PATH . '/helpers/source/menu.php';
$loaderClass = 'MaximenuckHelpersourceMenu';
$items = $loaderClass::getItems($params);
foreach ($items as $i => &$item) {
$item->level = $item->level + $level - 1;
if ($item->level == $level) {
$item->parent_id = $parent_id;
}
}
return $items;
}
}