xref: /webtrees/resources/views/user-page-block.phtml (revision 10e0649788c8d7d4974d81c048ca2b225df8f22e)
1d70512abSGreg Roach<?php
2d70512abSGreg Roach
3*10e06497SGreg Roachdeclare(strict_types=1);
4*10e06497SGreg Roach
58e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageBlock;
6d70512abSGreg Roachuse Fisharebest\Webtrees\Module\ModuleBlockInterface;
7dc270d8cSGreg Roachuse Fisharebest\Webtrees\Tree;
8dc270d8cSGreg Roach
9dc270d8cSGreg Roach/**
10dc270d8cSGreg Roach * @var ModuleBlockInterface $block
11dc270d8cSGreg Roach * @var int                  $block_id
12dc270d8cSGreg Roach * @var Tree                 $tree
13dc270d8cSGreg Roach */
14d70512abSGreg Roach
15d70512abSGreg Roach?>
163caaa4d2SGreg Roach
17dd6b2bfcSGreg Roach<?php if ($block->loadAjax()) : ?>
18d4786c66SGreg Roach    <div class="wt-ajax-load" data-wt-ajax-url="<?= e(route(UserPageBlock::class, ['tree' => $tree->name(), 'block_id' => $block_id])) ?>"></div>
19dd6b2bfcSGreg Roach<?php else : ?>
203caaa4d2SGreg Roach    <?= $block->getBlock($tree, $block_id, ModuleBlockInterface::CONTEXT_USER_PAGE) ?>
21dd6b2bfcSGreg Roach<?php endif ?>
22