summaryrefslogtreecommitdiff
path: root/tpl/blog/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/blog/index.php')
-rw-r--r--tpl/blog/index.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/tpl/blog/index.php b/tpl/blog/index.php
index 07e3388..6d07efa 100644
--- a/tpl/blog/index.php
+++ b/tpl/blog/index.php
@@ -17,6 +17,7 @@ foreach ($posts as $post) {
echo ' | <a href="edit-blog-' . $post['id'] . '">edit</a>';
if ($can_delete && $post['owner_id'] == $user['id'])
echo ' | <a href="delete-blog-' . $post['id'] . '">delete</a>';
+ echo ' | <a href="view-blog-' . $post['id'] . '">read & comment (' . $post['comments'] . ')</a>';
echo '</div>';
echo '<div class="small_right">published ' . $post['date'] . '</div>';
if ($post['tags'] != '') {
@@ -50,4 +51,18 @@ foreach ($fa as $kname => $kdata) {
}
}
+echo "<h1>...</h1>";
+$ze = array();
+foreach ($fvalues as $k => $v) { $ze[] = "$k-$v"; }
+$ze[] = "feed-atom";
+$zd = implode("-", $ze);
+echo '<ul>';
+if (count($fvalues) > 0) {
+ echo '<li><a href="index-blog-' . $zd . '">Atom feed for this selection</a></li>';
+ echo '<li><a href="index-blog-feed-atom">Homepage Atom feed</a></li>';
+} else {
+ echo '<li><a href="index-blog-feed-atom">Atom feed</a></li>';
+}
+echo '</ul>';
+
require("tpl/general/bottom.php");