[TASK] Replace sprite icon "actions-edit-copy" with the new IconFactory 94/43194/3
authorMorton Jonuschat <m.jonuschat@mojocode.de>
Fri, 11 Sep 2015 12:45:06 +0000 (14:45 +0200)
committerFrank Nägler <frank.naegler@typo3.org>
Fri, 11 Sep 2015 14:51:39 +0000 (16:51 +0200)
Replaces all IconUtility::getSpriteIcon calls for the icon
actions-edit-copy with the new IconFactory.

Resolves: #69669
Releases: master
Change-Id: I00be2ba0f72b0339d9d171670b7b8943120b4d7d
Reviewed-on: http://review.typo3.org/43194
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Frank Nägler <frank.naegler@typo3.org>
Tested-by: Frank Nägler <frank.naegler@typo3.org>
typo3/sysext/filelist/Classes/FileList.php
typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php

index 57b136e..a7313c4 100644 (file)
@@ -421,7 +421,7 @@ class FileList extends AbstractRecordList {
                                                }
                                        }
                                        if ($this->clipObj->current !== 'normal' && $iOut) {
-                                               $cells[] = $this->linkClipboardHeaderIcon(IconUtility::getSpriteIcon('actions-edit-copy', array('title' => $this->getLanguageService()->getLL('clip_selectMarked', TRUE))), $table, 'setCB');
+                                               $cells[] = $this->linkClipboardHeaderIcon('<span title="' . $this->getLanguageService()->getLL('clip_selectMarked', TRUE) . '">' . $this->iconFactory->getIcon('actions-edit-copy', Icon::SIZE_SMALL) . '</span>', $table, 'setCB');
                                                $cells[] = $this->linkClipboardHeaderIcon('<span title="' . $this->getLanguageService()->getLL('clip_deleteMarked', TRUE) . '">' . $this->iconFactory->getIcon('actions-edit-delete', Icon::SIZE_SMALL), $table, 'delete', $this->getLanguageService()->getLL('clip_deleteMarkedWarning'));
                                                $onClick = 'checkOffCB(\'' . implode(',', $this->CBnames) . '\', this); return false;';
                                                $cells[] = '<a class="btn btn-default" rel="" href="#" onclick="' . htmlspecialchars($onClick) . '" title="' . $this->getLanguageService()->getLL('clip_markRecords', TRUE) . '">' . $this->iconFactory->getIcon('actions-document-select', Icon::SIZE_SMALL) . '</a>';
index 1cd93e7..6598dfd 100644 (file)
@@ -923,7 +923,9 @@ class DatabaseRecordList extends AbstractDatabaseRecordList {
                                        // If the numeric clipboard pads are enabled, display the control icons for that:
                                        if ($this->clipObj->current != 'normal') {
                                                // The "select" link:
-                                               $spriteIcon = IconUtility::getSpriteIcon('actions-edit-copy', array('title' => $lang->getLL('clip_selectMarked', TRUE)));
+                                               $spriteIcon = '<span title="' . $lang->getLL('clip_selectMarked', TRUE) . '">'
+                                                       . $this->iconFactory->getIcon('actions-edit-copy', Icon::SIZE_SMALL)
+                                                       . '</span>';
                                                $cells['copyMarked'] = $this->linkClipboardHeaderIcon($spriteIcon, $table, 'setCB');
                                                // The "edit marked" link:
                                                $editIdList = implode(',', $currentIdList);