summaryrefslogtreecommitdiff
path: root/resources/views/modules/random_media/slide-show.phtml
diff options
context:
space:
mode:
Diffstat (limited to 'resources/views/modules/random_media/slide-show.phtml')
-rw-r--r--resources/views/modules/random_media/slide-show.phtml5
1 files changed, 3 insertions, 2 deletions
diff --git a/resources/views/modules/random_media/slide-show.phtml b/resources/views/modules/random_media/slide-show.phtml
index 5aa33721b3..54b531c88d 100644
--- a/resources/views/modules/random_media/slide-show.phtml
+++ b/resources/views/modules/random_media/slide-show.phtml
@@ -1,6 +1,5 @@
<?php
-use Fisharebest\Webtrees\Functions\FunctionsPrint;
use Fisharebest\Webtrees\I18N;
use Fisharebest\Webtrees\Media;
use Fisharebest\Webtrees\MediaFile;
@@ -46,7 +45,9 @@ use Fisharebest\Webtrees\Tree;
</figure>
<p class="wt-slide-show-notes text-center">
- <?= FunctionsPrint::printFactNotes($tree, $media->gedcom(), 1) ?>
+ <?php foreach ($media->facts(['NOTE']) as $fact) : ?>
+ <?= view('fact-gedcom-fields', ['gedcom' => $fact->gedcom(), 'parent' => $media->tag(), 'tree' => $tree]) ?>
+ <?php endforeach ?>
</p>
<ul class="fa-ul wt-slide-show-links">