-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathxoops_version.php
148 lines (146 loc) · 5.66 KB
/
xoops_version.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<?php
/*
* ****************************************************************************
* xsitemap - MODULE FOR XOOPS CMS
*
* You may not change or alter any portion of this comment or credits
* of supporting developers from this source code or any supporting source code
* which is considered copyrighted (c) material of the original comment or credit authors.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* ****************************************************************************
*/
/**
* @package module\Xsitemap\frontside
* @author Urbanspaceman (http://www.takeaweb.it)
* @copyright Urbanspaceman (http://www.takeaweb.it)
* @copyright XOOPS Project (https://xoops.org)
* @license http://www.fsf.org/copyleft/gpl.html GNU public license
* @link https://xoops.org XOOPS
*/
require __DIR__ . '/preloads/autoloader.php';
$moduleDirName = basename(__DIR__);
$modversion = [
'version' => '1.56.1',
'module_status' => 'Beta 1',
'release_date' => '2022/02/20',
'name' => _MI_XSITEMAP_NAME,
'description' => _MI_XSITEMAP_DESC,
'author' => 'Urbanspaceman',
'author_website_url' => 'http://www.takeaweb.it',
'author_website_name' => 'TAKEAWEB',
'credits' => 'astueo.com (CSS Stylesheet), Mage, Mamba, Zyspec, Aerograf',
'license' => 'GNU GPL 2.0',
'license_url' => 'www.gnu.org/licenses/gpl-2.0.html',
'help' => 'page=help',
'release_info' => 'This is a SITEMAP module written for XOOPS 2.5.9',
'manual' => '',
'manual_file' => '',
'image' => 'assets/images/logoModule.png',
'dirname' => $moduleDirName,
'modicons16' => 'assets/images/icons/16',
'modicons32' => 'assets/images/icons/32',
'min_php' => '7.3',
'min_xoops' => '2.5.10',
'min_admin' => '1.2',
'min_db' => ['mysql' => '5.5'],
// About
'module_website_name' => 'XOOPS',
'module_website_url' => 'www.xoops.org',
'release_file' => $GLOBALS['xoops']->url("www/modules/{$moduleDirName}/docs/changelog.txt"),
// Admin things
'hasAdmin' => 1,
'adminindex' => 'admin/index.php',
'adminmenu' => 'admin/menu.php',
// Mysql file
'sqlfile' => ['mysql' => 'sql/mysql.sql'],
// Tables
'tables' => [
$moduleDirName . '_' . 'plugin',
],
// Scripts to run upon installation or update
'onInstall' => 'include/oninstall.php',
'onUpdate' => 'include/onupdate.php',
'onUninstall' => 'include/onuninstall.php',
// Menu
'hasMain' => 1,
'system_menu' => 1,
// ------------------- Help files ------------------- //
'helpsection' => [
['name' => _MI_XSITEMAP_OVERVIEW, 'link' => 'page=help'],
['name' => _MI_XSITEMAP_DISCLAIMER, 'link' => 'page=disclaimer'],
['name' => _MI_XSITEMAP_LICENSE, 'link' => 'page=license'],
['name' => _MI_XSITEMAP_SUPPORT, 'link' => 'page=support'],
]
];
// ------------------- Templates ------------------- //
$modversion['templates'] = [
// Admin templates
['file' => 'xsitemap_admin_about.tpl', 'description' => '', 'type' => 'admin'],
['file' => 'xsitemap_admin_header.tpl', 'description' => '', 'type' => 'admin'],
['file' => 'xsitemap_admin_index.tpl', 'description' => '', 'type' => 'admin'],
['file' => 'xsitemap_admin_xml.tpl', 'description' => '', 'type' => 'admin'],
['file' => 'xsitemap_admin_plugins.tpl', 'description' => '', 'type' => 'admin'],
['file' => 'xsitemap_admin_footer.tpl', 'description' => '', 'type' => 'admin'],
// User templates
['file' => 'xsitemap_index.tpl', 'description' => ''],
['file' => 'xsitemap_slickmap.tpl', 'description' => ''],
['file' => 'xsitemap_xml.tpl', 'description' => ''],
];
// Preferences
$modversion['config'] = [
[
'name' => 'adminpager',
'title' => '\_MI_XSITEMAP_ADMIN_PAGER',
'description' => '\_MI_XSITEMAP_ADMIN_PAGER_DESC',
'formtype' => 'textbox',
'valuetype' => 'int',
'default' => 10,
],
[
'name' => 'show_subcategories',
'title' => '_MI_XSITEMAP_SHOW_PARENT',
'description' => '_MI_XSITEMAP_SHOW_PARENT_DESC',
'formtype' => 'yesno',
'valuetype' => 'int',
'default' => 1,
],
[
'name' => 'show_sublink',
'title' => '_MI_XSITEMAP_SHOW_ACTION',
'description' => '_MI_XSITEMAP_SHOW_ACTION_DESC',
'formtype' => 'yesno',
'valuetype' => 'int',
'default' => 1,
],
[
'name' => 'invisible_dirnames',
'title' => '_MI_XSITEMAP_DIRNAMES',
'description' => '_MI_XSITEMAP_DIRNAMES_DESC',
'formtype' => 'textbox',
'valuetype' => 'text',
'default' => '',
],
[
'name' => 'columns_number',
'title' => '_MI_XSITEMAP_COLS',
'description' => '_MI_XSITEMAP_COLS_DESC',
'formtype' => 'select',
'valuetype' => 'int',
'default' => 4,
'options' => [
'1' => 1,
'2' => 2,
'3' => 3,
'4' => 4,
'5' => 5,
'6' => 6,
'7' => 7,
'8' => 8,
'9' => 9,
'10' => 10,
],
],
];