[TASK] Replace sprite icon "actions-insert-record" with the new IconFactory 64/42964/2
authorMorton Jonuschat <m.jonuschat@mojocode.de>
Tue, 1 Sep 2015 18:05:15 +0000 (20:05 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Tue, 1 Sep 2015 19:30:12 +0000 (21:30 +0200)
Replaces all IconUtility::getSpriteIcon calls for the icon
actions-insert-record with the new IconFactory.

Resolves: #68972
Releases: master
Change-Id: Ic4d4657f96e712e0169da866189b6bf8b6fd82d5
Reviewed-on: http://review.typo3.org/42964
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/Form/Container/InlineControlContainer.php
typo3/sysext/backend/Classes/Form/Element/AbstractFormElement.php
typo3/sysext/core/Classes/Imaging/IconRegistry.php

index 26e6fcc..c31d7d3 100644 (file)
@@ -556,8 +556,8 @@ class InlineControlContainer extends AbstractContainer {
 
                $item = '
                        <a href="#" class="btn btn-default inlineNewRelationButton ' . $this->inlineData['config'][$nameObject]['md5'] . '"
-                               ' . $buttonStyle . ' onclick="' . htmlspecialchars($onClick) . '">
-                               ' . IconUtility::getSpriteIcon('actions-insert-record', array('title' => $createNewRelationText)) . '
+                               ' . $buttonStyle . ' onclick="' . htmlspecialchars($onClick) . '" title="' . $createNewRelationText . '">
+                               ' . $this->iconFactory->getIcon('actions-insert-record', Icon::SIZE_SMALL) . '
                                ' . $createNewRelationText . '
                        </a>';
 
index eb9808c..6141e39 100644 (file)
@@ -580,7 +580,7 @@ abstract class AbstractFormElement extends AbstractNode {
                                                onclick="' . htmlspecialchars($aOnClick) . '"
                                                class="btn btn-default"
                                                title="' . htmlspecialchars($languageService->sL('LLL:EXT:lang/locallang_core.xlf:labels.browse_' . ($mode == 'db' ? 'db' : 'file'))) . '">
-                                               ' . IconUtility::getSpriteIcon('actions-insert-record') . '
+                                               ' . $this->iconFactory->getIcon('actions-insert-record', Icon::SIZE_SMALL) . '
                                        </a>';
                        }
                        if (!$params['dontShowMoveIcons']) {
index d7da937..7fa8b3b 100644 (file)
@@ -192,6 +192,12 @@ class IconRegistry implements \TYPO3\CMS\Core\SingletonInterface {
                                'name' => 'upload',
                        )
                ),
+               'actions-insert-record' => array(
+                       'provider' => BitmapIconProvider::class,
+                       'options' => array(
+                               'source' => 'EXT:t3skin/images/icons/actions/insert-record.png',
+                       )
+               ),
                'actions-markstate' => array(
                        'provider' => FontawesomeIconProvider::class,
                        'options' => array(