Added feature #14546: Make sprite icons / PNGs work in Internet Explorer 6 through...
[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']) && $GLOBALS['BE_USER']->isFrontendEditingActive())) {
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 // Setting login box image rotation folder:
81 $TBE_STYLES['loginBoxImage_rotationFolder'] = $temp_eP.'images/login/';
82 $TBE_STYLES['loginBoxImage_author']['loginimage_4_2.jpg'] = 'Photo by Photo by J.C. Franca (www.digitalphoto.com.br)';
83 # $TBE_STYLES['loginBoxImage_rotationFolder'] = '';
84
85 // Alternative dimensions for frameset sizes:
86 $TBE_STYLES['dims']['leftMenuFrameW'] = 190; // Left menu frame width
87 $TBE_STYLES['dims']['topFrameH'] = 42; // Top frame height
88 $TBE_STYLES['dims']['navFrameWidth'] = 280; // Default navigation frame width
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 # 'scaleFactor' => 2/3, // Scaling factor, default is 1
100 'iconSizeWidth' => 16,
101 'iconSizeHeight' => 16,
102 );
103
104 // Changing icon for filemounts, needs to be done here as overwriting the original icon would also change the filelist tree's root icon
105 $TCA['sys_filemounts']['ctrl']['iconfile'] = '_icon_ftp_2.gif';
106
107 // Manual setting up of alternative icons. This is mainly for module icons which has a special prefix:
108 $TBE_STYLES['skinImg'] = array_merge($presetSkinImgs, array (
109 'gfx/ol/blank.gif' => array('clear.gif','width="14" height="14"'),
110 'MOD:web/website.gif' => array($temp_eP.'icons/module_web.gif','width="24" height="24"'),
111 'MOD:web_layout/layout.gif' => array($temp_eP.'icons/module_web_layout.gif','width="24" height="24"'),
112 'MOD:web_view/view.gif' => array($temp_eP.'icons/module_web_view.png','width="24" height="24"'),
113 'MOD:web_list/list.gif' => array($temp_eP.'icons/module_web_list.gif','width="24" height="24"'),
114 'MOD:web_info/info.gif' => array($temp_eP.'icons/module_web_info.png','width="24" height="24"'),
115 'MOD:web_perm/perm.gif' => array($temp_eP.'icons/module_web_perms.png','width="24" height="24"'),
116 'MOD:web_func/func.gif' => array($temp_eP.'icons/module_web_func.png','width="24" height="24"'),
117 'MOD:web_ts/ts1.gif' => array($temp_eP.'icons/module_web_ts.gif','width="24" height="24"'),
118 'MOD:web_modules/modules.gif' => array($temp_eP.'icons/module_web_modules.gif','width="24" height="24"'),
119 'MOD:web_txversionM1/cm_icon.gif' => array($temp_eP.'icons/module_web_version.gif','width="24" height="24"'),
120 'MOD:file/file.gif' => array($temp_eP.'icons/module_file.gif','width="22" height="24"'),
121 'MOD:file_list/list.gif' => array($temp_eP.'icons/module_file_list.gif','width="22" height="24"'),
122 'MOD:file_images/images.gif' => array($temp_eP.'icons/module_file_images.gif','width="22" height="22"'),
123 'MOD:user/user.gif' => array($temp_eP.'icons/module_user.gif','width="22" height="22"'),
124 'MOD:user_task/task.gif' => array($temp_eP.'icons/module_user_taskcenter.gif','width="22" height="22"'),
125 'MOD:user_setup/setup.gif' => array($temp_eP.'icons/module_user_setup.gif','width="22" height="22"'),
126 'MOD:user_doc/document.gif' => array($temp_eP.'icons/module_doc.gif','width="22" height="22"'),
127 'MOD:user_ws/sys_workspace.gif' => array($temp_eP.'icons/module_user_ws.gif','width="22" height="22"'),
128 'MOD:tools/tool.gif' => array($temp_eP.'icons/module_tools.gif','width="25" height="24"'),
129 'MOD:tools_beuser/beuser.gif' => array($temp_eP.'icons/module_tools_user.gif','width="24" height="24"'),
130 'MOD:tools_em/em.gif' => array($temp_eP.'icons/module_tools_em.gif','width="24" height="24"'),
131 'MOD:tools_em/install.gif' => array($temp_eP.'icons/module_tools_em.gif','width="24" height="24"'),
132 'MOD:tools_dbint/db.gif' => array($temp_eP.'icons/module_tools_dbint.gif','width="25" height="24"'),
133 'MOD:tools_config/config.gif' => array($temp_eP.'icons/module_tools_config.gif','width="24" height="24"'),
134 'MOD:tools_install/install.gif' => array($temp_eP.'icons/module_tools_install.gif','width="24" height="24"'),
135 'MOD:tools_log/log.gif' => array($temp_eP.'icons/module_tools_log.gif','width="24" height="24"'),
136 'MOD:tools_txphpmyadmin/thirdparty_db.gif' => array($temp_eP.'icons/module_tools_phpmyadmin.gif','width="24" height="24"'),
137 'MOD:tools_isearch/isearch.gif' => array($temp_eP.'icons/module_tools_isearch.gif','width="24" height="24"'),
138 'MOD:help/help.gif' => array($temp_eP.'icons/module_help.gif','width="23" height="24"'),
139 'MOD:help_about/info.gif' => array($temp_eP.'icons/module_help_about.gif','width="25" height="24"'),
140 'MOD:help_aboutmodules/aboutmodules.gif' => array($temp_eP.'icons/module_help_aboutmodules.gif','width="24" height="24"'),
141 'MOD:help_cshmanual/about.gif' => array($temp_eP.'icons/module_help_cshmanual.gif','width="25" height="24"'),
142 'MOD:help_txtsconfighelpM1/moduleicon.gif' => array($temp_eP.'icons/module_help_ts.gif','width="25" height="24"'),
143 ));
144
145 // Logo at login screen
146 $TBE_STYLES['logo_login'] = $temp_eP . 'images/login/typo3logo-white.png';
147
148 // Adding icon for photomarathon extensions' backend module, if enabled:
149 if (t3lib_extMgm::isloaded('user_photomarathon')) {
150 $TBE_STYLES['skinImg']['MOD:web_uphotomarathon/tab_icon.gif'] = array($temp_eP.'icons/ext/user_photomarathon/tab_icon.gif','width="24" height="24"');
151 }
152 // Adding icon for templavoila extensions' backend module, if enabled:
153 if (t3lib_extMgm::isloaded('templavoila')) {
154 $TBE_STYLES['skinImg']['MOD:web_txtemplavoilaM1/moduleicon.gif'] = array($temp_eP.'icons/ext/templavoila/mod1/moduleicon.gif','width="22" height="22"');
155 $TBE_STYLES['skinImg']['MOD:web_txtemplavoilaM2/moduleicon.gif'] = array($temp_eP.'icons/ext/templavoila/mod1/moduleicon.gif','width="22" height="22"');
156 }
157 // Adding icon for extension manager' backend module, if enabled:
158 $TBE_STYLES['skinImg']['MOD:tools_em/install.gif'] = array($temp_eP.'icons/ext/templavoila/mod1/moduleicon.gif','width="22" height="22"');
159 $TBE_STYLES['skinImg']['MOD:tools_em/uninstall.gif'] = array($temp_eP.'icons/ext/templavoila/mod1/moduleicon.gif','width="22" height="22"');
160
161 // extJS theme
162 $TBE_STYLES['extJS']['theme'] = $temp_eP . 'extjs/xtheme-t3skin.css';
163
164 //print_a($TBE_STYLES,2);
165
166 // Adding HTML template for login screen
167 $TBE_STYLES['htmlTemplates']['templates/login.html'] = 'sysext/t3skin/templates/login.html';
168
169 $GLOBALS['TYPO3_CONF_VARS']['typo3/backend.php']['additionalBackendItems'][] = t3lib_extMgm::extPath('t3skin').'registerIe6Stylesheet.php';
170
171 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/template.php']['preHeaderRenderHook'][] = t3lib_extMgm::extPath('t3skin').'pngfix/class.tx_templatehook.php:tx_templatehook->registerPngFix';
172 }
173
174 ?>