XOOPS RMCommon Utilities  2.1.8.91RC
 All Classes Namespaces Files Functions Variables
rmc_rss.php
Go to the documentation of this file.
1 <?php echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>
2 <rss version="2.0">
3  <channel>
4  <title><?php echo $rss_channel['title']; ?></title>
5  <link><?php echo $rss_channel['link']; ?></link>
6  <description><?php echo $rss_channel['description']; ?></description>
7  <lastBuildDate><?php echo $rss_channel['lastbuild']; ?></lastBuildDate>
8  <docs>http://backend.userland.com/rss/</docs>
9  <generator><?php echo $rss_channel['generator']; ?></generator>
10  <category><?php echo $rss_channel['category']; ?></category>
11  <managingEditor><?php echo $rss_channel['editor']; ?></managingEditor>
12  <webMaster><?php echo $rss_channel['webmaster']; ?></webMaster>
13  <language><?php echo $rss_channel['language ']; ?></language>
14  <?php if($rss_channel['image']['url'] != ""): ?>
15  <image>
16  <title><?php echo $rss_channel['title']; ?></title>
17  <url><?php echo $rss_channel['image']['url']; ?></url>
18  <link><?php echo $rss_channel['link']; ?></link>
19  <width><?php echo $rss_channel['image']['width']; ?></width>
20  <height><?php echo $rss_channel['image']['height']; ?></height>
21  </image>
22  <?php endif; ?>
23  <?php foreach($rss_items as $item): ?>
24  <item>
25  <title><?php echo $item['title']; ?></title>
26  <link><?php echo $item['link']; ?></link>
27  <description><?php echo $item['description']; ?></description>
28  <pubDate><?php echo $item['pubdate']; ?></pubDate>
29  <guid><?php echo $item['guid']; ?></guid>
30  </item>
31  <?php endforeach; ?>
32  </channel>
33 </rss>