add a couple of mediarss tags

git-svn-id: file:///home/shish/svn/shimmie2/trunk@907 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish 2008-06-25 00:05:19 +00:00
parent bb9534073e
commit a59072a663

View File

@ -50,6 +50,8 @@ class RSS_Images extends Extension {
$link = make_link("post/view/{$image->id}"); $link = make_link("post/view/{$image->id}");
$tags = $image->get_tag_list(); $tags = $image->get_tag_list();
$owner = $image->get_owner(); $owner = $image->get_owner();
$thumb_url = $image->get_thumb_link();
$image_url = $image->get_image_link();
$posted = strftime("%a, %d %b %Y %T %Z", $image->posted_timestamp); $posted = strftime("%a, %d %b %Y %T %Z", $image->posted_timestamp);
$content = html_escape( $content = html_escape(
"<p>" . Themelet::build_thumb_html($image) . "</p>" . "<p>" . Themelet::build_thumb_html($image) . "</p>" .
@ -63,6 +65,8 @@ class RSS_Images extends Extension {
<guid isPermaLink=\"true\">$link</guid> <guid isPermaLink=\"true\">$link</guid>
<pubDate>$posted</pubDate> <pubDate>$posted</pubDate>
<description>$content</description> <description>$content</description>
<media:thumbnail url=\"$thumb_url\"/>
<media:content url=\"$image_url\"/>
</item> </item>
"; ";
} }
@ -71,7 +75,7 @@ class RSS_Images extends Extension {
$base_href = $config->get_string('base_href'); $base_href = $config->get_string('base_href');
$version = VERSION; $version = VERSION;
$xml = "<"."?xml version=\"1.0\" encoding=\"utf-8\" ?"."> $xml = "<"."?xml version=\"1.0\" encoding=\"utf-8\" ?".">
<rss version=\"2.0\"> <rss version=\"2.0\" xmlns:media=\"http://search.yahoo.com/mrss\">
<channel> <channel>
<title>$title</title> <title>$title</title>
<description>The latest uploads to the image board</description> <description>The latest uploads to the image board</description>