facts(['HUSB'], false, $fam_access_level) as $fact) {
$found |= !$fact->isPendingDeletion();
$person = $fact->target();
if ($person instanceof Individual) {
$row_class = 'wt-gender-' . $person->getSex();
if ($fact->isPendingAddition()) {
$row_class .= ' new';
} elseif ($fact->isPendingDeletion()) {
$row_class .= ' old';
}
?>
= $individual === $person ? '' : '' ?>
= Functions::getCloseRelationshipName($individual, $person) ?>
|
= Theme::theme()->individualBoxLarge($person) ?>
|
canEdit()) {
?>
|
= I18N::translate('Add a husband to this family') ?>
|
facts(['WIFE'], false, $fam_access_level) as $fact) {
$person = $fact->target();
if ($person instanceof Individual) {
$found |= !$fact->isPendingDeletion();
$row_class = 'wt-gender-' . $person->getSex();
if ($fact->isPendingAddition()) {
$row_class .= ' new';
} elseif ($fact->isPendingDeletion()) {
$row_class .= ' old';
}
?>
= $individual === $person ? '' : '' ?>
= Functions::getCloseRelationshipName($individual, $person) ?>
|
= Theme::theme()->individualBoxLarge($person) ?>
|
canEdit()) { ?>
|
= I18N::translate('Add a wife to this family') ?>
|
facts(array_merge(Gedcom::MARRIAGE_EVENTS, Gedcom::DIVORCE_EVENTS), true) as $fact) {
$found |= !$fact->isPendingDeletion();
if ($fact->isPendingAddition()) {
$row_class = 'new';
} elseif ($fact->isPendingDeletion()) {
$row_class = 'old';
} else {
$row_class = '';
}
?>
|
= GedcomTag::getLabelValue($fact->getTag(), $fact->date()->display() . ' — ' . $fact->place()->fullName()) ?>
|
isOK() && $fact->date()->isOK()) {
$prev = $fact->date();
}
}
if (!$found && $family->canShow() && $family->canEdit()) {
?>
|
= I18N::translate('Add marriage details') ?>
|
facts(['CHIL'], false, $fam_access_level) as $fact) {
$person = $fact->target();
if ($person instanceof Individual) {
$row_class = 'wt-gender-' . $person->getSex();
if ($fact->isPendingAddition()) {
$child_number++;
$row_class .= ' new';
} elseif ($fact->isPendingDeletion()) {
$row_class .= ' old';
} else {
$child_number++;
}
$next = new Date('');
foreach ($person->facts(Gedcom::BIRTH_EVENTS, true) as $bfact) {
if ($bfact->date()->isOK()) {
$next = $bfact->date();
break;
}
}
?>
isOK() && $next->isOK()) : ?>
maximumJulianDay() - $prev->minimumJulianDay(); ?>
1 && $days > 1 && $days < 240) : ?>
= 24) : ?>
= I18N::plural('%s year', '%s years', round($months / 12), I18N::number(round($months / 12))) ?>
= I18N::plural('%s month', '%s months', $months, I18N::number($months)) ?>
= Functions::getCloseRelationshipName($individual, $person) ?>
|
= Theme::theme()->individualBoxLarge($person) ?>
|
canEdit()) : ?>
getChildren()) > 1) : ?>
= I18N::translate('Re-order children') ?>
|
= I18N::translate('Add a son or daughter') ?>
= I18N::translate('Add a brother or sister') ?>
|