From ff32e499745367b816d10f25e63ff3328214c32f Mon Sep 17 00:00:00 2001 From: Damien Lallement Date: Mon, 13 Aug 2012 10:45:23 +0000 Subject: - Import moonmoon - Create repo per langs --- common/atom.php | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 common/atom.php (limited to 'common/atom.php') diff --git a/common/atom.php b/common/atom.php new file mode 100644 index 0000000..5122158 --- /dev/null +++ b/common/atom.php @@ -0,0 +1,41 @@ +loadOpml(dirname(__FILE__).'/custom/people.opml') == 0) exit; + +$Planet->loadFeeds(); +$items = $Planet->getItems(); +$limit = $PlanetConfig->getMaxDisplay(); +$count = 0; + +header('Content-Type: application/atom+xml; charset=UTF-8'); +echo ''; +?> + + <?=htmlspecialchars($PlanetConfig->getName())?> + getName())?> + getUrl()?> + + + + getName())?> + + + + + + <?=htmlspecialchars($item->get_feed()->getName())?> : <?=htmlspecialchars($item->get_title())?> + get_permalink())?> + + get_date('Y-m-d\\TH:i:s+00:00')?> + get_date('Y-m-d\\TH:i:s+00:00')?> + get_author() ? $item->get_author()->get_name() : 'anonymous')?> + + get_content()?>]]> + + + + + + -- cgit v1.2.1