Follow-up to #16852: Code clean-up
authorSteffen Gebert <steffen.gebert@typo3.org>
Tue, 28 Dec 2010 21:19:34 +0000 (21:19 +0000)
committerSteffen Gebert <steffen.gebert@typo3.org>
Tue, 28 Dec 2010 21:19:34 +0000 (21:19 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@9958 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/layout/class.tx_cms_layout.php
typo3/sysext/cms/layout/locallang.xml
typo3/sysext/t3skin/stylesheets/visual/module_web_page.css

index 521c5d0..91c7ad3 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-12-28  Steffen Gebert  <steffen@steffen-gebert.de>
+
+       * Follow-up to #16852: Code clean-up
+
 2010-12-28  Steffen Kamper  <steffen@typo3.org>
 
        * Release of TYPO3 4.5.0beta3
index 3fec659..47cd52e 100755 (executable)
@@ -539,12 +539,7 @@ class tx_cms_layout extends recordList {
 
                                $backendLayoutUid = $this->getSelectedBackendLayoutUid($id);
                                $backendLayoutRecord = t3lib_BEfunc::getRecord('be_layouts', intval($backendLayoutUid));
-                               if (empty($backendLayoutRecord['config'])) {
-                    $this->tt_contentConfig['showAsGrid'] = FALSE;
-                               } else {
-                    $this->tt_contentConfig['showAsGrid'] = TRUE;
-
-                }
+                               $this->tt_contentConfig['showAsGrid'] = !empty($backendLayoutRecord['config']);
 
                                if (!$this->tt_contentConfig['showAsGrid']) {
                                        foreach ($cList as $k => $key) {
@@ -620,8 +615,8 @@ class tx_cms_layout extends recordList {
                                                                        (isset($columnConfig['colspan']) ? ' colspan="' . $columnConfig['colspan'] . '"' : '') .
                                                                        (isset($columnConfig['rowspan']) ? ' rowspan="' . $columnConfig['rowspan'] . '"' : '') .
                                                                        ' class="t3-gridCell t3-page-column t3-page-column-' . $columnKey .
-                                     (!isset($columnConfig['colPos']) ? ' t3-gridCell-unassigned' : '') .
-                                     ((isset($columnConfig['colPos']) && ! $head[$columnKey]) ? ' t3-gridCell-restricted' : '') .
+                                                                       (!isset($columnConfig['colPos']) ? ' t3-gridCell-unassigned' : '') .
+                                                                       ((isset($columnConfig['colPos']) && ! $head[$columnKey]) ? ' t3-gridCell-restricted' : '') .
                                                                        (isset($columnConfig['colspan']) ? ' t3-gridCell-width' . $columnConfig['colspan'] : '') .
                                                                        (isset($columnConfig['rowspan']) ? ' t3-gridCell-height' . $columnConfig['rowspan'] : '') . '">';
 
index 08cfa50..7ca9361 100755 (executable)
@@ -88,4 +88,4 @@
                        <label index="goToListModuleMessage">The current page is of the type "Sysfolder". Sysfolders usually don't contain content elements but are used for collecting other types of records in a single folder.</label>
                </languageKey>
        </data>
-</T3locallang>
+</T3locallang>
\ No newline at end of file
index 22ab87c..52e7d19 100644 (file)
@@ -91,13 +91,15 @@ td.t3-gridCell-unassigned {
        background-color: #e5e5e5;
 }
 
-td.t3-gridCell-restricted div.t3-row-header, td.t3-gridCell-unassigned div.t3-row-header {
+td.t3-gridCell-restricted div.t3-row-header,
+td.t3-gridCell-unassigned div.t3-row-header {
        -moz-opacity: 0.4;
        opacity: .40;
        filter: alpha(opacity = 40);
 }
 
-td.t3-gridCell-restricted div.t3-row-header div, td.t3-gridCell-unassigned div.t3-row-header div {
+td.t3-gridCell-restricted div.t3-row-header div,
+td.t3-gridCell-unassigned div.t3-row-header div {
        -moz-opacity: 0.6;
        opacity: .60;
        filter: alpha(opacity = 60);