From 6e92f58bbe7c0d4ee5a8da54bee3f898363ab6cd Mon Sep 17 00:00:00 2001 From: Thomas Steur Date: Thu, 8 Jan 2015 02:27:47 +0000 Subject: change the layout on the engagement page to show all the reports next to each other --- plugins/VisitorInterest/VisitorInterest.php | 10 ---------- plugins/VisitorInterest/templates/index.twig | 30 ++++++++++++++++++---------- 2 files changed, 19 insertions(+), 21 deletions(-) (limited to 'plugins/VisitorInterest') diff --git a/plugins/VisitorInterest/VisitorInterest.php b/plugins/VisitorInterest/VisitorInterest.php index b1efd31d0f..c5fdac3711 100644 --- a/plugins/VisitorInterest/VisitorInterest.php +++ b/plugins/VisitorInterest/VisitorInterest.php @@ -30,22 +30,12 @@ class VisitorInterest extends \Piwik\Plugin function postLoad() { - Piwik::addAction('Template.headerVisitsFrequency', array('Piwik\Plugins\VisitorInterest\VisitorInterest', 'headerVisitsFrequency')); Piwik::addAction('Template.footerVisitsFrequency', array('Piwik\Plugins\VisitorInterest\VisitorInterest', 'footerVisitsFrequency')); } - public static function headerVisitsFrequency(&$out) - { - $out = '
'; - } - public static function footerVisitsFrequency(&$out) { - $out = '
-
- '; $out .= FrontController::getInstance()->fetchDispatch('VisitorInterest', 'index'); - $out .= '
'; } public function extendVisitorDetails(&$visitor, $details) diff --git a/plugins/VisitorInterest/templates/index.twig b/plugins/VisitorInterest/templates/index.twig index 359d43608f..2ffae16c8f 100644 --- a/plugins/VisitorInterest/templates/index.twig +++ b/plugins/VisitorInterest/templates/index.twig @@ -1,11 +1,19 @@ -

{{ 'VisitorInterest_VisitsPerDuration'|translate }}

-{{ dataTableNumberOfVisitsPerVisitDuration|raw }} - -

{{ 'VisitorInterest_VisitsPerNbOfPages'|translate }}

-{{ dataTableNumberOfVisitsPerPage|raw }} - -

{{ 'VisitorInterest_visitsByVisitCount'|translate }}

-{{ dataTableNumberOfVisitsByVisitNum|raw }} - -

{{ 'VisitorInterest_VisitsByDaysSinceLast'|translate }}

-{{ dataTableNumberOfVisitsByDaysSinceLast|raw }} +
+
+

{{ 'VisitorInterest_VisitsPerDuration'|translate }}

+ {{ dataTableNumberOfVisitsPerVisitDuration|raw }} +
+
+

{{ 'VisitorInterest_VisitsPerNbOfPages'|translate }}

+ {{ dataTableNumberOfVisitsPerPage|raw }} +
+
+
+

{{ 'VisitorInterest_visitsByVisitCount'|translate }}

+ {{ dataTableNumberOfVisitsByVisitNum|raw }} +
+
+

{{ 'VisitorInterest_VisitsByDaysSinceLast'|translate }}

+ {{ dataTableNumberOfVisitsByDaysSinceLast|raw }} +
+
\ No newline at end of file -- cgit v1.2.3