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>2017-09-05 07:38:21 +0300
committerGitHub <noreply@github.com>2017-09-05 07:38:21 +0300
commitb018cf1dad2f96dd15464b4617599298b5f02e3e (patch)
treea18702ac6e6c601cc22a47502811bd4bbcdb6908 /plugins/Referrers
parent8a23b7e718ed107abeba1efbfbfbdd2d6b9ab58e (diff)
Add a link to Campaign tracking docs + URL Builder + Marketing Campaigns Reporting plugin (#11997)
* Add a link to Campaign tracking docs + URL Builder + Marketing Campaigns Reporting plugin * Update UI tests
Diffstat (limited to 'plugins/Referrers')
-rw-r--r--plugins/Referrers/Reports/GetCampaigns.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/plugins/Referrers/Reports/GetCampaigns.php b/plugins/Referrers/Reports/GetCampaigns.php
index 1d375423d8..a1b5f6fd94 100644
--- a/plugins/Referrers/Reports/GetCampaigns.php
+++ b/plugins/Referrers/Reports/GetCampaigns.php
@@ -8,6 +8,7 @@
*/
namespace Piwik\Plugins\Referrers\Reports;
+use Piwik\EventDispatcher;
use Piwik\Piwik;
use Piwik\Plugin\ViewDataTable;
use Piwik\Plugins\Referrers\Columns\Campaign;
@@ -34,6 +35,20 @@ class GetCampaigns extends Base
$view->config->addTranslation('label', $this->dimension->getName());
$view->requestConfig->filter_limit = 25;
+
+ $this->configureFooterMessage($view);
}
+
+ protected function configureFooterMessage(ViewDataTable $view)
+ {
+ if ($this->isSubtableReport) {
+ // no footer message for subtables
+ return;
+ }
+
+ $out = '';
+ EventDispatcher::getInstance()->postEvent('Template.afterCampaignsReport', array(&$out));
+ $view->config->show_footer_message = $out;
+ }
}