From d93f11b54705fec36138c6e97eb7d00c55354c23 Mon Sep 17 00:00:00 2001 From: Greg Roach Date: Sat, 21 May 2016 18:32:12 +0100 Subject: Family tree statistics - layout --- app/Module/FamilyTreeStatisticsModule.php | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) (limited to 'app/Module/FamilyTreeStatisticsModule.php') diff --git a/app/Module/FamilyTreeStatisticsModule.php b/app/Module/FamilyTreeStatisticsModule.php index e799f22755..e01b731476 100644 --- a/app/Module/FamilyTreeStatisticsModule.php +++ b/app/Module/FamilyTreeStatisticsModule.php @@ -86,18 +86,18 @@ class FamilyTreeStatisticsModule extends AbstractModule implements ModuleBlockIn } else { $title = ''; } - $title .= $this->getTitle(); + $title .= $this->getTitle() . ' — ' . $WT_TREE->getTitleHtml(); $stats = new Stats($WT_TREE); - $content = '' . $WT_TREE->getTitleHtml() . '
'; + $content = ''; if ($show_last_update) { - $content .= '
' . /* I18N: %s is a date */ - I18N::translate('This family tree was last updated on %s.', strip_tags($stats->gedcomUpdated())) . '
'; + $content .= '

' . /* I18N: %s is a date */ + I18N::translate('This family tree was last updated on %s.', strip_tags($stats->gedcomUpdated())) . '

'; } - /** Responsive Design */ + /** Responsive Design */ $content .= '
'; if ($stat_indi) { $content .= '
' . I18N::translate('Individuals') . '
'; @@ -194,7 +194,11 @@ class FamilyTreeStatisticsModule extends AbstractModule implements ModuleBlockIn } $content .= '
'; if ($stat_link && Module::isActiveChart($WT_TREE, 'statistics_chart')) { - $content .= '
' . I18N::translate('View the statistics as graphs') . '
'; + $content .= '
'; + $content .= '

'; + $content .= '' . I18N::translate('View the statistics as graphs') . ''; + $content .= '

'; + $content .= '
'; } if ($show_common_surnames) { @@ -206,8 +210,11 @@ class FamilyTreeStatisticsModule extends AbstractModule implements ModuleBlockIn if ($surnames) { $content .= '
'; - $content .= '

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

'; - $content .= '
' . $surnames . '
'; + $content .= '

'; + $content .= '' . I18N::translate('Most common surnames') . ''; + $content .= '
'; + $content .= '' . $surnames . ''; + $content .= '

'; $content .= '
'; } } -- cgit v1.3