Files
gallery3/modules/media_rss/views/feed.mrss.php
T

52 lines
2.3 KiB
PHP
Raw Normal View History

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\" ?>" ?>
<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"
xmlns:fh="http://purl.org/syndication/history/1.0">
<channel>
<generator>gallery3</generator>
<title><?= htmlspecialchars($title) ?></title>
2008-11-28 01:20:17 +00:00
<link><?= $link ?></link>
<description><?= htmlspecialchars($description) ?></description>
<language>en-us</language>
2008-11-28 02:44:02 +00:00
<atom:link rel="self" href="<?= $feed_link ?>" type="application/rss+xml" />
2008-12-18 18:50:27 +00:00
<fh:complete/>
2008-11-28 01:20:17 +00:00
<? if (!empty($previous_page_link)): ?>
<atom:link rel="previous" href="<?= $previous_page_link ?>" type="application/rss+xml" />
2008-11-20 02:59:43 +00:00
<? endif ?>
2008-11-28 01:20:17 +00:00
<? if (!empty($next_page_link)): ?>
<atom:link rel="next" href="<?= $next_page_link ?>" type="application/rss+xml" />
2008-11-20 02:59:43 +00:00
<? endif ?>
<pubDate><?= $pub_date ?></pubDate>
<lastBuildDate><?= $pub_date ?></lastBuildDate>
<? foreach ($children as $child): ?>
2008-11-28 02:44:02 +00:00
<item>
<title><?= htmlspecialchars($child->title) ?></title>
2008-11-28 02:44:02 +00:00
<link><?= url::abs_site("photos/$child->id") ?></link>
<guid isPermaLink="true"><?= url::abs_site("photos/$child->id") ?></guid>
<description><?= htmlspecialchars($child->description) ?></description>
<media:thumbnail url="<?= $child->thumb_url(true) ?>"
fileSize="<?= filesize($child->thumb_path()) ?>"
height="<?= $child->thumb_height ?>"
width="<?= $child->thumb_width ?>"
/>
2008-11-28 02:44:02 +00:00
<media:group>
<media:content url="<?= $child->resize_url(true) ?>"
fileSize="<?= filesize($child->resize_path()) ?>"
2008-11-28 02:44:02 +00:00
type="<?= $child->mime_type ?>"
height="<?= $child->resize_height ?>"
width="<?= $child->resize_width ?>"
isDefault="true"
/>
<media:content url="<?= $child->file_url(true) ?>"
fileSize="<?= filesize($child->file_path()) ?>"
2008-11-28 02:44:02 +00:00
type="<?= $child->mime_type ?>"
height="<?= $child->height ?>"
width="<?= $child->width ?>"
/>
</media:group>
</item>
2008-11-20 02:59:43 +00:00
<? endforeach ?>
</channel>
</rss>