diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-06-06 07:50:06 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-06-06 07:50:06 +0400 |
commit | bedfa1c9de069801d58de9642c92f8681c69d7bb (patch) | |
tree | 7abafc84eb446736dbe9df5f6c5e8d7b4d7aaf1f /plugins/ExampleRssWidget/Widgets.php | |
parent | b457fcc96885ae6a33896be4f1e98aec9efaf0fa (diff) |
working on simplifying widgets. Pushing into a branch since I am not 100% happy with it yet.
Diffstat (limited to 'plugins/ExampleRssWidget/Widgets.php')
-rw-r--r-- | plugins/ExampleRssWidget/Widgets.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/plugins/ExampleRssWidget/Widgets.php b/plugins/ExampleRssWidget/Widgets.php new file mode 100644 index 0000000000..56444cd9c5 --- /dev/null +++ b/plugins/ExampleRssWidget/Widgets.php @@ -0,0 +1,24 @@ +<?php +/** + * Piwik - Open source web analytics + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later + * + */ +namespace Piwik\Plugins\ExampleRssWidget; + +use Piwik\WidgetsList; + +class Widgets extends \Piwik\Plugin\Widgets +{ + public function configure(WidgetsList $widgetsList) + { + $category = 'Example Widgets'; + $controller = 'ExampleRssWidget'; + + $widgetsList->add($category, 'Piwik.org Blog', $controller, 'rssPiwik'); + $widgetsList->add($category, 'Piwik Changelog', $controller, 'rssChangelog'); + } + +} |