xref: /webtrees/resources/views/media-page.phtml (revision c540224494b4c0b9f7d890f59f1cd44e9f6d92ea)
1<?php
2
3declare(strict_types=1);
4
5use Fisharebest\Webtrees\Fact;
6use Fisharebest\Webtrees\Family;
7use Fisharebest\Webtrees\Individual;
8use Fisharebest\Webtrees\Location;
9use Fisharebest\Webtrees\Media;
10use Fisharebest\Webtrees\Note;
11use Fisharebest\Webtrees\Source;
12use Fisharebest\Webtrees\Tree;
13use Illuminate\Support\Collection;
14
15/**
16 * @var Collection<int,Fact>       $clipboard_facts
17 * @var Collection<int,Family>     $linked_families
18 * @var Collection<int,Individual> $linked_individuals
19 * @var Collection<int,Location>   $linked_locations
20 * @var Collection<int,Note>       $linked_notes
21 * @var Collection<int,Source>     $linked_sources
22 * @var Media                      $record
23 * @var Tree                       $tree
24 */
25
26?>
27
28<?= view('media-page-pending', ['record' => $record]) ?>
29
30<div class="d-flex mb-4">
31    <h2 class="wt-page-title mx-auto">
32        <?= $record->fullName() ?>
33    </h2>
34    <?php if ($record->canEdit()) : ?>
35        <?= view('media-page-menu', ['clipboard_facts' => $clipboard_facts, 'record' => $record]) ?>
36    <?php endif ?>
37</div>
38
39<div class="wt-page-content">
40        <?= view('record-page-links', [
41            'details'              => view('media-page-details', ['clipboard_facts' => $clipboard_facts, 'record' => $record]),
42            'linked_families'      => $linked_families,
43            'linked_individuals'   => $linked_individuals,
44            'linked_locations'     => $linked_locations,
45            'linked_media_objects' => null,
46            'linked_notes'         => $linked_notes,
47            'linked_repositories'  => null,
48            'linked_sources'       => $linked_sources,
49            'linked_submitters'    => null,
50            'tree'                 => $tree,
51        ]) ?>
52</div>
53
54<?= view('modals/ajax') ?>
55