TYPO3 CMS  TYPO3_6-2
ext_tables.php
Go to the documentation of this file.
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/';
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:
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\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'icons/',
83  'relDir' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::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  $TCA['sys_language']['ctrl']['typeicon_column'] = 'flag';
93  $TCA['sys_language']['ctrl']['typeicon_classes'] = array(
94  'default' => 'mimetypes-x-sys_language',
95  'mask' => 'flags-###TYPE###'
96  );
97  $flagNames = array(
98  'multiple',
99  'ad',
100  'ae',
101  'af',
102  'ag',
103  'ai',
104  'al',
105  'am',
106  'an',
107  'ao',
108  'ar',
109  'as',
110  'at',
111  'au',
112  'aw',
113  'ax',
114  'az',
115  'ba',
116  'bb',
117  'bd',
118  'be',
119  'bf',
120  'bg',
121  'bh',
122  'bi',
123  'bj',
124  'bm',
125  'bn',
126  'bo',
127  'br',
128  'bs',
129  'bt',
130  'bv',
131  'bw',
132  'by',
133  'bz',
134  'ca',
135  'catalonia',
136  'cc',
137  'cd',
138  'cf',
139  'cg',
140  'ch',
141  'ci',
142  'ck',
143  'cl',
144  'cm',
145  'cn',
146  'co',
147  'cr',
148  'cs',
149  'cu',
150  'cv',
151  'cx',
152  'cy',
153  'cz',
154  'de',
155  'dj',
156  'dk',
157  'dm',
158  'do',
159  'dz',
160  'ec',
161  'ee',
162  'eg',
163  'eh',
164  'england',
165  'er',
166  'es',
167  'et',
168  'europeanunion',
169  'fam',
170  'fi',
171  'fj',
172  'fk',
173  'fm',
174  'fo',
175  'fr',
176  'ga',
177  'gb',
178  'gd',
179  'ge',
180  'gf',
181  'gh',
182  'gi',
183  'gl',
184  'gm',
185  'gn',
186  'gp',
187  'gq',
188  'gr',
189  'gs',
190  'gt',
191  'gu',
192  'gw',
193  'gy',
194  'hk',
195  'hm',
196  'hn',
197  'hr',
198  'ht',
199  'hu',
200  'id',
201  'ie',
202  'il',
203  'in',
204  'io',
205  'iq',
206  'ir',
207  'is',
208  'it',
209  'jm',
210  'jo',
211  'jp',
212  'ke',
213  'kg',
214  'kh',
215  'ki',
216  'km',
217  'kn',
218  'kp',
219  'kr',
220  'kw',
221  'ky',
222  'kz',
223  'la',
224  'lb',
225  'lc',
226  'li',
227  'lk',
228  'lr',
229  'ls',
230  'lt',
231  'lu',
232  'lv',
233  'ly',
234  'ma',
235  'mc',
236  'md',
237  'me',
238  'mg',
239  'mh',
240  'mk',
241  'ml',
242  'mm',
243  'mn',
244  'mo',
245  'mp',
246  'mq',
247  'mr',
248  'ms',
249  'mt',
250  'mu',
251  'mv',
252  'mw',
253  'mx',
254  'my',
255  'mz',
256  'na',
257  'nc',
258  'ne',
259  'nf',
260  'ng',
261  'ni',
262  'nl',
263  'no',
264  'np',
265  'nr',
266  'nu',
267  'nz',
268  'om',
269  'pa',
270  'pe',
271  'pf',
272  'pg',
273  'ph',
274  'pk',
275  'pl',
276  'pm',
277  'pn',
278  'pr',
279  'ps',
280  'pt',
281  'pw',
282  'py',
283  'qa',
284  'qc',
285  're',
286  'ro',
287  'rs',
288  'ru',
289  'rw',
290  'sa',
291  'sb',
292  'sc',
293  'scotland',
294  'sd',
295  'se',
296  'sg',
297  'sh',
298  'si',
299  'sj',
300  'sk',
301  'sl',
302  'sm',
303  'sn',
304  'so',
305  'sr',
306  'st',
307  'sv',
308  'sy',
309  'sz',
310  'tc',
311  'td',
312  'tf',
313  'tg',
314  'th',
315  'tj',
316  'tk',
317  'tl',
318  'tm',
319  'tn',
320  'to',
321  'tr',
322  'tt',
323  'tv',
324  'tw',
325  'tz',
326  'ua',
327  'ug',
328  'um',
329  'us',
330  'uy',
331  'uz',
332  'va',
333  'vc',
334  've',
335  'vg',
336  'vi',
337  'vn',
338  'vu',
339  'wales',
340  'wf',
341  'ws',
342  'ye',
343  'yt',
344  'za',
345  'zm',
346  'zw'
347  );
348  foreach ($flagNames as $flagName) {
349  $TCA['sys_language']['columns']['flag']['config']['items'][] = array($flagName, $flagName, 'EXT:t3skin/images/flags/' . $flagName . '.png');
350  }
351 
352  $TCA['pages']['columns']['module']['config']['items'][1][2] = 'EXT:t3skin/images/icons/status/user-frontend.png';
353 
354  // Manual setting up of alternative icons. This is mainly for module icons which has a special prefix:
355  $TBE_STYLES['skinImg'] = array_merge($presetSkinImgs, array(
356  'gfx/ol/blank.gif' => array('clear.gif', 'width="18" height="16"'),
357  'MOD:web/website.gif' => array($temp_eP . 'icons/module_web.gif', 'width="24" height="24"'),
358  'MOD:web_layout/layout.gif' => array($temp_eP . 'icons/module_web_layout.gif', 'width="24" height="24"'),
359  'MOD:web_view/view.gif' => array($temp_eP . 'icons/module_web_view.png', 'width="24" height="24"'),
360  'MOD:web_list/list.gif' => array($temp_eP . 'icons/module_web_list.gif', 'width="24" height="24"'),
361  'MOD:web_info/info.gif' => array($temp_eP . 'icons/module_web_info.png', 'width="24" height="24"'),
362  'MOD:web_perm/perm.gif' => array($temp_eP . 'icons/module_web_perms.png', 'width="24" height="24"'),
363  'MOD:web_func/func.gif' => array($temp_eP . 'icons/module_web_func.png', 'width="24" height="24"'),
364  'MOD:web_ts/ts1.gif' => array($temp_eP . 'icons/module_web_ts.gif', 'width="24" height="24"'),
365  'MOD:web_modules/modules.gif' => array($temp_eP . 'icons/module_web_modules.gif', 'width="24" height="24"'),
366  'MOD:web_txversionM1/cm_icon.gif' => array($temp_eP . 'icons/module_web_version.gif', 'width="24" height="24"'),
367  'MOD:file/file.gif' => array($temp_eP . 'icons/module_file.gif', 'width="22" height="24"'),
368  'MOD:file_list/list.gif' => array($temp_eP . 'icons/module_file_list.gif', 'width="22" height="24"'),
369  'MOD:file_images/images.gif' => array($temp_eP . 'icons/module_file_images.gif', 'width="22" height="22"'),
370  'MOD:user/user.gif' => array($temp_eP . 'icons/module_user.gif', 'width="22" height="22"'),
371  'MOD:user_task/task.gif' => array($temp_eP . 'icons/module_user_taskcenter.gif', 'width="22" height="22"'),
372  'MOD:user_setup/setup.gif' => array($temp_eP . 'icons/module_user_setup.gif', 'width="22" height="22"'),
373  'MOD:user_doc/document.gif' => array($temp_eP . 'icons/module_doc.gif', 'width="22" height="22"'),
374  'MOD:user_ws/sys_workspace.gif' => array($temp_eP . 'icons/module_user_ws.gif', 'width="22" height="22"'),
375  'MOD:tools/tool.gif' => array($temp_eP . 'icons/module_tools.gif', 'width="25" height="24"'),
376  'MOD:tools_em/em.gif' => array($temp_eP . 'icons/module_tools_em.png', 'width="24" height="24"'),
377  'MOD:tools_em/install.gif' => array($temp_eP . 'icons/module_tools_em.gif', 'width="24" height="24"'),
378  'MOD:tools_txphpmyadmin/thirdparty_db.gif' => array($temp_eP . 'icons/module_tools_phpmyadmin.gif', 'width="24" height="24"'),
379  'MOD:tools_isearch/isearch.gif' => array($temp_eP . 'icons/module_tools_isearch.gif', 'width="24" height="24"'),
380  'MOD:system_dbint/db.gif' => array($temp_eP . 'icons/module_system_dbint.gif', 'width="25" height="24"'),
381  'MOD:system_beuser/beuser.gif' => array($temp_eP . 'icons/module_system_user.gif', 'width="24" height="24"'),
382  'MOD:system_install/install.gif' => array($temp_eP . 'icons/module_system_install.gif', 'width="24" height="24"'),
383  'MOD:system_config/config.gif' => array($temp_eP . 'icons/module_system_config.gif', 'width="24" height="24"'),
384  'MOD:system_log/log.gif' => array($temp_eP . 'icons/module_system_log.gif', 'width="24" height="24"'),
385  'MOD:help/help.gif' => array($temp_eP . 'icons/module_help.gif', 'width="23" height="24"'),
386  'MOD:help_about/info.gif' => array($temp_eP . 'icons/module_help_about.gif', 'width="25" height="24"'),
387  'MOD:help_aboutmodules/aboutmodules.gif' => array($temp_eP . 'icons/module_help_aboutmodules.gif', 'width="24" height="24"'),
388  'MOD:help_cshmanual/about.gif' => array($temp_eP . 'icons/module_help_cshmanual.gif', 'width="25" height="24"'),
389  'MOD:help_txtsconfighelpM1/moduleicon.gif' => array($temp_eP . 'icons/module_help_ts.gif', 'width="25" height="24"')
390  ));
391  // Logo at login screen
392  $TBE_STYLES['logo_login'] = $temp_eP . 'images/login/typo3logo-white-greyback.gif';
393  // extJS theme
394  $TBE_STYLES['extJS']['theme'] = $temp_eP . 'extjs/xtheme-t3skin.css';
395  // Adding HTML template for login screen
396  $TBE_STYLES['htmlTemplates']['EXT:backend/Resources/Private/Templates/login.html'] = 'sysext/t3skin/Resources/Private/Templates/login.html';
397  $GLOBALS['TBE_STYLES']['stylesheets']['admPanel'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath('t3skin') . 'stylesheets/standalone/admin_panel.css';
398  $flagIcons = array();
399  foreach ($flagNames as $flagName) {
400  $flagIcons[] = 'flags-' . $flagName;
401  $flagIcons[] = 'flags-' . $flagName . '-overlay';
402  }
404  unset($flagNames, $flagName, $flagIcons);
405 }
const TYPO3_MODE
Definition: init.php:40
$GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['EXT:context_help/locallang_csh_pages.xlf'][]
Definition: ext_tables.php:15
die
Definition: index.php:6
static addIconSprite(array $icons, $styleSheetFile='')
$TCA['tx_blogexample_domain_model_blog']
Definition: ext_tables.php:13