1
|
|
|
<?php |
2
|
|
|
/** |
3
|
|
|
* xLanguage module (eXtensible Language Management For XOOPS) |
4
|
|
|
* |
5
|
|
|
* You may not change or alter any portion of this comment or credits |
6
|
|
|
* of supporting developers from this source code or any supporting source code |
7
|
|
|
* which is considered copyrighted (c) material of the original comment or credit authors. |
8
|
|
|
* This program is distributed in the hope that it will be useful, |
9
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
10
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
11
|
|
|
* |
12
|
|
|
* @copyright XOOPS Project (https://xoops.org) |
13
|
|
|
* @license {@link https://www.gnu.org/licenses/gpl-2.0.html GNU Public License} |
14
|
|
|
* @package xlanguage |
15
|
|
|
* @since 2.0 |
16
|
|
|
* @author D.J.(phppp) [email protected] |
17
|
|
|
**/ |
18
|
|
|
|
19
|
|
|
use Xmf\Module\Admin; |
20
|
|
|
use XoopsModules\Xlanguage; |
21
|
|
|
/** @var Xlanguage\Helper $helper */ |
22
|
|
|
|
23
|
|
|
$moduleDirName = \basename(\dirname(__DIR__)); |
24
|
|
|
$moduleDirNameUpper = mb_strtoupper($moduleDirName); |
25
|
|
|
|
26
|
|
|
$helper = Xlanguage\Helper::getInstance(); |
27
|
|
|
$helper->loadLanguage('common'); |
28
|
|
|
$helper->loadLanguage('feedback'); |
29
|
|
|
|
30
|
|
|
$pathIcon32 = Admin::menuIconPath(''); |
31
|
|
|
$pathModIcon32 = XOOPS_URL . '/modules/' . $moduleDirName . '/assets/images/icons/32/'; |
32
|
|
|
if (is_object($helper->getModule()) && false !== $helper->getModule()->getInfo('modicons32')) { |
33
|
|
|
$pathModIcon32 = $helper->url($helper->getModule()->getInfo('modicons32')); |
|
|
|
|
34
|
|
|
} |
35
|
|
|
|
36
|
|
|
$adminmenu[] = [ |
37
|
|
|
'title' => _MI_XLANGUAGE_ADMENU_HOME, |
38
|
|
|
'link' => 'admin/index.php', |
39
|
|
|
'icon' => $pathIcon32 . '/home.png', |
40
|
|
|
]; |
41
|
|
|
|
42
|
|
|
$adminmenu[] = [ |
43
|
|
|
'title' => _MI_XLANGUAGE_ADMENU0, |
44
|
|
|
'link' => 'admin/main.php', |
45
|
|
|
'icon' => $pathIcon32 . '/manage.png', |
46
|
|
|
]; |
47
|
|
|
|
48
|
|
|
$adminmenu[] = [ |
49
|
|
|
'title' => _MI_XLANGUAGE_ADMENU1, |
50
|
|
|
'link' => 'admin/main.php?op=add&type=base', |
51
|
|
|
'icon' => $pathIcon32 . '/add.png', |
52
|
|
|
]; |
53
|
|
|
|
54
|
|
|
$adminmenu[] = [ |
55
|
|
|
'title' => _MI_XLANGUAGE_ADMENU2, |
56
|
|
|
'link' => 'admin/main.php?op=add&type=ext', |
57
|
|
|
'icon' => $pathIcon32 . '/insert_table_row.png', |
58
|
|
|
]; |
59
|
|
|
|
60
|
|
|
$adminmenu[] = [ |
61
|
|
|
'title' => _MI_XLANGUAGE_ADMENU3, |
62
|
|
|
'link' => 'admin/about.php', |
63
|
|
|
'icon' => $pathIcon32 . '/about.png', |
64
|
|
|
]; |
65
|
|
|
|
66
|
|
|
//$adminmenu[] = [ |
67
|
|
|
// 'title' => _MI_XLANGUAGE_ADMENU3, |
68
|
|
|
// 'link' => "admin/about2.php", |
69
|
|
|
// 'icon' => $pathIcon32.'/about.png', |
70
|
|
|
//]; |
71
|
|
|
|