|
@@ 356-361 (lines=6) @@
|
| 353 |
|
$html .= '</td>'; |
| 354 |
|
|
| 355 |
|
// Birth anniversary |
| 356 |
|
if (isset($birth_dates[0]) && $birth_dates[0]->gregorianYear() >= 1550 && $birth_dates[0]->gregorianYear() < 2030 && !isset($unique_indis[$individual->getXref()])) { |
| 357 |
|
$birt_by_decade[(int) ($birth_dates[0]->gregorianYear() / 10) * 10] .= $individual->getSex(); |
| 358 |
|
$anniversary = Date::getAge($birth_dates[0], null, 2); |
| 359 |
|
} else { |
| 360 |
|
$anniversary = ''; |
| 361 |
|
} |
| 362 |
|
$html .= '<td class="center" data-sort="' . -$individual->getEstimatedBirthDate()->julianDay() . '">' . $anniversary . '</td>'; |
| 363 |
|
|
| 364 |
|
// Birth place |
|
@@ 391-396 (lines=6) @@
|
| 388 |
|
$html .= '</td>'; |
| 389 |
|
|
| 390 |
|
// Death anniversary |
| 391 |
|
if (isset($death_dates[0]) && $death_dates[0]->gregorianYear() >= 1550 && $death_dates[0]->gregorianYear() < 2030 && !isset($unique_indis[$individual->getXref()])) { |
| 392 |
|
$deat_by_decade[(int) ($death_dates[0]->gregorianYear() / 10) * 10] .= $individual->getSex(); |
| 393 |
|
$anniversary = Date::getAge($death_dates[0], null, 2); |
| 394 |
|
} else { |
| 395 |
|
$anniversary = ''; |
| 396 |
|
} |
| 397 |
|
$html .= '<td class="center" data-sort="' . -$individual->getEstimatedDeathDate()->julianDay() . '">' . $anniversary . '</td>'; |
| 398 |
|
|
| 399 |
|
// Age at death |