diff --git a/assets/pluginmarket.css b/assets/pluginmarket.css new file mode 100644 index 0000000000000000000000000000000000000000..ee10420cd6864dc8196e4960c492abd01868f01c --- /dev/null +++ b/assets/pluginmarket.css @@ -0,0 +1,19 @@ +.pluginmarket_galery { + list-style-type: none; + display: flex; + flex-direction: row; + flex-wrap: wrap; + justify-content: center; + align-items: center; +} +.pluginmarket_galery > .image { + padding: 5px; + border: 5px solid #eeeeee; + margin: 5px; +} +.pluginmarket_galery > .image input[type=checkbox] { + display: none; +} +.pluginmarket_galery > .image input[type=checkbox]:checked + * { + opacity: 0.2; +} \ No newline at end of file diff --git a/controllers/myplugins.php b/controllers/myplugins.php index 503088cd9e715e57e42533c1b4a1b437ed1978c2..7a8cba3f08df15c54edca2e36b458f0ef130862b 100644 --- a/controllers/myplugins.php +++ b/controllers/myplugins.php @@ -9,6 +9,7 @@ class MypluginsController extends PluginController { Navigation::activateItem("/pluginmarket/myplugins"); $this->set_content_type('text/html;charset=windows-1252'); + PageLayout::addStylesheet($this->plugin->getPluginURL()."/assets/pluginmarket.css"); } public function overview_action() diff --git a/controllers/presenting.php b/controllers/presenting.php index 3b15256bf96f2d164ca07ab93749489e67ea505e..53981ea7f3967ab6e57793bd600a6aa67d0907a3 100644 --- a/controllers/presenting.php +++ b/controllers/presenting.php @@ -11,6 +11,7 @@ class PresentingController extends PluginController { if ($GLOBALS['perm']->have_perm("user")) { object_set_visit(get_class($this->plugin), "plugin"); } + PageLayout::addStylesheet($this->plugin->getPluginURL()."/assets/pluginmarket.css"); } public function overview_action() { diff --git a/views/myplugins/_edit_images.php b/views/myplugins/_edit_images.php index 3e4d88ff75dfb5e8df018977400de5ea316485d3..6c02582dfb6dcae7846a78dae3c307ffb6de3725 100644 --- a/views/myplugins/_edit_images.php +++ b/views/myplugins/_edit_images.php @@ -4,12 +4,12 @@ <?= _("Galerie") ?> </legend> - <ol id="galery_edit"> + <ol id="galery_edit" class="pluginmarket_galery"> <? foreach ($marketplugin->images as $image) : ?> - <li> + <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: 200px;"> + <img src="<?= htmlReady($image->getURL()) ?>" style="max-height: 150px;"> <input type="hidden" name="image_order[]" value="<?= htmlReady($image->getId()) ?>"> <label for="delete_image_<?= htmlReady($image->getId()) ?>"> <?= Assets::img("icons/20/blue/delete") ?> diff --git a/views/presenting/details.php b/views/presenting/details.php index 47e88884bf1b9f68ff8c09d60fd51f7674fb4d7b..a22696e5f18e9f0551b89f992fd1f9a5d6e4fb13 100644 --- a/views/presenting/details.php +++ b/views/presenting/details.php @@ -21,16 +21,16 @@ if ($icon) { <h2><?= _("Galerie") ?></h2> -<div> +<ol id="pluginmarket_galery_view" class="pluginmarket_galery"> <? foreach ($marketplugin->images as $image) : ?> - <div> - <img src="<?= htmlReady($image->getURL()) ?>" style="max-height: 150px;"> + <div class="image"> + <img src="<?= htmlReady($image->getURL()) ?>" style="max-height: 180px;"> </div> <? endforeach ?> <? if ($marketplugin->isWritable()) : ?> <div><a href="<?= PluginEngine::getLink($plugin, array(), "myplugins/edit_images/".$marketplugin->getId()) ?>" data-dialog><?= Assets::img("icons/20/blue/add") ?></a></div> <? endif ?> -</div> +</ol> <h2><?= _("Releases") ?></h2> <table class="default">