xref: /webtrees/resources/views/user-page-block.phtml (revision 6b4dc746d4f08ae2d31f5db469ac67a13688bef6)
1<?php
2
3use Fisharebest\Webtrees\Http\RequestHandlers\UserPageBlock;
4use Fisharebest\Webtrees\Module\ModuleBlockInterface;
5
6?>
7
8<?php if ($block->loadAjax()) : ?>
9    <div class="wt-ajax-load" data-ajax-url="<?= e(route(UserPageBlock::class, ['tree' => $tree->name(), 'block_id' => $block_id])) ?>"></div>
10<?php else : ?>
11    <?= $block->getBlock($tree, $block_id, ModuleBlockInterface::CONTEXT_USER_PAGE) ?>
12<?php endif ?>
13