diff options
Diffstat (limited to 'plugins/VisitorInterest')
-rw-r--r-- | plugins/VisitorInterest/VisitorInterest.php | 10 | ||||
-rw-r--r-- | plugins/VisitorInterest/templates/index.twig | 30 |
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 |