[TASK] Adjust contrast colors in diff view
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / ext_tables.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 /**
5 * $GLOBALS['PAGES_TYPES'] defines the various types of pages (field: doktype) the system
6 * can handle and what restrictions may apply to them.
7 * Here you can set the icon and especially you can define which tables are
8 * allowed on a certain pagetype (doktype)
9 * NOTE: The 'default' entry in the $GLOBALS['PAGES_TYPES'] array is the 'base' for all
10 * types, and for every type the entries simply overrides the entries in the 'default' type!
11 */
12 $GLOBALS['PAGES_TYPES'] = array(
13 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_LINK => array(),
14 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SHORTCUT => array(),
15 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_BE_USER_SECTION => array(
16 'type' => 'web',
17 'allowedTables' => '*'
18 ),
19 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_MOUNTPOINT => array(),
20 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SPACER => array(
21 'type' => 'sys'
22 ),
23 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SYSFOLDER => array(
24 // Doktype 254 is a 'Folder' - a general purpose storage folder for whatever you like.
25 // In CMS context it's NOT a viewable page. Can contain any element.
26 'type' => 'sys',
27 'allowedTables' => '*'
28 ),
29 (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_RECYCLER => array(
30 // Doktype 255 is a recycle-bin.
31 'type' => 'sys',
32 'allowedTables' => '*'
33 ),
34 'default' => array(
35 'type' => 'web',
36 'allowedTables' => 'pages',
37 'onlyAllowedTables' => '0'
38 ),
39 );
40
41 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('sys_category,sys_file_reference,sys_file_collection');
42
43 /** @var \TYPO3\CMS\Core\Resource\Driver\DriverRegistry $registry */
44 $registry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Resource\Driver\DriverRegistry::class);
45 $registry->addDriversToTCA();
46
47 /**
48 * $TBE_MODULES contains the structure of the backend modules as they are
49 * arranged in main- and sub-modules. Every entry in this array represents a
50 * menu item on either first (key) or second level (value from list) in the
51 * left menu in the TYPO3 backend
52 * For information about adding modules to TYPO3 you should consult the
53 * documentation found in "Inside TYPO3"
54 */
55 $GLOBALS['TBE_MODULES'] = array(
56 'web' => 'list',
57 'file' => '',
58 'user' => '',
59 'tools' => '',
60 'system' => '',
61 'help' => '',
62 '_configuration' => array(
63 'web' => array(
64 'labels' => array(
65 'll_ref' => 'LLL:EXT:lang/locallang_mod_web.xlf'
66 ),
67 'name' => 'web',
68 'iconIdentifier' => 'module-web'
69 ),
70 'file' => array(
71 'labels' => array(
72 'll_ref' => 'LLL:EXT:lang/locallang_mod_file.xlf'
73 ),
74 'navigationFrameModule' => 'file_navframe',
75 'name' => 'file',
76 'workspaces' => 'online,custom',
77 'iconIdentifier' => 'module-file'
78 ),
79 'user' => array(
80 'labels' => array(
81 'll_ref' => 'LLL:EXT:lang/locallang_mod_usertools.xlf'
82 ),
83 'name' => 'user',
84 'iconIdentifier' => 'status-user-backend'
85 ),
86 'tools' => array(
87 'labels' => array(
88 'll_ref' => 'LLL:EXT:lang/locallang_mod_admintools.xlf'
89 ),
90 'name' => 'tools',
91 'iconIdentifier' => 'module-tools'
92 ),
93 'system' => array(
94 'labels' => array(
95 'll_ref' => 'LLL:EXT:lang/locallang_mod_system.xlf'
96 ),
97 'name' => 'system',
98 'iconIdentifier' => 'module-system'
99 ),
100 'help' => array(
101 'labels' => array(
102 'll_ref' => 'LLL:EXT:lang/locallang_mod_help.xlf'
103 ),
104 'name' => 'help',
105 'iconIdentifier' => 'module-help'
106 )
107 )
108 );
109
110
111 // Register the page tree core navigation component
112 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addCoreNavigationComponent('web', 'typo3-pagetree');
113
114
115 /**
116 * $TBE_STYLES configures backend styles and colors; Basically this contains
117 * all the values that can be used to create new skins for TYPO3.
118 * For information about making skins to TYPO3 you should consult the
119 * documentation found in "Inside TYPO3"
120 */
121 $GLOBALS['TBE_STYLES'] = array(
122 'skinImg' => array()
123 );
124
125
126 /**
127 * Setting up $TCA_DESCR - Context Sensitive Help (CSH)
128 * For information about using the CSH API in TYPO3 you should consult the
129 * documentation found in "Inside TYPO3"
130 */
131 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('pages', 'EXT:lang/locallang_csh_pages.xlf');
132 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('be_users', 'EXT:lang/locallang_csh_be_users.xlf');
133 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('be_groups', 'EXT:lang/locallang_csh_be_groups.xlf');
134 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('sys_filemounts', 'EXT:lang/locallang_csh_sysfilem.xlf');
135 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('sys_language', 'EXT:lang/locallang_csh_syslang.xlf');
136 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('sys_news', 'EXT:lang/locallang_csh_sysnews.xlf');
137 // General Core
138 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('xMOD_csh_corebe', 'EXT:lang/locallang_csh_corebe.xlf');
139 // Web > Info
140 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_web_info', 'EXT:lang/locallang_csh_web_info.xlf');
141 // Web > Func
142 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_web_func', 'EXT:lang/locallang_csh_web_func.xlf');
143 // Labels for TYPO3 4.5 and greater.
144 // These labels override the ones set above, while still falling back to the original labels
145 // if no translation is available.
146 $GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['EXT:lang/locallang_csh_pages.xlf'][] = 'EXT:lang/4.5/locallang_csh_pages.xlf';
147 $GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['EXT:lang/locallang_csh_corebe.xlf'][] = 'EXT:lang/4.5/locallang_csh_corebe.xlf';
148
149 /**
150 * Backend sprite icon-names
151 */
152 $GLOBALS['TBE_STYLES']['spriteIconApi']['coreSpriteImageNames'] = array(
153 'actions-document-close',
154 'actions-document-duplicates-select',
155 'actions-document-edit-access',
156 'actions-document-export-csv', // Not used in core!
157 'actions-document-export-t3d',
158 'actions-document-history-open',
159 'actions-document-import-t3d',
160 'actions-document-info',
161 'actions-document-localize',
162 'actions-document-move',
163 'actions-document-new',
164 'actions-document-open',
165 'actions-document-open-read-only',
166 'actions-document-paste-after',
167 'actions-document-paste-into',
168 'actions-document-save',
169 'actions-document-save-cleartranslationcache',
170 'actions-document-save-close',
171 'actions-document-save-new',
172 'actions-document-save-translation',
173 'actions-document-save-view',
174 'actions-document-select',
175 'actions-document-synchronize',
176 'actions-document-view',
177 'actions-edit-add',
178 'actions-edit-copy',
179 'actions-edit-copy-release',
180 'actions-edit-cut',
181 'actions-edit-cut-release',
182 'actions-edit-delete',
183 'actions-edit-download',
184 'actions-edit-hide',
185 'actions-edit-insert-default',
186 'actions-edit-localize-status-high',
187 'actions-edit-localize-status-low',
188 'actions-edit-merge-localization',
189 'actions-edit-pick-date',
190 'actions-edit-rename',
191 'actions-edit-replace',
192 'actions-edit-restore',
193 'actions-edit-undelete-edit',
194 'actions-edit-undo',
195 'actions-edit-unhide',
196 'actions-edit-upload',
197 'actions-input-clear',
198 'actions-insert-record',
199 'actions-insert-reference',
200 'actions-markstate',
201 'actions-message-error-close',
202 'actions-message-information-close',
203 'actions-message-notice-close',
204 'actions-message-ok-close',
205 'actions-message-warning-close',
206 'actions-move-down',
207 'actions-move-left',
208 'actions-move-move',
209 'actions-move-right',
210 'actions-move-to-bottom',
211 'actions-move-to-top',
212 'actions-move-up',
213 'actions-page-move',
214 'actions-page-new',
215 'actions-page-open',
216 'actions-selection-delete',
217 'actions-system-backend-user-emulate',
218 'actions-system-backend-user-switch',
219 'actions-system-cache-clear',
220 'actions-system-cache-clear-impact-high',
221 'actions-system-cache-clear-impact-low',
222 'actions-system-cache-clear-impact-medium',
223 'actions-system-cache-clear-rte',
224 'actions-system-extension-configure',
225 'actions-system-extension-documentation',
226 'actions-system-extension-download',
227 'actions-system-extension-import',
228 'actions-system-extension-install',
229 'actions-system-extension-sqldump',
230 'actions-system-extension-uninstall',
231 'actions-system-extension-update',
232 'actions-system-extension-update-disabled',
233 'actions-system-help-open',
234 'actions-system-list-open',
235 'actions-system-options-view',
236 'actions-system-pagemodule-open',
237 'actions-system-refresh',
238 'actions-system-shortcut-new',
239 'actions-system-tree-search-open',
240 'actions-system-typoscript-documentation',
241 'actions-system-typoscript-documentation-open',
242 'actions-template-new',
243 'actions-unmarkstate',
244 'actions-version-document-remove',
245 'actions-version-page-open',
246 'actions-version-swap-version',
247 'actions-version-swap-workspace',
248 'actions-version-workspace-preview',
249 'actions-version-workspace-sendtostage',
250 'actions-view-go-back',
251 'actions-view-go-down',
252 'actions-view-go-forward',
253 'actions-view-go-up',
254 'actions-view-list-collapse',
255 'actions-view-list-expand',
256 'actions-view-paging-first',
257 'actions-view-paging-first-disabled',
258 'actions-view-paging-last',
259 'actions-view-paging-last-disabled',
260 'actions-view-paging-next',
261 'actions-view-paging-next-disabled',
262 'actions-view-paging-previous',
263 'actions-view-paging-previous-disabled',
264 'actions-view-table-collapse',
265 'actions-view-table-expand',
266 'actions-window-open',
267 'apps-clipboard-images',
268 'apps-clipboard-list',
269 'apps-filetree-folder-add',
270 'apps-filetree-folder-default',
271 'apps-filetree-folder-list',
272 'apps-filetree-folder-locked',
273 'apps-filetree-folder-media',
274 'apps-filetree-folder-news',
275 'apps-filetree-folder-opened',
276 'apps-filetree-folder-recycler',
277 'apps-filetree-folder-temp',
278 'apps-filetree-folder-user',
279 'apps-filetree-mount',
280 'apps-filetree-root',
281 'apps-irre-collapsed',
282 'apps-irre-expanded',
283 'apps-pagetree-backend-user',
284 'apps-pagetree-backend-user-hideinmenu',
285 'apps-pagetree-collapse',
286 'apps-pagetree-drag-copy-above',
287 'apps-pagetree-drag-copy-below',
288 'apps-pagetree-drag-move-above',
289 'apps-pagetree-drag-move-below',
290 'apps-pagetree-drag-move-between',
291 'apps-pagetree-drag-move-into',
292 'apps-pagetree-drag-new-between',
293 'apps-pagetree-drag-new-inside',
294 'apps-pagetree-drag-place-denied',
295 'apps-pagetree-expand',
296 'apps-pagetree-folder-contains-approve',
297 'apps-pagetree-folder-contains-board',
298 'apps-pagetree-folder-contains-fe_users',
299 'apps-pagetree-folder-contains-news',
300 'apps-pagetree-folder-contains-shop',
301 'apps-pagetree-folder-default',
302 'apps-pagetree-page-advanced',
303 'apps-pagetree-page-advanced-hideinmenu',
304 'apps-pagetree-page-advanced-root',
305 'apps-pagetree-page-backend-users',
306 'apps-pagetree-page-backend-users-hideinmenu',
307 'apps-pagetree-page-backend-users-root',
308 'apps-pagetree-page-content-from-page',
309 'apps-pagetree-page-content-from-page-hideinmenu',
310 'apps-pagetree-page-default',
311 'apps-pagetree-page-domain',
312 'apps-pagetree-page-frontend-user',
313 'apps-pagetree-page-frontend-user-hideinmenu',
314 'apps-pagetree-page-frontend-user-root',
315 'apps-pagetree-page-frontend-users',
316 'apps-pagetree-page-frontend-users-hideinmenu',
317 'apps-pagetree-page-frontend-users-root',
318 'apps-pagetree-page-mountpoint',
319 'apps-pagetree-page-mountpoint-hideinmenu',
320 'apps-pagetree-page-mountpoint-root',
321 'apps-pagetree-page-no-icon-found',
322 'apps-pagetree-page-no-icon-found-hideinmenu',
323 'apps-pagetree-page-no-icon-found-root',
324 'apps-pagetree-page-not-in-menu',
325 'apps-pagetree-page-recycler',
326 'apps-pagetree-page-shortcut',
327 'apps-pagetree-page-shortcut-external',
328 'apps-pagetree-page-shortcut-external-hideinmenu',
329 'apps-pagetree-page-shortcut-external-root',
330 'apps-pagetree-page-shortcut-hideinmenu',
331 'apps-pagetree-page-shortcut-root',
332 'apps-pagetree-root',
333 'apps-pagetree-spacer',
334 'apps-tcatree-select-recursive',
335 'apps-toolbar-menu-actions',
336 'apps-toolbar-menu-cache',
337 'apps-toolbar-menu-opendocs',
338 'apps-toolbar-menu-search',
339 'apps-toolbar-menu-shortcut',
340 'apps-toolbar-menu-workspace',
341 'mimetypes-compressed',
342 'mimetypes-excel',
343 'mimetypes-media-audio',
344 'mimetypes-media-flash',
345 'mimetypes-media-image',
346 'mimetypes-media-video',
347 'mimetypes-other-other',
348 'mimetypes-pdf',
349 'mimetypes-powerpoint',
350 'mimetypes-text-css',
351 'mimetypes-text-csv',
352 'mimetypes-text-html',
353 'mimetypes-text-js',
354 'mimetypes-text-php',
355 'mimetypes-text-text',
356 'mimetypes-word',
357 'mimetypes-x-content-divider',
358 'mimetypes-x-content-domain',
359 'mimetypes-x-content-form',
360 'mimetypes-x-content-form-search',
361 'mimetypes-x-content-header',
362 'mimetypes-x-content-html',
363 'mimetypes-x-content-image',
364 'mimetypes-x-content-link',
365 'mimetypes-x-content-list-bullets',
366 'mimetypes-x-content-list-files',
367 'mimetypes-x-content-login',
368 'mimetypes-x-content-menu',
369 'mimetypes-x-content-multimedia',
370 'mimetypes-x-content-page-language-overlay',
371 'mimetypes-x-content-plugin',
372 'mimetypes-x-content-script',
373 'mimetypes-x-content-table',
374 'mimetypes-x-content-template',
375 'mimetypes-x-content-template-extension',
376 'mimetypes-x-content-template-static',
377 'mimetypes-x-content-text',
378 'mimetypes-x-content-text-picture',
379 'mimetypes-x-sys_action',
380 'mimetypes-x-sys_category',
381 'mimetypes-x-sys_language',
382 'mimetypes-x-sys_news',
383 'mimetypes-x-sys_workspace',
384 'mimetypes-x_belayout',
385 'status-dialog-error',
386 'status-dialog-information',
387 'status-dialog-notification',
388 'status-dialog-ok',
389 'status-dialog-warning',
390 'status-overlay-access-restricted',
391 'status-overlay-deleted',
392 'status-overlay-hidden',
393 'status-overlay-icon-missing',
394 'status-overlay-includes-subpages',
395 'status-overlay-locked',
396 'status-overlay-scheduled',
397 'status-overlay-scheduled-future-end',
398 'status-overlay-translated',
399 'status-status-checked',
400 'status-status-current',
401 'status-status-edit-read-only',
402 'status-status-icon-missing',
403 'status-status-locked',
404 'status-status-permission-denied',
405 'status-status-permission-granted',
406 'status-status-readonly',
407 'status-status-reference-hard',
408 'status-status-reference-soft',
409 'status-status-sorting-asc',
410 'status-status-sorting-desc',
411 'status-status-sorting-light-asc',
412 'status-status-sorting-light-desc',
413 'status-status-workspace-draft',
414 'status-system-extension-required',
415 'status-user-admin',
416 'status-user-backend',
417 'status-user-frontend',
418 'status-user-group-backend',
419 'status-user-group-frontend',
420 'status-warning-in-use',
421 'status-warning-lock',
422 'module-web',
423 'module-file',
424 'module-system',
425 'module-tools',
426 'module-user',
427 'module-help'
428 );
429
430
431 $GLOBALS['TBE_STYLES']['spriteIconApi']['spriteIconRecordOverlayPriorities'] = array(
432 'deleted',
433 'hidden',
434 'starttime',
435 'endtime',
436 'futureendtime',
437 'fe_group',
438 'protectedSection'
439 );
440
441
442 $GLOBALS['TBE_STYLES']['spriteIconApi']['spriteIconRecordOverlayNames'] = array(
443 'hidden' => 'status-overlay-hidden',
444 'fe_group' => 'status-overlay-access-restricted',
445 'starttime' => 'status-overlay-scheduled',
446 'endtime' => 'status-overlay-scheduled',
447 'futureendtime' => 'status-overlay-scheduled-future-end',
448 'readonly' => 'status-overlay-locked',
449 'deleted' => 'status-overlay-deleted',
450 'missing' => 'status-overlay-missing',
451 'translated' => 'status-overlay-translated',
452 'protectedSection' => 'status-overlay-includes-subpages'
453 );
454
455 // Adding flags to the sprite manager
456 if (TYPO3_MODE === 'BE' || TYPO3_MODE === 'FE' && isset($GLOBALS['BE_USER'])) {
457 $flagNames = array(
458 'multiple',
459 'ad', 'ae', 'af', 'ag', 'ai', 'al', 'am', 'an', 'ao', 'ar', 'as', 'at', 'au', 'aw', 'ax', 'az',
460 'ba', 'bb', 'bd', 'be', 'bf', 'bg', 'bh', 'bi', 'bj', 'bm', 'bn', 'bo', 'br', 'bs', 'bt', 'bv', 'bw', 'by', 'bz',
461 'ca', 'catalonia', 'cc', 'cd', 'cf', 'cg', 'ch', 'ci', 'ck', 'cl', 'cm', 'cn', 'co', 'cr', 'cs', 'cu', 'cv', 'cx', 'cy', 'cz',
462 'de', 'dj', 'dk', 'dm', 'do', 'dz',
463 'ec', 'ee', 'eg', 'eh', 'england', 'er', 'es', 'et', 'europeanunion',
464 'fam', 'fi', 'fj', 'fk', 'fm', 'fo', 'fr',
465 'ga', 'gb', 'gd', 'ge', 'gf', 'gh', 'gi', 'gl', 'gm', 'gn', 'gp', 'gq', 'gr', 'gs', 'gt', 'gu', 'gw', 'gy',
466 'hk', 'hm', 'hn', 'hr', 'ht', 'hu',
467 'id', 'ie', 'il', 'in', 'io', 'iq', 'ir', 'is', 'it',
468 'jm', 'jo', 'jp',
469 'ke', 'kg', 'kh', 'ki', 'km', 'kn', 'kp', 'kr', 'kw', 'ky', 'kz',
470 'la', 'lb', 'lc', 'li', 'lk', 'lr', 'ls', 'lt', 'lu', 'lv', 'ly',
471 'ma', 'mc', 'md', 'me', 'mg', 'mh', 'mk', 'ml', 'mm', 'mn', 'mo', 'mp', 'mq', 'mr', 'ms', 'mt', 'mu', 'mv', 'mw', 'mx', 'my', 'mz',
472 'na', 'nc', 'ne', 'nf', 'ng', 'ni', 'nl', 'no', 'np', 'nr', 'nu', 'nz',
473 'om',
474 'pa', 'pe', 'pf', 'pg', 'ph', 'pk', 'pl', 'pm', 'pn', 'pr', 'ps', 'pt', 'pw', 'py',
475 'qa', 'qc',
476 're', 'ro', 'rs', 'ru', 'rw',
477 'sa', 'sb', 'sc', 'scotland', 'sd', 'se', 'sg', 'sh', 'si', 'sj', 'sk', 'sl', 'sm', 'sn', 'so', 'sr', 'st', 'sv', 'sy', 'sz',
478 'tc', 'td', 'tf', 'tg', 'th', 'tj', 'tk', 'tl', 'tm', 'tn', 'to', 'tr', 'tt', 'tv', 'tw', 'tz',
479 'ua', 'ug', 'um', 'us', 'uy', 'uz',
480 'va', 'vc', 've', 'vg', 'vi', 'vn', 'vu',
481 'wales', 'wf', 'ws',
482 'ye', 'yt',
483 'za', 'zm', 'zw'
484 );
485
486 $flagIcons = array();
487 foreach ($flagNames as $flagName) {
488 $flagIcons[] = 'flags-' . $flagName;
489 $flagIcons[] = 'flags-' . $flagName . '-overlay';
490 }
491 \TYPO3\CMS\Backend\Sprite\SpriteManager::addIconSprite($flagIcons);
492
493 $GLOBALS['TBE_STYLES']['skins']['core'] = array(
494 'name' => 'core',
495 'stylesheetDirectories' => array(
496 'css' => 'EXT:core/Resources/Public/Css/'
497 )
498 );
499
500 unset($flagNames, $flagName, $flagIcons);
501 }