[TASK] Style "Download" button - element information 67/27267/2
authorFelix Kopp <felix-source@phorax.com>
Sun, 2 Feb 2014 15:27:59 +0000 (16:27 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Sun, 2 Feb 2014 16:21:54 +0000 (17:21 +0100)
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
typo3/sysext/backend/Classes/Controller/ContentElement/ElementInformationController.php

index 91a7836..4a8eea2 100644 (file)
@@ -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>';
                        }