[TASK] Update TYPO3 version in ext_emconf.php and composer.json
[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');
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 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('sys_file_reference');
48 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('sys_file_collection');
49
50 /**
51 * $TBE_MODULES contains the structure of the backend modules as they are
52 * arranged in main- and sub-modules. Every entry in this array represents a
53 * menu item on either first (key) or second level (value from list) in the
54 * left menu in the TYPO3 backend
55 * For information about adding modules to TYPO3 you should consult the
56 * documentation found in "Inside TYPO3"
57 */
58 $GLOBALS['TBE_MODULES'] = array(
59 'web' => 'list',
60 'file' => '',
61 'user' => '',
62 'tools' => '',
63 'system' => '',
64 'help' => '',
65 '_configuration' => array(
66 'web' => array(
67 'labels' => array(
68 'll_ref' => 'LLL:EXT:lang/locallang_mod_web.xlf'
69 ),
70 'configuration' => array(
71 'name' => 'web',
72 'access' => 'user,group',
73 'icon' => 'module-web'
74 )
75 ),
76 'file' => array(
77 'labels' => array(
78 'll_ref' => 'LLL:EXT:lang/locallang_mod_file.xlf'
79 ),
80 'configuration' => array(
81 'name' => 'file',
82 'access' => 'user,group',
83 'workspaces' => 'online,custom',
84 'icon' => 'module-file'
85 )
86 ),
87 'user' => array(
88 'labels' => array(
89 'll_ref' => 'LLL:EXT:lang/locallang_mod_usertools.xlf'
90 ),
91 'configuration' => array(
92 'name' => 'user',
93 'access' => 'user,group',
94 'icon' => 'status-user-backend'
95 )
96 ),
97 'tools' => array(
98 'labels' => array(
99 'll_ref' => 'LLL:EXT:lang/locallang_mod_admintools.xlf'
100 ),
101 'configuration' => array(
102 'name' => 'tools',
103 'access' => 'admin',
104 'icon' => 'module-tools'
105 )
106 ),
107 'system' => array(
108 'labels' => array(
109 'll_ref' => 'LLL:EXT:lang/locallang_mod_system.xlf'
110 ),
111 'configuration' => array(
112 'name' => 'system',
113 'access' => 'admin',
114 'icon' => 'module-system'
115 )
116 ),
117 'help' => array(
118 'labels' => array(
119 'll_ref' => 'LLL:EXT:lang/locallang_mod_help.xlf'
120 ),
121 'configuration' => array(
122 'name' => 'help',
123 'icon' => 'module-help'
124 )
125 )
126 )
127 );
128
129
130 // Register the page tree core navigation component
131 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addCoreNavigationComponent('web', 'typo3-pagetree');
132
133
134 /**
135 * $TBE_STYLES configures backend styles and colors; Basically this contains
136 * all the values that can be used to create new skins for TYPO3.
137 * For information about making skins to TYPO3 you should consult the
138 * documentation found in "Inside TYPO3"
139 */
140 $GLOBALS['TBE_STYLES'] = array(
141 'colorschemes' => array(
142 '0' => '#E4E0DB,#CBC7C3,#EDE9E5'
143 ),
144 'borderschemes' => array(
145 '0' => array('border:solid 1px black;', 5)
146 )
147 );
148
149
150 /**
151 * Setting up $TCA_DESCR - Context Sensitive Help (CSH)
152 * For information about using the CSH API in TYPO3 you should consult the
153 * documentation found in "Inside TYPO3"
154 */
155 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('pages', 'EXT:lang/locallang_csh_pages.xlf');
156 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('be_users', 'EXT:lang/locallang_csh_be_users.xlf');
157 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('be_groups', 'EXT:lang/locallang_csh_be_groups.xlf');
158 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('sys_filemounts', 'EXT:lang/locallang_csh_sysfilem.xlf');
159 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('sys_language', 'EXT:lang/locallang_csh_syslang.xlf');
160 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('sys_news', 'EXT:lang/locallang_csh_sysnews.xlf');
161 // General Core
162 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('xMOD_csh_corebe', 'EXT:lang/locallang_csh_corebe.xlf');
163 // Extension manager
164 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_tools_em', 'EXT:lang/locallang_csh_em.xlf');
165 // Web > Info
166 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_web_info', 'EXT:lang/locallang_csh_web_info.xlf');
167 // Web > Func
168 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_web_func', 'EXT:lang/locallang_csh_web_func.xlf');
169 // Labels for TYPO3 4.5 and greater.
170 // These labels override the ones set above, while still falling back to the original labels
171 // if no translation is available.
172 $GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['EXT:lang/locallang_csh_pages.xlf'][] = 'EXT:lang/4.5/locallang_csh_pages.xlf';
173 $GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['EXT:lang/locallang_csh_corebe.xlf'][] = 'EXT:lang/4.5/locallang_csh_corebe.xlf';
174
175
176 /**
177 * $FILEICONS defines icons for the various file-formats
178 */
179 $GLOBALS['FILEICONS'] = array(
180 'txt' => 'txt.gif',
181 'pdf' => 'pdf.gif',
182 'doc' => 'doc.gif',
183 'ai' => 'ai.gif',
184 'bmp' => 'bmp.gif',
185 'tif' => 'tif.gif',
186 'htm' => 'htm.gif',
187 'html' => 'html.gif',
188 'pcd' => 'pcd.gif',
189 'gif' => 'gif.gif',
190 'jpg' => 'jpg.gif',
191 'jpeg' => 'jpg.gif',
192 'mpg' => 'mpg.gif',
193 'mpeg' => 'mpeg.gif',
194 'exe' => 'exe.gif',
195 'com' => 'exe.gif',
196 'zip' => 'zip.gif',
197 'tgz' => 'zip.gif',
198 'gz' => 'zip.gif',
199 'php3' => 'php3.gif',
200 'php4' => 'php3.gif',
201 'php5' => 'php3.gif',
202 'php6' => 'php3.gif',
203 'php' => 'php3.gif',
204 'ppt' => 'ppt.gif',
205 'ttf' => 'ttf.gif',
206 'pcx' => 'pcx.gif',
207 'png' => 'png.gif',
208 'tga' => 'tga.gif',
209 'class' => 'java.gif',
210 'sxc' => 'sxc.gif',
211 'sxw' => 'sxw.gif',
212 'xls' => 'xls.gif',
213 'swf' => 'swf.gif',
214 'swa' => 'flash.gif',
215 'dcr' => 'flash.gif',
216 'wav' => 'wav.gif',
217 'mp3' => 'mp3.gif',
218 'avi' => 'avi.gif',
219 'au' => 'au.gif',
220 'mov' => 'mov.gif',
221 '3ds' => '3ds.gif',
222 'csv' => 'csv.gif',
223 'ico' => 'ico.gif',
224 'max' => 'max.gif',
225 'ps' => 'ps.gif',
226 'tmpl' => 'tmpl.gif',
227 'fh3' => 'fh3.gif',
228 'inc' => 'inc.gif',
229 'mid' => 'mid.gif',
230 'psd' => 'psd.gif',
231 'xml' => 'xml.gif',
232 'rtf' => 'rtf.gif',
233 't3x' => 't3x.gif',
234 't3d' => 't3d.gif',
235 'cdr' => 'cdr.gif',
236 'dtd' => 'dtd.gif',
237 'sgml' => 'sgml.gif',
238 'ani' => 'ani.gif',
239 'css' => 'css.gif',
240 'eps' => 'eps.gif',
241 'js' => 'js.gif',
242 'wrl' => 'wrl.gif',
243 'default' => 'default.gif'
244 );
245
246
247 /**
248 * Backend sprite icon-names
249 */
250 $GLOBALS['TBE_STYLES']['spriteIconApi']['coreSpriteImageNames'] = array(
251 'actions-document-close',
252 'actions-document-duplicates-select',
253 'actions-document-edit-access',
254 'actions-document-export-csv',
255 'actions-document-export-t3d',
256 'actions-document-history-open',
257 'actions-document-import-t3d',
258 'actions-document-info',
259 'actions-document-localize',
260 'actions-document-move',
261 'actions-document-new',
262 'actions-document-open',
263 'actions-document-open-read-only',
264 'actions-document-paste-after',
265 'actions-document-paste-into',
266 'actions-document-save',
267 'actions-document-save-cleartranslationcache',
268 'actions-document-save-close',
269 'actions-document-save-new',
270 'actions-document-save-translation',
271 'actions-document-save-view',
272 'actions-document-select',
273 'actions-document-synchronize',
274 'actions-document-view',
275 'actions-edit-add',
276 'actions-edit-copy',
277 'actions-edit-copy-release',
278 'actions-edit-cut',
279 'actions-edit-cut-release',
280 'actions-edit-delete',
281 'actions-edit-download',
282 'actions-edit-hide',
283 'actions-edit-insert-default',
284 'actions-edit-localize-status-high',
285 'actions-edit-localize-status-low',
286 'actions-edit-merge-localization',
287 'actions-edit-pick-date',
288 'actions-edit-rename',
289 'actions-edit-restore',
290 'actions-edit-undelete-edit',
291 'actions-edit-undo',
292 'actions-edit-unhide',
293 'actions-edit-upload',
294 'actions-input-clear',
295 'actions-insert-record',
296 'actions-insert-reference',
297 'actions-markstate',
298 'actions-message-error-close',
299 'actions-message-information-close',
300 'actions-message-notice-close',
301 'actions-message-ok-close',
302 'actions-message-warning-close',
303 'actions-move-down',
304 'actions-move-left',
305 'actions-move-move',
306 'actions-move-right',
307 'actions-move-to-bottom',
308 'actions-move-to-top',
309 'actions-move-up',
310 'actions-page-move',
311 'actions-page-new',
312 'actions-page-open',
313 'actions-selection-delete',
314 'actions-system-backend-user-emulate',
315 'actions-system-backend-user-switch',
316 'actions-system-cache-clear',
317 'actions-system-cache-clear-impact-high',
318 'actions-system-cache-clear-impact-low',
319 'actions-system-cache-clear-impact-medium',
320 'actions-system-cache-clear-rte',
321 'actions-system-extension-configure',
322 'actions-system-extension-documentation',
323 'actions-system-extension-download',
324 'actions-system-extension-import',
325 'actions-system-extension-install',
326 'actions-system-extension-sqldump',
327 'actions-system-extension-uninstall',
328 'actions-system-extension-update',
329 'actions-system-extension-update-disabled',
330 'actions-system-help-open',
331 'actions-system-list-open',
332 'actions-system-options-view',
333 'actions-system-pagemodule-open',
334 'actions-system-refresh',
335 'actions-system-shortcut-new',
336 'actions-system-tree-search-open',
337 'actions-system-typoscript-documentation',
338 'actions-system-typoscript-documentation-open',
339 'actions-template-new',
340 'actions-unmarkstate',
341 'actions-version-document-remove',
342 'actions-version-page-open',
343 'actions-version-swap-version',
344 'actions-version-swap-workspace',
345 'actions-version-workspace-preview',
346 'actions-version-workspace-sendtostage',
347 'actions-view-go-back',
348 'actions-view-go-down',
349 'actions-view-go-forward',
350 'actions-view-go-up',
351 'actions-view-list-collapse',
352 'actions-view-list-expand',
353 'actions-view-paging-first',
354 'actions-view-paging-first-disabled',
355 'actions-view-paging-last',
356 'actions-view-paging-last-disabled',
357 'actions-view-paging-next',
358 'actions-view-paging-next-disabled',
359 'actions-view-paging-previous',
360 'actions-view-paging-previous-disabled',
361 'actions-view-table-collapse',
362 'actions-view-table-expand',
363 'actions-window-open',
364 'apps-clipboard-images',
365 'apps-clipboard-list',
366 'apps-filetree-folder-add',
367 'apps-filetree-folder-default',
368 'apps-filetree-folder-list',
369 'apps-filetree-folder-locked',
370 'apps-filetree-folder-media',
371 'apps-filetree-folder-news',
372 'apps-filetree-folder-opened',
373 'apps-filetree-folder-recycler',
374 'apps-filetree-folder-temp',
375 'apps-filetree-folder-user',
376 'apps-filetree-mount',
377 'apps-filetree-root',
378 'apps-irre-collapsed',
379 'apps-irre-expanded',
380 'apps-pagetree-backend-user',
381 'apps-pagetree-backend-user-hideinmenu',
382 'apps-pagetree-collapse',
383 'apps-pagetree-drag-copy-above',
384 'apps-pagetree-drag-copy-below',
385 'apps-pagetree-drag-move-above',
386 'apps-pagetree-drag-move-below',
387 'apps-pagetree-drag-move-between',
388 'apps-pagetree-drag-move-into',
389 'apps-pagetree-drag-new-between',
390 'apps-pagetree-drag-new-inside',
391 'apps-pagetree-drag-place-denied',
392 'apps-pagetree-expand',
393 'apps-pagetree-folder-contains-approve',
394 'apps-pagetree-folder-contains-board',
395 'apps-pagetree-folder-contains-fe_users',
396 'apps-pagetree-folder-contains-news',
397 'apps-pagetree-folder-contains-shop',
398 'apps-pagetree-folder-default',
399 'apps-pagetree-page-advanced',
400 'apps-pagetree-page-advanced-hideinmenu',
401 'apps-pagetree-page-advanced-root',
402 'apps-pagetree-page-backend-users',
403 'apps-pagetree-page-backend-users-hideinmenu',
404 'apps-pagetree-page-backend-users-root',
405 'apps-pagetree-page-content-from-page',
406 'apps-pagetree-page-content-from-page-hideinmenu',
407 'apps-pagetree-page-default',
408 'apps-pagetree-page-domain',
409 'apps-pagetree-page-frontend-user',
410 'apps-pagetree-page-frontend-user-hideinmenu',
411 'apps-pagetree-page-frontend-user-root',
412 'apps-pagetree-page-frontend-users',
413 'apps-pagetree-page-frontend-users-hideinmenu',
414 'apps-pagetree-page-frontend-users-root',
415 'apps-pagetree-page-mountpoint',
416 'apps-pagetree-page-mountpoint-hideinmenu',
417 'apps-pagetree-page-mountpoint-root',
418 'apps-pagetree-page-no-icon-found',
419 'apps-pagetree-page-no-icon-found-hideinmenu',
420 'apps-pagetree-page-no-icon-found-root',
421 'apps-pagetree-page-not-in-menu',
422 'apps-pagetree-page-recycler',
423 'apps-pagetree-page-shortcut',
424 'apps-pagetree-page-shortcut-external',
425 'apps-pagetree-page-shortcut-external-hideinmenu',
426 'apps-pagetree-page-shortcut-external-root',
427 'apps-pagetree-page-shortcut-hideinmenu',
428 'apps-pagetree-page-shortcut-root',
429 'apps-pagetree-root',
430 'apps-pagetree-spacer',
431 'apps-tcatree-select-recursive',
432 'apps-toolbar-menu-actions',
433 'apps-toolbar-menu-cache',
434 'apps-toolbar-menu-opendocs',
435 'apps-toolbar-menu-search',
436 'apps-toolbar-menu-shortcut',
437 'apps-toolbar-menu-workspace',
438 'mimetypes-compressed',
439 'mimetypes-excel',
440 'mimetypes-media-audio',
441 'mimetypes-media-flash',
442 'mimetypes-media-image',
443 'mimetypes-media-video',
444 'mimetypes-other-other',
445 'mimetypes-pdf',
446 'mimetypes-powerpoint',
447 'mimetypes-text-css',
448 'mimetypes-text-csv',
449 'mimetypes-text-html',
450 'mimetypes-text-js',
451 'mimetypes-text-php',
452 'mimetypes-text-text',
453 'mimetypes-word',
454 'mimetypes-x-content-divider',
455 'mimetypes-x-content-domain',
456 'mimetypes-x-content-form',
457 'mimetypes-x-content-form-search',
458 'mimetypes-x-content-header',
459 'mimetypes-x-content-html',
460 'mimetypes-x-content-image',
461 'mimetypes-x-content-link',
462 'mimetypes-x-content-list-bullets',
463 'mimetypes-x-content-list-files',
464 'mimetypes-x-content-login',
465 'mimetypes-x-content-menu',
466 'mimetypes-x-content-multimedia',
467 'mimetypes-x-content-page-language-overlay',
468 'mimetypes-x-content-plugin',
469 'mimetypes-x-content-script',
470 'mimetypes-x-content-table',
471 'mimetypes-x-content-template',
472 'mimetypes-x-content-template-extension',
473 'mimetypes-x-content-template-static',
474 'mimetypes-x-content-text',
475 'mimetypes-x-content-text-picture',
476 'mimetypes-x-sys_action',
477 'mimetypes-x-sys_category',
478 'mimetypes-x-sys_language',
479 'mimetypes-x-sys_news',
480 'mimetypes-x-sys_workspace',
481 'mimetypes-x_belayout',
482 'status-dialog-error',
483 'status-dialog-information',
484 'status-dialog-notification',
485 'status-dialog-ok',
486 'status-dialog-warning',
487 'status-overlay-access-restricted',
488 'status-overlay-deleted',
489 'status-overlay-hidden',
490 'status-overlay-icon-missing',
491 'status-overlay-includes-subpages',
492 'status-overlay-locked',
493 'status-overlay-scheduled',
494 'status-overlay-scheduled-future-end',
495 'status-overlay-translated',
496 'status-status-checked',
497 'status-status-current',
498 'status-status-edit-read-only',
499 'status-status-icon-missing',
500 'status-status-locked',
501 'status-status-permission-denied',
502 'status-status-permission-granted',
503 'status-status-readonly',
504 'status-status-reference-hard',
505 'status-status-reference-soft',
506 'status-status-sorting-asc',
507 'status-status-sorting-desc',
508 'status-status-sorting-light-asc',
509 'status-status-sorting-light-desc',
510 'status-status-workspace-draft',
511 'status-system-extension-required',
512 'status-user-admin',
513 'status-user-backend',
514 'status-user-frontend',
515 'status-user-group-backend',
516 'status-user-group-frontend',
517 'status-version-1',
518 'status-version-2',
519 'status-version-3',
520 'status-version-4',
521 'status-version-5',
522 'status-version-6',
523 'status-version-7',
524 'status-version-8',
525 'status-version-9',
526 'status-version-10',
527 'status-version-11',
528 'status-version-12',
529 'status-version-13',
530 'status-version-14',
531 'status-version-15',
532 'status-version-16',
533 'status-version-17',
534 'status-version-18',
535 'status-version-19',
536 'status-version-20',
537 'status-version-21',
538 'status-version-22',
539 'status-version-23',
540 'status-version-24',
541 'status-version-25',
542 'status-version-26',
543 'status-version-27',
544 'status-version-28',
545 'status-version-29',
546 'status-version-30',
547 'status-version-31',
548 'status-version-32',
549 'status-version-33',
550 'status-version-34',
551 'status-version-35',
552 'status-version-36',
553 'status-version-37',
554 'status-version-38',
555 'status-version-39',
556 'status-version-40',
557 'status-version-41',
558 'status-version-42',
559 'status-version-43',
560 'status-version-44',
561 'status-version-45',
562 'status-version-46',
563 'status-version-47',
564 'status-version-48',
565 'status-version-49',
566 'status-version-50',
567 'status-version-no-version',
568 'status-warning-in-use',
569 'status-warning-lock',
570 'treeline-blank',
571 'treeline-join',
572 'treeline-joinbottom',
573 'treeline-jointop',
574 'treeline-line',
575 'treeline-minus',
576 'treeline-minusbottom',
577 'treeline-minusonly',
578 'treeline-minustop',
579 'treeline-plus',
580 'treeline-plusbottom',
581 'treeline-plusonly',
582 'treeline-stopper',
583 'module-web',
584 'module-file',
585 'module-system',
586 'module-tools',
587 'module-user',
588 'module-help',
589 );
590
591
592 $GLOBALS['TBE_STYLES']['spriteIconApi']['spriteIconRecordOverlayPriorities'] = array(
593 'deleted',
594 'hidden',
595 'starttime',
596 'endtime',
597 'futureendtime',
598 'fe_group',
599 'protectedSection'
600 );
601
602
603 $GLOBALS['TBE_STYLES']['spriteIconApi']['spriteIconRecordOverlayNames'] = array(
604 'hidden' => 'status-overlay-hidden',
605 'fe_group' => 'status-overlay-access-restricted',
606 'starttime' => 'status-overlay-scheduled',
607 'endtime' => 'status-overlay-scheduled',
608 'futureendtime' => 'status-overlay-scheduled-future-end',
609 'readonly' => 'status-overlay-locked',
610 'deleted' => 'status-overlay-deleted',
611 'missing' => 'status-overlay-missing',
612 'translated' => 'status-overlay-translated',
613 'protectedSection' => 'status-overlay-includes-subpages'
614 );
615
616 // add stylesheets from the core
617 $GLOBALS['TBE_STYLES']['skins']['core']['stylesheetDirectories']['Base'] = 'EXT:core/Resources/Public/StyleSheets/';
618
619 // Adding flags to the sprite manager
620 if (TYPO3_MODE === 'BE' || TYPO3_MODE === 'FE' && isset($GLOBALS['BE_USER'])) {
621 $flagNames = array(
622 'multiple',
623 'ad', 'ae', 'af', 'ag', 'ai', 'al', 'am', 'an', 'ao', 'ar', 'as', 'at', 'au', 'aw', 'ax', 'az',
624 'ba', 'bb', 'bd', 'be', 'bf', 'bg', 'bh', 'bi', 'bj', 'bm', 'bn', 'bo', 'br', 'bs', 'bt', 'bv', 'bw', 'by', 'bz',
625 'ca', 'catalonia', 'cc', 'cd', 'cf', 'cg', 'ch', 'ci', 'ck', 'cl', 'cm', 'cn', 'co', 'cr', 'cs', 'cu', 'cv', 'cx', 'cy', 'cz',
626 'de', 'dj', 'dk', 'dm', 'do', 'dz',
627 'ec', 'ee', 'eg', 'eh', 'england', 'er', 'es', 'et', 'europeanunion',
628 'fam', 'fi', 'fj', 'fk', 'fm', 'fo', 'fr',
629 'ga', 'gb', 'gd', 'ge', 'gf', 'gh', 'gi', 'gl', 'gm', 'gn', 'gp', 'gq', 'gr', 'gs', 'gt', 'gu', 'gw', 'gy',
630 'hk', 'hm', 'hn', 'hr', 'ht', 'hu',
631 'id', 'ie', 'il', 'in', 'io', 'iq', 'ir', 'is', 'it',
632 'jm', 'jo', 'jp',
633 'ke', 'kg', 'kh', 'ki', 'km', 'kn', 'kp', 'kr', 'kw', 'ky', 'kz',
634 'la', 'lb', 'lc', 'li', 'lk', 'lr', 'ls', 'lt', 'lu', 'lv', 'ly',
635 'ma', 'mc', 'md', 'me', 'mg', 'mh', 'mk', 'ml', 'mm', 'mn', 'mo', 'mp', 'mq', 'mr', 'ms', 'mt', 'mu', 'mv', 'mw', 'mx', 'my', 'mz',
636 'na', 'nc', 'ne', 'nf', 'ng', 'ni', 'nl', 'no', 'np', 'nr', 'nu', 'nz',
637 'om',
638 'pa', 'pe', 'pf', 'pg', 'ph', 'pk', 'pl', 'pm', 'pn', 'pr', 'ps', 'pt', 'pw', 'py',
639 'qa', 'qc',
640 're', 'ro', 'rs', 'ru', 'rw',
641 'sa', 'sb', 'sc', 'scotland', 'sd', 'se', 'sg', 'sh', 'si', 'sj', 'sk', 'sl', 'sm', 'sn', 'so', 'sr', 'st', 'sv', 'sy', 'sz',
642 'tc', 'td', 'tf', 'tg', 'th', 'tj', 'tk', 'tl', 'tm', 'tn', 'to', 'tr', 'tt', 'tv', 'tw', 'tz',
643 'ua', 'ug', 'um', 'us', 'uy', 'uz',
644 'va', 'vc', 've', 'vg', 'vi', 'vn', 'vu',
645 'wales', 'wf', 'ws',
646 'ye', 'yt',
647 'za', 'zm', 'zw'
648 );
649
650 $flagIcons = array();
651 foreach ($flagNames as $flagName) {
652 $flagIcons[] = 'flags-' . $flagName;
653 $flagIcons[] = 'flags-' . $flagName . '-overlay';
654 }
655 \TYPO3\CMS\Backend\Sprite\SpriteManager::addIconSprite($flagIcons);
656 unset($flagNames, $flagName, $flagIcons);
657 }