Added feature #7526: Making loginNews look nicer
authorIngmar Schlecht <ingmar.schlecht@typo3.org>
Fri, 22 Feb 2008 09:57:13 +0000 (09:57 +0000)
committerIngmar Schlecht <ingmar.schlecht@typo3.org>
Fri, 22 Feb 2008 09:57:13 +0000 (09:57 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@3246 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/index.php
typo3/stylesheet.css
typo3/sysext/t3skin/stylesheets/typo3-index-php.css

index cc5133e..69019b3 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-02-22  Ingmar Schlecht  <ingmar@typo3.org>
+
+       * Added feature #7526: Making loginNews look nicer (Thanks to Steffen Kamper)
+
 2008-02-21  Benjamin Mack  <mack@xnos.org>
 
        * Added feature "Extended BE Module "Web/Permissions" with AJAX possibilites (Thanks to Andreas Kundoch)
index d84d241..23a9b94 100755 (executable)
@@ -411,7 +411,8 @@ class SC_index {
                                                        </td>
                                                </tr>
                                        </table>
-
+                                       
+                                       '.$this->makeLoginNews().'
                                        <!--
                                                Copyright notice:
                                        -->
@@ -419,7 +420,7 @@ class SC_index {
                                                '.$this->makeCopyrightNotice().'
                                        </div>
 
-                                       '.$this->makeLoginNews().'
+                                       
                                </td>
                        </tr>
                </table>';
@@ -643,33 +644,21 @@ class SC_index {
                        // Traverse news array IF there are records in it:
                if (is_array($GLOBALS['TYPO3_CONF_VARS']['BE']['loginNews']) && count($GLOBALS['TYPO3_CONF_VARS']['BE']['loginNews']))  {
                        foreach($GLOBALS['TYPO3_CONF_VARS']['BE']['loginNews'] as $newsItem)    {
-                               $newsContent.='
-                                               <tr>
-                                                       <td class="c-date">'.htmlspecialchars($newsItem['date']).'</td>
-                                                       <td class="c-header">'.htmlspecialchars($newsItem['header']).'</td>
-                                               </tr>
-                                               <tr>
-                                                       <td></td>
-                                                       <td class="c-content">'.trim($newsItem['content']).'</td>
-                                               </tr>
-                                               <tr class="c-spacer">
-                                                       <td colspan="2"></td>
-                                               </tr>
-                               ';
+                               $newsContent .= '<dt>'.htmlspecialchars($newsItem['header']).' <span>'.htmlspecialchars($newsItem['date']).'</span></dt>';
+                               $newsContent .= '<dd>'.trim($newsItem['content']).'</dd>';
                        }
 
-                               // Wrap in a table:
-                       $newsContent= '
+                       $title = $GLOBALS['TYPO3_CONF_VARS']['BE']['loginNewsTitle'] ? htmlspecialchars($GLOBALS['TYPO3_CONF_VARS']['BE']['loginNewsTitle']) : htmlspecialchars($this->L_vars[8]);
+                               // Wrap 
+                       $newsContent = '
 
                                        <!--
                                                Login screen news:
                                        -->
-                                       <div id="loginNews">
-                                       <h2>'.htmlspecialchars($this->L_vars[8]).'</h2>
-                                       <table border="0" cellpadding="0" cellspacing="0">
+                                       <h2 id="loginNewsTitle">'.$title.'</h2>
+                                       <dl id="loginNews">
                                                '.$newsContent.'
-                                       </table>
-                                       </div>
+                                       </dl>
                        ';
                }
 
index f7df167..2ffb2df 100755 (executable)
@@ -417,14 +417,16 @@ TABLE#logintable P.c-wrong { font-size: 10px; width: 300px; border: #858585 soli
 TABLE#logintable INPUT.c-username, TABLE#logintable INPUT.c-password, TABLE#logintable SELECT.c-interfaceselector { width: 150px; }
 TABLE#logintable INPUT { border: #858585 solid 1px; background-color: white; }
 
+
 /* Fix height if an error message is displayed */
 BODY#typo3-index-php TABLE#loginwrapper TD.error { padding: 25px 0 25px 0; }
 
-DIV#loginNews { width: 70%; margin-top: 30px; }
-DIV#loginNews H2 { background-color: #E26816; color: white; font-size: 12px; }
-DIV#loginNews TABLE TR TD { padding-right: 10px; padding-left: 10px; }
-DIV#loginNews TABLE TR TD.c-header { font-weight: bold; background-color: #FFD8A9; }
-DIV#loginNews TABLE TR.c-spacer { height: 10px; }
+H2#loginNewsTitle { width:70%; background-color: #F69220; color: #000; padding:2px 0 0 4px;}
+DL#loginNews {width:70%; text-align: left; margin-bottom:20px; }
+DL#loginNews DT { font-weight:bold;font-size:14px; }
+DL#loginNews DT SPAN{ font-weight:normal;font-size:10px;padding-left:16px;margin-bottom:4px;}
+DL#loginNews DD {border-left:2px solid #F69220; padding-left:10px;font-size:12px;margin-bottom:12px;}
+
 
 /* Wizards: */
 BODY#typo3-wizard-tsconfig-php { margin-left: 5px; }
index 469bcc7..88daf7f 100644 (file)
@@ -108,6 +108,8 @@ table#logintable SELECT.c-interfaceselector {
        margin: 0px;
        }
 
+h2#loginNewsTitle, dl#loginNews {width: 500px; }
+
 /***************************************************
 * The old login news (might become obsolete?)
 ***************************************************/
@@ -135,4 +137,4 @@ div#loginNews table TR TD.c-header {
 
 div#loginNews table TR.c-spacer {
        height: 10px;
-       }
\ No newline at end of file
+       }