xref: /webtrees/resources/views/user-page.phtml (revision 9f9acdbc09170c04c1e150c36ee57d49027e314a)
1<h2 class="text-center">
2    <?= $title ?>
3</h2>
4
5<div class="row">
6    <?php if ($main_blocks->isEmpty() || $side_blocks->isEmpty()) : ?>
7        <div class="col-md-12 wt-main-blocks">
8            <?php foreach ($main_blocks->concat($side_blocks) as $block_id => $block) : ?>
9                <?= view('user-page-block', ['block_id' => $block_id, 'block' => $block, 'tree' => $tree]) ?>
10            <?php endforeach ?>
11        </div>
12    <?php else : ?>
13        <div class="col-md-8 wt-main-blocks">
14            <?php foreach ($main_blocks as $block_id => $block) : ?>
15                <?= view('user-page-block', ['block_id' => $block_id, 'block' => $block, 'tree' => $tree]) ?>
16            <?php endforeach ?>
17        </div>
18        <div class="col-md-4 wt-side-blocks">
19            <?php foreach ($side_blocks as $block_id => $block) : ?>
20                <?= view('user-page-block', ['block_id' => $block_id, 'block' => $block, 'tree' => $tree]) ?>
21            <?php endforeach ?>
22        </div>
23    <?php endif ?>
24</div>
25