summaryrefslogtreecommitdiffstats
path: root/custom/views/atom10
diff options
context:
space:
mode:
Diffstat (limited to 'custom/views/atom10')
-rw-r--r--custom/views/atom10/index.tpl.php30
1 files changed, 0 insertions, 30 deletions
diff --git a/custom/views/atom10/index.tpl.php b/custom/views/atom10/index.tpl.php
deleted file mode 100644
index d88f17b..0000000
--- a/custom/views/atom10/index.tpl.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-$limit = $PlanetConfig->getMaxDisplay();
-$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 htmlspecialchars($PlanetConfig->getName()); ?></title>
- <subtitle><?php echo htmlspecialchars($PlanetConfig->getName()); ?></subtitle>
- <id><?php echo $PlanetConfig->getUrl(); ?></id>
- <link rel="self" type="application/atom+xml" href="<?php echo $PlanetConfig->getUrl(); ?>?type=atom10" />
- <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>
- <title type="html"><?php echo htmlspecialchars($item->get_feed()->getName()); ?> : <?php echo htmlspecialchars($item->get_title());?></title>
- <id><?php echo htmlspecialchars($item->get_permalink());?></id>
- <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>
- <updated><?php echo $item->get_date('Y-m-d\\TH:i:s+00:00'); ?></updated>
- <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>