[TASK] Replace icon by IconFactory: mimetypes-x-content-page-language-overlay 21/43221/6
authorMichael Oehlhof <typo3@oehlhof.de>
Fri, 11 Sep 2015 18:43:34 +0000 (20:43 +0200)
committerNicole Cordes <typo3@cordes.co>
Sat, 12 Sep 2015 10:26:14 +0000 (12:26 +0200)
Resolves: #69688
Releases: master
Change-Id: Id1afbbaf2680fb9b1a3a944fdabc1d664a7464b2
Reviewed-on: http://review.typo3.org/43221
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
typo3/sysext/backend/Classes/Controller/PageLayoutController.php
typo3/sysext/core/Classes/Imaging/IconRegistry.php
typo3/sysext/filelist/Classes/FileList.php
typo3/sysext/frontend/Classes/View/AdminPanelView.php

index 0e1a287..0bb4cd9 100755 (executable)
@@ -1215,7 +1215,7 @@ class PageLayoutController {
                                        $buttons['edit_language'] = '<a href="#" ' .
                                                'onclick="' . $editLanguageOnClick . '"' .
                                                'title="' . $lang->getLL('editPageLanguageOverlayProperties', TRUE) . '">' .
-                                               IconUtility::getSpriteIcon('mimetypes-x-content-page-language-overlay') .
+                                               $this->iconFactory->getIcon('mimetypes-x-content-page-language-overlay', Icon::SIZE_SMALL) .
                                                '</a>';
                                }
 
index 78dd7f1..fce09b3 100644 (file)
@@ -800,6 +800,12 @@ class IconRegistry implements \TYPO3\CMS\Core\SingletonInterface {
                                'name' => 'file-word-o',
                        )
                ),
+               'mimetypes-x-content-page-language-overlay' => array(
+                       'provider' => BitmapIconProvider::class,
+                       'options' => array(
+                               'source' => 'EXT:t3skin/images/icons/mimetypes/x-content-page-language-overlay.gif',
+                       )
+               ),
                'mimetypes-x-content-template-static' => array(
                        'provider' => BitmapIconProvider::class,
                        'options' => array(
index a7313c4..bb601ef 100644 (file)
@@ -726,12 +726,9 @@ class FileList extends AbstractRecordList {
                                                        $theData[$field] = ' <div class="localisationData btn-group" data-fileid="' . $fileObject->getUid() . '"' .
                                                                (empty($translations) ? ' style="display: none;"' : '') . '>' . $languageCode . '</div>';
                                                        $theData[$field] .= '<a class="btn btn-default filelist-translationToggler" data-fileid="' . $fileObject->getUid() . '">' .
-                                                               IconUtility::getSpriteIcon(
-                                                                       'mimetypes-x-content-page-language-overlay',
-                                                                       array(
-                                                                               'title' => $GLOBALS['LANG']->getLL('translateMetadata')
-                                                                       )
-                                                               ) . '</a>';
+                                                               '<span title="' . $GLOBALS['LANG']->getLL('translateMetadata', TRUE) . '">'
+                                                               . $this->iconFactory->getIcon('mimetypes-x-content-page-language-overlay', Icon::SIZE_SMALL) . '</span>'
+                                                               . '</a>';
                                                }
                                                break;
                                        case '_REF_':
index f5bf8c1..d500a2e 100755 (executable)
@@ -663,7 +663,8 @@ class AdminPanelView {
                                );
                                $tsfe->sys_page->versionOL('pages_language_overlay', $row);
                                if (is_array($row)) {
-                                       $icon = IconUtility::getSpriteIcon('mimetypes-x-content-page-language-overlay', array('title' => $this->extGetLL('edit_editPageOverlay', FALSE)));
+                                       $icon = '<span title="' . $this->extGetLL('edit_editPageOverlay', TRUE) . '">'
+                                               . $iconFactory->getIcon('mimetypes-x-content-page-language-overlay', Icon::SIZE_SMALL) . '</span>';
                                        $url = BackendUtility::getModuleUrl('record_edit', array(
                                                'edit[pages_language_overlay][' . $row['uid'] . ']' => 'edit',
                                                'noView' => 1,