summaryrefslogtreecommitdiff
path: root/app/Module/FamilyNavigatorModule.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Module/FamilyNavigatorModule.php')
-rw-r--r--app/Module/FamilyNavigatorModule.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/Module/FamilyNavigatorModule.php b/app/Module/FamilyNavigatorModule.php
index 7a1918be44..2f9a0393fe 100644
--- a/app/Module/FamilyNavigatorModule.php
+++ b/app/Module/FamilyNavigatorModule.php
@@ -123,7 +123,8 @@ class FamilyNavigatorModule extends AbstractModule implements ModuleSidebarInter
<tbody>
<?php
foreach ($family->getSpouses() as $spouse) {
- $menu = new Menu(Functions::getCloseRelationshipName($controller->record, $spouse));
+ $icon = $controller->record === $spouse ? '<i class="icon-selected"></i>' : '';
+ $menu = new Menu($icon . Functions::getCloseRelationshipName($controller->record, $spouse));
$menu->addSubmenu(new Menu($this->getParents($spouse)));
?>
<tr class="text-center wt-parent wt-gender-<?= $spouse->getSex() ?>">
@@ -149,7 +150,8 @@ class FamilyNavigatorModule extends AbstractModule implements ModuleSidebarInter
}
foreach ($family->getChildren() as $child) {
- $menu = new Menu(Functions::getCloseRelationshipName($controller->record, $child));
+ $icon = $controller->record === $child ? '<i class="icon-selected"></i>' : '';
+ $menu = new Menu($icon . Functions::getCloseRelationshipName($controller->record, $child));
$menu->addSubmenu(new Menu($this->getFamily($child)));
?>
<tr class="text-center wt-child wt-gender-<?= $child->getSex() ?>">