From a535a9e7e017629178b45acc2e96e1d674a0d6fc Mon Sep 17 00:00:00 2001 From: Nicolas BERNSTEIN Date: Fri, 13 Apr 2012 19:17:17 +0200 Subject: Added : ATOM feed for blog ; abilty to comment posts. --- tpl/blog/index.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'tpl/blog/index.php') 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 ' | edit'; if ($can_delete && $post['owner_id'] == $user['id']) echo ' | delete'; + echo ' | read & comment (' . $post['comments'] . ')'; echo ''; echo '
published ' . $post['date'] . '
'; if ($post['tags'] != '') { @@ -50,4 +51,18 @@ foreach ($fa as $kname => $kdata) { } } +echo "

...

"; +$ze = array(); +foreach ($fvalues as $k => $v) { $ze[] = "$k-$v"; } +$ze[] = "feed-atom"; +$zd = implode("-", $ze); +echo ''; + require("tpl/general/bottom.php"); -- cgit v1.2.3