-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathicms_version.php
242 lines (208 loc) · 8.01 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
<?php
/**
* projects version infomation
*
* This file holds the configuration information of this module
*
* @copyright Copyright Madfish (Simon Wilkinson) 2012
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License (GPL)
* @since 1.0
* @author Madfish (Simon Wilkinson) <[email protected]>
* @package projects
* @version $Id$
*/
defined("ICMS_ROOT_PATH") or die("ICMS root path not defined");
/** General Information */
$modversion = array(
"name" => _MI_PROJECTS_MD_NAME,
"version" => 1.06,
"description" => _MI_PROJECTS_MD_DESC,
"author" => "Madfish (Simon Wilkinson)",
"credits" => "Thanks to Rene Sato, qm-b, Phoenyx and skenow for testing and feedback. Module icon by David Lanham http://dlanham.com/",
"help" => "",
"license" => "GNU General Public License (GPL)",
"official" => 0,
"dirname" => basename(dirname(__FILE__)),
"modname" => "projects",
/** 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.06",
"status" => "Beta",
"date" => "24/2/2015",
"author_word" => "For ICMS 1.3+ and 2.0 only.",
/** Contributors */
"developer_website_url" => "https://www.isengard.biz",
"developer_website_name" => "Isengard.biz",
"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" => "projects_search"),
/** Comments information */
"hasComments" => 0
);
/** Menu information */
$modversion["hasMain"] = 1;
$modversion["sub"][0]["name"] = _MI_PROJECTS_COMPLETED;
$modversion["sub"][0]["url"] = "completed_project.php";
/** other possible types: testers, translators, documenters and other */
$modversion['people']['developers'][] = "Madfish (Simon Wilkinson)";
/** Manual */
$modversion['manual']['wiki'][] = "<a href='http://wiki.impresscms.org/index.php?title=projects' target='_blank'>English</a>";
/** Database information */
$modversion['object_items'][1] = 'project';
$modversion["tables"] = icms_getTablesArray($modversion['dirname'], $modversion['object_items']);
/** Templates information */
$modversion['templates'] = array(
array("file" => "projects_admin_project.html", "description" => "Project admin index."),
array("file" => "projects_project.html", "description" => "Project index."),
array("file" => "projects_header.html", "description" => "Module header."),
array("file" => "projects_footer.html", "description" => "Module footer."),
array("file" => "projects_requirements.html", "description" => "Alert if module requirements not met."));
/** Blocks */
$modversion['blocks'][1] = array(
'file' => 'random_projects.php',
'name' => _MI_PROJECTS_RANDOM,
'description' => _MI_PROJECTS_RANDOMDSC,
'show_func' => 'show_random_projects',
'edit_func' => 'edit_random_projects',
'options' => '5|1|1|0|0|0', // Number of projects to display | randomise? | display logos or simple list | tag_id | show current projects | dynamic tag filtering
'template' => 'projects_block_random.html'
);
/** Preferences */
$modversion['config'][1] = array(
'name' => 'projects_index_display_mode',
'title' => '_MI_PROJECTS_INDEX_DISPLAY_MODE',
'description' => '_MI_PROJECTS_INDEX_DISPLAY_MODE_DSC',
'formtype' => 'yesno',
'valuetype' => 'int',
'default' => '1');
$modversion['config'][] = array(
'name' => 'number_of_projects_per_page',
'title' => '_MI_PROJECTS_NUMBER_PROJECTS_PER_PAGE',
'description' => '_MI_PROJECTS_NUMBER_PROJECTS_PER_PAGE_DSC',
'formtype' => 'textbox',
'valuetype' => 'int',
'default' => '5');
$modversion['config'][] = array(
'name' => 'projects_show_breadcrumb',
'title' => '_MI_PROJECTS_SHOW_BREADCRUMB',
'description' => '_MI_PROJECTS_SHOW_BREADCRUMB_DSC',
'formtype' => 'yesno',
'valuetype' => 'int',
'default' => '1');
$modversion['config'][] = array(
'name' => 'projects_show_view_counter',
'title' => '_MI_PROJECTS_SHOW_VIEW_COUNTER',
'description' => '_MI_PROJECTS_SHOW_VIEW_COUNTER_DSC',
'formtype' => 'yesno',
'valuetype' => 'int',
'default' => '1');
$modversion['config'][] = array(
'name' => 'projects_show_tag_select_box',
'title' => '_MI_PROJECTS_SHOW_TAG_SELECT_BOX',
'description' => '_MI_PROJECTS_SHOW_TAG_SELECT_BOX_DSC',
'formtype' => 'yesno',
'valuetype' => 'int',
'default' => '1');
$modversion['config'][] = array(
'name' => 'display_project_logos',
'title' => '_MI_PROJECTS_DISPLAY_PROJECT_LOGOS',
'description' => '_MI_PROJECTS_DISPLAY_PROJECT_LOGOS_DSC',
'formtype' => 'yesno',
'valuetype' => 'int',
'default' => '1');
$modversion['config'][] = array(
'name' => 'project_logo_position',
'title' => '_MI_PROJECTS_PROJECT_LOGO_POSITION',
'description' => '_MI_PROJECTS_PROJECT_LOGO_POSITION_DSC',
'formtype' => 'select',
'valuetype' => 'int',
'options' => array('_MI_PROJECTS_LEFT' => 0, '_MI_PROJECTS_RIGHT' => 1),
'default' => 1);
$modversion['config'][] = array(
'name' => 'projects_freestyle_logo_dimensions',
'title' => '_MI_PROJECTS_FREESTYLE_LOGO_DIMENSIONS',
'description' => '_MI_PROJECTS_FREESTYLE_LOGO_DIMENSIONS_DSC',
'formtype' => 'yesno',
'valuetype' => 'int',
'default' => '0');
$modversion['config'][] = array(
'name' => 'projects_logo_index_display_width',
'title' => '_MI_PROJECTS_LOGO_INDEX_DISPLAY_WIDTH',
'description' => '_MI_PROJECTS_LOGO_INDEX_DISPLAY_WIDTH_DSC',
'formtype' => 'text',
'valuetype' => 'int',
'default' => '150');
$modversion['config'][] = array(
'name' => 'projects_logo_single_display_width',
'title' => '_MI_PROJECTS_LOGO_SINGLE_DISPLAY_WIDTH',
'description' => '_MI_PROJECTS_LOGO_SINGLE_DISPLAY_WIDTH_DSC',
'formtype' => 'text',
'valuetype' => 'int',
'default' => '300');
$modversion['config'][] = array(
'name' => 'projects_logo_block_display_width',
'title' => '_MI_PROJECTS_LOGO_BLOCK_DISPLAY_WIDTH',
'description' => '_MI_PROJECTS_LOGO_BLOCK_DISPLAY_WIDTH_DSC',
'formtype' => 'text',
'valuetype' => 'int',
'default' => '150');
$modversion['config'][] = array(
'name' => 'projects_logo_upload_height',
'title' => '_MI_PROJECTS_LOGO_UPLOAD_HEIGHT',
'description' => '_MI_PROJECTS_LOGO_UPLOAD_HEIGHT_DSC',
'formtype' => 'textbox',
'valuetype' => 'int',
'default' => '500');
$modversion['config'][] = array(
'name' => 'projects_logo_upload_width',
'title' => '_MI_PROJECTS_LOGO_UPLOAD_WIDTH',
'description' => '_MI_PROJECTS_LOGO_UPLOAD_WIDTH_DSC',
'formtype' => 'textbox',
'valuetype' => 'int',
'default' => '500');
$modversion['config'][] = array(
'name' => 'projects_logo_file_size',
'title' => '_MI_PROJECTS_LOGO_FILE_SIZE',
'description' => '_MI_PROJECTS_LOGO_FILE_SIZE_DSC',
'formtype' => 'textbox',
'valuetype' => 'int',
'default' => '2097152'); // 2MB default max upload size
$modversion['config'][] = array(
'name' => 'projects_show_last_updated',
'title' => '_MI_PROJECTS_SHOW_LAST_UPDATED',
'description' => '_MI_PROJECTS_SHOW_LAST_UPDATED_DSC',
'formtype' => 'yesno',
'valuetype' => 'int',
'default' => '1');
$modversion['config'][] = array(
'name' => 'projects_date_format',
'title' => '_MI_PROJECTS_DATE_FORMAT',
'description' => '_MI_PROJECTS_DATE_FORMAT_DSC',
'formtype' => 'textbox',
'valuetype' => 'text',
'default' => 'j/n/Y');
$modversion['config'][] = array(
'name' => 'projects_updated_notice_period',
'title' => '_MI_PROJECTS_UPDATED_NOTICE_PERIOD',
'description' => '_MI_PROJECTS_UPDATED_NOTICE_PERIOD_DSC',
'formtype' => 'select',
'valuetype' => 'int',
'options' => array(
'_MI_PROJECTS_ONE_DAY' => 1,
'_MI_PROJECTS_THREE_DAYS' => 2,
'_MI_PROJECTS_ONE_WEEK' => 3,
'_MI_PROJECTS_TWO_WEEKS' => 4,
'_MI_PROJECTS_THREE_WEEKS' => 5,
'_MI_PROJECTS_FOUR_WEEKS' => 6),
'default' => 3);