record(); $tree = $parent->tree(); [, $tag] = explode(':', $fact->tag()); $label = $fact->label(); $value = $fact->value(); $type = $fact->attribute('TYPE'); $id = $fact->id(); $element = Registry::elementFactory()->make($fact->tag()); // New or deleted facts need different styling $styles = []; if ($fact->isPendingAddition()) { $styles[] = 'wt-new'; } if ($fact->isPendingDeletion()) { $styles[] = 'wt-old'; } // Event of close relative if ($tag === 'EVEN' && $value === 'CLOSE_RELATIVE') { $value = ''; $styles[] = 'wt-relation-fact collapse'; } // Event of close associates if ($id === 'asso') { $styles[] = 'wt-associate-fact collapse'; } if ($element instanceof UnknownElement && $tree->getPreference('HIDE_GEDCOM_ERRORS') === '0') { $styles[] = 'd-none'; } // historical facts if ($id === 'histo') { $styles[] = 'wt-historic-fact collapse'; } // Use marriage type as the label. e.g. "Civil partnership" if ($tag === 'MARR') { $label = $fact->label(); $type = ''; } ?>
canEdit() && !in_array($tag, ['HUSB', 'WIFE', 'CHIL', 'FAMC', 'FAMS'], true)) : ?> $fact, 'url' => $record->url()]) ?> getPreference('SHOW_FACT_ICONS') === '1') : ?> target() instanceof Media) : ?>
target()->mediaFiles() as $media_file) : ?>
displayImage(100, 100, 'contain', []) ?>
target()->fullName() ?> target()->facts(['NOTE']) as $note) : ?> $note->gedcom(), 'parent' => $fact->target()->tag(), 'tree' => $fact->record()->tree()]) ?>
spouses()->filter(static fn ($individual): bool => $individual !== $record) as $spouse) : ?> fullName() ?> fullName() ?>
value($value, $tree) ?> target() instanceof Individual) : ?> findByComponent(ModuleChartInterface::class, $tree, Auth::user()) ->first(static fn (ModuleInterface $module): bool => $module instanceof RelationshipsChartModule) ?> getCloseRelationshipName($fact->target(), $record) ?>
make($fact->tag() . ':TYPE')->labelValue(I18N::translate($type), $tree) ?>
'true', 'fact' => $fact, 'record' => $record, 'time' => true]) ?> $fact, 'record' => $record]) ?>
gedcom(), $matches, PREG_SET_ORDER) ?> $match[0], 'parent' => $fact->tag() . ':' . $match[1], 'tree' => $tree]) ?>
$fact]) ?> $fact]) ?> $fact]) ?> $fact]) ?>