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