xref: /webtrees/resources/views/user-page.phtml (revision 0115bc1678cafd957052cd2d256563ad3e242cc1)
1<h2 class="text-center">
2    <?= $title ?>
3</h2>
4
5<div class="row">
6    <?php if (empty($main_blocks) || empty($side_blocks)) : ?>
7        <div class="col-md-12 wt-main-blocks">
8            <?php foreach ($main_blocks + $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