From 28941e3c677f7739a8b5dc01eb297ca0c5ad75a1 Mon Sep 17 00:00:00 2001 From: Greg Roach Date: Wed, 2 Mar 2016 23:01:17 +0000 Subject: Stats block layout --- app/Module/FamilyTreeStatisticsModule.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'app/Module/FamilyTreeStatisticsModule.php') diff --git a/app/Module/FamilyTreeStatisticsModule.php b/app/Module/FamilyTreeStatisticsModule.php index 151b7987e5..76ce7b9bd3 100644 --- a/app/Module/FamilyTreeStatisticsModule.php +++ b/app/Module/FamilyTreeStatisticsModule.php @@ -191,6 +191,7 @@ class FamilyTreeStatisticsModule extends AbstractModule implements ModuleBlockIn } $content .= ''; } + $content .= ''; if ($stat_link) { $content .= '
' . I18N::translate('View statistics as graphs') . '
'; } @@ -198,7 +199,7 @@ class FamilyTreeStatisticsModule extends AbstractModule implements ModuleBlockIn if ($show_common_surnames) { $surnames = FunctionsDb::getCommonSurnames($WT_TREE->getPreference('COMMON_NAMES_THRESHOLD'), $WT_TREE); if (count($surnames) > 0) { - $content .= '

' . I18N::translate('Most common surnames') . '

'; + $content .= '

' . I18N::translate('Most common surnames') . '

'; $content .= '
'; $i = 0; foreach ($surnames as $indexval => $surname) { @@ -213,7 +214,7 @@ class FamilyTreeStatisticsModule extends AbstractModule implements ModuleBlockIn $content .= '
'; } } - $content .= '
'; + if ($template) { return Theme::theme()->formatBlock($id, $title, $class, $content); } else { -- cgit v1.3