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@gmail.com>2015-01-08 05:27:47 +0300
committerThomas Steur <thomas.steur@gmail.com>2015-01-08 05:27:47 +0300
commit6e92f58bbe7c0d4ee5a8da54bee3f898363ab6cd (patch)
treeda0b2fa746a04adbb38fd744c5944a1dbf0e3836 /plugins/VisitorInterest
parent9a79d2fd8e17d7646895e6bf194beb4a4d20536b (diff)
change the layout on the engagement page to show all the reports next to each other
Diffstat (limited to 'plugins/VisitorInterest')
-rw-r--r--plugins/VisitorInterest/VisitorInterest.php10
-rw-r--r--plugins/VisitorInterest/templates/index.twig30
2 files changed, 19 insertions, 21 deletions
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 = '<div id="leftcolumn">';
- }
-
public static function footerVisitsFrequency(&$out)
{
- $out = '</div>
- <div id="rightcolumn">
- ';
$out .= FrontController::getInstance()->fetchDispatch('VisitorInterest', 'index');
- $out .= '</div>';
}
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 @@
-<h2 piwik-enriched-headline>{{ 'VisitorInterest_VisitsPerDuration'|translate }}</h2>
-{{ dataTableNumberOfVisitsPerVisitDuration|raw }}
-
-<h2 piwik-enriched-headline>{{ 'VisitorInterest_VisitsPerNbOfPages'|translate }}</h2>
-{{ dataTableNumberOfVisitsPerPage|raw }}
-
-<h2 piwik-enriched-headline>{{ 'VisitorInterest_visitsByVisitCount'|translate }}</h2>
-{{ dataTableNumberOfVisitsByVisitNum|raw }}
-
-<h2 piwik-enriched-headline>{{ 'VisitorInterest_VisitsByDaysSinceLast'|translate }}</h2>
-{{ dataTableNumberOfVisitsByDaysSinceLast|raw }}
+<br />
+<div id="leftcolumn">
+ <h2 piwik-enriched-headline>{{ 'VisitorInterest_VisitsPerDuration'|translate }}</h2>
+ {{ dataTableNumberOfVisitsPerVisitDuration|raw }}
+</div>
+<div id="rightcolumn">
+ <h2 piwik-enriched-headline>{{ 'VisitorInterest_VisitsPerNbOfPages'|translate }}</h2>
+ {{ dataTableNumberOfVisitsPerPage|raw }}
+</div>
+<div style="clear:both"></div>
+<div id="leftcolumn">
+ <h2 piwik-enriched-headline>{{ 'VisitorInterest_visitsByVisitCount'|translate }}</h2>
+ {{ dataTableNumberOfVisitsByVisitNum|raw }}
+</div>
+<div id="rightcolumn">
+ <h2 piwik-enriched-headline>{{ 'VisitorInterest_VisitsByDaysSinceLast'|translate }}</h2>
+ {{ dataTableNumberOfVisitsByDaysSinceLast|raw }}
+</div>
+<div style="clear:both"></div> \ No newline at end of file