diff options
Diffstat (limited to 'resources/views/modules')
| -rw-r--r-- | resources/views/modules/family_nav/sidebar-family.phtml | 4 | ||||
| -rw-r--r-- | resources/views/modules/relatives/family.phtml | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/resources/views/modules/family_nav/sidebar-family.phtml b/resources/views/modules/family_nav/sidebar-family.phtml index b81e0be1f8..067cb0524f 100644 --- a/resources/views/modules/family_nav/sidebar-family.phtml +++ b/resources/views/modules/family_nav/sidebar-family.phtml @@ -21,7 +21,7 @@ use Fisharebest\Webtrees\Services\RelationshipService; </caption> <tbody> <?php foreach ($family->spouses() as $spouse) : ?> - <tr class="text-center wt-family-navigator-parent wt-gender-<?= $spouse->sex() ?>"> + <tr class="text-center wt-family-navigator-parent wt-sex-<?= strtolower($spouse->sex()) ?>"> <th class="align-middle wt-family-navigator-label" scope="row"> <?php if ($spouse === $individual) : ?> <?= app(RelationshipService::class)->getCloseRelationshipName($individual, $spouse) ?> @@ -69,7 +69,7 @@ use Fisharebest\Webtrees\Services\RelationshipService; <?php endforeach ?> <?php foreach ($family->children() as $child) : ?> - <tr class="text-center wt-family-navigator-child wt-gender-<?= $child->sex() ?>"> + <tr class="text-center wt-family-navigator-child wt-sex-<?= strtolower($child->sex()) ?>"> <th class="align-middle wt-family-navigator-label" scope="row"> <?php if ($child === $individual) : ?> <?= app(RelationshipService::class)->getCloseRelationshipName($individual, $child) ?> diff --git a/resources/views/modules/relatives/family.phtml b/resources/views/modules/relatives/family.phtml index 8690998521..9eea7d85f6 100644 --- a/resources/views/modules/relatives/family.phtml +++ b/resources/views/modules/relatives/family.phtml @@ -34,7 +34,7 @@ use Fisharebest\Webtrees\Services\RelationshipService; $found |= !$fact->isPendingDeletion(); $person = $fact->target(); if ($person instanceof Individual) { - $row_class = 'wt-gender-' . $person->sex(); + $row_class = 'wt-sex-' . strtolower($person->sex()); if ($fact->isPendingAddition()) { $row_class .= ' wt-new'; } elseif ($fact->isPendingDeletion()) { @@ -71,7 +71,7 @@ use Fisharebest\Webtrees\Services\RelationshipService; $person = $fact->target(); if ($person instanceof Individual) { $found |= !$fact->isPendingDeletion(); - $row_class = 'wt-gender-' . $person->sex(); + $row_class = 'wt-sex-' . strtolower($person->sex()); if ($fact->isPendingAddition()) { $row_class .= ' wt-new'; } elseif ($fact->isPendingDeletion()) { @@ -157,7 +157,7 @@ use Fisharebest\Webtrees\Services\RelationshipService; foreach ($family->facts(['CHIL'], false, $fam_access_level) as $fact) { $person = $fact->target(); if ($person instanceof Individual) { - $row_class = 'wt-gender-' . $person->sex(); + $row_class = 'wt-sex-' . strtolower($person->sex()); if ($fact->isPendingAddition()) { $child_number++; $row_class .= ' new'; |
