summaryrefslogtreecommitdiff
path: root/app/Module/FanChartModule.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2019-03-25 16:55:07 +0000
committerGreg Roach <fisharebest@webtrees.net>2019-03-26 15:59:06 +0000
commitb6c326d8b8798b83b744c4d4a669df5aa9f3e0c2 (patch)
tree4c59773e6195d2a8fed78db9f833840a127fb009 /app/Module/FanChartModule.php
parent2b29a33ec689ba87b1fb556ab9b17db481593ad9 (diff)
downloadwebtrees-b6c326d8b8798b83b744c4d4a669df5aa9f3e0c2.tar.gz
webtrees-b6c326d8b8798b83b744c4d4a669df5aa9f3e0c2.tar.bz2
webtrees-b6c326d8b8798b83b744c4d4a669df5aa9f3e0c2.zip
Replace Bootstrap4 class with views
Diffstat (limited to 'app/Module/FanChartModule.php')
-rw-r--r--app/Module/FanChartModule.php12
1 files changed, 4 insertions, 8 deletions
diff --git a/app/Module/FanChartModule.php b/app/Module/FanChartModule.php
index e6f1335cbe..7045c283a6 100644
--- a/app/Module/FanChartModule.php
+++ b/app/Module/FanChartModule.php
@@ -343,16 +343,12 @@ class FanChartModule extends AbstractModule implements ModuleChartInterface
$areas .= '" href="#' . $person->xref() . '"';
$html .= '<div id="' . $person->xref() . '" class="fan_chart_menu">';
$html .= '<div class="person_box"><div class="details1">';
- $html .= '<a href="' . e($person->url()) . '" class="name1">' . $name;
- if ($addname) {
- $html .= $addname;
- }
- $html .= '</a>';
- $html .= '<ul class="charts">';
+ $html .= '<div class="charts">';
+ $html .= '<a href="' . e($person->url()) . '" class="dropdown-item">' . $name. '</a>';
foreach ($theme->individualBoxMenu($person) as $menu) {
- $html .= $menu->getMenuAsList();
+ $html .= '<a href="' . e($menu->getLink()) . '" class="dropdown-item p-1 ' . e($menu->getClass()) . '">' . $menu->getLabel() . '</a>';
}
- $html .= '</ul>';
+ $html .= '</div>';
$html .= '</div></div>';
$html .= '</div>';
$areas .= ' alt="' . strip_tags($person->fullName()) . '" title="' . strip_tags($person->fullName()) . '">';