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