Project

General

Profile

Bug #18208 » 20080213_loginNews.diff

Administrator Admin, 2008-02-13 23:04

View differences:

typo3/index.php (working copy)
</td>
</tr>
</table>
'.$this->makeLoginNews().'
<!--
Copyright notice:
-->
......
'.$this->makeCopyrightNotice().'
</div>
'.$this->makeLoginNews().'
</td>
</tr>
</table>';
......
// 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>
';
}
typo3/stylesheet.css (working copy)
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: #eee; padding:2px 0;}
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 #7A9FCF; padding-left:10px;font-size:12px;margin-bottom:12px;}
/* Wizards: */
BODY#typo3-wizard-tsconfig-php { margin-left: 5px; }
TABLE#typo3-tablewizard SPAN.c-wizButtonsH INPUT { margin-right: 2px; vertical-align: middle; }
(5-5/5)