Lines Matching refs:media_file

24     <?php foreach ($record->mediaFiles() as $media_file) : ?>
25 …<tr class="<?= $media_file->isPendingAddition() ? 'wt-new' : '' ?><?= $media_file->isPendingDeleti…
28 <?php if ($record->canEdit() && !$media_file->isPendingDeletion()) : ?>
30 …' => $record->tree()->name(), 'xref' => $record->xref(), 'fact_id' => $media_file->factId()]) ?>" …
38 …' => $record->tree()->name(), 'xref' => $record->xref(), 'fact_id' => $media_file->factId()])) ?>"…
51 <?php if ($media_file->isExternal()) : ?>
52 …<?= Registry::elementFactory()->make('OBJE:FILE')->labelValue($media_file->filename(), $record->tr…
54 <?php if (!$media_file->fileExists()) : ?>
56 … <?= I18N::translate('The file “%s” does not exist.', e($media_file->filename())) ?>
59 …<?= Registry::elementFactory()->make('OBJE:FILE')->labelValue($media_file->filename(), $record->tr…
62 …<?= Registry::elementFactory()->make('OBJE:FILE:TITL')->labelValue($media_file->title(), $record->…
63 …= Registry::elementFactory()->make('OBJE:FILE:FORM:TYPE')->labelValue($media_file->type(), $record…
64 …<?= Registry::elementFactory()->make('OBJE:FILE:FORM')->labelValue($media_file->format(), $record-…
68 <?php if (!$media_file->isExternal()) : ?>
69 <?php if (explode('/', $media_file->mimeType())[0] === 'audio') : ?>
71 … <source src="<?= e($media_file->downloadUrl('inline')) ?>" type="<?= $media_file->mimeType() ?>">
73 <?php elseif (explode('/', $media_file->mimeType())[0] === 'video') : ?>
75 … <source src="<?= e($media_file->downloadUrl('inline')) ?>" type="<?= $media_file->mimeType() ?>">
78 <?= $media_file->displayImage(200, 150, 'contain', []) ?>
80 …rence('SHOW_MEDIA_DOWNLOAD') >= Auth::accessLevel($record->tree()) && $media_file->fileExists()) :…
82 <a href="<?= e($media_file->downloadUrl('attachment')) ?>">