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

small changes

parent 22380d8c
No related branches found
No related tags found
No related merge requests found
#pluginmarket_galery_view {
max-height: 500px;
overflow: auto;
}
.pluginmarket_galery { .pluginmarket_galery {
list-style-type: none; list-style-type: none;
display: flex; display: flex;
...@@ -11,6 +15,10 @@ ...@@ -11,6 +15,10 @@
border: 5px solid #eeeeee; border: 5px solid #eeeeee;
margin: 5px; margin: 5px;
} }
.pluginmarket_galery > .image img {
display: block;
max-height: 180px;
}
.pluginmarket_galery > .image input[type=checkbox] { .pluginmarket_galery > .image input[type=checkbox] {
display: none; display: none;
} }
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<img src="<?= htmlReady($image->getURL()) ?>" style="max-height: 150px;"> <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/trash", array('style' => "cursor: pointer;")) ?>
</label> </label>
</div> </div>
</li> </li>
......
...@@ -19,18 +19,33 @@ if ($icon) { ...@@ -19,18 +19,33 @@ if ($icon) {
<?= formatReady($marketplugin['description']) ?> <?= formatReady($marketplugin['description']) ?>
</div> </div>
<? if (count($marketplugin->images) > 0 || $marketplugin->isWritable()) : ?>
<h2><?= _("Galerie") ?></h2> <h2><?= _("Galerie") ?></h2>
<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()) ?>" style="max-height: 180px;"> <img src="<?= htmlReady($image->getURL()) ?>">
</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 title="<?= _("Galerie bearbeiten / neue Bilder hinzufgen") ?>"><?= Assets::img("icons/20/blue/add") ?></a></div>
<? endif ?> <? endif ?>
</ol> </ol>
<? endif ?>
<h2><?= _("Zum Autor") ?></h2>
<ul class="clean">
<li>
<? $author = User::find($marketplugin['user_id']) ?>
<div>
<a href="<?= URLHelper::getLink("dispatch.php/profile", array('username' => $author['username'])) ?>" style="text-align: center; display: inline-block; vertical-align: top;">
<?= Avatar::getAvatar($marketplugin['user_id'])->getImageTag(Avatar::MEDIUM, array('style' => "display: block;")) ?>
<?= htmlReady($author->getFullName()) ?>
</a>
</div>
</li>
</ul>
<h2><?= _("Releases") ?></h2> <h2><?= _("Releases") ?></h2>
<table class="default"> <table class="default">
...@@ -78,9 +93,10 @@ if ($icon) { ...@@ -78,9 +93,10 @@ if ($icon) {
$author = User::find($marketplugin['user_id']); $author = User::find($marketplugin['user_id']);
$flattr_username = $author['datafields']->findBy("name", "Flattr")->val("content"); $flattr_username = $author['datafields']->findBy("name", "Flattr")->val("content");
$bitcoin_datafield = $author['datafields']->findBy("name", "Bitcoin-Wallet")->val("content"); $bitcoin_datafield = $author['datafields']->findBy("name", "Bitcoin-Wallet")->val("content");
$paypal_datafield = $author['datafields']->findBy("name", "Paypal-Account (Email)")->val("content");
?> ?>
<? if ($flattr_username || $bitcoin_wallet) : ?> <? if ($flattr_username || $bitcoin_wallet || $paypal_datafield) : ?>
<h2><?= _("Spenden") ?></h2> <h2><?= _("Spenden") ?></h2>
<p class="info"> <p class="info">
<?= _("Der Download ist kostenlos, aber man kann dem Autor mit einer Spende danken und zuknftige Entwicklungen anregen.") ?> <?= _("Der Download ist kostenlos, aber man kann dem Autor mit einer Spende danken und zuknftige Entwicklungen anregen.") ?>
...@@ -109,6 +125,21 @@ $bitcoin_datafield = $author['datafields']->findBy("name", "Bitcoin-Wallet")->va ...@@ -109,6 +125,21 @@ $bitcoin_datafield = $author['datafields']->findBy("name", "Bitcoin-Wallet")->va
}); });
</script> </script>
<? endif ?> <? endif ?>
<? if ($paypal_datafield) : ?>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top" style="display: inline-block;">
<div><strong><img src="http://pics.ebaystatic.com/aw/pics/logos/logoPayPal_51x14.gif"></strong></div>
<input type="hidden" name="cmd" value="_donations">
<input type="hidden" name="business" value="<?= htmlReady($paypal_datafield) ?>">
<input type="hidden" name="lc" value="DE">
<input type="hidden" name="no_note" value="0">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="bn" value="PP-DonationsBF:btn_donateCC_LG.gif:NonHostedGuest">
<input type="image" src="https://www.paypalobjects.com/de_DE/DE/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="Jetzt einfach, schnell und sicher online bezahlen mit PayPal.">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
<? endif ?>
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment