-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathicms_version.php
executable file
·189 lines (160 loc) · 6.61 KB
/
icms_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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
<?php
/**
* Content version infomation
*
* This file holds the configuration information of this module
*
* @copyright The ImpressCMS Project
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License (GPL)
* @since 1.0
* @author Rodrigo P Lima aka TheRplima <[email protected]>
* @package content
* @version $Id$
*/
defined("ICMS_ROOT_PATH") or die("ICMS root path not defined");
$modversion = array(
/** General Information */
'name' => _MI_CONTENT_MD_NAME,
'version' => "1.4.0",
'description' => _MI_CONTENT_MD_DESC,
'author' => "David Janssens (fiammybe)",
'credits' => "mekdrop, skenow, Rodrigo P Lima aka TheRplima, Phoenyx",
'help' => "",
'license' => "GNU General Public License v2 (GPLv2)",
'official' => 1,
'dirname' => basename(__DIR__),
'modname' => "content",
/** Images information */
'iconsmall' => "images/icon_small.png",
'iconbig' => "images/icon_big.png",
'image' => "images/icon_big.png", /* for backward compatibility */
/** Development information */
'status_version' => "1.4.0",
'status' => "final",
'date' => "01 Jan 2025",
'author_word' => "",
'warning' => _CO_ICMS_WARNING_FINAL,
/** Contributors */
'developer_website_url' => "https://www.impresscms.org",
'developer_website_name' => "The ImpressCMS Project",
'developer_email' => "[email protected]",
/** Administrative information */
'hasAdmin' => 1,
'adminindex' => "admin/index.php",
'adminmenu' => "admin/menu.php",
/** Install and update informations */
'onInstall' => "include/onupdate.inc.php",
'onUpdate' => "include/onupdate.inc.php",
/** Search information */
'hasSearch' => 1,
'search' => array('file' => "include/search.inc.php", 'func' => "content_search"),
/** Comments information */
'hasComments' => 1,
'comments' => array('itemName' => 'content_id', 'pageName' => 'content.php',
'callbackFile' => 'include/comment.inc.php',
'callback' => array('approve' => 'content_com_approve',
'update' => 'content_com_update')),
/** Menu information */
'hasMain' => 1,
/** Database information */
'object_items' => array('content'));
$modversion["tables"] = icms_getTablesArray($modversion['dirname'], $modversion['object_items']);
$modversion['people']['developers'][] = "[url=https://www.impresscms.org/userinfo.php?uid=1102]David Janssens (fiammybe)[/url]";
$modversion['people']['developers'][] = "[url=https://www.impresscms.org/userinfo.php?uid=106]Rodrigo P Lima (TheRplima)[/url]";
/** Manual */
$modversion['manual']['wiki'][] = "<a href='http://wiki.impresscms.org/index.php?title=content' target='_blank'>English</a>";
if (is_object(icms::$module) && icms::$module->getVar('dirname') == 'content') {
$content_content_handler = icms_getModuleHandler('content', basename(__DIR__), 'content');
if ($content_content_handler->userCanSubmit()) {
$modversion['sub'][1]['name'] = _MI_CONTENT_CONTENT_ADD;
$modversion['sub'][1]['url'] = 'content.php?op=mod';
}
}
/** Blocks information */
$modversion['blocks'][] = array(
'file' => 'content_display.php',
'name' => _MI_CONTENT_CONTENTDISPLAY,
'description' => _MI_CONTENT_CONTENTDISPLAYDSC,
'show_func' => 'content_content_display_show',
'edit_func' => 'content_content_display_edit',
'options' => '0|1|1|1',
'template' => 'content_content_display.html');
$modversion['blocks'][] = array(
'file' => 'content_menu.php',
'name' => _MI_CONTENT_CONTENTMENU,
'description' => _MI_CONTENT_CONTENTMENUDSC,
'show_func' => 'content_content_menu_show',
'edit_func' => 'content_content_menu_edit',
'options' => 'content_title|ASC|1|#59ADDB|0',
'template' => 'content_content_menu.html');
/** Templates information */
$modversion['templates'] = array(
array('file' => 'content_header.html', 'description' => 'Module Header'),
array('file' => 'content_footer.html', 'description' => 'Module Footer'),
array('file' => 'content_admin_content.html', 'description' => 'Content Index'),
array('file' => 'content_index.html', 'description' => 'Content Index'),
array('file' => 'content_single_content.html', 'description' => 'Single content template'),
array('file' => 'content_content.html', 'description' => 'Content page'),
array('file' => 'content_requirements.html', 'description' => 'Content page'),
array('file' => 'content_content_menu_structure.html', 'description' => 'Structure used to create recursive menu.'));
/** Preferences information */
$modversion['config'][] = array(
'name' => 'default_page',
'title' => '_MI_CONTENT_CONTPAGE',
'description' => '_MI_CONTENT_CONTPAGEDSC',
'formtype' => 'select_pages',
'valuetype' => 'int',
'default' => '0');
$modversion['config'][] = array(
'name' => 'poster_groups',
'title' => '_MI_CONTENT_AUTHORGR',
'description' => '_MI_CONTENT_AUTHORGRDSC',
'formtype' => 'group_multi',
'valuetype' => 'array',
'default' => '1');
$modversion['config'][] = array(
'name' => 'contents_limit',
'title' => '_MI_CONTENT_LIMIT',
'description' => '_MI_CONTENT_LIMITDSC',
'formtype' => 'textbox',
'valuetype' => 'text',
'default' => 5);
$modversion['config'][] = array(
'name' => 'show_breadcrumb',
'title' => '_MI_CONTENT_SHOWBREADCRUMB',
'description' => '_MI_CONTENT_SHOWBREADCRUMBDSC',
'formtype' => 'yesno',
'valuetype' => 'int',
'default' => 1);
$modversion['config'][] = array(
'name' => 'show_relateds',
'title' => '_MI_CONTENT_SHOWRELATEDS',
'description' => '_MI_CONTENT_SHOWRELATEDSDSC',
'formtype' => 'yesno',
'valuetype' => 'int',
'default' => 1);
$modversion['config'][] = array(
'name' => 'show_contentinfo',
'title' => '_MI_CONTENT_SHOWINFO',
'description' => '_MI_CONTENT_SHOWINFODSC',
'formtype' => 'yesno',
'valuetype' => 'int',
'default' => 1);
/** Notification information */
$modversion['hasNotification'] = 1;
$modversion['notification'] = array(
'lookup_file' => 'include/notification.inc.php',
'lookup_func' => 'content_notify_iteminfo');
$modversion['notification']['category'][] = array (
'name' => 'global',
'title' => _MI_CONTENT_GLOBAL_NOTIFY,
'description' => _MI_CONTENT_GLOBAL_NOTIFY_DSC,
'subscribe_from' => array('index.php', 'content.php'));
$modversion['notification']['event'][] = array(
'name' => 'content_published',
'category' => 'global',
'title' => _MI_CONTENT_GLOBAL_CONTENT_PUBLISHED_NOTIFY,
'caption' => _MI_CONTENT_GLOBAL_CONTENT_PUBLISHED_NOTIFY_CAP,
'description' => _MI_CONTENT_GLOBAL_CONTENT_PUBLISHED_NOTIFY_DSC,
'mail_template' => 'global_content_published',
'mail_subject' => _MI_CONTENT_GLOBAL_CONTENT_PUBLISHED_NOTIFY_SBJ);