[TASK] Replace icon by IconFactory: mimetypes-x-content-template-static 19/43219/4
authorMichael Oehlhof <typo3@oehlhof.de>
Fri, 11 Sep 2015 18:31:38 +0000 (20:31 +0200)
committerAndreas Fernandez <typo3@scripting-base.de>
Sat, 12 Sep 2015 10:04:23 +0000 (12:04 +0200)
Resolves: #69689
Releases: master
Change-Id: I1ede637d171971f258d8b9247a740aad43bed8ee
Reviewed-on: http://review.typo3.org/43219
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/core/Classes/Imaging/IconRegistry.php
typo3/sysext/core/Classes/TypoScript/ExtendedTemplateService.php

index 72cc302..048e8a8 100644 (file)
@@ -782,6 +782,12 @@ class IconRegistry implements \TYPO3\CMS\Core\SingletonInterface {
                                'name' => 'file-word-o',
                        )
                ),
+               'mimetypes-x-content-template-static' => array(
+                       'provider' => BitmapIconProvider::class,
+                       'options' => array(
+                               'source' => 'EXT:t3skin/images/icons/mimetypes/x-content-template-static.png',
+                       )
+               ),
 
                // Spinner
                'spinner-circle-dark' => array(
index cdfeaaa..76bf466 100644 (file)
@@ -677,7 +677,7 @@ class ExtendedTemplateService extends TemplateService {
                        $alttext .= $row['pid'] ? ' - ' . BackendUtility::getRecordPath($row['pid'], $GLOBALS['SOBE']->perms_clause, 20) : '';
                        $icon = substr($row['templateID'], 0, 3) === 'sys'
                                ? IconUtility::getSpriteIconForRecord('sys_template', $row, array('title' => $alttext))
-                               : IconUtility::getSpriteIcon('mimetypes-x-content-template-static', array('title' => $alttext));
+                               : '<span title="' . htmlspecialchars($alttext) . '">' . $iconFactory->getIcon('mimetypes-x-content-template-static', Icon::SIZE_SMALL)->render() . '</span>';
                        if (in_array($row['templateID'], $this->clearList_const) || in_array($row['templateID'], $this->clearList_setup)) {
                                $urlParameters = array(
                                        'id' => $GLOBALS['SOBE']->id,