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