Skip to content
Snippets Groups Projects
Commit 22380d8c authored by Rasmus Fuhse's avatar Rasmus Fuhse
Browse files

make images more beautiful

parent 7adb4983
No related branches found
No related tags found
No related merge requests found
.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
...@@ -9,6 +9,7 @@ class MypluginsController extends PluginController { ...@@ -9,6 +9,7 @@ class MypluginsController extends PluginController {
Navigation::activateItem("/pluginmarket/myplugins"); Navigation::activateItem("/pluginmarket/myplugins");
$this->set_content_type('text/html;charset=windows-1252'); $this->set_content_type('text/html;charset=windows-1252');
PageLayout::addStylesheet($this->plugin->getPluginURL()."/assets/pluginmarket.css");
} }
public function overview_action() public function overview_action()
......
...@@ -11,6 +11,7 @@ class PresentingController extends PluginController { ...@@ -11,6 +11,7 @@ class PresentingController extends PluginController {
if ($GLOBALS['perm']->have_perm("user")) { if ($GLOBALS['perm']->have_perm("user")) {
object_set_visit(get_class($this->plugin), "plugin"); object_set_visit(get_class($this->plugin), "plugin");
} }
PageLayout::addStylesheet($this->plugin->getPluginURL()."/assets/pluginmarket.css");
} }
public function overview_action() { public function overview_action() {
......
...@@ -4,12 +4,12 @@ ...@@ -4,12 +4,12 @@
<?= _("Galerie") ?> <?= _("Galerie") ?>
</legend> </legend>
<ol id="galery_edit"> <ol id="galery_edit" class="pluginmarket_galery">
<? foreach ($marketplugin->images as $image) : ?> <? 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()) ?>"> <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: 200px;"> <img src="<?= htmlReady($image->getURL()) ?>" style="max-height: 150px;">
<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/delete") ?> <?= Assets::img("icons/20/blue/delete") ?>
......
...@@ -21,16 +21,16 @@ if ($icon) { ...@@ -21,16 +21,16 @@ if ($icon) {
<h2><?= _("Galerie") ?></h2> <h2><?= _("Galerie") ?></h2>
<div> <ol id="pluginmarket_galery_view" class="pluginmarket_galery">
<? foreach ($marketplugin->images as $image) : ?> <? foreach ($marketplugin->images as $image) : ?>
<div> <div class="image">
<img src="<?= htmlReady($image->getURL()) ?>" style="max-height: 150px;"> <img src="<?= htmlReady($image->getURL()) ?>" style="max-height: 180px;">
</div> </div>
<? endforeach ?> <? endforeach ?>
<? if ($marketplugin->isWritable()) : ?> <? 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> <div><a href="<?= PluginEngine::getLink($plugin, array(), "myplugins/edit_images/".$marketplugin->getId()) ?>" data-dialog><?= Assets::img("icons/20/blue/add") ?></a></div>
<? endif ?> <? endif ?>
</div> </ol>
<h2><?= _("Releases") ?></h2> <h2><?= _("Releases") ?></h2>
<table class="default"> <table class="default">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment