record(); $tree = $individual->tree(); // Create a fake record, so we can extract the formatted NAME value from it. $fake_individual = Registry::individualFactory()->new( 'xref', "0 @xref@ INDI\n1 DEAT Y\n" . $fact->gedcom(), null, $tree ); $fake_individual->setPrimaryName(0); // Make sure we use the name from "1 NAME" $container_class = ''; if ($fact->isPendingDeletion()) { $container_class = 'wt-old'; } elseif ($fact->isPendingAddition()) { $container_class = 'wt-new'; } ?>