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