1
|
|
|
<?php declare(strict_types=1); |
2
|
|
|
/* |
3
|
|
|
You may not change or alter any portion of this comment or credits |
4
|
|
|
of supporting developers from this source code or any supporting source code |
5
|
|
|
which is considered copyrighted (c) material of the original comment or credit authors. |
6
|
|
|
|
7
|
|
|
This program is distributed in the hope that it will be useful, |
8
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of |
9
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
10
|
|
|
*/ |
11
|
|
|
|
12
|
|
|
/** |
13
|
|
|
* Module: Waiting |
14
|
|
|
* |
15
|
|
|
* @category Module |
16
|
|
|
* @author XOOPS Module Development Team |
17
|
|
|
* @copyright {@link https://xoops.org 2001-2016 XOOPS Project} |
18
|
|
|
* @license {@link https://www.fsf.org/copyleft/gpl.html GNU public license} |
19
|
|
|
* @link https://xoops.org XOOPS |
20
|
|
|
*/ |
21
|
|
|
|
22
|
|
|
use Xmf\Module\Admin; |
23
|
|
|
use XoopsModules\Waiting; |
24
|
|
|
use XoopsModules\Waiting\Helper; |
25
|
|
|
|
26
|
|
|
$moduleDirName = \basename(\dirname(__DIR__)); |
27
|
|
|
$moduleDirNameUpper = \mb_strtoupper($moduleDirName); |
28
|
|
|
|
29
|
|
|
$helper = Helper::getInstance(); |
30
|
|
|
$helper->loadLanguage('common'); |
31
|
|
|
$helper->loadLanguage('feedback'); |
32
|
|
|
|
33
|
|
|
$pathIcon32 = Admin::menuIconPath(''); |
34
|
|
|
$pathModIcon32 = XOOPS_URL . '/modules/' . $moduleDirName . '/assets/images/icons/32/'; |
35
|
|
|
if (is_object($helper->getModule()) && false !== $helper->getModule()->getInfo('modicons32')) { |
36
|
|
|
$pathModIcon32 = $helper->url($helper->getModule()->getInfo('modicons32')); |
|
|
|
|
37
|
|
|
} |
38
|
|
|
|
39
|
|
|
$adminmenu = [ |
40
|
|
|
[ |
41
|
|
|
'title' => _MI_WAITING_MENU_HOME, |
42
|
|
|
'link' => 'admin/index.php', |
43
|
|
|
'icon' => "{$pathIcon32}/home.png", |
44
|
|
|
], |
45
|
|
|
|
46
|
|
|
[ |
47
|
|
|
'title' => _MI_WAITING_MENU_PLUGINS, |
48
|
|
|
'link' => 'admin/main.php', |
49
|
|
|
'icon' => "{$pathIcon32}/search.png", |
50
|
|
|
], |
51
|
|
|
|
52
|
|
|
[ |
53
|
|
|
'title' => _MI_WAITING_MENU_ABOUT, |
54
|
|
|
'link' => 'admin/about.php', |
55
|
|
|
'icon' => "{$pathIcon32}/about.png", |
56
|
|
|
], |
57
|
|
|
]; |
58
|
|
|
|