PageRenderTime 7ms CodeModel.GetById 2ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/halogy/application/modules/events/views/rss.php

https://bitbucket.org/haloweb/halogy-1.0/
PHP | 41 lines | 29 code | 12 blank | 0 comment | 1 complexity | 0bebe6805811ff5bf4323ddf9579b6a5 MD5 | raw file
 1<?php 
 2echo '<?xml version="1.0" encoding="utf-8"?>' . "
 3";
 4?>
 5<rss version="2.0"
 6    xmlns:dc="http://purl.org/dc/elements/1.1/"
 7    xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
 8    xmlns:admin="http://webns.net/mvcb/"
 9    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
10    xmlns:content="http://purl.org/rss/1.0/modules/content/">
11
12    <channel>
13    
14    <title><?php echo $feed_name; ?></title>
15
16    <link><?php echo $feed_url; ?></link>
17    <description><?php echo $page_description; ?></description>
18    <dc:language><?php echo $page_language; ?></dc:language>
19    <dc:creator><?php echo $creator_email; ?></dc:creator>
20
21    <dc:rights>Copyright <?php echo gmdate("Y", time()); ?></dc:rights>
22    <admin:generatorAgent rdf:resource="http://www.halogy.com/" />
23
24    <?php foreach($events as $entry): ?>
25    
26	    <item>
27
28          <title><?php echo dateFmt($entry['eventDate'], ($this->site->config['dateOrder'] == 'MD') ? 'M jS Y' : 'jS M Y'); ?> - <?php echo xml_convert($entry['eventTitle']); ?></title>
29          <link><?php echo site_url('events/viewevent/'.$entry['eventID']); ?></link>
30          <guid><?php echo site_url('events/viewevent/'.$entry['eventID']); ?></guid>
31
32			<description><![CDATA[
33				<?php echo $this->template->parse_body($entry['description'], TRUE, site_url('events/'.dateFmt($entry['eventDate'], 'Y/m').'/'.$entry['eventID'])); ?>
34			]]></description>
35			
36        </item>
37
38        
39    <?php endforeach; ?>
40    
41</channel></rss>