[TASK] Use jQuery UI for Drag&Drop in Page Module
[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
6 // Register as a skin
7 $GLOBALS['TBE_STYLES']['skins'][$_EXTKEY] = array(
8 'name' => 't3skin'
9 );
10
11 // Support for other extensions to add own icons...
12 $presetSkinImgs = is_array($GLOBALS['TBE_STYLES']['skinImg']) ? $GLOBALS['TBE_STYLES']['skinImg'] : array();
13 $GLOBALS['TBE_STYLES']['skins'][$_EXTKEY]['stylesheetDirectories']['sprites'] = 'EXT:t3skin/stylesheets/sprites/';
14
15 // Setting the relative path to the extension in temp. variable:
16 $temp_eP = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY);
17
18 // Alternative dimensions for frameset sizes:
19 // Left menu frame width
20 $GLOBALS['TBE_STYLES']['dims']['leftMenuFrameW'] = 190;
21
22 // Top frame height
23 $GLOBALS['TBE_STYLES']['dims']['topFrameH'] = 45;
24
25 // Default navigation frame width
26 $GLOBALS['TBE_STYLES']['dims']['navFrameWidth'] = 280;
27
28 // Setting up auto detection of alternative icons:
29 $GLOBALS['TBE_STYLES']['skinImgAutoCfg'] = array(
30 'absDir' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'icons/',
31 'relDir' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'icons/',
32 'forceFileExtension' => 'gif',
33 // Force to look for PNG alternatives...
34 'iconSizeWidth' => 16,
35 'iconSizeHeight' => 16
36 );
37
38 // Changing icon for filemounts, needs to be done here as overwriting the original icon would also change the filelist tree's root icon
39 $GLOBALS['TCA']['sys_filemounts']['ctrl']['iconfile'] = '_icon_ftp_2.gif';
40
41 $GLOBALS['TCA']['pages']['columns']['module']['config']['items'][1][2] = 'EXT:t3skin/images/icons/status/user-frontend.png';
42
43 // Manual setting up of alternative icons. This is mainly for module icons which has a special prefix:
44 $GLOBALS['TBE_STYLES']['skinImg'] = array_merge($presetSkinImgs, array(
45 'gfx/ol/blank.gif' => array('clear.gif', 'width="18" height="16"'),
46 'MOD:web/website.gif' => array($temp_eP . 'icons/module_web.gif', 'width="24" height="24"'),
47 'MOD:web_ts/ts1.gif' => array($temp_eP . 'icons/module_web_ts.gif', 'width="24" height="24"'),
48 'MOD:web_modules/modules.gif' => array($temp_eP . 'icons/module_web_modules.gif', 'width="24" height="24"'),
49 'MOD:web_txversionM1/cm_icon.gif' => array($temp_eP . 'icons/module_web_version.gif', 'width="24" height="24"'),
50 'MOD:file/file.gif' => array($temp_eP . 'icons/module_file.gif', 'width="22" height="24"'),
51 'MOD:file_images/images.gif' => array($temp_eP . 'icons/module_file_images.gif', 'width="22" height="22"'),
52 'MOD:user/user.gif' => array($temp_eP . 'icons/module_user.gif', 'width="22" height="22"'),
53 'MOD:user_doc/document.gif' => array($temp_eP . 'icons/module_doc.gif', 'width="22" height="22"'),
54 'MOD:tools/tool.gif' => array($temp_eP . 'icons/module_tools.gif', 'width="25" height="24"'),
55 'MOD:tools_txphpmyadmin/thirdparty_db.gif' => array($temp_eP . 'icons/module_tools_phpmyadmin.gif', 'width="24" height="24"'),
56 'MOD:help/help.gif' => array($temp_eP . 'icons/module_help.gif', 'width="23" height="24"'),
57 'MOD:help_txtsconfighelpM1/moduleicon.gif' => array($temp_eP . 'icons/module_help_ts.gif', 'width="25" height="24"')
58 ));
59
60 // extJS theme
61 $GLOBALS['TBE_STYLES']['extJS']['theme'] = $temp_eP . 'extjs/xtheme-t3skin.css';
62 $GLOBALS['TBE_STYLES']['stylesheets']['admPanel'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath('t3skin') . 'stylesheets/standalone/admin_panel.css';
63 }