[TASK] Remove StyleGenerationHook in t3skin 24/33924/2
authorGeorg Ringer <georg.ringer@gmail.com>
Sun, 9 Nov 2014 17:48:20 +0000 (18:48 +0100)
committerFrank Nägler <typo3@naegler.net>
Sun, 9 Nov 2014 19:08:30 +0000 (20:08 +0100)
This hook is called inside t3skin and not used anymore because
styling is now done in a better way.
Also classes like bgColor5 are not used anymore.

Resolves: #62797
Releases: master
Change-Id: Idc6e18030c8d96daf1577f51640252fe0ce14d4e
Reviewed-on: http://review.typo3.org/33924
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Frank Nägler <typo3@naegler.net>
Tested-by: Frank Nägler <typo3@naegler.net>
typo3/sysext/t3skin/Classes/Hook/StyleGenerationHook.php [deleted file]
typo3/sysext/t3skin/ext_localconf.php

diff --git a/typo3/sysext/t3skin/Classes/Hook/StyleGenerationHook.php b/typo3/sysext/t3skin/Classes/Hook/StyleGenerationHook.php
deleted file mode 100644 (file)
index 49d60d3..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-<?php
-namespace TYPO3\CMS\T3skin\Hook;
-
-/**
- * This file is part of the TYPO3 CMS project.
- *
- * It is free software; you can redistribute it and/or modify it under
- * the terms of the GNU General Public License, either version 2
- * of the License, or any later version.
- *
- * For the full copyright and license information, please read the
- * LICENSE.txt file that was distributed with this source code.
- *
- * The TYPO3 project - inspiring people to share!
- */
-
-/**
- * Hook for adding styles to backend page-generation in DocumentTemplate
- *
- * @author Stefan Neufeind <info [at] speedpartner.de>
- * @deprecated since TYPO3 CMS 7, will be removed in CMS 8
- */
-class StyleGenerationHook {
-
-       /**
-        * Hooks into the \TYPO3\CMS\Backend\Template\DocumentTemplate::startPage and adds styles based on settings
-        * from color-schema from $GLOBALS['TBE_STYLES']
-        *
-        * @param array $hookParameters
-        * @param \TYPO3\CMS\Backend\Template\DocumentTemplate $documentTemplate Reference to instance of DocumentTemplate
-        * @return void
-        */
-       public function preStartPageHook($hookParameters, \TYPO3\CMS\Backend\Template\DocumentTemplate $documentTemplate) {
-               $documentTemplate->inDocStylesArray['TYPO3\\CMS\\T3skin\\Hook\\StyleGenerationHook'] = 'tr.typo3-CSM-itemRow:hover {background-color: ' . $GLOBALS['TBE_STYLES']['scriptIDindex']['typo3/alt_clickmenu.php']['mainColors']['bgColor5'] . ';} ';
-       }
-
-}
\ No newline at end of file
index ce30903..9b4c4e4 100644 (file)
@@ -5,7 +5,6 @@ defined('TYPO3_MODE') or die();
        RTE.default.skin = EXT:' . $_EXTKEY . '/rtehtmlarea/htmlarea.css
        RTE.default.FE.skin = EXT:' . $_EXTKEY . '/rtehtmlarea/htmlarea.css
 ');
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/template.php']['preStartPageHook']['TYPO3\\CMS\\T3skin\\Hook\\StyleGenerationHook'] = 'TYPO3\\CMS\\T3skin\\Hook\\StyleGenerationHook->preStartPageHook';
 
 \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\SignalSlot\\Dispatcher')->connect(
        'TYPO3\\CMS\\Backend\\Utility\\IconUtility',