[TASK] Replace sprite icon "actions-document-save-new" with IconFactory 43/43043/2
authorMichael Oehlhof <typo3@oehlhof.de>
Fri, 4 Sep 2015 20:19:58 +0000 (22:19 +0200)
committerXavier Perseguers <xavier@typo3.org>
Sat, 5 Sep 2015 10:03:42 +0000 (12:03 +0200)
Replaces all IconUtility::getSpriteIcon calls for the icon
actions-document-save-new with the new IconFactory.

Resolves: #68868
Releases: master
Change-Id: I8dfeed0a1299a69b3e892da6c38c56e16dceda82
Reviewed-on: http://review.typo3.org/43043
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Tested-by: Daniel Goerz <ervaude@gmail.com>
Reviewed-by: Xavier Perseguers <xavier@typo3.org>
Tested-by: Xavier Perseguers <xavier@typo3.org>
typo3/sysext/backend/Classes/Controller/EditDocumentController.php
typo3/sysext/core/Classes/Imaging/IconRegistry.php
typo3/sysext/scheduler/Classes/Controller/SchedulerModuleController.php

index ab859f8..378a1fa 100644 (file)
@@ -1149,7 +1149,8 @@ class EditDocumentController implements \TYPO3\CMS\Core\Http\ControllerInterface
                        }
                        // SAVE / NEW button:
                        if (count($this->elementsData) === 1 && $this->getNewIconMode($this->firstEl['table'])) {
-                               $buttons['save_new'] = IconUtility::getSpriteIcon('actions-document-save-new', array('html' => '<input type="submit" class="c-inputButton t3js-editform-submitButton" name="_savedoknew" value="1" title="' . $lang->sL('LLL:EXT:lang/locallang_core.xlf:rm.saveNewDoc', TRUE) . '" />'));
+                               $iconSaveNew = $iconFactory->getIcon('actions-document-save-new', Icon::SIZE_SMALL);
+                               $buttons['save_new'] = '<button name="_savedoknew" class="c-inputButton t3js-editform-submitButton" value="1" title="' . $lang->sL('LLL:EXT:lang/locallang_core.xlf:rm.saveNewDoc', TRUE) . '">' . $iconSaveNew . '</button>';
                        }
                        // SAVE / CLOSE
                        $iconSaveClose = $iconFactory->getIcon('actions-document-save-close', Icon::SIZE_SMALL);
index 20f5676..0dfefdb 100644 (file)
@@ -148,6 +148,12 @@ class IconRegistry implements \TYPO3\CMS\Core\SingletonInterface {
                                'source' => 'EXT:t3skin/images/icons/actions/document-save-close.png'
                        )
                ),
+               'actions-document-save-new' => array(
+                       'provider' => BitmapIconProvider::class,
+                       'options' => array(
+                               'source' => 'EXT:t3skin/images/icons/actions/document-save-new.png'
+                       )
+               ),
                'actions-document-synchronize' => array(
                        'provider' => BitmapIconProvider::class,
                        'options' => array(
index 9cf0be4..2d77dda 100644 (file)
@@ -1533,7 +1533,7 @@ class SchedulerModuleController extends \TYPO3\CMS\Backend\Module\BaseScriptClas
                        $buttons['close'] = '<a href="#" onclick="document.location=' . htmlspecialchars(GeneralUtility::quoteJSvalue($this->moduleUri)) . '" title="' . $this->getLanguageService()->sL('LLL:EXT:lang/locallang_common.xlf:cancel', TRUE) . '">' . $this->iconFactory->getIcon('actions-document-close', Icon::SIZE_SMALL) . '</a>';
                        $buttons['save'] = '<button name="CMD" value="save" class="c-inputButton" title="' . $this->getLanguageService()->sL('LLL:EXT:lang/locallang_common.xlf:save', TRUE) . '">' . $this->iconFactory->getIcon('actions-document-save', Icon::SIZE_SMALL) . '</button>';
                        $buttons['saveclose'] = '<button name="CMD" value="saveclose" class="c-inputButton" title="' . $this->getLanguageService()->sL('LLL:EXT:lang/locallang_common.xlf:saveAndClose', TRUE) . '">' . $this->iconFactory->getIcon('actions-document-save-close', Icon::SIZE_SMALL) . '</button>';
-                       $buttons['savenew'] = '<button name="CMD" value="savenew" class="c-inputButton" title="' . $this->getLanguageService()->sL('LLL:EXT:lang/locallang_common.xlf:saveAndCreateNewDoc', TRUE) . '">' . IconUtility::getSpriteIcon('actions-document-save-new') . '</button>';
+                       $buttons['savenew'] = '<button name="CMD" value="savenew" class="c-inputButton" title="' . $this->getLanguageService()->sL('LLL:EXT:lang/locallang_common.xlf:saveAndCreateNewDoc', TRUE) . '">' . $this->iconFactory->getIcon('actions-document-save-new', Icon::SIZE_SMALL) . '</button>';
                }
                if ($this->CMD === 'edit') {
                        $buttons['delete'] = '<button name="CMD" value="delete" class="c-inputButton" title="' . $this->getLanguageService()->sL('LLL:EXT:lang/locallang_common.xlf:delete', TRUE) . '">' . $this->iconFactory->getIcon('actions-edit-delete', Icon::SIZE_SMALL) . '</button>';