2012-05-21 04:58:26 +02: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
|
|
|
|
*/
|
2012-09-20 06:36:01 +02:00
|
|
|
function getRSSLink() {
|
2012-05-21 04:58:26 +02:00
|
|
|
Requirements::themedCSS('subscribersswidget');
|
|
|
|
$container = BlogTree::current();
|
2013-01-18 05:58:34 +01:00
|
|
|
if ($container) return $container->Link('rss');
|
2012-05-21 04:58:26 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|