<?php use Fisharebest\Webtrees\Module\ModuleBlockInterface; ?>

<?php if ($block->loadAjax()) : ?>
    <div class="wt-ajax-load" data-ajax-url="<?= e(route('user-page-block', ['ged' => $tree->name(), 'block_id' => $block_id])) ?>">
    </div>
<?php else : ?>
    <?= $block->getBlock($tree, $block_id, ModuleBlockInterface::CONTEXT_USER_PAGE) ?>
<?php endif ?>
