Subversion Repositories Sites.obs-saisons.fr

Rev

Rev 31 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?php echo '<?xml version="1.0" encoding="UTF-8"?>'."\n";?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
        <channel>
                <title><?=$titre; ?></title>
                <link><?=$lien_ods; ?></link>
                <atom:link href="<?= $lien_service; ?>" rel="self" type="application/rss+xml" />
                <description><?=$description; ?></description>
                
                <?php if (isset($items)) : ?>
                <?php foreach ($items as $item) : ?>
                <item>
                  <guid><?=$item['guid']; ?></guid>
                  <title><?=$item['titre']; ?></title>
                  <link><?=$item['lien']; ?></link>
                  <description><?=$item['description_encodee']; ?></description>
                  <pubDate><?=$item['date_maj_RSS']; ?></pubDate>
                </item>
                <?php endforeach; ?>
                <?php endif; ?>
                
        </channel>
</rss>