summaryrefslogtreecommitdiffstats
path: root/custom/views/rss10/index.tpl.php
diff options
context:
space:
mode:
authorPascal Chevrel <pascal@chevrel.org>2012-03-09 09:02:34 +0100
committerPascal Chevrel <pascal@chevrel.org>2012-03-09 09:02:34 +0100
commit926e36b8fdf8ceaf59ac72e1b28b862f42978b84 (patch)
tree302f7892e24e5a6a0b3582b7b137328824116058 /custom/views/rss10/index.tpl.php
parent66c2ad84d4d493865fbc5a5fbfbbc61ff0bb3edf (diff)
downloadplanet-926e36b8fdf8ceaf59ac72e1b28b862f42978b84.tar
planet-926e36b8fdf8ceaf59ac72e1b28b862f42978b84.tar.gz
planet-926e36b8fdf8ceaf59ac72e1b28b862f42978b84.tar.bz2
planet-926e36b8fdf8ceaf59ac72e1b28b862f42978b84.tar.xz
planet-926e36b8fdf8ceaf59ac72e1b28b862f42978b84.zip
convert all files saved in Windows(CRLF) to Unix (LF)
Diffstat (limited to 'custom/views/rss10/index.tpl.php')
-rw-r--r--custom/views/rss10/index.tpl.php90
1 files changed, 45 insertions, 45 deletions
diff --git a/custom/views/rss10/index.tpl.php b/custom/views/rss10/index.tpl.php
index 7d07196..0141327 100644
--- a/custom/views/rss10/index.tpl.php
+++ b/custom/views/rss10/index.tpl.php
@@ -1,49 +1,49 @@
-<?php
-$limit = $PlanetConfig->getMaxDisplay();
+<?php
+$limit = $PlanetConfig->getMaxDisplay();
$count = 0;
header('Content-Type: text/xml; charset=UTF-8');
-echo '<?xml version="1.0" encoding="UTF-8" ?>';
-?><rdf:RDF
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
- xmlns:admin="http://webns.net/mvcb/"
- xmlns:cc="http://web.resource.org/cc/"
- xmlns:content="http://purl.org/rss/1.0/modules/content/"
- xmlns="http://purl.org/rss/1.0/">
-
- <channel rdf:about="<?php echo $PlanetConfig->getUrl(); ?>">
- <title><?php echo $PlanetConfig->getName(); ?></title>
- <description></description>
- <link><?php echo $PlanetConfig->getUrl(); ?></link>
- <dc:language></dc:language>
- <dc:creator></dc:creator>
- <dc:rights></dc:rights>
- <dc:date><?php echo date('Y-m-d\\TH:i:s+00:00'); ?></dc:date>
- <admin:generatorAgent rdf:resource="http://moonmoon.inertie.org/" />
-
- <items>
- <rdf:Seq>
- <?php foreach ($items as $item): ?>
- <rdf:li rdf:resource="<?php echo $item->get_permalink(); ?>"/>
- <?php if (++$count == $limit) { break; } ?>
- <?php endforeach; ?>
- </rdf:Seq>
- </items>
- </channel>
-
- <?php $count = 0; ?>
- <?php foreach ($items as $item): ?>
- <item rdf:about="<?php echo $item->get_permalink();?>">
- <title><?php echo htmlspecialchars($item->get_feed()->getName()) ?> : <?php echo htmlspecialchars($item->get_title());?></title>
- <link><?php echo htmlspecialchars($item->get_permalink());?></link>
- <dc:date><?php echo date('Y-m-d\\TH:i:s+00:00',$item->get_date('U')); ?></dc:date>
- <dc:creator><?php echo htmlspecialchars($item->get_author()? $item->get_author()->get_name() : 'anonymous') ?></dc:creator>
- <description><?php echo htmlspecialchars($item->get_content()); ?></description>
- <content:encoded><![CDATA[<?php echo $item->get_content();?>]]></content:encoded>
- </item>
- <?php if (++$count == $limit) { break; } ?>
- <?php endforeach; ?>
-
+echo '<?xml version="1.0" encoding="UTF-8" ?>';
+?><rdf:RDF
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
+ xmlns:admin="http://webns.net/mvcb/"
+ xmlns:cc="http://web.resource.org/cc/"
+ xmlns:content="http://purl.org/rss/1.0/modules/content/"
+ xmlns="http://purl.org/rss/1.0/">
+
+ <channel rdf:about="<?php echo $PlanetConfig->getUrl(); ?>">
+ <title><?php echo $PlanetConfig->getName(); ?></title>
+ <description></description>
+ <link><?php echo $PlanetConfig->getUrl(); ?></link>
+ <dc:language></dc:language>
+ <dc:creator></dc:creator>
+ <dc:rights></dc:rights>
+ <dc:date><?php echo date('Y-m-d\\TH:i:s+00:00'); ?></dc:date>
+ <admin:generatorAgent rdf:resource="http://moonmoon.inertie.org/" />
+
+ <items>
+ <rdf:Seq>
+ <?php foreach ($items as $item): ?>
+ <rdf:li rdf:resource="<?php echo $item->get_permalink(); ?>"/>
+ <?php if (++$count == $limit) { break; } ?>
+ <?php endforeach; ?>
+ </rdf:Seq>
+ </items>
+ </channel>
+
+ <?php $count = 0; ?>
+ <?php foreach ($items as $item): ?>
+ <item rdf:about="<?php echo $item->get_permalink();?>">
+ <title><?php echo htmlspecialchars($item->get_feed()->getName()) ?> : <?php echo htmlspecialchars($item->get_title());?></title>
+ <link><?php echo htmlspecialchars($item->get_permalink());?></link>
+ <dc:date><?php echo date('Y-m-d\\TH:i:s+00:00',$item->get_date('U')); ?></dc:date>
+ <dc:creator><?php echo htmlspecialchars($item->get_author()? $item->get_author()->get_name() : 'anonymous') ?></dc:creator>
+ <description><?php echo htmlspecialchars($item->get_content()); ?></description>
+ <content:encoded><![CDATA[<?php echo $item->get_content();?>]]></content:encoded>
+ </item>
+ <?php if (++$count == $limit) { break; } ?>
+ <?php endforeach; ?>
+
</rdf:RDF> \ No newline at end of file