Skip to content
Snippets Groups Projects
Commit 0bc86bc6 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

adjust image gallery handling due to changes on trunk, fixes #57

parent ec3e6b3f
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@
.flex-justify-content(center);
.flex-align-items(stretch);
> .image {
.image {
padding: 5px;
border: 5px solid #eeeeee;
margin: 5px;
......
pluginname=PluginMarktplatz
pluginclassname=PluginMarket
origin=studip
version=1.0.14
version=1.0.15
......@@ -9,7 +9,9 @@
<li class="image">
<input type="checkbox" name="delete_image[]" value="<?= htmlReady($image->getId()) ?>" id="delete_image_<?= htmlReady($image->getId()) ?>">
<div>
<a href="<?= htmlReady($image->getURL()) ?>" data-lightbox="plugin_gallery">
<img src="<?= htmlReady($image->getURL()) ?>" style="max-height: 150px;">
</a>
<input type="hidden" name="image_order[]" value="<?= htmlReady($image->getId()) ?>">
<label for="delete_image_<?= htmlReady($image->getId()) ?>">
<?= Assets::img("icons/20/blue/trash", array('style' => "cursor: pointer;")) ?>
......
......@@ -30,7 +30,9 @@ if ($icon) {
<ol id="pluginmarket_galery_view" class="pluginmarket_galery">
<? foreach ($marketplugin->images as $image) : ?>
<div class="image">
<a href="<?= htmlReady($image->getURL()) ?>" data-lightbox="plugin_gallery">
<img src="<?= htmlReady($image->getURL()) ?>">
</a>
</div>
<? endforeach ?>
<? if ($marketplugin->isWritable()) : ?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment