1*b315f3e1SGreg Roach<?php 2*b315f3e1SGreg Roach 3*b315f3e1SGreg Roachuse Fisharebest\Webtrees\Fact; 4*b315f3e1SGreg Roach 5*b315f3e1SGreg Roach/** 6*b315f3e1SGreg Roach * @var Fact $fact 7*b315f3e1SGreg Roach */ 8*b315f3e1SGreg Roach 9*b315f3e1SGreg Roach?> 10*b315f3e1SGreg Roach 11*b315f3e1SGreg Roach<?php if (preg_match_all('/\n(2 OBJE\b.*(?:\n[^2].*)*)/', $fact->gedcom(), $matches, PREG_SET_ORDER) > 0) : ?> 12*b315f3e1SGreg Roach <div class="wt-fact-media mt-2"> 13*b315f3e1SGreg Roach <?php foreach ($matches as $match) : ?> 14*b315f3e1SGreg Roach <?= view('fact-gedcom-fields', ['gedcom' => $match[1], 'parent' => $fact->tag(), 'tree' => $fact->record()->tree()]) ?> 15*b315f3e1SGreg Roach <?php endforeach ?> 16*b315f3e1SGreg Roach </div> 17*b315f3e1SGreg Roach<?php endif ?> 18