Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24743
Modified Files:
serendipity_functions.inc.php
Log Message:
Fixes from Manuel Streuhofer (blog.streuhofer.net):
* Fix missing blank in "Topics of" archive screen
* Consistently use 'serendipity_date' for the header, as we use in the
'short'-view mode.
Apart from that he suggested to correct this:
echo '<br />' . NO_ENTRIES_TO_PRINT . "\n";
echo '<div align="center"><?php echo NO_COMMENTS; ?></div>';
to contain not hardcoded layout, but instead create surrounding special
classes. When we do a CSS cleanup, we should pay attention to thinks like
that. :-)
Index: serendipity_functions.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions.inc.php,v
retrieving revision 1.213
retrieving revision 1.214
diff -u -d -r1.213 -r1.214
--- serendipity_functions.inc.php 18 Feb 2004 11:48:23 -0000 1.213
+++ serendipity_functions.inc.php 18 Feb 2004 12:20:14 -0000 1.214
@@ -893,7 +893,7 @@
} else { // else short mode
$s = &$serendipity['GET']['range'];
?>
- <div class='serendipity_date'><?php echo TOPICS_OF . date('m/Y', mktime(0, 0, 0, substr($s, 4, 2), 1, substr($s, 0, 4))); ?></div>
+ <div class='serendipity_date'><?php echo TOPICS_OF . ' ' . date('m/Y', mktime(0, 0, 0, substr($s, 4, 2), 1, substr($s, 0, 4))); ?></div>
<?php
foreach ($bydate as $date => $ents) {
foreach ($ents as $x => $entry) {
@@ -2346,7 +2346,7 @@
function serendipity_printArchives() {
global $serendipity;
- echo '<div class="serendipity_title">' . ARCHIVES . '</div>';
+ echo '<div class="serendipity_date">' . ARCHIVES . '</div>';
$f = serendipity_db_query("SELECT timestamp FROM {$serendipity['dbPrefix']}entries ORDER BY timestamp ASC LIMIT 1");
$lastYear = date('Y', $f[0][0]);
|