diff --git a/assets/pluginmarket.less b/assets/pluginmarket.less index d19d21d942bd691d2f869f4784fbaaa575831299..6316dc4ff8dba789a991bd40d394fb1b581585a0 100644 --- a/assets/pluginmarket.less +++ b/assets/pluginmarket.less @@ -10,7 +10,7 @@ .flex-justify-content(center); .flex-align-items(stretch); - > .image { + .image { padding: 5px; border: 5px solid #eeeeee; margin: 5px; diff --git a/plugin.manifest b/plugin.manifest index 82fab953c930bf4caea7bc07ec6903504b3da7e2..01a4c73e6edfd25fda740945f5eb3a537aae179e 100644 --- a/plugin.manifest +++ b/plugin.manifest @@ -1,4 +1,4 @@ pluginname=PluginMarktplatz pluginclassname=PluginMarket origin=studip -version=1.0.14 +version=1.0.15 diff --git a/views/myplugins/_edit_images.php b/views/myplugins/_edit_images.php index 0394c8a211ea3c201efd9ff5965af3c1f903e032..1920a0a380607bb88dc58b86f99fb14a99f164fb 100644 --- a/views/myplugins/_edit_images.php +++ b/views/myplugins/_edit_images.php @@ -9,7 +9,9 @@ <li class="image"> <input type="checkbox" name="delete_image[]" value="<?= htmlReady($image->getId()) ?>" id="delete_image_<?= htmlReady($image->getId()) ?>"> <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()) ?>"> <label for="delete_image_<?= htmlReady($image->getId()) ?>"> <?= Assets::img("icons/20/blue/trash", array('style' => "cursor: pointer;")) ?> diff --git a/views/presenting/details.php b/views/presenting/details.php index e40ed80bd7a6cf4ac192814a387cf63204d4cb0b..b5f5408f158749f93095532588a3159a624fdffe 100644 --- a/views/presenting/details.php +++ b/views/presenting/details.php @@ -30,7 +30,9 @@ if ($icon) { <ol id="pluginmarket_galery_view" class="pluginmarket_galery"> <? foreach ($marketplugin->images as $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> <? endforeach ?> <? if ($marketplugin->isWritable()) : ?>