[TASK] Replace icon for open in new window 33/34533/3
authorFrank Nägler <typo3@naegler.net>
Mon, 24 Nov 2014 10:15:45 +0000 (11:15 +0100)
committerBenjamin Mack <benni@typo3.org>
Tue, 25 Nov 2014 07:56:11 +0000 (08:56 +0100)
Task Center Module: Open in new window:
use icon utility > sprite monochrome, vector icon

Resolves: #63259
Releases: master
Change-Id: Idb99858591e4ccca6fb835688462252832aa53a3
Reviewed-on: http://review.typo3.org/34533
Reviewed-by: Benjamin Mack <benni@typo3.org>
Tested-by: Benjamin Mack <benni@typo3.org>
typo3/sysext/taskcenter/Classes/Controller/TaskModuleController.php

index 1b90a5a..9e72ff7 100644 (file)
@@ -15,6 +15,7 @@ namespace TYPO3\CMS\Taskcenter\Controller;
  */
 
 use TYPO3\CMS\Backend\Utility\BackendUtility;
+use TYPO3\CMS\Backend\Utility\IconUtility;
 use TYPO3\CMS\Core\Utility\GeneralUtility;
 
 /**
@@ -383,7 +384,9 @@ class TaskModuleController extends \TYPO3\CMS\Backend\Module\BaseScriptClass {
        protected function openInNewWindow() {
                $url = GeneralUtility::getIndpEnv('TYPO3_REQUEST_URL');
                $onClick = 'devlogWin=window.open(\'' . $url . '\',\'taskcenter\',\'width=790,status=0,menubar=1,resizable=1,location=0,scrollbars=1,toolbar=0\');return false;';
-               $content = '<a href="#" onclick="' . htmlspecialchars($onClick) . '">' . '<img' . \TYPO3\CMS\Backend\Utility\IconUtility::skinImg($GLOBALS['BACK_PATH'], 'gfx/open_in_new_window.gif', 'width="19" height="14"') . ' title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xlf:labels.openInNewWindow', TRUE) . '" class="absmiddle" alt="" />' . '</a>';
+               $content = '<a href="#" onclick="' . htmlspecialchars($onClick) . '">' .
+                       IconUtility::getSpriteIcon('actions-window-open', array('title' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xlf:labels.openInNewWindow', TRUE))) .
+               '</a>';
                return $content;
        }