|
@@ 736-753 (lines=18) @@
|
| 733 |
|
list($surn_givn, $givn_surn) = self::sortableNames($husb); |
| 734 |
|
|
| 735 |
|
$html .= '<td colspan="2" data-sort="' . Html::escape($givn_surn) . '">'; |
| 736 |
|
foreach ($husb->getAllNames() as $num => $name) { |
| 737 |
|
if ($name['type'] == 'NAME') { |
| 738 |
|
$title = ''; |
| 739 |
|
} else { |
| 740 |
|
$title = 'title="' . strip_tags(GedcomTag::getLabel($name['type'], $husb)) . '"'; |
| 741 |
|
} |
| 742 |
|
if ($num == $husb->getPrimaryName()) { |
| 743 |
|
$class = ' class="name2"'; |
| 744 |
|
$sex_image = $husb->getSexImage(); |
| 745 |
|
} else { |
| 746 |
|
$class = ''; |
| 747 |
|
$sex_image = ''; |
| 748 |
|
} |
| 749 |
|
// Only show married names if they are the name we are filtering by. |
| 750 |
|
if ($name['type'] != '_MARNM' || $num == $husb->getPrimaryName()) { |
| 751 |
|
$html .= '<a ' . $title . ' href="' . $family->getHtmlUrl() . '"' . $class . '>' . $name['full'] . '</a>' . $sex_image . '<br>'; |
| 752 |
|
} |
| 753 |
|
} |
| 754 |
|
// Husband parents |
| 755 |
|
$html .= $husb->getPrimaryParentsNames('parents details1', 'none'); |
| 756 |
|
$html .= '</td>'; |
|
@@ 779-796 (lines=18) @@
|
| 776 |
|
// Extract Given names and Surnames for sorting |
| 777 |
|
list($surn_givn, $givn_surn) = self::sortableNames($wife); |
| 778 |
|
$html .= '<td colspan="2" data-sort="' . Html::escape($givn_surn) . '">'; |
| 779 |
|
foreach ($wife->getAllNames() as $num => $name) { |
| 780 |
|
if ($name['type'] == 'NAME') { |
| 781 |
|
$title = ''; |
| 782 |
|
} else { |
| 783 |
|
$title = 'title="' . strip_tags(GedcomTag::getLabel($name['type'], $wife)) . '"'; |
| 784 |
|
} |
| 785 |
|
if ($num == $wife->getPrimaryName()) { |
| 786 |
|
$class = ' class="name2"'; |
| 787 |
|
$sex_image = $wife->getSexImage(); |
| 788 |
|
} else { |
| 789 |
|
$class = ''; |
| 790 |
|
$sex_image = ''; |
| 791 |
|
} |
| 792 |
|
// Only show married names if they are the name we are filtering by. |
| 793 |
|
if ($name['type'] != '_MARNM' || $num == $wife->getPrimaryName()) { |
| 794 |
|
$html .= '<a ' . $title . ' href="' . $family->getHtmlUrl() . '"' . $class . '>' . $name['full'] . '</a>' . $sex_image . '<br>'; |
| 795 |
|
} |
| 796 |
|
} |
| 797 |
|
// Wife parents |
| 798 |
|
$html .= $wife->getPrimaryParentsNames('parents details1', 'none'); |
| 799 |
|
$html .= '</td>'; |