diff options
| author | Greg Roach <fisharebest@gmail.com> | 2016-03-02 23:01:17 +0000 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2016-03-02 23:01:17 +0000 |
| commit | 28941e3c677f7739a8b5dc01eb297ca0c5ad75a1 (patch) | |
| tree | 2b41bcab8f4cbd7fd6683c652c0b0239592bd1f0 | |
| parent | 902b4e1aefa635ff6831f0b3401bf4792323e474 (diff) | |
| download | webtrees-28941e3c677f7739a8b5dc01eb297ca0c5ad75a1.tar.gz webtrees-28941e3c677f7739a8b5dc01eb297ca0c5ad75a1.tar.bz2 webtrees-28941e3c677f7739a8b5dc01eb297ca0c5ad75a1.zip | |
Stats block layout
| -rw-r--r-- | app/Module/FamilyTreeStatisticsModule.php | 5 |
1 files changed, 3 insertions, 2 deletions
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 .= '</div>'; } + $content .= '</div>'; if ($stat_link) { $content .= '<div class="clearfloat"><a href="statistics.php?ged=' . $WT_TREE->getNameUrl() . '" rel="nofollow"><b>' . I18N::translate('View statistics as graphs') . '</b></a></div>'; } @@ -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 .= '<p><b>' . I18N::translate('Most common surnames') . '</b></p>'; + $content .= '<div class="clearfloat"><p><b>' . I18N::translate('Most common surnames') . '</b></p>'; $content .= '<div class="common_surnames">'; $i = 0; foreach ($surnames as $indexval => $surname) { @@ -213,7 +214,7 @@ class FamilyTreeStatisticsModule extends AbstractModule implements ModuleBlockIn $content .= '</div>'; } } - $content .= '</div>'; + if ($template) { return Theme::theme()->formatBlock($id, $title, $class, $content); } else { |
