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