1 | <?php |
||
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 | * wgGitHub module for xoops |
||
14 | * |
||
15 | * @copyright 2020 XOOPS Project (https://xooops.org) |
||
16 | * @license GPL 2.0 or later |
||
17 | * @package wggithub |
||
18 | * @since 1.0 |
||
19 | * @min_xoops 2.5.10 |
||
20 | * @author Goffy - XOOPS Development Team - Email:<[email protected]> - Website:<https://wedega.com> |
||
21 | */ |
||
22 | |||
23 | $dirname = \basename(\dirname(__DIR__)); |
||
24 | $moduleHandler = \xoops_getHandler('module'); |
||
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
25 | $xoopsModule = XoopsModule::getByDirname($dirname); |
||
26 | $moduleInfo = $moduleHandler->get($xoopsModule->getVar('mid')); |
||
27 | $sysPathIcon32 = $moduleInfo->getInfo('sysicons32'); |
||
28 | |||
29 | $adminmenu[] = [ |
||
30 | 'title' => \_MI_WGGITHUB_ADMENU1, |
||
31 | 'link' => 'admin/index.php', |
||
32 | 'icon' => 'assets/icons/32/dashboard.png', |
||
33 | ]; |
||
34 | $adminmenu[] = [ |
||
35 | 'title' => \_MI_WGGITHUB_ADMENU2, |
||
36 | 'link' => 'admin/settings.php', |
||
37 | 'icon' => 'assets/icons/32/settings.png', |
||
38 | ]; |
||
39 | $adminmenu[] = [ |
||
40 | 'title' => \_MI_WGGITHUB_ADMENU3, |
||
41 | 'link' => 'admin/directories.php', |
||
42 | 'icon' => 'assets/icons/32/directories.png', |
||
43 | ]; |
||
44 | $adminmenu[] = [ |
||
45 | 'title' => \_MI_WGGITHUB_ADMENU8, |
||
46 | 'link' => 'admin/permissions.php', |
||
47 | 'icon' => 'assets/icons/32/permissions.png', |
||
48 | ]; |
||
49 | $adminmenu[] = [ |
||
50 | 'title' => \_MI_WGGITHUB_ADMENU5, |
||
51 | 'link' => 'admin/repositories.php', |
||
52 | 'icon' => 'assets/icons/32/repositories.png', |
||
53 | ]; |
||
54 | $adminmenu[] = [ |
||
55 | 'title' => \_MI_WGGITHUB_ADMENU6, |
||
56 | 'link' => 'admin/readmes.php', |
||
57 | 'icon' => 'assets/icons/32/readmes.png', |
||
58 | ]; |
||
59 | $adminmenu[] = [ |
||
60 | 'title' => \_MI_WGGITHUB_ADMENU7, |
||
61 | 'link' => 'admin/releases.php', |
||
62 | 'icon' => 'assets/icons/32/releases.png', |
||
63 | ]; |
||
64 | $adminmenu[] = [ |
||
65 | 'title' => \_MI_WGGITHUB_ADMENU4, |
||
66 | 'link' => 'admin/logs.php', |
||
67 | 'icon' => 'assets/icons/32/logs.png', |
||
68 | ]; |
||
69 | $adminmenu[] = [ |
||
70 | 'title' => \_MI_WGGITHUB_ADMENU9, |
||
71 | 'link' => 'admin/feedback.php', |
||
72 | 'icon' => 'assets/icons/32/feedback.png', |
||
73 | ]; |
||
74 | $adminmenu[] = [ |
||
75 | 'title' => \_MI_WGGITHUB_ABOUT, |
||
76 | 'link' => 'admin/about.php', |
||
77 | 'icon' => 'assets/icons/32/about.png', |
||
78 | ]; |
||
79 |