xref: /webtrees/resources/views/tree-page-block.phtml (revision 6e9fd7b21d2d8b46464e15f841b8e5e9bc12f6b6)
1<?php
2
3use Fisharebest\Webtrees\Http\RequestHandlers\TreePageBlock;
4use Fisharebest\Webtrees\Module\ModuleBlockInterface;
5use Fisharebest\Webtrees\Tree;
6
7/**
8 * @var ModuleBlockInterface $block
9 * @var int                  $block_id
10 * @var Tree                 $tree
11 */
12
13?>
14
15<?php if ($block->loadAjax()) : ?>
16    <div class="wt-ajax-load" data-wt-ajax-url="<?= e(route(TreePageBlock::class, ['tree' => $tree->name(), 'block_id' => $block_id])) ?>"></div>
17<?php else : ?>
18    <?= $block->getBlock($tree, $block_id, ModuleBlockInterface::CONTEXT_TREE_PAGE) ?>
19<?php endif ?>
20