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:
authorMatthieu Aubry <mattab@users.noreply.github.com>2016-11-15 18:14:15 +0300
committerGitHub <noreply@github.com>2016-11-15 18:14:15 +0300
commitcd6af07f42a9558c2243b44dc3c45c4963b9a944 (patch)
tree802a311abcdab482ec4ab8bc9ba7a81b28b981c7 /plugins/Events
parent2258605179eaf3e86cf5d0bf2c1f367011abeac6 (diff)
Link to plugins (#10862)
* new SecurityInfo plugin release * Linking to plugins * Port * fix system test * Footer event message * Content tracking ad * No infobox in widget in dashboard to keep it lean
Diffstat (limited to 'plugins/Events')
-rw-r--r--plugins/Events/Reports/Base.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/plugins/Events/Reports/Base.php b/plugins/Events/Reports/Base.php
index a43ba0dbfa..005e1dda5a 100644
--- a/plugins/Events/Reports/Base.php
+++ b/plugins/Events/Reports/Base.php
@@ -8,6 +8,8 @@
*/
namespace Piwik\Plugins\Events\Reports;
+use Piwik\EventDispatcher;
+use Piwik\Plugin\ViewDataTable;
use Piwik\Plugins\Events\API;
use Piwik\Plugins\Events\Columns\Metrics\AverageEventValue;
use Piwik\Report\ReportWidgetFactory;
@@ -36,5 +38,22 @@ abstract class Base extends \Piwik\Plugin\Report
}
}
+ public function configureView(ViewDataTable $view)
+ {
+ $this->configureFooterMessage($view);
+ }
+
+ protected function configureFooterMessage(ViewDataTable $view)
+ {
+ if ($this->isSubtableReport) {
+ // no footer message for subtables
+ return;
+ }
+
+ $out = '';
+ EventDispatcher::getInstance()->postEvent('Template.afterEventsReport', array(&$out));
+ $view->config->show_footer_message = $out;
+ }
+
}