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