diff options
Diffstat (limited to 'custom/views/atom10/index.tpl.php')
-rw-r--r-- | custom/views/atom10/index.tpl.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/custom/views/atom10/index.tpl.php b/custom/views/atom10/index.tpl.php index 96b467a..d515961 100644 --- a/custom/views/atom10/index.tpl.php +++ b/custom/views/atom10/index.tpl.php @@ -1,8 +1,8 @@ <?php
$limit = $PlanetConfig->getMaxDisplay();
-$count = 0; - -header('Content-Type: text/plain; charset=UTF-8'); +$count = 0;
+
+header('Content-Type: application/atom+xml; charset=UTF-8');
echo '<?xml version="1.0" encoding="UTF-8" ?>';
?><feed xmlns="http://www.w3.org/2005/Atom">
<title><?php echo $PlanetConfig->getName(); ?></title>
@@ -12,7 +12,7 @@ echo '<?xml version="1.0" encoding="UTF-8" ?>'; <link rel="alternate" type="text/html" href="<?php echo $PlanetConfig->getUrl(); ?>" />
<updated><?php echo date("Y-m-d\TH:i:s\Z") ?></updated>
<author><name>Author</name></author>
-
+
<?php $count = 0; ?>
<?php foreach ($items as $item): ?>
<entry xmlns="http://www.w3.org/2005/Atom">
@@ -21,9 +21,9 @@ echo '<?xml version="1.0" encoding="UTF-8" ?>'; <link rel="alternate" href="<?php echo htmlspecialchars($item->get_permalink());?>"/>
<published><?php echo $item->get_date('Y-m-d\\TH:i:s+00:00'); ?></published>
<author><name><?php echo ($item->get_author()? $item->get_author()->get_name() : 'anonymous'); ?></name></author>
-
+
<content type="html"><![CDATA[<?php echo $item->get_content();?>]]></content>
</entry>
<?php if (++$count == $limit) { break; } ?>
<?php endforeach; ?>
-</feed>
\ No newline at end of file +</feed>
|