[TASK] Streamline translation flags in list module 82/44282/2
authorFrank Nägler <frank.naegler@typo3.org>
Mon, 26 Oct 2015 09:58:14 +0000 (10:58 +0100)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Mon, 26 Oct 2015 13:26:08 +0000 (14:26 +0100)
This patch wrap the translation flags in list module into a button group.

Resolves: #71025
Releases: master
Change-Id: Ibac86b53364a5f779e4a79c828b86540c86d67a9
Reviewed-on: https://review.typo3.org/44282
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Tested-by: Daniel Goerz <ervaude@gmail.com>
Reviewed-by: Michael Oehlhof <typo3@oehlhof.de>
Tested-by: Michael Oehlhof <typo3@oehlhof.de>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php

index a4d48bc..bc5cc57 100644 (file)
@@ -951,7 +951,7 @@ class DatabaseRecordList extends AbstractDatabaseRecordList
             } elseif ($fCol == '_LOCALIZATION_') {
                 list($lC1, $lC2) = $this->makeLocalizationPanel($table, $row);
                 $theData[$fCol] = $lC1;
-                $theData[$fCol . 'b'] = $lC2;
+                $theData[$fCol . 'b'] = '<div class="btn-group">' . $lC2 . '</div>';
             } elseif ($fCol == '_LOCALIZATION_b') {
                 // deliberately empty
             } else {
@@ -1825,7 +1825,7 @@ class DatabaseRecordList extends AbstractDatabaseRecordList
                         $lC = $this->languageIconTitles[$lUid_OnPage]['title'];
                     }
                     $lC = '<a href="' . htmlspecialchars($href) . '" title="'
-                        . htmlspecialchars($language['title']) . '">' . $lC . '</a> ';
+                        . htmlspecialchars($language['title']) . '" class="btn btn-default">' . $lC . '</a> ';
                     $lNew .= $lC;
                 }
             }