2008-12-10 07:49:06 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* A simple widget that just shows a link
|
|
|
|
* to this website's blog RSS, with an RSS
|
|
|
|
* icon.
|
|
|
|
*
|
|
|
|
* @package blog
|
|
|
|
*/
|
|
|
|
class SubscribeRSSWidget extends Widget {
|
|
|
|
|
|
|
|
static $title = 'Subscribe via RSS';
|
|
|
|
|
|
|
|
static $cmsTitle = 'Subscribe via RSS widget';
|
|
|
|
|
|
|
|
static $description = 'Shows a link allowing a user to subscribe to this blog via RSS.';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Return an absolute URL based on the BlogHolder
|
|
|
|
* that this widget is located on.
|
|
|
|
*
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
function RSSLink() {
|
|
|
|
Requirements::themedCSS('subscribersswidget');
|
2009-05-01 00:05:54 +02:00
|
|
|
$container = BlogTree::current();
|
|
|
|
if ($container) return $container->Link() . 'rss';
|
2008-12-10 07:49:06 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|