-
Notifications
You must be signed in to change notification settings - Fork 0
/
rss.php
29 lines (25 loc) · 1.13 KB
/
rss.php
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
<?php
include("lib/functions.php");
$plugins = Plugin::all(false, LEVEL_NORMAL, PLUGIN_MOD_DATE . " DESC");
header('Content-Type: application/rss+xml');
echo '<?xml version="1.0" encoding="utf-8"?>' . "\n";
?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Quicksilver Plugins Repository</title>
<link>http://qsapp.com/plugins</link>
<atom:link href="http://qsapp.com/plugins/rss.php" rel="self" type="application/rss+xml" />
<description>A list of the most up to date plugins for Quicksilver.</description><?php
foreach ($plugins as $plugin) {
$moddate = strftime("%Y-%m-%d", strtotime($plugin->modDate));
$version = $plugin->displayVersion ? $plugin->displayVersion : int_to_hexstring($plugin->version);
?><item>
<title><?= $plugin->name ?></title>
<link><?= urlencode($plugin->download_url()); ?></link>
<description><?= $plugin->name ?> updated to <?= $version ?> on <?= $moddate ?><?php // TODO: Provide changelog ?></description>
<guid isPermaLink="false"><?= $plugin->plugin_url(); ?></guid>
</item>
<?php
}
?></channel>
</rss>