File: template.php

package info (click to toggle)
bamboo 1.2-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 580 kB
  • ctags: 1,338
  • sloc: php: 4,061; makefile: 44; sh: 36
file content (33 lines) | stat: -rw-r--r-- 861 bytes parent folder | download
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
32
33
<?php echo "<?xml version=\"1.0\" ?>\n" ?>

<rdf:RDF
 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
 xmlns="http://purl.org/rss/1.0/"
 xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel rdf:about="<?= $rss_channel[link] ?>">
<title><?= $rss_channel[title] ?></title>
<link><?= $rss_channel[link] ?></link>
<description><?= $rss_channel[description] ?></description>
<dc:date><?= $rss_channel[date] ?></dc:date>
<items>
 <rdf:Seq>
<?php
	foreach ($rss_items as $item) {
		echo "<rdf:li rdf:resource=\"$item[link]\" >\n";
	}
?>
 </rdf:Seq>
</items>
<?php
	foreach ($rss_items as $item) {
		echo "<item rdf:about=\"$item[link]\">\n";
		echo "<title>$item[title]</title>\n";
		echo "<link>$item[link]</link>\n";
		echo "<description>$item[description]</description>\n";
		echo "<dc:date>$item[date]</dc:date>\n";
		echo "</item>\n";
	}
?>
</channel>