[TASK] Remove superfluous parenthesis in sysexts
[Packages/TYPO3.CMS.git] / typo3 / sysext / t3skin / ext_tables.php
1 <?php
2 if (!defined('TYPO3_MODE')) {
3 die('Access denied.');
4 }
5 if (TYPO3_MODE == 'BE' || TYPO3_MODE == 'FE' && isset($GLOBALS['BE_USER'])) {
6 global $TBE_STYLES;
7 // Register as a skin
8 $TBE_STYLES['skins'][$_EXTKEY] = array(
9 'name' => 't3skin'
10 );
11 // Support for other extensions to add own icons...
12 $presetSkinImgs = is_array($TBE_STYLES['skinImg']) ? $TBE_STYLES['skinImg'] : array();
13 $TBE_STYLES['skins'][$_EXTKEY]['stylesheetDirectories']['sprites'] = 'EXT:t3skin/stylesheets/sprites/';
14 /** Setting up backend styles and colors */
15 $TBE_STYLES['mainColors'] = array(
16 // Always use #xxxxxx color definitions!
17 'bgColor' => '#FFFFFF',
18 // Light background color
19 'bgColor2' => '#FEFEFE',
20 // Steel-blue
21 'bgColor3' => '#F1F3F5',
22 // dok.color
23 'bgColor4' => '#E6E9EB',
24 // light tablerow background, brownish
25 'bgColor5' => '#F8F9FB',
26 // light tablerow background, greenish
27 'bgColor6' => '#E6E9EB',
28 // light tablerow background, yellowish, for section headers. Light.
29 'hoverColor' => '#FF0000',
30 'navFrameHL' => '#F8F9FB'
31 );
32 $TBE_STYLES['colorschemes'][0] = '-|class-main1,-|class-main2,-|class-main3,-|class-main4,-|class-main5';
33 $TBE_STYLES['colorschemes'][1] = '-|class-main11,-|class-main12,-|class-main13,-|class-main14,-|class-main15';
34 $TBE_STYLES['colorschemes'][2] = '-|class-main21,-|class-main22,-|class-main23,-|class-main24,-|class-main25';
35 $TBE_STYLES['colorschemes'][3] = '-|class-main31,-|class-main32,-|class-main33,-|class-main34,-|class-main35';
36 $TBE_STYLES['colorschemes'][4] = '-|class-main41,-|class-main42,-|class-main43,-|class-main44,-|class-main45';
37 $TBE_STYLES['colorschemes'][5] = '-|class-main51,-|class-main52,-|class-main53,-|class-main54,-|class-main55';
38 $TBE_STYLES['styleschemes'][0]['all'] = 'CLASS: formField';
39 $TBE_STYLES['styleschemes'][1]['all'] = 'CLASS: formField1';
40 $TBE_STYLES['styleschemes'][2]['all'] = 'CLASS: formField2';
41 $TBE_STYLES['styleschemes'][3]['all'] = 'CLASS: formField3';
42 $TBE_STYLES['styleschemes'][4]['all'] = 'CLASS: formField4';
43 $TBE_STYLES['styleschemes'][5]['all'] = 'CLASS: formField5';
44 $TBE_STYLES['styleschemes'][0]['check'] = 'CLASS: checkbox';
45 $TBE_STYLES['styleschemes'][1]['check'] = 'CLASS: checkbox';
46 $TBE_STYLES['styleschemes'][2]['check'] = 'CLASS: checkbox';
47 $TBE_STYLES['styleschemes'][3]['check'] = 'CLASS: checkbox';
48 $TBE_STYLES['styleschemes'][4]['check'] = 'CLASS: checkbox';
49 $TBE_STYLES['styleschemes'][5]['check'] = 'CLASS: checkbox';
50 $TBE_STYLES['styleschemes'][0]['radio'] = 'CLASS: radio';
51 $TBE_STYLES['styleschemes'][1]['radio'] = 'CLASS: radio';
52 $TBE_STYLES['styleschemes'][2]['radio'] = 'CLASS: radio';
53 $TBE_STYLES['styleschemes'][3]['radio'] = 'CLASS: radio';
54 $TBE_STYLES['styleschemes'][4]['radio'] = 'CLASS: radio';
55 $TBE_STYLES['styleschemes'][5]['radio'] = 'CLASS: radio';
56 $TBE_STYLES['styleschemes'][0]['select'] = 'CLASS: select';
57 $TBE_STYLES['styleschemes'][1]['select'] = 'CLASS: select';
58 $TBE_STYLES['styleschemes'][2]['select'] = 'CLASS: select';
59 $TBE_STYLES['styleschemes'][3]['select'] = 'CLASS: select';
60 $TBE_STYLES['styleschemes'][4]['select'] = 'CLASS: select';
61 $TBE_STYLES['styleschemes'][5]['select'] = 'CLASS: select';
62 $TBE_STYLES['borderschemes'][0] = array('', '', '', 'wrapperTable');
63 $TBE_STYLES['borderschemes'][1] = array('', '', '', 'wrapperTable1');
64 $TBE_STYLES['borderschemes'][2] = array('', '', '', 'wrapperTable2');
65 $TBE_STYLES['borderschemes'][3] = array('', '', '', 'wrapperTable3');
66 $TBE_STYLES['borderschemes'][4] = array('', '', '', 'wrapperTable4');
67 $TBE_STYLES['borderschemes'][5] = array('', '', '', 'wrapperTable5');
68 // Setting the relative path to the extension in temp. variable:
69 $temp_eP = \TYPO3\CMS\Core\Extension\ExtensionManager::extRelPath($_EXTKEY);
70 // Alternative dimensions for frameset sizes:
71 // Left menu frame width
72 $TBE_STYLES['dims']['leftMenuFrameW'] = 190;
73 // Top frame height
74 $TBE_STYLES['dims']['topFrameH'] = 42;
75 // Default navigation frame width
76 $TBE_STYLES['dims']['navFrameWidth'] = 280;
77 // Setting roll-over background color for click menus:
78 // Notice, this line uses the the 'scriptIDindex' feature to override another value in this array (namely $TBE_STYLES['mainColors']['bgColor5']), for a specific script "typo3/alt_clickmenu.php"
79 $TBE_STYLES['scriptIDindex']['typo3/alt_clickmenu.php']['mainColors']['bgColor5'] = '#dedede';
80 // Setting up auto detection of alternative icons:
81 $TBE_STYLES['skinImgAutoCfg'] = array(
82 'absDir' => \TYPO3\CMS\Core\Extension\ExtensionManager::extPath($_EXTKEY) . 'icons/',
83 'relDir' => \TYPO3\CMS\Core\Extension\ExtensionManager::extRelPath($_EXTKEY) . 'icons/',
84 'forceFileExtension' => 'gif',
85 // Force to look for PNG alternatives...
86 'iconSizeWidth' => 16,
87 'iconSizeHeight' => 16
88 );
89 // Changing icon for filemounts, needs to be done here as overwriting the original icon would also change the filelist tree's root icon
90 $TCA['sys_filemounts']['ctrl']['iconfile'] = '_icon_ftp_2.gif';
91 // Adding flags to sys_language
92 \TYPO3\CMS\Core\Utility\GeneralUtility::loadTCA('sys_language');
93 $TCA['sys_language']['ctrl']['typeicon_column'] = 'flag';
94 $TCA['sys_language']['ctrl']['typeicon_classes'] = array(
95 'default' => 'mimetypes-x-sys_language',
96 'mask' => 'flags-###TYPE###'
97 );
98 $flagNames = array(
99 'multiple',
100 'ad',
101 'ae',
102 'af',
103 'ag',
104 'ai',
105 'al',
106 'am',
107 'an',
108 'ao',
109 'ar',
110 'as',
111 'at',
112 'au',
113 'aw',
114 'ax',
115 'az',
116 'ba',
117 'bb',
118 'bd',
119 'be',
120 'bf',
121 'bg',
122 'bh',
123 'bi',
124 'bj',
125 'bm',
126 'bn',
127 'bo',
128 'br',
129 'bs',
130 'bt',
131 'bv',
132 'bw',
133 'by',
134 'bz',
135 'ca',
136 'catalonia',
137 'cc',
138 'cd',
139 'cf',
140 'cg',
141 'ch',
142 'ci',
143 'ck',
144 'cl',
145 'cm',
146 'cn',
147 'co',
148 'cr',
149 'cs',
150 'cu',
151 'cv',
152 'cx',
153 'cy',
154 'cz',
155 'de',
156 'dj',
157 'dk',
158 'dm',
159 'do',
160 'dz',
161 'ec',
162 'ee',
163 'eg',
164 'eh',
165 'england',
166 'er',
167 'es',
168 'et',
169 'europeanunion',
170 'fam',
171 'fi',
172 'fj',
173 'fk',
174 'fm',
175 'fo',
176 'fr',
177 'ga',
178 'gb',
179 'gd',
180 'ge',
181 'gf',
182 'gh',
183 'gi',
184 'gl',
185 'gm',
186 'gn',
187 'gp',
188 'gq',
189 'gr',
190 'gs',
191 'gt',
192 'gu',
193 'gw',
194 'gy',
195 'hk',
196 'hm',
197 'hn',
198 'hr',
199 'ht',
200 'hu',
201 'id',
202 'ie',
203 'il',
204 'in',
205 'io',
206 'iq',
207 'ir',
208 'is',
209 'it',
210 'jm',
211 'jo',
212 'jp',
213 'ke',
214 'kg',
215 'kh',
216 'ki',
217 'km',
218 'kn',
219 'kp',
220 'kr',
221 'kw',
222 'ky',
223 'kz',
224 'la',
225 'lb',
226 'lc',
227 'li',
228 'lk',
229 'lr',
230 'ls',
231 'lt',
232 'lu',
233 'lv',
234 'ly',
235 'ma',
236 'mc',
237 'md',
238 'me',
239 'mg',
240 'mh',
241 'mk',
242 'ml',
243 'mm',
244 'mn',
245 'mo',
246 'mp',
247 'mq',
248 'mr',
249 'ms',
250 'mt',
251 'mu',
252 'mv',
253 'mw',
254 'mx',
255 'my',
256 'mz',
257 'na',
258 'nc',
259 'ne',
260 'nf',
261 'ng',
262 'ni',
263 'nl',
264 'no',
265 'np',
266 'nr',
267 'nu',
268 'nz',
269 'om',
270 'pa',
271 'pe',
272 'pf',
273 'pg',
274 'ph',
275 'pk',
276 'pl',
277 'pm',
278 'pn',
279 'pr',
280 'ps',
281 'pt',
282 'pw',
283 'py',
284 'qa',
285 'qc',
286 're',
287 'ro',
288 'rs',
289 'ru',
290 'rw',
291 'sa',
292 'sb',
293 'sc',
294 'scotland',
295 'sd',
296 'se',
297 'sg',
298 'sh',
299 'si',
300 'sj',
301 'sk',
302 'sl',
303 'sm',
304 'sn',
305 'so',
306 'sr',
307 'st',
308 'sv',
309 'sy',
310 'sz',
311 'tc',
312 'td',
313 'tf',
314 'tg',
315 'th',
316 'tj',
317 'tk',
318 'tl',
319 'tm',
320 'tn',
321 'to',
322 'tr',
323 'tt',
324 'tv',
325 'tw',
326 'tz',
327 'ua',
328 'ug',
329 'um',
330 'us',
331 'uy',
332 'uz',
333 'va',
334 'vc',
335 've',
336 'vg',
337 'vi',
338 'vn',
339 'vu',
340 'wales',
341 'wf',
342 'ws',
343 'ye',
344 'yt',
345 'za',
346 'zm',
347 'zw'
348 );
349 foreach ($flagNames as $flagName) {
350 $TCA['sys_language']['columns']['flag']['config']['items'][] = array($flagName, $flagName, 'EXT:t3skin/images/flags/' . $flagName . '.png');
351 }
352 // Manual setting up of alternative icons. This is mainly for module icons which has a special prefix:
353 $TBE_STYLES['skinImg'] = array_merge($presetSkinImgs, array(
354 'gfx/ol/blank.gif' => array('clear.gif', 'width="18" height="16"'),
355 'MOD:web/website.gif' => array($temp_eP . 'icons/module_web.gif', 'width="24" height="24"'),
356 'MOD:web_layout/layout.gif' => array($temp_eP . 'icons/module_web_layout.gif', 'width="24" height="24"'),
357 'MOD:web_view/view.gif' => array($temp_eP . 'icons/module_web_view.png', 'width="24" height="24"'),
358 'MOD:web_list/list.gif' => array($temp_eP . 'icons/module_web_list.gif', 'width="24" height="24"'),
359 'MOD:web_info/info.gif' => array($temp_eP . 'icons/module_web_info.png', 'width="24" height="24"'),
360 'MOD:web_perm/perm.gif' => array($temp_eP . 'icons/module_web_perms.png', 'width="24" height="24"'),
361 'MOD:web_func/func.gif' => array($temp_eP . 'icons/module_web_func.png', 'width="24" height="24"'),
362 'MOD:web_ts/ts1.gif' => array($temp_eP . 'icons/module_web_ts.gif', 'width="24" height="24"'),
363 'MOD:web_modules/modules.gif' => array($temp_eP . 'icons/module_web_modules.gif', 'width="24" height="24"'),
364 'MOD:web_txversionM1/cm_icon.gif' => array($temp_eP . 'icons/module_web_version.gif', 'width="24" height="24"'),
365 'MOD:file/file.gif' => array($temp_eP . 'icons/module_file.gif', 'width="22" height="24"'),
366 'MOD:file_list/list.gif' => array($temp_eP . 'icons/module_file_list.gif', 'width="22" height="24"'),
367 'MOD:file_images/images.gif' => array($temp_eP . 'icons/module_file_images.gif', 'width="22" height="22"'),
368 'MOD:user/user.gif' => array($temp_eP . 'icons/module_user.gif', 'width="22" height="22"'),
369 'MOD:user_task/task.gif' => array($temp_eP . 'icons/module_user_taskcenter.gif', 'width="22" height="22"'),
370 'MOD:user_setup/setup.gif' => array($temp_eP . 'icons/module_user_setup.gif', 'width="22" height="22"'),
371 'MOD:user_doc/document.gif' => array($temp_eP . 'icons/module_doc.gif', 'width="22" height="22"'),
372 'MOD:user_ws/sys_workspace.gif' => array($temp_eP . 'icons/module_user_ws.gif', 'width="22" height="22"'),
373 'MOD:tools/tool.gif' => array($temp_eP . 'icons/module_tools.gif', 'width="25" height="24"'),
374 'MOD:tools_beuser/beuser.gif' => array($temp_eP . 'icons/module_tools_user.gif', 'width="24" height="24"'),
375 'MOD:tools_em/em.gif' => array($temp_eP . 'icons/module_tools_em.png', 'width="24" height="24"'),
376 'MOD:tools_em/install.gif' => array($temp_eP . 'icons/module_tools_em.gif', 'width="24" height="24"'),
377 'MOD:tools_dbint/db.gif' => array($temp_eP . 'icons/module_tools_dbint.gif', 'width="25" height="24"'),
378 'MOD:tools_config/config.gif' => array($temp_eP . 'icons/module_tools_config.gif', 'width="24" height="24"'),
379 'MOD:tools_install/install.gif' => array($temp_eP . 'icons/module_tools_install.gif', 'width="24" height="24"'),
380 'MOD:tools_log/log.gif' => array($temp_eP . 'icons/module_tools_log.gif', 'width="24" height="24"'),
381 'MOD:tools_txphpmyadmin/thirdparty_db.gif' => array($temp_eP . 'icons/module_tools_phpmyadmin.gif', 'width="24" height="24"'),
382 'MOD:tools_isearch/isearch.gif' => array($temp_eP . 'icons/module_tools_isearch.gif', 'width="24" height="24"'),
383 'MOD:help/help.gif' => array($temp_eP . 'icons/module_help.gif', 'width="23" height="24"'),
384 'MOD:help_about/info.gif' => array($temp_eP . 'icons/module_help_about.gif', 'width="25" height="24"'),
385 'MOD:help_aboutmodules/aboutmodules.gif' => array($temp_eP . 'icons/module_help_aboutmodules.gif', 'width="24" height="24"'),
386 'MOD:help_cshmanual/about.gif' => array($temp_eP . 'icons/module_help_cshmanual.gif', 'width="25" height="24"'),
387 'MOD:help_txtsconfighelpM1/moduleicon.gif' => array($temp_eP . 'icons/module_help_ts.gif', 'width="25" height="24"')
388 ));
389 // Logo at login screen
390 $TBE_STYLES['logo_login'] = $temp_eP . 'images/login/typo3logo-white-greyback.gif';
391 // extJS theme
392 $TBE_STYLES['extJS']['theme'] = $temp_eP . 'extjs/xtheme-t3skin.css';
393 // Adding HTML template for login screen
394 $TBE_STYLES['htmlTemplates']['templates/login.html'] = 'sysext/t3skin/templates/login.html';
395 $GLOBALS['TBE_STYLES']['stylesheets']['admPanel'] = \TYPO3\CMS\Core\Extension\ExtensionManager::siteRelPath('t3skin') . 'stylesheets/standalone/admin_panel.css';
396 foreach ($flagNames as $flagName) {
397 \TYPO3\CMS\Backend\Sprite\SpriteManager::addIconSprite(array(
398 'flags-' . $flagName,
399 'flags-' . $flagName . '-overlay'
400 ));
401 }
402 unset($flagNames, $flagName);
403 }
404 ?>