aboutsummaryrefslogtreecommitdiff
path: root/app/views/course/contentmodules/info.php
diff options
context:
space:
mode:
authorRasmus Fuhse <fuhse@data-quest.de>2023-07-15 13:49:38 +0000
committerRasmus Fuhse <fuhse@data-quest.de>2023-07-15 13:49:38 +0000
commit6f603e5ed007324c7edb7d3965850b2559979a16 (patch)
tree9603117af2fd00b7cfd416a62dd865ad078e48b2 /app/views/course/contentmodules/info.php
parent62e4affaacb398fd38089b56e1040d64c4d1d37a (diff)
Resolve "Werkzeuge: Info-Dialoge für Plugins zeigen keine Bilder an"
Closes #2847 Merge request studip/studip!1934
Diffstat (limited to 'app/views/course/contentmodules/info.php')
-rw-r--r--app/views/course/contentmodules/info.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/app/views/course/contentmodules/info.php b/app/views/course/contentmodules/info.php
index 5f536eb..18d7ccf 100644
--- a/app/views/course/contentmodules/info.php
+++ b/app/views/course/contentmodules/info.php
@@ -43,15 +43,15 @@
<?= formatReady($plugin->getPluginDescription()) ?>
</div>
</div>
- <? if (isset($metadata['screenshots']) && count($metadata['screenshots']['pictures'])) : ?>
+ <? if (isset($screenshots) && count($screenshots)) : ?>
<ul class="screenshots clean">
- <? foreach ($metadata['screenshots']['pictures'] as $pictures) : ?>
+ <? foreach ($screenshots as $screenshot) : ?>
<li>
- <a href="<?= $plugin->getPluginURL().$metadata['screenshots']['path'].'/'.$pictures['source'] ?>"
+ <a href="<?= htmlReady($screenshot['source']) ?>"
data-lightbox="<?= htmlReady($metadata['displayname'] ?? $plugin->getPluginName()) ?>"
- data-title="<?= htmlReady($pictures['title']) ?>">
- <img src="<?= $plugin->getPluginURL() . ($plugin instanceof StudIPPlugin ? '/' : '') . $metadata['screenshots']['path'] . '/' . $pictures['source'] ?>" alt="">
- <?= htmlReady($pictures['title']) ?>
+ data-title="<?= htmlReady($screenshot['title']) ?>">
+ <img src="<?= htmlReady($screenshot['source']) ?>" alt="">
+ <?= htmlReady($screenshot['title']) ?>
</a>
</li>
<? endforeach ?>