[TASK] Replace icon by IconFactory: mimetypes-word 38/43038/2
authorJan Helke <typo3@helke.de>
Fri, 4 Sep 2015 16:37:33 +0000 (18:37 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Sat, 5 Sep 2015 11:33:07 +0000 (13:33 +0200)
Releases: master
Resolves: #69540
Change-Id: Iebb06b5f21fceb7a482ac2abd5608bc8f4b81122
Reviewed-on: http://review.typo3.org/43038
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Tested-by: Daniel Goerz <ervaude@gmail.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/backend/Classes/Backend/ToolbarItems/ShortcutToolbarItem.php
typo3/sysext/core/Classes/Imaging/IconRegistry.php

index 24af475..2167e43 100644 (file)
@@ -768,7 +768,7 @@ class ShortcutToolbarItem implements ToolbarItemInterface {
                                $icon = IconUtility::getSpriteIcon('mimetypes-text-html', array('title' => $titleAttribute));
                                break;
                        case 'wizard_rte':
-                               $icon = IconUtility::getSpriteIcon('mimetypes-word', array('title' => $titleAttribute));
+                               $icon = '<span title="' . $titleAttribute . '">' . $this->iconFactory->getIcon('mimetypes-word', Icon::SIZE_SMALL)->render() . '</span>';
                                break;
                        default:
                                if ($languageService->moduleLabels['tabs_images'][$row['module_name'] . '_tab']) {
index 0dfefdb..f5ded43 100644 (file)
@@ -419,6 +419,13 @@ class IconRegistry implements \TYPO3\CMS\Core\SingletonInterface {
                        )
                ),
 
+               'mimetypes-word' => array(
+                       'provider' => FontawesomeIconProvider::class,
+                       'options' => array(
+                               'name' => 'file-word-o',
+                       )
+               ),
+
                // Status
                'status-status-current' => array(
                        'provider' => FontawesomeIconProvider::class,