[TASK] Cleanup LESS
[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 'stylesheetDirectories' => array(
10 'sprites' => 'EXT:t3skin/stylesheets/sprites/',
11 'css' => 'EXT:t3skin/Resources/Public/Css/'
12 )
13 );
14
15 // Manual setting up of alternative icons.
16 $GLOBALS['TBE_STYLES']['skinImg']['gfx/ol/blank.gif'] = array('clear.gif', 'width="18" height="16"');
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 // 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 // extJS theme
41 $GLOBALS['TBE_STYLES']['extJS']['theme'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('t3skin') . 'extjs/xtheme-t3skin.css';
42 $GLOBALS['TBE_STYLES']['stylesheets']['admPanel'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath('t3skin') . 'stylesheets/standalone/admin_panel.css';
43 }