[TASK] CGL violations FunctionCallArgumentSpacing in /typo3/sysext/t*/
[Packages/TYPO3.CMS.git] / typo3 / sysext / t3skin / ext_tables.php
1 <?php
2 if (!defined ('TYPO3_MODE')) die ('Access denied.');
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']) ?
14 $TBE_STYLES['skinImg'] :
15 array();
16
17 $TBE_STYLES['skins'][$_EXTKEY]['stylesheetDirectories']['sprites'] = 'EXT:t3skin/stylesheets/sprites/';
18
19 /**
20 * Setting up backend styles and colors
21 */
22 $TBE_STYLES['mainColors'] = array( // Always use #xxxxxx color definitions!
23 'bgColor' => '#FFFFFF', // Light background color
24 'bgColor2' => '#FEFEFE', // Steel-blue
25 'bgColor3' => '#F1F3F5', // dok.color
26 'bgColor4' => '#E6E9EB', // light tablerow background, brownish
27 'bgColor5' => '#F8F9FB', // light tablerow background, greenish
28 'bgColor6' => '#E6E9EB', // light tablerow background, yellowish, for section headers. Light.
29 'hoverColor' => '#FF0000',
30 'navFrameHL' => '#F8F9FB'
31 );
32
33 $TBE_STYLES['colorschemes'][0] = '-|class-main1,-|class-main2,-|class-main3,-|class-main4,-|class-main5';
34 $TBE_STYLES['colorschemes'][1] = '-|class-main11,-|class-main12,-|class-main13,-|class-main14,-|class-main15';
35 $TBE_STYLES['colorschemes'][2] = '-|class-main21,-|class-main22,-|class-main23,-|class-main24,-|class-main25';
36 $TBE_STYLES['colorschemes'][3] = '-|class-main31,-|class-main32,-|class-main33,-|class-main34,-|class-main35';
37 $TBE_STYLES['colorschemes'][4] = '-|class-main41,-|class-main42,-|class-main43,-|class-main44,-|class-main45';
38 $TBE_STYLES['colorschemes'][5] = '-|class-main51,-|class-main52,-|class-main53,-|class-main54,-|class-main55';
39
40 $TBE_STYLES['styleschemes'][0]['all'] = 'CLASS: formField';
41 $TBE_STYLES['styleschemes'][1]['all'] = 'CLASS: formField1';
42 $TBE_STYLES['styleschemes'][2]['all'] = 'CLASS: formField2';
43 $TBE_STYLES['styleschemes'][3]['all'] = 'CLASS: formField3';
44 $TBE_STYLES['styleschemes'][4]['all'] = 'CLASS: formField4';
45 $TBE_STYLES['styleschemes'][5]['all'] = 'CLASS: formField5';
46
47 $TBE_STYLES['styleschemes'][0]['check'] = 'CLASS: checkbox';
48 $TBE_STYLES['styleschemes'][1]['check'] = 'CLASS: checkbox';
49 $TBE_STYLES['styleschemes'][2]['check'] = 'CLASS: checkbox';
50 $TBE_STYLES['styleschemes'][3]['check'] = 'CLASS: checkbox';
51 $TBE_STYLES['styleschemes'][4]['check'] = 'CLASS: checkbox';
52 $TBE_STYLES['styleschemes'][5]['check'] = 'CLASS: checkbox';
53
54 $TBE_STYLES['styleschemes'][0]['radio'] = 'CLASS: radio';
55 $TBE_STYLES['styleschemes'][1]['radio'] = 'CLASS: radio';
56 $TBE_STYLES['styleschemes'][2]['radio'] = 'CLASS: radio';
57 $TBE_STYLES['styleschemes'][3]['radio'] = 'CLASS: radio';
58 $TBE_STYLES['styleschemes'][4]['radio'] = 'CLASS: radio';
59 $TBE_STYLES['styleschemes'][5]['radio'] = 'CLASS: radio';
60
61 $TBE_STYLES['styleschemes'][0]['select'] = 'CLASS: select';
62 $TBE_STYLES['styleschemes'][1]['select'] = 'CLASS: select';
63 $TBE_STYLES['styleschemes'][2]['select'] = 'CLASS: select';
64 $TBE_STYLES['styleschemes'][3]['select'] = 'CLASS: select';
65 $TBE_STYLES['styleschemes'][4]['select'] = 'CLASS: select';
66 $TBE_STYLES['styleschemes'][5]['select'] = 'CLASS: select';
67
68 $TBE_STYLES['borderschemes'][0] = array('', '', '', 'wrapperTable');
69 $TBE_STYLES['borderschemes'][1] = array('', '', '', 'wrapperTable1');
70 $TBE_STYLES['borderschemes'][2] = array('', '', '', 'wrapperTable2');
71 $TBE_STYLES['borderschemes'][3] = array('', '', '', 'wrapperTable3');
72 $TBE_STYLES['borderschemes'][4] = array('', '', '', 'wrapperTable4');
73 $TBE_STYLES['borderschemes'][5] = array('', '', '', 'wrapperTable5');
74
75
76
77 // Setting the relative path to the extension in temp. variable:
78 $temp_eP = t3lib_extMgm::extRelPath($_EXTKEY);
79
80 // Alternative dimensions for frameset sizes:
81 $TBE_STYLES['dims']['leftMenuFrameW'] = 190; // Left menu frame width
82 $TBE_STYLES['dims']['topFrameH'] = 42; // Top frame height
83 $TBE_STYLES['dims']['navFrameWidth'] = 280; // Default navigation frame width
84
85 // Setting roll-over background color for click menus:
86 // 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"
87 $TBE_STYLES['scriptIDindex']['typo3/alt_clickmenu.php']['mainColors']['bgColor5'] = '#dedede';
88
89 // Setting up auto detection of alternative icons:
90 $TBE_STYLES['skinImgAutoCfg'] = array(
91 'absDir' => t3lib_extMgm::extPath($_EXTKEY).'icons/',
92 'relDir' => t3lib_extMgm::extRelPath($_EXTKEY).'icons/',
93 'forceFileExtension' => 'gif', // Force to look for PNG alternatives...
94 'iconSizeWidth' => 16,
95 'iconSizeHeight' => 16,
96 );
97
98 // Changing icon for filemounts, needs to be done here as overwriting the original icon would also change the filelist tree's root icon
99 $TCA['sys_filemounts']['ctrl']['iconfile'] = '_icon_ftp_2.gif';
100
101 // Adding flags to sys_language
102 t3lib_div::loadTCA('sys_language');
103 $TCA['sys_language']['ctrl']['typeicon_column'] = 'flag';
104 $TCA['sys_language']['ctrl']['typeicon_classes'] = array(
105 'default' => 'mimetypes-x-sys_language',
106 'mask' => 'flags-###TYPE###'
107 );
108 $flagNames = array(
109 'multiple', 'ad', 'ae', 'af', 'ag', 'ai', 'al', 'am', 'an', 'ao', 'ar', 'as', 'at', 'au', 'aw', 'ax', 'az',
110 'ba', 'bb', 'bd', 'be', 'bf', 'bg', 'bh', 'bi', 'bj', 'bm', 'bn', 'bo', 'br', 'bs', 'bt', 'bv', 'bw', 'by', 'bz',
111 'ca', 'catalonia', 'cc', 'cd', 'cf', 'cg', 'ch', 'ci', 'ck', 'cl', 'cm', 'cn', 'co', 'cr', 'cs', 'cu', 'cv', 'cx', 'cy', 'cz',
112 'de', 'dj', 'dk', 'dm', 'do', 'dz',
113 'ec', 'ee', 'eg', 'eh', 'england', 'er', 'es', 'et', 'europeanunion',
114 'fam', 'fi', 'fj', 'fk', 'fm', 'fo', 'fr',
115 'ga', 'gb', 'gd', 'ge', 'gf', 'gh', 'gi', 'gl', 'gm', 'gn', 'gp', 'gq', 'gr', 'gs', 'gt', 'gu', 'gw', 'gy',
116 'hk', 'hm', 'hn', 'hr', 'ht', 'hu',
117 'id', 'ie', 'il', 'in', 'io', 'iq', 'ir', 'is', 'it',
118 'jm', 'jo', 'jp',
119 'ke', 'kg', 'kh', 'ki', 'km', 'kn', 'kp', 'kr', 'kw', 'ky', 'kz',
120 'la', 'lb', 'lc', 'li', 'lk', 'lr', 'ls', 'lt', 'lu', 'lv', 'ly',
121 'ma', 'mc', 'md', 'me', 'mg', 'mh', 'mk', 'ml', 'mm', 'mn', 'mo', 'mp', 'mq', 'mr', 'ms', 'mt', 'mu', 'mv', 'mw', 'mx', 'my', 'mz',
122 'na', 'nc', 'ne', 'nf', 'ng', 'ni', 'nl', 'no', 'np', 'nr', 'nu', 'nz',
123 'om',
124 'pa', 'pe', 'pf', 'pg', 'ph', 'pk', 'pl', 'pm', 'pn', 'pr', 'ps', 'pt', 'pw', 'py',
125 'qa', 'qc',
126 're', 'ro', 'rs', 'ru', 'rw',
127 'sa', 'sb', 'sc', 'scotland', 'sd', 'se', 'sg', 'sh', 'si', 'sj', 'sk', 'sl', 'sm', 'sn', 'so', 'sr', 'st', 'sv', 'sy', 'sz',
128 'tc', 'td', 'tf', 'tg', 'th', 'tj', 'tk', 'tl', 'tm', 'tn', 'to', 'tr', 'tt', 'tv', 'tw', 'tz',
129 'ua', 'ug', 'um', 'us', 'uy', 'uz',
130 'va', 'vc', 've', 'vg', 'vi', 'vn', 'vu',
131 'wales', 'wf', 'ws',
132 'ye', 'yt',
133 'za', 'zm', 'zw'
134 );
135 foreach ($flagNames as $flagName) {
136 $TCA['sys_language']['columns']['flag']['config']['items'][] = array($flagName, $flagName, 'EXT:t3skin/images/flags/'. $flagName . '.png');
137 }
138
139 // Manual setting up of alternative icons. This is mainly for module icons which has a special prefix:
140 $TBE_STYLES['skinImg'] = array_merge($presetSkinImgs, array (
141 'gfx/ol/blank.gif' => array('clear.gif', 'width="18" height="16"'),
142 'MOD:web/website.gif' => array($temp_eP.'icons/module_web.gif', 'width="24" height="24"'),
143 'MOD:web_layout/layout.gif' => array($temp_eP.'icons/module_web_layout.gif', 'width="24" height="24"'),
144 'MOD:web_view/view.gif' => array($temp_eP.'icons/module_web_view.png', 'width="24" height="24"'),
145 'MOD:web_list/list.gif' => array($temp_eP.'icons/module_web_list.gif', 'width="24" height="24"'),
146 'MOD:web_info/info.gif' => array($temp_eP.'icons/module_web_info.png', 'width="24" height="24"'),
147 'MOD:web_perm/perm.gif' => array($temp_eP.'icons/module_web_perms.png', 'width="24" height="24"'),
148 'MOD:web_func/func.gif' => array($temp_eP.'icons/module_web_func.png', 'width="24" height="24"'),
149 'MOD:web_ts/ts1.gif' => array($temp_eP.'icons/module_web_ts.gif', 'width="24" height="24"'),
150 'MOD:web_modules/modules.gif' => array($temp_eP.'icons/module_web_modules.gif', 'width="24" height="24"'),
151 'MOD:web_txversionM1/cm_icon.gif' => array($temp_eP.'icons/module_web_version.gif', 'width="24" height="24"'),
152 'MOD:file/file.gif' => array($temp_eP.'icons/module_file.gif', 'width="22" height="24"'),
153 'MOD:file_list/list.gif' => array($temp_eP.'icons/module_file_list.gif', 'width="22" height="24"'),
154 'MOD:file_images/images.gif' => array($temp_eP.'icons/module_file_images.gif', 'width="22" height="22"'),
155 'MOD:user/user.gif' => array($temp_eP.'icons/module_user.gif', 'width="22" height="22"'),
156 'MOD:user_task/task.gif' => array($temp_eP.'icons/module_user_taskcenter.gif', 'width="22" height="22"'),
157 'MOD:user_setup/setup.gif' => array($temp_eP.'icons/module_user_setup.gif', 'width="22" height="22"'),
158 'MOD:user_doc/document.gif' => array($temp_eP.'icons/module_doc.gif', 'width="22" height="22"'),
159 'MOD:user_ws/sys_workspace.gif' => array($temp_eP.'icons/module_user_ws.gif', 'width="22" height="22"'),
160 'MOD:tools/tool.gif' => array($temp_eP.'icons/module_tools.gif', 'width="25" height="24"'),
161 'MOD:tools_beuser/beuser.gif' => array($temp_eP.'icons/module_tools_user.gif', 'width="24" height="24"'),
162 'MOD:tools_em/em.gif' => array($temp_eP.'icons/module_tools_em.png', 'width="24" height="24"'),
163 'MOD:tools_em/install.gif' => array($temp_eP.'icons/module_tools_em.gif', 'width="24" height="24"'),
164 'MOD:tools_dbint/db.gif' => array($temp_eP.'icons/module_tools_dbint.gif', 'width="25" height="24"'),
165 'MOD:tools_config/config.gif' => array($temp_eP.'icons/module_tools_config.gif', 'width="24" height="24"'),
166 'MOD:tools_install/install.gif' => array($temp_eP.'icons/module_tools_install.gif', 'width="24" height="24"'),
167 'MOD:tools_log/log.gif' => array($temp_eP.'icons/module_tools_log.gif', 'width="24" height="24"'),
168 'MOD:tools_txphpmyadmin/thirdparty_db.gif' => array($temp_eP.'icons/module_tools_phpmyadmin.gif', 'width="24" height="24"'),
169 'MOD:tools_isearch/isearch.gif' => array($temp_eP.'icons/module_tools_isearch.gif', 'width="24" height="24"'),
170 'MOD:help/help.gif' => array($temp_eP.'icons/module_help.gif', 'width="23" height="24"'),
171 'MOD:help_about/info.gif' => array($temp_eP.'icons/module_help_about.gif', 'width="25" height="24"'),
172 'MOD:help_aboutmodules/aboutmodules.gif' => array($temp_eP.'icons/module_help_aboutmodules.gif', 'width="24" height="24"'),
173 'MOD:help_cshmanual/about.gif' => array($temp_eP.'icons/module_help_cshmanual.gif', 'width="25" height="24"'),
174 'MOD:help_txtsconfighelpM1/moduleicon.gif' => array($temp_eP.'icons/module_help_ts.gif', 'width="25" height="24"'),
175 ));
176
177 // Logo at login screen
178 $TBE_STYLES['logo_login'] = $temp_eP . 'images/login/typo3logo-white-greyback.gif';
179
180 // extJS theme
181 $TBE_STYLES['extJS']['theme'] = $temp_eP . 'extjs/xtheme-t3skin.css';
182
183 // Adding HTML template for login screen
184 $TBE_STYLES['htmlTemplates']['templates/login.html'] = 'sysext/t3skin/templates/login.html';
185
186 $GLOBALS['TBE_STYLES']['stylesheets']['admPanel'] = t3lib_extMgm::siteRelPath('t3skin') . 'stylesheets/standalone/admin_panel.css';
187
188 foreach ($flagNames as $flagName) {
189 t3lib_SpriteManager::addIconSprite(
190 array(
191 'flags-' . $flagName,
192 'flags-' . $flagName . '-overlay',
193 )
194 );
195 }
196 unset($flagNames, $flagName);
197
198 }
199
200 ?>