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