Subversion Repositories Sites.obs-saisons.fr

Rev

Rev 207 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 207 Rev 322
Line 1... Line 1...
1
<?php echo '<?xml version="1.0" encoding="UTF-8"?>'."\n";?>
1
<?php echo '<?xml version="1.0" encoding="UTF-8"?>'."\n" ?>
2
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
2
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
3
	<channel>
3
	<channel>
4
		<title><?=$titre; ?></title>
4
		<title><?=$titre; ?></title>
5
		<link><?=$lien_ods; ?></link>
5
		<link><?=$lien_ods; ?></link>
6
		<atom:link href="<?= $lien_service; ?>" rel="self" type="application/rss+xml" />
6
		<atom:link href="<?= $lien_service; ?>" rel="self" type="application/rss+xml" />
7
		<description><?=$description; ?></description>
7
		<description><?=$description; ?></description>
8
		
8
 
9
		<?php if (isset($items)) : ?>
9
		<?php if (isset($items)) : ?>
10
		<?php foreach ($items as $item) : ?>
10
		<?php foreach ($items as $item) : ?>
11
		<item>
11
		<item>
12
		  <guid><?=$item['guid']; ?></guid>
12
		  <guid><?=$item['guid']; ?></guid>
13
		  <title><?=$item['titre']; ?></title>
13
		  <title><?=$item['titre']; ?></title>
Line 15... Line 15...
15
		  <description><?=$item['description_encodee']; ?></description>
15
		  <description><?=$item['description_encodee']; ?></description>
16
		  <pubDate><?=$item['date_maj_RSS']; ?></pubDate>
16
		  <pubDate><?=$item['date_maj_RSS']; ?></pubDate>
17
		</item>
17
		</item>
18
		<?php endforeach; ?>
18
		<?php endforeach; ?>
19
		<?php endif; ?>
19
		<?php endif; ?>
20
		
20
 
21
	</channel>
21
	</channel>
22
</rss>
-
 
23
22
</rss>
-
 
23