aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWojciech Polak <polak@gnu.org>2006-03-14 17:07:26 +0000
committerWojciech Polak <polak@gnu.org>2006-03-14 17:07:26 +0000
commit6b8a2f5fcf9fe86a7ced5c2fe85c9e8c79550704 (patch)
tree4eee5d20fb575f33dec75b32ca47cec9bc2473ce
parent45149ddceba96dffe42054afb64a7349c82c04eb (diff)
downloadblogright-6b8a2f5fcf9fe86a7ced5c2fe85c9e8c79550704.tar.gz
blogright-6b8a2f5fcf9fe86a7ced5c2fe85c9e8c79550704.tar.bz2
version 2.1 (improved)
-rw-r--r--blog.php18
-rw-r--r--config.php1
2 files changed, 16 insertions, 3 deletions
diff --git a/blog.php b/blog.php
index 2736f13..8d45e89 100644
--- a/blog.php
+++ b/blog.php
@@ -1,6 +1,6 @@
<?php
-// blogRight! version 2.1 (2006-01-21)
+// blogRight! version 2.1 (2006-03-12)
// Copyright (C) 2004, 2005, 2006 Wojciech Polak.
//
// This program is free software; you can redistribute it and/or modify
@@ -158,6 +158,11 @@ function cmonth ($var)
return false;
}
+if (isset ($ATOM) || isset ($_REQUEST['atom']) ||
+ isset ($RSS) || isset ($_REQUEST['rss'])) {
+ $recent = $feedRecent;
+}
+
// show only N recent entries or current month
if (!isset ($search_y) && isset ($recent))
{
@@ -574,20 +579,27 @@ function include_file ($file)
$fd = file ($file);
if ($fd)
{
+ echo '<div id="e'.$permaLink.'" class="entry">'."\n";
echo '<div class="entryTitle">';
echo '<a href="?q='.$permaLink
- .'" rel="bookmark" title="permalink">'.$entryDate.'</a>';
+ .'" rel="bookmark" title="'.$entryDate.'">'.$entryDate.'</a>';
echo '</div>'."\n";
echo '<div class="entryBody">'."\n";
unset ($GLOBALS['collect']);
foreach ($fd as $line)
{
- $line = process_line($line);
+ $line = process_line ($line);
if ($line)
echo ($line);
}
process_footnotes ('printer', 0);
+ echo '</div>'."\n";
+
+ echo '<div class="entryFooter">'."\n";
+ echo '<a href="?q='.$permaLink.'" rel="bookmark" title="'.$entryDate.
+ '" class="permalink">'.$entryDate.'</a>'."\n";
+ echo '</div>'."\n";
echo '</div>'."\n\n";
}
}
diff --git a/config.php b/config.php
index 5c6fe27..9810948 100644
--- a/config.php
+++ b/config.php
@@ -34,6 +34,7 @@ $feedAuthorName = 'Your Name';
$feedAuthorEmail = 'Your e-mail address';
$feedEditor = "$feedAuthorEmail ($feedAuthorName)";
$feedLanguage = 'en'; // Two-letter language code as per ISO 639
+$feedRecent = '10';
// Calendar
$calendarEmptyMonths = false;

Return to:

Send suggestions and report system problems to the System administrator.