aboutsummaryrefslogtreecommitdiff
path: root/app/views/rss/public.phtml
blob: 04a035699284009a4a44ffb74a109339ca2b3a52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php echo '<?xml version="1.0" encoding="UTF-8" ?>'; ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title><?php echo View::title(); ?></title>
		<link><?php echo Url::display(); ?></link>
		<description>Flux public de <?php echo View::title(); ?></description>
		<language>fr</language>
		<pubDate><?php echo date('D, d M Y H:i:s O'); ?></pubDate>
		<lastBuildDate><?php echo gmdate('D, d M Y H:i:s'); ?> GMT</lastBuildDate>
		<atom:link href="<?php echo Url::display(array('a' => 'rss')); ?>" rel="self" type="application/rss+xml" />
<?php
$items = $this->itemPaginator->items ();
foreach ($items as $item) {
?>
		<item>
			<title><?php echo htmlspecialchars(html_entity_decode($item->title ())); ?></title>
			<link><?php echo $item->link (); ?></link>
			<?php $author = $item->author (); ?>
			<?php if ($author != '') { ?>
			<dc:creator><?php echo $author; ?></dc:creator>
			<?php } ?>
			<description><![CDATA[<?php
	echo html_entity_decode($item->notes (false, false));
?>]]></description>
			<pubDate><?php echo date('D, d M Y H:i:s O', $item->date (true)); ?></pubDate>
			<guid><?php echo $item->guid (); ?></guid>
		</item>
<?php } ?>		

	</channel>
</rss>