[TASK] Replace old fe_users icon with new one
[Packages/TYPO3.CMS.git] / typo3 / sysext / t3skin / ext_tables.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 if (TYPO3_MODE === 'BE' || TYPO3_MODE === 'FE' && isset($GLOBALS['BE_USER'])) {
5 global $TBE_STYLES;
6
7 // Register as a skin
8 $TBE_STYLES['skins'][$_EXTKEY] = array(
9 'name' => 't3skin'
10 );
11
12 // Support for other extensions to add own icons...
13 $presetSkinImgs = is_array($TBE_STYLES['skinImg']) ? $TBE_STYLES['skinImg'] : array();
14 $TBE_STYLES['skins'][$_EXTKEY]['stylesheetDirectories']['sprites'] = 'EXT:t3skin/stylesheets/sprites/';
15
16 // Setting the relative path to the extension in temp. variable:
17 $temp_eP = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY);
18
19 // Alternative dimensions for frameset sizes:
20 // Left menu frame width
21 $TBE_STYLES['dims']['leftMenuFrameW'] = 190;
22
23 // Top frame height
24 $TBE_STYLES['dims']['topFrameH'] = 42;
25
26 // Default navigation frame width
27 $TBE_STYLES['dims']['navFrameWidth'] = 280;
28
29 // Setting up auto detection of alternative icons:
30 $TBE_STYLES['skinImgAutoCfg'] = array(
31 'absDir' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'icons/',
32 'relDir' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'icons/',
33 'forceFileExtension' => 'gif',
34 // Force to look for PNG alternatives...
35 'iconSizeWidth' => 16,
36 'iconSizeHeight' => 16
37 );
38
39 // Changing icon for filemounts, needs to be done here as overwriting the original icon would also change the filelist tree's root icon
40 $TCA['sys_filemounts']['ctrl']['iconfile'] = '_icon_ftp_2.gif';
41
42 // Adding flags to sys_language
43 $TCA['sys_language']['ctrl']['typeicon_column'] = 'flag';
44 $TCA['sys_language']['ctrl']['typeicon_classes'] = array(
45 'default' => 'mimetypes-x-sys_language',
46 'mask' => 'flags-###TYPE###'
47 );
48 $flagNames = array(
49 'multiple',
50 'ad',
51 'ae',
52 'af',
53 'ag',
54 'ai',
55 'al',
56 'am',
57 'an',
58 'ao',
59 'ar',
60 'as',
61 'at',
62 'au',
63 'aw',
64 'ax',
65 'az',
66 'ba',
67 'bb',
68 'bd',
69 'be',
70 'bf',
71 'bg',
72 'bh',
73 'bi',
74 'bj',
75 'bm',
76 'bn',
77 'bo',
78 'br',
79 'bs',
80 'bt',
81 'bv',
82 'bw',
83 'by',
84 'bz',
85 'ca',
86 'catalonia',
87 'cc',
88 'cd',
89 'cf',
90 'cg',
91 'ch',
92 'ci',
93 'ck',
94 'cl',
95 'cm',
96 'cn',
97 'co',
98 'cr',
99 'cs',
100 'cu',
101 'cv',
102 'cx',
103 'cy',
104 'cz',
105 'de',
106 'dj',
107 'dk',
108 'dm',
109 'do',
110 'dz',
111 'ec',
112 'ee',
113 'eg',
114 'eh',
115 'england',
116 'er',
117 'es',
118 'et',
119 'europeanunion',
120 'fam',
121 'fi',
122 'fj',
123 'fk',
124 'fm',
125 'fo',
126 'fr',
127 'ga',
128 'gb',
129 'gd',
130 'ge',
131 'gf',
132 'gh',
133 'gi',
134 'gl',
135 'gm',
136 'gn',
137 'gp',
138 'gq',
139 'gr',
140 'gs',
141 'gt',
142 'gu',
143 'gw',
144 'gy',
145 'hk',
146 'hm',
147 'hn',
148 'hr',
149 'ht',
150 'hu',
151 'id',
152 'ie',
153 'il',
154 'in',
155 'io',
156 'iq',
157 'ir',
158 'is',
159 'it',
160 'jm',
161 'jo',
162 'jp',
163 'ke',
164 'kg',
165 'kh',
166 'ki',
167 'km',
168 'kn',
169 'kp',
170 'kr',
171 'kw',
172 'ky',
173 'kz',
174 'la',
175 'lb',
176 'lc',
177 'li',
178 'lk',
179 'lr',
180 'ls',
181 'lt',
182 'lu',
183 'lv',
184 'ly',
185 'ma',
186 'mc',
187 'md',
188 'me',
189 'mg',
190 'mh',
191 'mk',
192 'ml',
193 'mm',
194 'mn',
195 'mo',
196 'mp',
197 'mq',
198 'mr',
199 'ms',
200 'mt',
201 'mu',
202 'mv',
203 'mw',
204 'mx',
205 'my',
206 'mz',
207 'na',
208 'nc',
209 'ne',
210 'nf',
211 'ng',
212 'ni',
213 'nl',
214 'no',
215 'np',
216 'nr',
217 'nu',
218 'nz',
219 'om',
220 'pa',
221 'pe',
222 'pf',
223 'pg',
224 'ph',
225 'pk',
226 'pl',
227 'pm',
228 'pn',
229 'pr',
230 'ps',
231 'pt',
232 'pw',
233 'py',
234 'qa',
235 'qc',
236 're',
237 'ro',
238 'rs',
239 'ru',
240 'rw',
241 'sa',
242 'sb',
243 'sc',
244 'scotland',
245 'sd',
246 'se',
247 'sg',
248 'sh',
249 'si',
250 'sj',
251 'sk',
252 'sl',
253 'sm',
254 'sn',
255 'so',
256 'sr',
257 'st',
258 'sv',
259 'sy',
260 'sz',
261 'tc',
262 'td',
263 'tf',
264 'tg',
265 'th',
266 'tj',
267 'tk',
268 'tl',
269 'tm',
270 'tn',
271 'to',
272 'tr',
273 'tt',
274 'tv',
275 'tw',
276 'tz',
277 'ua',
278 'ug',
279 'um',
280 'us',
281 'uy',
282 'uz',
283 'va',
284 'vc',
285 've',
286 'vg',
287 'vi',
288 'vn',
289 'vu',
290 'wales',
291 'wf',
292 'ws',
293 'ye',
294 'yt',
295 'za',
296 'zm',
297 'zw'
298 );
299 foreach ($flagNames as $flagName) {
300 $TCA['sys_language']['columns']['flag']['config']['items'][] = array($flagName, $flagName, 'EXT:t3skin/images/flags/' . $flagName . '.png');
301 }
302
303 $TCA['pages']['columns']['module']['config']['items'][1][2] = 'EXT:t3skin/images/icons/status/user-frontend.png';
304
305 // Manual setting up of alternative icons. This is mainly for module icons which has a special prefix:
306 $TBE_STYLES['skinImg'] = array_merge($presetSkinImgs, array(
307 'gfx/ol/blank.gif' => array('clear.gif', 'width="18" height="16"'),
308 'MOD:web/website.gif' => array($temp_eP . 'icons/module_web.gif', 'width="24" height="24"'),
309 'MOD:web_ts/ts1.gif' => array($temp_eP . 'icons/module_web_ts.gif', 'width="24" height="24"'),
310 'MOD:web_modules/modules.gif' => array($temp_eP . 'icons/module_web_modules.gif', 'width="24" height="24"'),
311 'MOD:web_txversionM1/cm_icon.gif' => array($temp_eP . 'icons/module_web_version.gif', 'width="24" height="24"'),
312 'MOD:file/file.gif' => array($temp_eP . 'icons/module_file.gif', 'width="22" height="24"'),
313 'MOD:file_images/images.gif' => array($temp_eP . 'icons/module_file_images.gif', 'width="22" height="22"'),
314 'MOD:user/user.gif' => array($temp_eP . 'icons/module_user.gif', 'width="22" height="22"'),
315 'MOD:user_doc/document.gif' => array($temp_eP . 'icons/module_doc.gif', 'width="22" height="22"'),
316 'MOD:tools/tool.gif' => array($temp_eP . 'icons/module_tools.gif', 'width="25" height="24"'),
317 'MOD:tools_txphpmyadmin/thirdparty_db.gif' => array($temp_eP . 'icons/module_tools_phpmyadmin.gif', 'width="24" height="24"'),
318 'MOD:help/help.gif' => array($temp_eP . 'icons/module_help.gif', 'width="23" height="24"'),
319 'MOD:help_txtsconfighelpM1/moduleicon.gif' => array($temp_eP . 'icons/module_help_ts.gif', 'width="25" height="24"')
320 ));
321
322 // extJS theme
323 $TBE_STYLES['extJS']['theme'] = $temp_eP . 'extjs/xtheme-t3skin.css';
324 $GLOBALS['TBE_STYLES']['stylesheets']['admPanel'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath('t3skin') . 'stylesheets/standalone/admin_panel.css';
325 $flagIcons = array();
326 foreach ($flagNames as $flagName) {
327 $flagIcons[] = 'flags-' . $flagName;
328 $flagIcons[] = 'flags-' . $flagName . '-overlay';
329 }
330 \TYPO3\CMS\Backend\Sprite\SpriteManager::addIconSprite($flagIcons);
331 unset($flagNames, $flagName, $flagIcons);
332 }