From: Mathias Schreiber Date: Thu, 8 Feb 2018 19:27:18 +0000 (+0100) Subject: [BUGFIX] Align Storage “is_public” checkbox with checkbox styles X-Git-Tag: v9.2.0~572 X-Git-Url: http://git.typo3.org/Packages/TYPO3.CMS.git/commitdiff_plain/6efe839250fedf1803c3d520bc22d3d1882eb4e2 [BUGFIX] Align Storage “is_public” checkbox with checkbox styles The markup generated by the UserStorageCapabilityService is now in line with the overall styling of checkboxes in TCA. Resolves: #83810 Releases: master Change-Id: I59bb480587bf30e054b855370e33e3d2dbfdfa91 Reviewed-on: https://review.typo3.org/55615 Tested-by: TYPO3com Reviewed-by: Anja Leichsenring Tested-by: Anja Leichsenring Tested-by: Riccardo De Contardi Reviewed-by: Christian Kuhn Tested-by: Christian Kuhn --- diff --git a/typo3/sysext/core/Classes/Resource/Service/UserStorageCapabilityService.php b/typo3/sysext/core/Classes/Resource/Service/UserStorageCapabilityService.php index 564350fa77b6..809b8222fdd5 100644 --- a/typo3/sysext/core/Classes/Resource/Service/UserStorageCapabilityService.php +++ b/typo3/sysext/core/Classes/Resource/Service/UserStorageCapabilityService.php @@ -14,6 +14,8 @@ namespace TYPO3\CMS\Core\Resource\Service; * The TYPO3 project - inspiring people to share! */ +use TYPO3\CMS\Core\Imaging\Icon; +use TYPO3\CMS\Core\Imaging\IconFactory; use TYPO3\CMS\Core\Localization\LanguageService; use TYPO3\CMS\Core\Messaging\FlashMessage; use TYPO3\CMS\Core\Messaging\FlashMessageQueue; @@ -87,15 +89,23 @@ class UserStorageCapabilityService */ protected function renderFileInformationContent(array $fileRecord, $isPublic) { + $iconFactory = GeneralUtility::makeInstance(IconFactory::class); + $iconChecked = $iconFactory->getIcon('actions-check', Icon::SIZE_SMALL)->render('inline'); + $iconUnchecked = $iconFactory->getIcon('empty-empty', Icon::SIZE_SMALL)->render('inline'); + $template = ' -
-
- -
-
'; +
+ + + +
+ '; $content = sprintf( $template,