From 4e8cecd13526306b21ca174502ea57b806d623b9 Mon Sep 17 00:00:00 2001 From: Felix Kopp <felix-source@phorax.com> Date: Sun, 2 Feb 2014 16:27:59 +0100 Subject: [PATCH] [TASK] Style "Download" button - element information MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Brings button style to "Download" link with download icon. Change-Id: I4edae8b861d9c6f98f156d8b538031dd8ca8f62c Resolves: #55597 Releases: 6.2 Reviewed-on: https://review.typo3.org/27267 Reviewed-by: Marcin SÄ…gol Tested-by: Marcin SÄ…gol Reviewed-by: Wouter Wolters Tested-by: Wouter Wolters --- .../Controller/ContentElement/ElementInformationController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/typo3/sysext/backend/Classes/Controller/ContentElement/ElementInformationController.php b/typo3/sysext/backend/Classes/Controller/ContentElement/ElementInformationController.php index 91a783680236..4a8eea292664 100644 --- a/typo3/sysext/backend/Classes/Controller/ContentElement/ElementInformationController.php +++ b/typo3/sysext/backend/Classes/Controller/ContentElement/ElementInformationController.php @@ -283,7 +283,8 @@ class ElementInformationController { // Display download link? if ($this->fileObject->getPublicUrl()) { - $downloadLink .= '<a href="../' . $this->fileObject->getPublicUrl() . '" target="_blank">' . + $downloadLink .= '<a href="../' . $this->fileObject->getPublicUrl() . '" target="_blank" class="t3-button">' . + IconUtility::getSpriteIcon('actions-edit-download') . ' ' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xlf:download', TRUE) . '</a>'; } -- GitLab