diff options
Diffstat (limited to 'app/views/admin')
| -rw-r--r-- | app/views/admin/banner/edit.php | 18 | ||||
| -rw-r--r-- | app/views/admin/banner/info.php | 17 |
2 files changed, 33 insertions, 2 deletions
diff --git a/app/views/admin/banner/edit.php b/app/views/admin/banner/edit.php index 9bf48f5..b99e108 100644 --- a/app/views/admin/banner/edit.php +++ b/app/views/admin/banner/edit.php @@ -18,6 +18,8 @@ <fieldset> <label> + <?= _('Banner:') ?><br> + <? if ($banner['banner_path']) : ?> <?= $banner->toImg(['style' => 'max-width:500px']) ?> <? else : ?> @@ -32,6 +34,22 @@ </label> <label> + <?= _('Mobiles Banner (optional):') ?><br> + + <? if ($banner['banner_mobile_path']) : ?> + <?= $banner->toImg(['style' => 'max-width:500px'], true) ?> + <? else : ?> + <?= _('Noch kein Bild hochgeladen') ?> + <? endif; ?><br> + + <label class="file-upload"> + <?= _('Bilddatei auswählen') ?> + <input id="imgfile_mobile" name="imgfile_mobile" type="file" accept="image/*"> + <input type="hidden" name="banner_mobile_path" value="<?= $banner['banner_mobile_path'] ?>"> + </label> + </label> + + <label> <?= _('Beschreibung:') ?> <input type="text" id="description" name="description" value="<?= htmlReady($banner['description']) ?>" size="40" maxlength="254"> </label> diff --git a/app/views/admin/banner/info.php b/app/views/admin/banner/info.php index be5df97..8fa4cbe 100644 --- a/app/views/admin/banner/info.php +++ b/app/views/admin/banner/info.php @@ -10,14 +10,27 @@ <table class="default"> <tbody> <tr> - <td rowspan="9" colspan="2" style="text-align: center;"> + <td><?= _("Banner:") ?></td> + <td style="text-align: left;"> <? if ($banner['banner_path']): ?> - <?= $banner->toImg() ?> + <?= $banner->toImg(['style' => 'max-width:100%']) ?> <? else: ?> <?= _('noch kein Bild hochgeladen') ?> <? endif; ?> </td> </tr> + <? if ($banner['banner_mobile_path']) : ?> + <tr> + <td><?= _("Mobiles Banner:") ?></td> + <td style="text-align: left;"> + <? if ($banner['banner_mobile_path']): ?> + <?= $banner->toImg(['style' => 'max-width:100%'], true) ?> + <? else: ?> + <?= _('noch kein Bild hochgeladen') ?> + <? endif; ?> + </td> + </tr> + <? endif; ?> <tr> <td><?= _("Beschreibung:") ?></td> <td> |
