Commit 4f025c65 authored by Morton Jonuschat's avatar Morton Jonuschat Committed by Wouter Wolters
Browse files

[TASK] Replace sprite icon "actions-document-localize" with the new IconFactory

Replaces all IconUtility::getSpriteIcon calls for the icon
actions-document-localize with the new IconFactory.

Resolves: #68820
Releases: master
Change-Id: I888655fdf18c444d33ec52d68d84dcffa0c46aff
Reviewed-on: http://review.typo3.org/42968


Reviewed-by: default avatarDaniel Goerz <ervaude@gmail.com>
Tested-by: default avatarDaniel Goerz <ervaude@gmail.com>
Reviewed-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
parent 9a24ae3c
...@@ -591,8 +591,8 @@ class InlineRecordContainer extends AbstractContainer { ...@@ -591,8 +591,8 @@ class InlineRecordContainer extends AbstractContainer {
if ($enabledControls['localize'] && isset($rec['__create'])) { if ($enabledControls['localize'] && isset($rec['__create'])) {
$onClick = 'inline.synchronizeLocalizeRecords(' . GeneralUtility::quoteJSvalue($nameObjectFt) . ', ' . GeneralUtility::quoteJSvalue($rec['uid']) . ');'; $onClick = 'inline.synchronizeLocalizeRecords(' . GeneralUtility::quoteJSvalue($nameObjectFt) . ', ' . GeneralUtility::quoteJSvalue($rec['uid']) . ');';
$cells['localize'] = ' $cells['localize'] = '
<a class="btn btn-default" href="#" onclick="' . htmlspecialchars($onClick) . '"> <a class="btn btn-default" href="#" onclick="' . htmlspecialchars($onClick) . 'title="' . $languageService->sL('LLL:EXT:lang/locallang_misc.xlf:localize', TRUE) . '">
' . IconUtility::getSpriteIcon('actions-document-localize', array('title' => $languageService->sL('LLL:EXT:lang/locallang_misc.xlf:localize', TRUE))) . ' ' . $this->iconFactory->getIcon('actions-document-localize', Icon::SIZE_SMALL) . '
</a>'; </a>';
} }
} }
......
...@@ -82,6 +82,12 @@ class IconRegistry implements \TYPO3\CMS\Core\SingletonInterface { ...@@ -82,6 +82,12 @@ class IconRegistry implements \TYPO3\CMS\Core\SingletonInterface {
'name' => 'upload', 'name' => 'upload',
) )
), ),
'actions-document-localize' => array(
'provider' => BitmapIconProvider::class,
'options' => array(
'source' => 'EXT:t3skin/images/icons/actions/document-localize.png',
)
),
'actions-document-move' => array( 'actions-document-move' => array(
'provider' => FontawesomeIconProvider::class, 'provider' => FontawesomeIconProvider::class,
'options' => array( 'options' => array(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment