[TASK] Replace sprite icon "apps-toolbar-menu-opendocs" with the new IconFactory 08/43208/3
authorMorton Jonuschat <m.jonuschat@mojocode.de>
Fri, 11 Sep 2015 15:00:22 +0000 (17:00 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 11 Sep 2015 15:09:23 +0000 (17:09 +0200)
Replaces all IconUtility::getSpriteIcon calls for the1icon
apps-toolbar-menu-opendocs with the new IconFactory.

Resolves: #69683
Releases: master
Change-Id: I7910f9b00c48348deae296948e7188a84dd72866
Reviewed-on: http://review.typo3.org/43208
Reviewed-by: Frank Nägler <frank.naegler@typo3.org>
Tested-by: Frank Nägler <frank.naegler@typo3.org>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Classes/Imaging/IconRegistry.php
typo3/sysext/opendocs/Classes/Backend/ToolbarItems/OpendocsToolbarItem.php

index 24d7d60..e1bf90d 100644 (file)
@@ -88,6 +88,12 @@ class IconRegistry implements \TYPO3\CMS\Core\SingletonInterface {
                                'source' => 'EXT:backend/Resources/Public/Icons/App/apps-pagetree-root.svg',
                        )
                ),
+               'apps-toolbar-menu-opendocs' => array(
+                       'provider' => FontawesomeIconProvider::class,
+                       'options' => array(
+                               'name' => 'file',
+                       )
+               ),
                'apps-toolbar-menu-search' => array(
                        'provider' => SvgIconProvider::class,
                        'options' => array(
index e518890..527816a 100644 (file)
@@ -83,7 +83,7 @@ class OpendocsToolbarItem implements ToolbarItemInterface {
                $title = $this->getLanguageService()->getLL('toolbaritem', TRUE);
 
                $opendocsMenu = array();
-               $opendocsMenu[] = IconUtility::getSpriteIcon('apps-toolbar-menu-opendocs', array('title' => $title));
+               $opendocsMenu[] = '<span title="' . $title . '">' . $this->iconFactory->getIcon('apps-toolbar-menu-opendocs', Icon::SIZE_SMALL) . '</span>';
                $opendocsMenu[] = '<span class="badge" id="tx-opendocs-counter">' . $numDocs . '</span>';
 
                return implode(LF, $opendocsMenu);