xref: /webtrees/resources/views/media-page.phtml (revision c540224494b4c0b9f7d890f59f1cd44e9f6d92ea)
16f0c730fSGreg Roach<?php
26f0c730fSGreg Roach
310e06497SGreg Roachdeclare(strict_types=1);
410e06497SGreg Roach
5*c5402244SGreg Roachuse Fisharebest\Webtrees\Fact;
64991f205SGreg Roachuse Fisharebest\Webtrees\Family;
74991f205SGreg Roachuse Fisharebest\Webtrees\Individual;
84991f205SGreg Roachuse Fisharebest\Webtrees\Location;
96f0c730fSGreg Roachuse Fisharebest\Webtrees\Media;
104991f205SGreg Roachuse Fisharebest\Webtrees\Note;
114991f205SGreg Roachuse Fisharebest\Webtrees\Source;
12455a30feSGreg Roachuse Fisharebest\Webtrees\Tree;
136f0c730fSGreg Roachuse Illuminate\Support\Collection;
146f0c730fSGreg Roach
156f0c730fSGreg Roach/**
16*c5402244SGreg Roach * @var Collection<int,Fact>       $clipboard_facts
17*c5402244SGreg Roach * @var Collection<int,Family>     $linked_families
18*c5402244SGreg Roach * @var Collection<int,Individual> $linked_individuals
19*c5402244SGreg Roach * @var Collection<int,Location>   $linked_locations
20*c5402244SGreg Roach * @var Collection<int,Note>       $linked_notes
21*c5402244SGreg Roach * @var Collection<int,Source>     $linked_sources
220f5fd22fSGreg Roach * @var Media                      $record
23455a30feSGreg Roach * @var Tree                       $tree
246f0c730fSGreg Roach */
250f5fd22fSGreg Roach
266f0c730fSGreg Roach?>
27dd6b2bfcSGreg Roach
280f5fd22fSGreg Roach<?= view('media-page-pending', ['record' => $record]) ?>
29dd6b2bfcSGreg Roach
30dd6b2bfcSGreg Roach<div class="d-flex mb-4">
31dd6b2bfcSGreg Roach    <h2 class="wt-page-title mx-auto">
320f5fd22fSGreg Roach        <?= $record->fullName() ?>
33dd6b2bfcSGreg Roach    </h2>
340f5fd22fSGreg Roach    <?php if ($record->canEdit()) : ?>
350f5fd22fSGreg Roach        <?= view('media-page-menu', ['clipboard_facts' => $clipboard_facts, 'record' => $record]) ?>
36dd6b2bfcSGreg Roach    <?php endif ?>
37dd6b2bfcSGreg Roach</div>
38dd6b2bfcSGreg Roach
39dd6b2bfcSGreg Roach<div class="wt-page-content">
400f5fd22fSGreg Roach        <?= view('record-page-links', [
410127ebe6SGreg Roach            'details'              => view('media-page-details', ['clipboard_facts' => $clipboard_facts, 'record' => $record]),
420f5fd22fSGreg Roach            'linked_families'      => $linked_families,
430f5fd22fSGreg Roach            'linked_individuals'   => $linked_individuals,
444991f205SGreg Roach            'linked_locations'     => $linked_locations,
450f5fd22fSGreg Roach            'linked_media_objects' => null,
460f5fd22fSGreg Roach            'linked_notes'         => $linked_notes,
475962a3c2SGreg Roach            'linked_repositories'  => null,
480f5fd22fSGreg Roach            'linked_sources'       => $linked_sources,
495962a3c2SGreg Roach            'linked_submitters'    => null,
500f5fd22fSGreg Roach            'tree'                 => $tree,
510f5fd22fSGreg Roach        ]) ?>
52dd6b2bfcSGreg Roach</div>
53dd6b2bfcSGreg Roach
54dd6b2bfcSGreg Roach<?= view('modals/ajax') ?>
55