Replaces IconUtility::getSpriteIcon call for the icon
actions-system-shortcut-new with the new IconFactory
inside the description of the shortcut drop down.
Resolves: #69547
Releases: master
Change-Id: I4f91b3fb6ce68764639aefe63126c097d462ef19
Reviewed-on: http://review.typo3.org/43050
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Frank Nägler <frank.naegler@typo3.org>
Tested-by: Frank Nägler <frank.naegler@typo3.org>
if (count($shortcutMenu) === 2) {
// No shortcuts added yet, show a small help message how to add shortcuts
$title = $languageService->sL('LLL:EXT:lang/locallang_core.xlf:toolbarItems.bookmarks', TRUE);
if (count($shortcutMenu) === 2) {
// No shortcuts added yet, show a small help message how to add shortcuts
$title = $languageService->sL('LLL:EXT:lang/locallang_core.xlf:toolbarItems.bookmarks', TRUE);
- $icon = IconUtility::getSpriteIcon('actions-system-shortcut-new', array(
- 'title' => $title
- ));
+ $icon = '<span title="' . $title . '">' . $this->iconFactory->getIcon('actions-system-shortcut-new', Icon::SIZE_SMALL) . '</span>';
$label = str_replace('%icon%', $icon, $languageService->sL('LLL:EXT:lang/locallang_misc.xlf:bookmarkDescription'));
$compiledShortcutMenu = '<p>' . $label . '</p>';
} else {
$label = str_replace('%icon%', $icon, $languageService->sL('LLL:EXT:lang/locallang_misc.xlf:bookmarkDescription'));
$compiledShortcutMenu = '<p>' . $label . '</p>';
} else {
if ($shortcutExist) {
return '<a class="active" title="">' .
if ($shortcutExist) {
return '<a class="active" title="">' .
- IconUtility::getSpriteIcon('actions-system-shortcut-new') . '</a>';
+ $this->iconFactory->getIcon('actions-system-shortcut-new', Icon::SIZE_SMALL) . '</a>';
}
$url = GeneralUtility::quoteJSvalue(rawurlencode($shortcutUrl));
}
$url = GeneralUtility::quoteJSvalue(rawurlencode($shortcutUrl));
return '<a href="#" onclick="' . htmlspecialchars($onClick) . '" title="' .
$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xlf:labels.makeBookmark', TRUE) . '">' .
return '<a href="#" onclick="' . htmlspecialchars($onClick) . '" title="' .
$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xlf:labels.makeBookmark', TRUE) . '">' .
- IconUtility::getSpriteIcon('actions-system-shortcut-new') . '</a>';
+ $this->iconFactory->getIcon('actions-system-shortcut-new', Icon::SIZE_SMALL) . '</a>';
'name' => 'refresh',
)
),
'name' => 'refresh',
)
),
+ 'actions-system-shortcut-new' => array(
+ 'provider' => BitmapIconProvider::class,
+ 'options' => array(
+ 'source' => 'EXT:t3skin/images/icons/actions/system-shortcut-new.png',
+ )
+ ),
'actions-system-refresh' => array(
'provider' => FontawesomeIconProvider::class,
'options' => array(
'actions-system-refresh' => array(
'provider' => FontawesomeIconProvider::class,
'options' => array(