2009-01-01 00:23:29 +00:00
|
|
|
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
2008-11-20 02:59:43 +00:00
|
|
|
<? echo "<?xml version=\"1.0\" ?>" ?>
|
2008-11-19 02:31:20 +00:00
|
|
|
<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/"
|
2008-12-18 18:50:27 +00:00
|
|
|
xmlns:atom="http://www.w3.org/2005/Atom"
|
2009-02-21 07:04:25 +00:00
|
|
|
xmlns:content="http://purl.org/rss/1.0/modules/content/"
|
2008-12-18 18:50:27 +00:00
|
|
|
xmlns:fh="http://purl.org/syndication/history/1.0">
|
2008-11-19 02:31:20 +00:00
|
|
|
<channel>
|
2008-12-18 00:29:22 +00:00
|
|
|
<generator>gallery3</generator>
|
2009-08-29 22:54:20 -07:00
|
|
|
<title><?= html::clean($feed->title) ?></title>
|
2009-06-14 16:40:57 -07:00
|
|
|
<link><?= $feed->uri ?></link>
|
2009-08-29 22:54:20 -07:00
|
|
|
<description><?= html::clean($feed->description) ?></description>
|
2008-11-19 02:31:20 +00:00
|
|
|
<language>en-us</language>
|
2009-06-14 16:40:57 -07:00
|
|
|
<atom:link rel="self" href="<?= $feed->uri ?>" type="application/rss+xml" />
|
2008-12-18 18:50:27 +00:00
|
|
|
<fh:complete/>
|
2009-06-14 16:40:57 -07:00
|
|
|
<? if (!empty($feed->previous_page_uri)): ?>
|
|
|
|
|
<atom:link rel="previous" href="<?= $feed->previous_page_uri ?>" type="application/rss+xml" />
|
2008-11-20 02:59:43 +00:00
|
|
|
<? endif ?>
|
2009-06-14 16:40:57 -07:00
|
|
|
<? if (!empty($feed->next_page_uri)): ?>
|
|
|
|
|
<atom:link rel="next" href="<?= $feed->next_page_uri ?>" type="application/rss+xml" />
|
2008-11-20 02:59:43 +00:00
|
|
|
<? endif ?>
|
|
|
|
|
<pubDate><?= $pub_date ?></pubDate>
|
|
|
|
|
<lastBuildDate><?= $pub_date ?></lastBuildDate>
|
2009-06-14 16:40:57 -07:00
|
|
|
<? foreach ($feed->children as $child): ?>
|
2008-11-28 02:44:02 +00:00
|
|
|
<item>
|
2009-08-31 21:51:57 -07:00
|
|
|
<title><?= html::purify($child->title) ?></title>
|
2009-02-23 02:47:29 +00:00
|
|
|
<link><?= url::abs_site("{$child->type}s/{$child->id}") ?></link>
|
|
|
|
|
<guid isPermaLink="true"><?= url::abs_site("{$child->type}s/{$child->id}") ?></guid>
|
2009-02-23 04:08:26 +00:00
|
|
|
<pubDate><?= date("D, d M Y H:i:s T", $child->created); ?></pubDate>
|
2009-10-23 21:15:16 -07:00
|
|
|
<description><?= html::purify($child->description) ?></description>
|
2009-02-22 16:56:37 +00:00
|
|
|
<content:encoded>
|
|
|
|
|
<![CDATA[
|
2009-08-31 21:51:57 -07:00
|
|
|
<span><?= html::purify($child->description) ?></span>
|
2009-02-22 16:56:37 +00:00
|
|
|
<p>
|
2009-11-15 18:54:12 -08:00
|
|
|
<? if ($child->type == "photo"): ?>
|
2009-02-22 16:56:37 +00:00
|
|
|
<img alt="" src="<?= $child->resize_url(true) ?>"
|
2009-08-31 21:51:57 -07:00
|
|
|
title="<?= html::purify($child->title)->for_html_attr() ?>"
|
2009-02-22 16:56:37 +00:00
|
|
|
height="<?= $child->resize_height ?>" width="<?= $child->resize_width ?>" /><br />
|
2009-02-23 04:08:26 +00:00
|
|
|
<? else: ?>
|
2009-02-23 18:41:22 +00:00
|
|
|
<a href="<?= url::abs_site("{$child->type}s/{$child->id}") ?>">
|
2009-02-23 04:08:26 +00:00
|
|
|
<img alt="" src="<?= $child->thumb_url(true) ?>"
|
2009-08-31 21:51:57 -07:00
|
|
|
title="<?= html::purify($child->title)->for_html_attr() ?>"
|
2009-02-23 18:41:22 +00:00
|
|
|
height="<?= $child->thumb_height ?>" width="<?= $child->thumb_width ?>" /></a><br />
|
2009-02-23 04:08:26 +00:00
|
|
|
<? endif ?>
|
2009-08-31 21:51:57 -07:00
|
|
|
<?= html::purify($child->description) ?>
|
2009-02-22 16:56:37 +00:00
|
|
|
</p>
|
2009-02-21 07:04:25 +00:00
|
|
|
]]>
|
2009-02-22 16:56:37 +00:00
|
|
|
</content:encoded>
|
2008-12-17 04:45:35 +00:00
|
|
|
<media:thumbnail url="<?= $child->thumb_url(true) ?>"
|
|
|
|
|
height="<?= $child->thumb_height ?>"
|
|
|
|
|
width="<?= $child->thumb_width ?>"
|
2008-11-28 07:13:21 +00:00
|
|
|
/>
|
2008-11-28 02:44:02 +00:00
|
|
|
<media:group>
|
2009-11-15 18:54:12 -08:00
|
|
|
<? if ($child->type == "photo"): ?>
|
2009-02-23 04:08:26 +00:00
|
|
|
<media:content url="<?= $child->resize_url(true) ?>"
|
2009-03-17 05:40:21 +00:00
|
|
|
fileSize="<?= @filesize($child->resize_path()) ?>"
|
2009-02-23 04:08:26 +00:00
|
|
|
type="<?= $child->mime_type ?>"
|
|
|
|
|
height="<?= $child->resize_height ?>"
|
|
|
|
|
width="<?= $child->resize_width ?>"
|
|
|
|
|
isDefault="true"
|
|
|
|
|
/>
|
|
|
|
|
<? if (access::can("view_full", $child)): ?>
|
|
|
|
|
<media:content url="<?= $child->file_url(true) ?>"
|
2009-03-17 05:40:21 +00:00
|
|
|
fileSize="<?= @filesize($child->file_path()) ?>"
|
2009-02-23 04:08:26 +00:00
|
|
|
type="<?= $child->mime_type ?>"
|
|
|
|
|
height="<?= $child->height ?>"
|
|
|
|
|
width="<?= $child->width ?>"
|
|
|
|
|
/>
|
|
|
|
|
<? endif ?>
|
|
|
|
|
<? else: ?>
|
|
|
|
|
<media:content url="<?= $child->file_url(true) ?>"
|
2009-03-17 05:40:21 +00:00
|
|
|
fileSize="<?= @filesize($child->file_path()) ?>"
|
2009-02-23 18:41:22 +00:00
|
|
|
height="<?= $child->height ?>"
|
|
|
|
|
width="<?= $child->width ?>"
|
|
|
|
|
type="<?= $child->mime_type ?>"
|
|
|
|
|
/>
|
2009-02-23 04:08:26 +00:00
|
|
|
<? endif ?>
|
2008-11-28 02:44:02 +00:00
|
|
|
</media:group>
|
|
|
|
|
</item>
|
2008-11-20 02:59:43 +00:00
|
|
|
<? endforeach ?>
|
2008-11-19 02:31:20 +00:00
|
|
|
</channel>
|
|
|
|
|
</rss>
|