[TASK] Bring SpriteIcons to TaskCenter - fix styles 02/34802/3
authorFelix Kopp <felix-source@phorax.com>
Sun, 30 Nov 2014 01:50:25 +0000 (02:50 +0100)
committerBenjamin Mack <benni@typo3.org>
Sun, 30 Nov 2014 02:10:07 +0000 (03:10 +0100)
Resolves: #63260
Releases: master
Change-Id: I087f6348d721339c1d1a7be4dc114f730f42243e
Reviewed-on: http://review.typo3.org/34802
Reviewed-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Tested-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Reviewed-by: Benjamin Mack <benni@typo3.org>
Tested-by: Benjamin Mack <benni@typo3.org>
typo3/sysext/sys_action/Classes/ActionTask.php
typo3/sysext/taskcenter/Classes/Controller/TaskModuleController.php
typo3/sysext/taskcenter/Resources/Public/Styles/styles.css

index 55d0910..975914d 100644 (file)
@@ -200,8 +200,11 @@ class ActionTask implements \TYPO3\CMS\Taskcenter\TaskInterface {
                if ($GLOBALS['BE_USER']->isAdmin()) {
                        $returnUrl = rawurlencode($this->moduleUrl);
                        $link = GeneralUtility::getIndpEnv('TYPO3_REQUEST_DIR') . $GLOBALS['BACK_PATH'] . 'alt_doc.php?returnUrl=' . $returnUrl . '&edit[sys_action][0]=new';
-                       $content .= '<br />
-                                               <a href="' . $link . '" title="' . $GLOBALS['LANG']->getLL('new-sys_action') . '">' . '<img class="icon"' . \TYPO3\CMS\Backend\Utility\IconUtility::skinImg($GLOBALS['BACK_PATH'], 'gfx/new_record.gif') . ' title="' . $GLOBALS['LANG']->getLL('new-sys_action') . '" alt="" /> ' . $GLOBALS['LANG']->getLL('new-sys_action') . '</a>';
+                       $content .= '<p>' .
+                               '<a href="' . $link . '" title="' . $GLOBALS['LANG']->getLL('new-sys_action') . '">' .
+                               \TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIcon('actions-document-new', array('class' => 'icon', 'title' => $GLOBALS['LANG']->getLL('new-sys_action'))) .
+                               $GLOBALS['LANG']->getLL('new-sys_action') .
+                               '</a></p>';
                }
                return $content;
        }
index 9e72ff7..8b712c0 100644 (file)
@@ -159,10 +159,10 @@ class TaskModuleController extends \TYPO3\CMS\Backend\Module\BaseScriptClass {
         * @return string formatted title and description
         */
        public function description($title, $description = '') {
+               $content = '<h1>' . nl2br(htmlspecialchars($title)) . '</h1>';
                if (!empty($description)) {
-                       $description = '<p class="description">' . nl2br(htmlspecialchars($description)) . '</p><br />';
+                       $content .= '<p class="description">' . nl2br(htmlspecialchars($description)) . '</p>';
                }
-               $content = $this->doc->section($title, $description, FALSE, TRUE);
                return $content;
        }
 
@@ -238,7 +238,7 @@ class TaskModuleController extends \TYPO3\CMS\Backend\Module\BaseScriptClass {
                                $active = (string)$this->MOD_SETTINGS['function'] == $item['uid'] ? ' active-task' : '';
                                // Main menu: Render additional syntax to sort tasks
                                if ($mainMenu) {
-                                       $dragIcon = '<img' . \TYPO3\CMS\Backend\Utility\IconUtility::skinImg($GLOBALS['BACK_PATH'], 'gfx/move.gif', 'width="16" height="16" hspace="2"') . ' title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xlf:labels.move', TRUE) . '" alt="" />';
+                                       $dragIcon = \TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIcon('actions-document-move', array('title' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xlf:labels.move', TRUE)));
                                        $section = '<div class="down">&nbsp;</div>
                                                                <div class="drag">' . $dragIcon . '</div>';
                                        $backgroundClass = 't3-row-header ';
index bdd81a5..96ada5e 100644 (file)
@@ -72,6 +72,7 @@ body#ext-taskcenter-task-index-php h3 {
 
 #taskcenter-menu .down {
        background: url(../../../../t3skin/icons/gfx/pil2down.gif) no-repeat 5px 7px;
+       color: #fff;
        height: 23px;
        float: left;
        width: 25px;
@@ -83,9 +84,11 @@ body#ext-taskcenter-task-index-php h3 {
 }
 
 #taskcenter-menu .drag {
+       color: #fff;
        float: right;
        height: 23px;
        width: 24px;
+       padding: 3px;
 }
 
 #taskcenter-menu .drag img {
@@ -100,6 +103,9 @@ body#ext-taskcenter-task-index-php h3 {
        display: block;
 }
 
+#taskcenter-menu .t3-row-header {
+       padding: 0;
+}
 #taskcenter-menu .t3-row-header a {
        float: none;
 }
@@ -251,4 +257,4 @@ body#ext-taskcenter-task-index-php h3 {
 #list_frame {
        margin-top: -51px;
        border: none;
-}
\ No newline at end of file
+}