[TASK] Remove last usage of two icons from gfx folder and remove files 40/38440/8
authorJan Helke <typo3@helke.de>
Thu, 2 Apr 2015 16:26:34 +0000 (18:26 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Tue, 16 Jun 2015 08:35:49 +0000 (10:35 +0200)
Remove the last two usages of gfx/icon_note.gif and
gfx/icon_warning2.gif after the merge of
https://forge.typo3.org/issues/65992 .
These files are only used in TimeTracker.

TimeTracker is rendered in the AdminPanel, go to TypoScript accordion and
select "Display Messages"

Resolves: #66250
Related: #65992
Releases: master
Change-Id: I8d0485d3d4a66a41bce26a6c0a38c978dee52b88
Reviewed-on: http://review.typo3.org/38440
Reviewed-by: Daniel Maier <dani-maier@gmx.de>
Tested-by: Daniel Maier <dani-maier@gmx.de>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/gfx/icon_note.gif [deleted file]
typo3/gfx/icon_warning2.gif [deleted file]
typo3/sysext/core/Classes/TimeTracker/TimeTracker.php
typo3/sysext/t3skin/stylesheets/standalone/admin_panel.css

diff --git a/typo3/gfx/icon_note.gif b/typo3/gfx/icon_note.gif
deleted file mode 100644 (file)
index 70f86ff..0000000
Binary files a/typo3/gfx/icon_note.gif and /dev/null differ
diff --git a/typo3/gfx/icon_warning2.gif b/typo3/gfx/icon_warning2.gif
deleted file mode 100644 (file)
index 900bab6..0000000
Binary files a/typo3/gfx/icon_warning2.gif and /dev/null differ
index cc9745f..f516930 100644 (file)
@@ -13,6 +13,7 @@ namespace TYPO3\CMS\Core\TimeTracker;
  *
  * The TYPO3 project - inspiring people to share!
  */
+use TYPO3\CMS\Backend\Utility\IconUtility;
 
 /**
  * Frontend Timetracking functions
@@ -127,9 +128,9 @@ class TimeTracker {
                );
                $this->wrapIcon = array(
                        0 => '',
-                       1 => '<img src="' . TYPO3_mainDir . 'gfx/icon_note.gif" width="18" height="16" align="absmiddle" alt="" />',
-                       2 => '<img src="' . TYPO3_mainDir . 'gfx/icon_warning2.gif" width="18" height="16" align="absmiddle" alt="" />',
-                       3 => '<img src="' . TYPO3_mainDir . 'gfx/icon_fatalerror.gif" width="18" height="16" align="absmiddle" alt="" />'
+                       1 => 'actions-document-info',
+                       2 => 'status-dialog-warning',
+                       3 => 'status-dialog-error'
                );
                $this->starttime = $this->getMilliseconds();
        }
@@ -189,7 +190,7 @@ class TimeTracker {
                if (strlen($content) > 30) {
                        $placeholder = '<br /><img src="' . TYPO3_mainDir . 'clear.gif" width="300" height="1" alt="" />';
                }
-               $this->tsStackLog[$k]['message'][] = $this->wrapIcon[$num] . $this->wrapError[$num][0] . htmlspecialchars($content) . $this->wrapError[$num][1] . $placeholder;
+               $this->tsStackLog[$k]['message'][] = IconUtility::getSpriteIcon($this->wrapIcon[$num]) . $this->wrapError[$num][0] . htmlspecialchars($content) . $this->wrapError[$num][1] . $placeholder;
        }
 
        /**
index d7ed3a8..bc88ca1 100644 (file)
 .fa-arrows:before {
   content: "\f047";
 }
+.fa-exclamation-circle:before {
+    content: "\f06a";
+}
+.fa-exclamation-triangle:before {
+    content: "\f071";
+}
+.fa-info-circle:before {
+    content: "\f05a";
+}
 .t3-icon {
        display: inline-block;
        position: relative;