1
|
|
|
<?php declare(strict_types=1); |
2
|
|
|
|
3
|
|
|
/* |
4
|
|
|
You may not change or alter any portion of this comment or credits |
5
|
|
|
of supporting developers from this source code or any supporting source code |
6
|
|
|
which is considered copyrighted (c) material of the original comment or credit authors. |
7
|
|
|
|
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
|
|
|
|
13
|
|
|
/** |
14
|
|
|
* wgEvents module for xoops |
15
|
|
|
* |
16
|
|
|
* @copyright 2021 XOOPS Project (https://xoops.org) |
17
|
|
|
* @license GPL 2.0 or later |
18
|
|
|
* @package wgevents |
19
|
|
|
* @author Goffy - Wedega - Email:[email protected] - Website:https://xoops.wedega.com |
20
|
|
|
*/ |
21
|
|
|
|
22
|
|
|
use XoopsModules\Wgevents\Helper; |
23
|
|
|
|
24
|
|
|
$dirname = \basename(\dirname(__DIR__)); |
25
|
|
|
$moduleHandler = \xoops_getHandler('module'); |
26
|
|
|
$xoopsModule = \XoopsModule::getByDirname($dirname); |
27
|
|
|
$moduleInfo = $moduleHandler->get($xoopsModule->getVar('mid')); |
28
|
|
|
$sysPathIcon32 = $moduleInfo->getInfo('sysicons32'); |
|
|
|
|
29
|
|
|
$helper = Helper::getInstance(); |
30
|
|
|
|
31
|
|
|
$adminmenu[] = [ |
32
|
|
|
'title' => \_MI_WGEVENTS_ADMENU1, |
33
|
|
|
'link' => 'admin/index.php', |
34
|
|
|
'icon' => 'assets/icons/32/dashboard.png', |
35
|
|
|
]; |
36
|
|
|
$adminmenu[] = [ |
37
|
|
|
'title' => \_MI_WGEVENTS_ADMENU2, |
38
|
|
|
'link' => 'admin/event.php', |
39
|
|
|
'icon' => 'assets/icons/32/events.png', |
40
|
|
|
]; |
41
|
|
|
$adminmenu[] = [ |
42
|
|
|
'title' => \_MI_WGEVENTS_ADMENU3, |
43
|
|
|
'link' => 'admin/question.php', |
44
|
|
|
'icon' => 'assets/icons/32/questions.png', |
45
|
|
|
]; |
46
|
|
|
$adminmenu[] = [ |
47
|
|
|
'title' => \_MI_WGEVENTS_ADMENU5, |
48
|
|
|
'link' => 'admin/registration.php', |
49
|
|
|
'icon' => 'assets/icons/32/registrations.png', |
50
|
|
|
]; |
51
|
|
|
if (is_object($helper->getModule()) && null !== $helper->getConfig() && $helper->getConfig('use_history')) { |
52
|
|
|
$adminmenu[] = [ |
53
|
|
|
'title' => \_MI_WGEVENTS_ADMENU11, |
54
|
|
|
'link' => 'admin/registrationhist.php', |
55
|
|
|
'icon' => 'assets/icons/32/registrationshist.png', |
56
|
|
|
]; |
57
|
|
|
} |
58
|
|
|
$adminmenu[] = [ |
59
|
|
|
'title' => \_MI_WGEVENTS_ADMENU4, |
60
|
|
|
'link' => 'admin/answer.php', |
61
|
|
|
'icon' => 'assets/icons/32/answers.png', |
62
|
|
|
]; |
63
|
|
|
if (is_object($helper->getModule()) && null !== $helper->getConfig() && $helper->getConfig('use_history')) { |
64
|
|
|
$adminmenu[] = [ |
65
|
|
|
'title' => \_MI_WGEVENTS_ADMENU12, |
66
|
|
|
'link' => 'admin/answerhist.php', |
67
|
|
|
'icon' => 'assets/icons/32/answershist.png', |
68
|
|
|
]; |
69
|
|
|
} |
70
|
|
|
$adminmenu[] = [ |
71
|
|
|
'title' => \_MI_WGEVENTS_ADMENU13, |
72
|
|
|
'link' => 'admin/log.php', |
73
|
|
|
'icon' => 'assets/icons/32/logs.png', |
74
|
|
|
]; |
75
|
|
|
$adminmenu[] = [ |
76
|
|
|
'title' => \_MI_WGEVENTS_ADMENU15, |
77
|
|
|
'link' => 'admin/task.php', |
78
|
|
|
'icon' => 'assets/icons/32/tasks.png', |
79
|
|
|
]; |
80
|
|
|
$adminmenu[] = [ |
81
|
|
|
'title' => \_MI_WGEVENTS_ADMENU7, |
82
|
|
|
'link' => 'admin/category.php', |
83
|
|
|
'icon' => 'assets/icons/32/categories.png', |
84
|
|
|
]; |
85
|
|
|
$adminmenu[] = [ |
86
|
|
|
'title' => \_MI_WGEVENTS_ADMENU6, |
87
|
|
|
'link' => 'admin/textblock.php', |
88
|
|
|
'icon' => 'assets/icons/32/textblocks.png', |
89
|
|
|
]; |
90
|
|
|
$adminmenu[] = [ |
91
|
|
|
'title' => \_MI_WGEVENTS_ADMENU8, |
92
|
|
|
'link' => 'admin/field.php', |
93
|
|
|
'icon' => 'assets/icons/32/fields.png', |
94
|
|
|
]; |
95
|
|
|
$adminmenu[] = [ |
96
|
|
|
'title' => \_MI_WGEVENTS_ADMENU10, |
97
|
|
|
'link' => 'admin/permission.php', |
98
|
|
|
'icon' => 'assets/icons/32/permissions.png', |
99
|
|
|
]; |
100
|
|
|
$adminmenu[] = [ |
101
|
|
|
'title' => \_MI_WGEVENTS_ADMENU14, |
102
|
|
|
'link' => 'admin/account.php', |
103
|
|
|
'icon' => 'assets/icons/32/accounts.png', |
104
|
|
|
]; |
105
|
|
|
$adminmenu[] = [ |
106
|
|
|
'title' => \_MI_WGEVENTS_ADMENU9, |
107
|
|
|
'link' => 'admin/maintenance.php', |
108
|
|
|
'icon' => 'assets/icons/32/maintenance.png', |
109
|
|
|
]; |
110
|
|
|
$adminmenu[] = [ |
111
|
|
|
'title' => \_MI_WGEVENTS_ADMENU22, |
112
|
|
|
'link' => 'admin/import.php', |
113
|
|
|
'icon' => 'assets/icons/32/import.png', |
114
|
|
|
]; |
115
|
|
|
$adminmenu[] = [ |
116
|
|
|
'title' => \_MI_WGEVENTS_ADMENU20, |
117
|
|
|
'link' => 'admin/clone.php', |
118
|
|
|
'icon' => 'assets/icons/32/clone.png', |
119
|
|
|
]; |
120
|
|
|
$adminmenu[] = [ |
121
|
|
|
'title' => \_MI_WGEVENTS_ADMENU21, |
122
|
|
|
'link' => 'admin/feedback.php', |
123
|
|
|
'icon' => 'assets/icons/32/feedback.png', |
124
|
|
|
]; |
125
|
|
|
$adminmenu[] = [ |
126
|
|
|
'title' => \_MI_WGEVENTS_ABOUT, |
127
|
|
|
'link' => 'admin/about.php', |
128
|
|
|
'icon' => 'assets/icons/32/about.png', |
129
|
|
|
]; |
130
|
|
|
|