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