summaryrefslogtreecommitdiffstats
path: root/atom.php
diff options
context:
space:
mode:
Diffstat (limited to 'atom.php')
-rw-r--r--atom.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/atom.php b/atom.php
index 3af030d..59be240 100644
--- a/atom.php
+++ b/atom.php
@@ -2,7 +2,9 @@
include_once(__DIR__.'/app/app.php');
include_once(__DIR__.'/app/classes/Cache.php');
-if ($Planet->loadOpml(__DIR__.'/custom/people.opml') == 0) exit;
+if ($Planet->loadOpml(__DIR__.'/custom/people.opml') == 0) {
+ exit;
+}
$Planet->loadFeeds();
$items = $Planet->getItems();
@@ -22,8 +24,7 @@ echo '<?xml version="1.0" encoding="UTF-8" ?>';
<author><name><?=htmlspecialchars($PlanetConfig->getName())?></name></author>
<?php $count = 0; ?>
-<?php foreach ($items as $item): ?>
-
+<?php foreach ($items as $item) : ?>
<entry>
<title type="html"><?=htmlspecialchars($item->get_feed()->getName())?> : <?=htmlspecialchars($item->get_title())?></title>
<id><?=htmlspecialchars($item->get_permalink())?></id>
@@ -35,7 +36,9 @@ echo '<?xml version="1.0" encoding="UTF-8" ?>';
<content type="html"><![CDATA[<?=$item->get_content()?>]]></content>
</entry>
-<?php if (++$count == $limit) break; ?>
+ <?php if (++$count == $limit) {
+ break;
+ } ?>
<?php endforeach; ?>
</feed>