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