xref: /webtrees/resources/views/individual-page.phtml (revision c1f982bd447ec3287562442cfee7e98387f793b9)
12c3dad18SGreg Roach<?php
2852ede8cSGreg Roach
3dc270d8cSGreg Roachuse Fisharebest\Webtrees\Fact;
42c3dad18SGreg Roachuse Fisharebest\Webtrees\I18N;
52c3dad18SGreg Roachuse Fisharebest\Webtrees\Individual;
6dc270d8cSGreg Roachuse Fisharebest\Webtrees\Media;
7dc270d8cSGreg Roachuse Fisharebest\Webtrees\Module\ModuleSidebarInterface;
8dc270d8cSGreg Roachuse Fisharebest\Webtrees\Module\ModuleTabInterface;
9054771e9SGreg Roachuse Fisharebest\Webtrees\Tree;
10828e3b20SGreg Roachuse Fisharebest\Webtrees\User;
112c3dad18SGreg Roachuse Illuminate\Support\Collection;
122c3dad18SGreg Roach
132c3dad18SGreg Roach/**
14054771e9SGreg Roach * @var string                                 $age
150ea4a3f2SGreg Roach * @var bool                                   $can_upload_media
1636779af1SGreg Roach * @var Collection<int,Fact>                   $clipboard_facts
1736779af1SGreg Roach * @var Collection<int,Media>                  $individual_media
180f5fd22fSGreg Roach * @var Individual                             $record
1936779af1SGreg Roach * @var Collection<int,string>                 $shares
2036779af1SGreg Roach * @var Collection<int,ModuleSidebarInterface> $sidebars
2136779af1SGreg Roach * @var Collection<int,ModuleTabInterface>     $tabs
22054771e9SGreg Roach * @var Tree                                   $tree
2336779af1SGreg Roach * @var Collection<int,User>                   $users
242c3dad18SGreg Roach */
252c3dad18SGreg Roach?>
26dd6b2bfcSGreg Roach
270f5fd22fSGreg Roach<?= view('individual-page-pending', ['record' => $record]) ?>
28dd6b2bfcSGreg Roach
29dd6b2bfcSGreg Roach<div class="d-flex mb-4">
30dd6b2bfcSGreg Roach    <h2 class="wt-page-title mx-auto">
31e12592bcSGreg Roach        <?= view('individual-page-title', ['age' => $age, 'record' => $record, 'users' => $users]) ?>
32dd6b2bfcSGreg Roach    </h2>
330f5fd22fSGreg Roach
340f5fd22fSGreg Roach    <?php if ($record->canEdit()) : ?>
350ea4a3f2SGreg Roach        <?= view('individual-page-menu', ['can_upload_media' => $can_upload_media, 'clipboard_facts' => $clipboard_facts, 'record' => $record, 'shares' => $shares]) ?>
36dd6b2bfcSGreg Roach    <?php endif ?>
37dd6b2bfcSGreg Roach</div>
38dd6b2bfcSGreg Roach
39*c1f982bdSGreg Roach<?php if ($sidebars->isEmpty()) : ?>
40*c1f982bdSGreg Roach    <div class="row mb-4">
41*c1f982bdSGreg Roach        <?= view('individual-page-images', ['can_upload_media' => $can_upload_media, 'individual_media' => $individual_media, 'record' => $record, 'tree' => $tree]) ?>
42*c1f982bdSGreg Roach
43*c1f982bdSGreg Roach        <?= view('individual-page-names', ['record' => $record]) ?>
44*c1f982bdSGreg Roach    </div>
45*c1f982bdSGreg Roach
46*c1f982bdSGreg Roach    <?= view('individual-page-tabs', ['record' => $record, 'tabs' => $tabs]) ?>
47*c1f982bdSGreg Roach<?php else : ?>
48dd6b2bfcSGreg Roach    <div class="row">
49*c1f982bdSGreg Roach        <div class="col-sm-8">
50dd6b2bfcSGreg Roach            <div class="row mb-4">
510ea4a3f2SGreg Roach                <?= view('individual-page-images', ['can_upload_media' => $can_upload_media, 'individual_media' => $individual_media, 'record' => $record, 'tree' => $tree]) ?>
52dd6b2bfcSGreg Roach
53a53fba7eSGreg Roach                <?= view('individual-page-names', ['record' => $record]) ?>
54dd6b2bfcSGreg Roach            </div>
55dd6b2bfcSGreg Roach
560f5fd22fSGreg Roach            <?= view('individual-page-tabs', ['record' => $record, 'tabs' => $tabs]) ?>
570f5fd22fSGreg Roach        </div>
586a4003b9SGreg Roach
59*c1f982bdSGreg Roach        <div class="col-sm-4">
600f5fd22fSGreg Roach            <?= view('individual-page-sidebars', ['record' => $record, 'sidebars' => $sidebars]) ?>
61dd6b2bfcSGreg Roach        </div>
62*c1f982bdSGreg Roach    </div>
63*c1f982bdSGreg Roach<?php endif ?>
64dd6b2bfcSGreg Roach
65dd6b2bfcSGreg Roach<?= view('modals/ajax') ?>
660f5fd22fSGreg Roach<?= view('modals/shares', ['shares' => $shares, 'title' => I18N::translate('Share') . ' — ' . $record->fullName()]) ?>
67