-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathicms_version.php
277 lines (230 loc) · 9.04 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
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
<?php
/**
* Sprockets version infomation
*
* This file holds the configuration information of this module
*
* @copyright Copyright Madfish (Simon Wilkinson) 2011
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License (GPL)
* @since 1.0
* @author Madfish (Simon Wilkinson) <simon@isengard.biz>
* @package sprockets
* @version $Id$
*/
if (!defined("ICMS_ROOT_PATH")) die("ICMS root path not defined");
/** General Information */
$modversion = array(
'name'=> _MI_SPROCKETS_MD_NAME,
'version'=> '2.01',
'description'=> _MI_SPROCKETS_MD_DESC,
'author'=> "Madfish (Simon Wilkinson)",
'credits'=> "Skeleton code generated with ImBuilding. Module icon by David Lanham http://dlanham.com/",
'help'=> "",
'license'=> "GNU General Public License (GPL)",
'official'=> 0,
'dirname'=> basename(dirname(__FILE__ )),
/** Images information */
'iconsmall'=> "images/icon_small.png",
'iconbig'=> "images/icon_big.png",
'image'=> "images/icon_big.png", /* for backward compatibility */
/** Development information */
'status_version'=> "2.01",
'status'=> "Beta",
'date'=> "8/1/2015",
'author_word'=> "This version of Sprockets is compatible with ImpressCMS V1.3.x.",
/** Contributors */
'developer_website_url' => "https://www.isengard.biz",
'developer_website_name' => "Isengard.biz",
'developer_email' => "simon@isengard.biz");
$modversion['people']['developers'][] = "Madfish (Simon Wilkinson)";
/** Manual */
$modversion['manual']['wiki'][] = "<a href='http://wiki.impresscms.org/index.php?title=Sprockets' target='_blank'>English</a>";
$modversion['warning'] = _CO_ICMS_WARNING_BETA;
/** Administrative information */
$modversion['hasAdmin'] = 1;
$modversion['adminindex'] = "admin/index.php";
$modversion['adminmenu'] = "admin/menu.php";
/** Database information */
$modversion['object_items'][1] = 'tag';
$modversion['object_items'][] = 'taglink';
$modversion['object_items'][] = 'rights';
$modversion['object_items'][] = 'archive';
$modversion["tables"] = icms_getTablesArray($modversion['dirname'], $modversion['object_items']);
/** Install and update informations */
$modversion['onInstall'] = "include/onupdate.inc.php";
$modversion['onUpdate'] = "include/onupdate.inc.php";
/** Search information */
$modversion['hasSearch'] = 0;
/** Menu information */
$modversion['hasMain'] = 1;
$modversion['blocks'][1] = array(
'file' => 'sprockets_content_teasers.php',
'name' => _MI_SPROCKETS_CONTENT_TEASERS,
'description' => _MI_SPROCKETS_CONTENT_TEASERSDSC,
'show_func' => 'sprockets_content_teasers_show',
'edit_func' => 'sprockets_content_teasers_edit',
// 0 items to show | 1 tags | 2 objects | 3 image position | 4 image size | 5 display mode | 6 dynamic tagging
'options' => '5|All|All|1|150|1|0',
'template' => 'sprockets_content_teasers.html');
/** Templates information */
$modversion['templates'][1] = array(
'file' => 'sprockets_header.html',
'description' => 'Module Header');
$modversion['templates'][] = array(
'file' => 'sprockets_footer.html',
'description' => 'Module Footer');
$modversion['templates'][] = array(
'file' => 'sprockets_requirements.html',
'description' => 'Requirements warning');
$modversion['templates'][] = array(
'file' => 'sprockets_rss.html',
'description' => 'Unified RSS feed, supports enclosures.');
$modversion['templates'][]= array(
'file' => 'sprockets_admin_tag.html',
'description' => 'Tag admin index');
$modversion['templates'][]= array(
'file' => 'sprockets_text.html',
'description' => 'Subtemplate for text resources');
$modversion['templates'][]= array(
'file' => 'sprockets_sound.html',
'description' => 'Subtemplate for sound resources');
$modversion['templates'][]= array(
'file' => 'sprockets_image.html',
'description' => 'Subtemplate for image and video resources');
$modversion['templates'][]= array(
'file' => 'sprockets_tag.html',
'description' => 'Tag index');
$modversion['templates'][]= array(
'file' => 'sprockets_admin_taglink.html',
'description' => 'Taglink admin index');
$modversion['templates'][]= array(
'file' => 'sprockets_admin_rights.html',
'description' => 'Rights admin index');
$modversion['templates'][]= array(
'file' => 'sprockets_rights.html',
'description' => 'Rights index');
$modversion['templates'][]= array(
'file' => 'sprockets_admin_archive.html',
'description' => 'Archive admin index');
/** Preferences information */
$modversion['config'][1] = array(
'name' => 'display_breadcrumb',
'title' => '_MI_SPROCKETS_DISPLAY_BREADCRUMB',
'description' => '_MI_SPROCKETS_DISPLAY_BREADCRUMB_DSC',
'formtype' => 'yesno',
'valuetype' => 'int',
'default' => '1');
// Number of items to include in RSS feed
$modversion['config'][] = array(
'name' => 'number_rss_items',
'title' => '_MI_SPROCKETS_NUMBER_RSS_ITEMS',
'description' => '_MI_SPROCKETS_NUMBER_RSS_ITEMS_DSC',
'formtype' => 'text',
'valuetype' => 'int',
'default' => '10');
// Thumbnail size for teaser images in the cross-module content on tag.php
$modversion['config'][] = array(
'name' => 'thumbnail_width',
'title' => '_MI_SPROCKETS_THUMBNAIL_WIDTH',
'description' => '_MI_SPROCKETS_THUMBNAIL_WIDTHDSC',
'formtype' => 'textbox',
'valuetype' => 'int',
'default' => '150');
$modversion['config'][] = array(
'name' => 'thumbnail_height',
'title' => '_MI_SPROCKETS_THUMBNAIL_HEIGHT',
'description' => '_MI_SPROCKETS_THUMBNAIL_HEIGHTDSC',
'formtype' => 'textbox',
'valuetype' => 'int',
'default' => '150');
// Size for image resources in the cross-module content content on tag.php
$modversion['config'][] = array(
'name' => 'image_width',
'title' => '_MI_SPROCKETS_IMAGE_WIDTH',
'description' => '_MI_SPROCKETS_IMAGE_WIDTHDSC',
'formtype' => 'textbox',
'valuetype' => 'int',
'default' => '400');
$modversion['config'][] = array(
'name' => 'image_height',
'title' => '_MI_SPROCKETS_IMAGE_HEIGHT',
'description' => '_MI_SPROCKETS_IMAGE_HEIGHTDSC',
'formtype' => 'textbox',
'valuetype' => 'int',
'default' => '400');
// Enable or disable cross-module content page
$modversion['config'][] = array(
'name' => 'enable_user_side_pages',
'title' => '_MI_SPROCKETS_ENABLE_USER_SIDE',
'description' => '_MI_SPROCKETS_ENABLE_USER_SIDE_DSC',
'formtype' => 'yesno',
'valuetype' => 'int',
'default' => '0');
$modversion['config'][] = array(
'name' => 'sprockets_tag_select_box',
'title' => '_MI_SPROCKETS_ENABLE_TAG_SELECT_BOX',
'description' => '_MI_SPROCKETS_ENABLE_TAG_SELECT_BOX_DSC',
'formtype' => 'yesno',
'valuetype' => 'int',
'default' => '1');
// Display tag select box on cross-module content page
// Client OBJECTS to include in the cross-module content on tag.php or in the cross-content block.
// Need one entry for every object type.
$client_objects = array(
'_MI_SPROCKETS_CMS_PAGES' => 'start',
'_MI_SPROCKETS_CATALOGUE_ITEMS' => 'item',
'_MI_SPROCKETS_EVENTS' => 'event',
'_MI_SPROCKETS_LIBRARY_PUBLICATIONS' => 'publication',
'_MI_SPROCKETS_NEWS_ARTICLES' => 'article',
'_MI_SPROCKETS_PARTNERS' => 'partner',
'_MI_SPROCKETS_PODCAST_PROGRAMMES' => 'programme',
'_MI_SPROCKETS_PODCAST_SOUNDTRACKS' => 'soundtrack',
'_MI_SPROCKETS_PROJECTS' => 'project'
);
// Objects to include in the cross-module content pages
$modversion['config'][] = array(
'name' => 'client_objects',
'title' => '_MI_SPROCKETS_ALLOWED_CLIENT_OBJECTS',
'description' => '_MI_SPROCKETS_ALLOWED_CLIENT_OBJECTS_DSC',
'formtype' => 'select_multi',
'valuetype' => 'array',
'options' => $client_objects);
$modversion['config'][] = array(
'name' => 'date_format',
'title' => '_MI_SPROCKETS_DATE_FORMAT',
'description' => '_MI_SPROCKETS_DATE_FORMAT_DSC',
'formtype' => 'textbox',
'valuetype' => 'text',
'default' => 'j/n/Y');
$modversion['config'][] = array(
'name' => 'pagination_limit',
'title' => '_MI_SPROCKETS_PAGINATION',
'description' => '_MI_SPROCKETS_PAGINATION_DSC',
'formtype' => 'textbox',
'valuetype' => 'int',
'default' => '10');
$modversion['config'][] = array(
'name' => 'resumption_token_cursor_offset',
'title' => '_MI_SPROCKETS_RESUMPTION_TOKEN_CURSOR_OFFSET',
'description' => '_MI_SPROCKETS_RESUMPTION_TOKEN_CURSOR_OFFSET_DSC',
'formtype' => 'text',
'valuetype' => 'int',
'default' => '100');
$modversion['config'][] = array(
'name' => 'resumption_token_expiration',
'title' => '_MI_SPROCKETS_RESUMPTION_TOKEN_EXPIRATION',
'description' => '_MI_SPROCKETS_RESUMPTION_TOKEN_EXPIRATION_DSC',
'formtype' => 'text',
'valuetype' => 'int',
'default' => '1800');
$modversion['config'][] = array(
'name' => 'resumption_token_throttle',
'title' => '_MI_SPROCKETS_RESUMPTION_TOKEN_THROTTLE',
'description' => '_MI_SPROCKETS_RESUMPTION_TOKEN_THROTTLE_DSC',
'formtype' => 'text',
'valuetype' => 'int',
'default' => '60');
/** Comments information */
$modversion['hasComments'] = 0;
/** Notification information */
$modversion['hasNotification'] = 0;