-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmod_dashboard.php
41 lines (31 loc) · 1.41 KB
/
mod_dashboard.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
/**
* @version 3 stable $Id: default.php yannick berges
* @package Joomla
* @copyright (C) 2018 Berges Yannick - www.com3elles.com
* @license GNU/GPL v2
* special thanks to my master Marc Studer
* special thanks to Shane for helping
* Joomla admin module by Com3elles is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
**/
//blocage des accés directs sur ce script
defined('_JEXEC') or die('Accès interdit');
jimport('joomla.application.component.controller');
JLoader::register('ModLatestActionsHelper', __DIR__ . '/helper.php');
use Joomla\CMS\Helper\ModuleHelper;
// Inclut les méthodes du script de soutien
require_once dirname(__FILE__) . '/helper.php';
foreach ($params->get('add_customblock') as $customBlock) {
$items = modDashboardHelper::getItems($customBlock) ?? [];
$customBlock->items = $items;
// var_dump($customBlock);
}
//$listCustomlist = modDashboardHelper::getCustomlist($params);
//$moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx'));
$system_buttons = modDashboardHelper::getIconFromPlugins($params);
$actionlist = modDashboardHelper::getActionlogList($params);
// Get Joomla Layout
require ModuleHelper::getLayoutPath('mod_dashboard', $params->get('layout', 'default'));