Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@googlemail.com>2014-06-06 07:50:06 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-06-06 07:50:06 +0400
commitbedfa1c9de069801d58de9642c92f8681c69d7bb (patch)
tree7abafc84eb446736dbe9df5f6c5e8d7b4d7aaf1f /plugins/ExampleRssWidget/Widgets.php
parentb457fcc96885ae6a33896be4f1e98aec9efaf0fa (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.php24
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');
+ }
+
+}