|
@@ 218-222 (lines=5) @@
|
| 215 |
|
echo FunctionsPrint::formatFactDate($event, $record, false, false); |
| 216 |
|
} elseif ($record instanceof Family) { |
| 217 |
|
echo $gdate->display(); |
| 218 |
|
if ($record->getHusband() && $record->getHusband()->getBirthDate()->isOK()) { |
| 219 |
|
$ageh = FunctionsDate::getAgeAtEvent(Date::getAgeGedcom($record->getHusband()->getBirthDate(), $gdate)); |
| 220 |
|
} else { |
| 221 |
|
$ageh = null; |
| 222 |
|
} |
| 223 |
|
if ($record->getWife() && $record->getWife()->getBirthDate()->isOK()) { |
| 224 |
|
$agew = FunctionsDate::getAgeAtEvent(Date::getAgeGedcom($record->getWife()->getBirthDate(), $gdate)); |
| 225 |
|
} else { |
|
@@ 223-227 (lines=5) @@
|
| 220 |
|
} else { |
| 221 |
|
$ageh = null; |
| 222 |
|
} |
| 223 |
|
if ($record->getWife() && $record->getWife()->getBirthDate()->isOK()) { |
| 224 |
|
$agew = FunctionsDate::getAgeAtEvent(Date::getAgeGedcom($record->getWife()->getBirthDate(), $gdate)); |
| 225 |
|
} else { |
| 226 |
|
$agew = null; |
| 227 |
|
} |
| 228 |
|
if ($ageh && $agew) { |
| 229 |
|
echo '<span class="age"> ', I18N::translate('Husband’s age'), ' ', $ageh, ' ', I18N::translate('Wife’s age'), ' ', $agew, '</span>'; |
| 230 |
|
} elseif ($ageh) { |