From 00512a835a9bae3b7770443642c006a5e61babaf Mon Sep 17 00:00:00 2001 From: Benjamin Kott Date: Sun, 2 Apr 2017 01:14:07 +0200 Subject: [PATCH] [TASK] Streamline Admin Panel Resolves: #80639 Releases: master Change-Id: I81375357f2708c2af89d745013352fd2fda7eb7b Reviewed-on: https://review.typo3.org/52314 Tested-by: TYPO3com Reviewed-by: Frank Naegler Tested-by: Frank Naegler Reviewed-by: Benni Mack Tested-by: Benni Mack --- Classes/FrontendEditPanel.php | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/Classes/FrontendEditPanel.php b/Classes/FrontendEditPanel.php index 284f3ba..b269820 100644 --- a/Classes/FrontendEditPanel.php +++ b/Classes/FrontendEditPanel.php @@ -103,36 +103,36 @@ class FrontendEditPanel $panel .= $this->backendUser->adminPanel->ext_makeToolBar(); } if (isset($allow['edit'])) { - $icon = '' . $this->iconFactory->getIcon('actions-document-open', Icon::SIZE_SMALL)->render() . ''; + $icon = '' . $this->iconFactory->getIcon('actions-document-open', Icon::SIZE_SMALL)->render('inline') . ''; $panel .= $this->editPanelLinkWrap($icon, $formName, 'edit', $dataArr['_LOCALIZED_UID'] ? $table . ':' . $dataArr['_LOCALIZED_UID'] : $currentRecord); } // Hiding in workspaces because implementation is incomplete if (isset($allow['move']) && $sortField && $this->backendUser->workspace === 0) { - $icon = '' . $this->iconFactory->getIcon('actions-move-up', Icon::SIZE_SMALL)->render() . ''; + $icon = '' . $this->iconFactory->getIcon('actions-move-up', Icon::SIZE_SMALL)->render('inline') . ''; $panel .= $this->editPanelLinkWrap($icon, $formName, 'up'); - $icon = '' . $this->iconFactory->getIcon('actions-move-down', Icon::SIZE_SMALL)->render() . ''; + $icon = '' . $this->iconFactory->getIcon('actions-move-down', Icon::SIZE_SMALL)->render('inline') . ''; $panel .= $this->editPanelLinkWrap($icon, $formName, 'down'); } // Hiding in workspaces because implementation is incomplete // Hiding for localizations because it is unknown what should be the function in that case if (isset($allow['hide']) && $hideField && $this->backendUser->workspace === 0 && !$dataArr['_LOCALIZED_UID']) { if ($dataArr[$hideField]) { - $icon = $this->iconFactory->getIcon('actions-edit-unhide', Icon::SIZE_SMALL)->render(); + $icon = $this->iconFactory->getIcon('actions-edit-unhide', Icon::SIZE_SMALL)->render('inline'); $panel .= $this->editPanelLinkWrap($icon, $formName, 'unhide'); } else { - $icon = $this->iconFactory->getIcon('actions-edit-hide', Icon::SIZE_SMALL)->render(); + $icon = $this->iconFactory->getIcon('actions-edit-hide', Icon::SIZE_SMALL)->render('inline'); $panel .= $this->editPanelLinkWrap($icon, $formName, 'hide', '', $this->backendUser->extGetLL('p_hideConfirm')); } } if (isset($allow['new'])) { if ($table === 'pages') { $icon = '' - . $this->iconFactory->getIcon('actions-page-new', Icon::SIZE_SMALL)->render() + . $this->iconFactory->getIcon('actions-page-new', Icon::SIZE_SMALL)->render('inline') . ''; $panel .= $this->editPanelLinkWrap($icon, $formName, 'new', $currentRecord, ''); } else { $icon = '' - . $this->iconFactory->getIcon('actions-document-new', Icon::SIZE_SMALL)->render() + . $this->iconFactory->getIcon('actions-document-new', Icon::SIZE_SMALL)->render('inline') . ''; $panel .= $this->editPanelLinkWrap($icon, $formName, 'new', $currentRecord, '', $newUID); } @@ -141,7 +141,7 @@ class FrontendEditPanel // Hiding for localizations because it is unknown what should be the function in that case if (isset($allow['delete']) && $this->backendUser->workspace === 0 && !$dataArr['_LOCALIZED_UID']) { $icon = '' - . $this->iconFactory->getIcon('actions-edit-delete', Icon::SIZE_SMALL)->render() + . $this->iconFactory->getIcon('actions-edit-delete', Icon::SIZE_SMALL)->render('inline') . ''; $panel .= $this->editPanelLinkWrap($icon, $formName, 'delete', '', $this->backendUser->extGetLL('p_deleteConfirm')); } @@ -155,8 +155,8 @@ class FrontendEditPanel ' . $formTag . $hiddenFieldString . ' -
' - . '
' +