From dd6b2bfcc550270bb6d6778e11576148f71e4330 Mon Sep 17 00:00:00 2001 From: Greg Roach Date: Fri, 12 Oct 2018 11:04:12 +0100 Subject: Use .phtml extension for template files --- resources/views/media-list-page.phtml | 209 ++++++++++++++++++++++++++++++++++ 1 file changed, 209 insertions(+) create mode 100644 resources/views/media-list-page.phtml (limited to 'resources/views/media-list-page.phtml') diff --git a/resources/views/media-list-page.phtml b/resources/views/media-list-page.phtml new file mode 100644 index 0000000000..679172b50c --- /dev/null +++ b/resources/views/media-list-page.phtml @@ -0,0 +1,209 @@ + + + + + + + + + +

+ +

+ +
+ + + + + +
+ +
+ 'folder', 'name' => 'folder']) ?> + 'subdirs', 'checked' => ($subdirs === '1')]) ?> +
+ + +
+ 'max', 'name' => 'max']) ?> +
+
+ +
+ +
+ ''] + $formats, $form_type, ['id' => 'form-type', 'name' => 'form_type']) ?> +
+ +
+
+
+
+
+ +
+ +
+ +
+ +
+
+
+ + + + +
+
+
+ +
+ +

+ +
+
+ 1) : ?> + + + + +
+
+ 1) : ?> + + + + +
+
+ +
+
+ + + + + +
+
+ + + + + +
+
+ +
+ $media_object) : ?> +
+
+ +
+ mediaFiles() as $media_file) : ?> + displayImage(300, 200, 'contain', ['class' => 'img-fluid']) ?> + + +

+ type(); + if ($mediatype) { + echo GedcomTag::getLabelValue('TYPE', GedcomTag::getFileFormTypeValue($mediatype)); + } + echo FunctionsPrintFacts::printFactSources($tree, $media_object->getGedcom(), 1); + echo FunctionsPrint::printFactNotes($tree, $media_object->getGedcom(), 1); + if ($media_file->isExternal()) { + echo GedcomTag::getLabelValue('URL', $media_file->filename()); + } elseif ($media_file->fileExists()) { + ?> + +

+ filename()); + } + echo GedcomTag::getLabelValue('FORM', $media_file->mimeType()); + foreach ($media_file->attributes() as $tag => $value) { + echo GedcomTag::getLabelValue($tag, $value); + } + ?> +
+ ', /* I18N: %s is a filename */ I18N::translate('The file ā€œ%sā€ does not exist.', $media_file->filename()), '

'; + } + ?> +

+
+ +
+
+ +
+ +
+
+ 1) : ?> + + + + +
+
+ 1) : ?> + + + + +
+
+ +
+
+ + + + + +
+
+ + + + + +
+
+ +
-- cgit v1.3