Fixed bug #10022: Pagecontent/Hidden has no effect
authorSteffen Kamper <info@sk-typo3.de>
Mon, 29 Dec 2008 13:59:54 +0000 (13:59 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Mon, 29 Dec 2008 13:59:54 +0000 (13:59 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@4624 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/layout/class.tx_cms_layout.php

index 84333c1..4e8bd5d 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-12-29  Steffen Kamper  <info@sk-typo3.de>
+
+       * Fixed bug #10022: Pagecontent/Hidden has no effect
+
 2008-12-29  Oliver Hader  <oliver@typo3.org>
 
        * Follow-up to bugfix #10004: Tweak corrections to update wizard for installing new system extensions
index eb99e84..313c36c 100755 (executable)
@@ -1667,13 +1667,17 @@ class tx_cms_layout extends recordList {
                $outHeader='';
 
                        // Make header:
-               if ($row['header'] && $row['header_layout']!=100)       {
+               if ($row['header']) {
                        $infoArr = Array();
                        $this->getProcessedValue('tt_content','header_position,header_layout,header_link',$row,$infoArr);
 
+                       // If header layout is set to 'hidden', display an accordant note:
+                       if ($row['header_layout'] == 100) {
+                               $hiddenHeaderNote = ' <em>[' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:labels.hidden', true) . ']</em>';
+                       }
                        $outHeader=  ($row['date'] ? htmlspecialchars($this->itemLabels['date'].' '.t3lib_BEfunc::date($row['date'])).'<br />':'').
                                        $this->infoGif($infoArr).
-                                       '<b>'.$this->linkEditContent($this->renderText($row['header']),$row).'</b><br />';
+                                       '<b>' . $this->linkEditContent($this->renderText($row['header']), $row) . $hiddenHeaderNote . '</b><br />';
                }
 
                        // Make content: