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