32
1
mirror of https://github.com/joomla-extensions/weblinks.git synced 2025-01-26 13:58:26 +00:00

fix edit form caption

This commit is contained in:
chmst 2021-08-12 09:57:34 +02:00
parent 92b8d92e2a
commit 0528642f90
2 changed files with 3 additions and 1 deletions

View File

@ -183,7 +183,7 @@ $listDirn = $this->escape($this->state->get('list.direction'));
<figure class="item-image"> <figure class="item-image">
<img src="<?php echo htmlspecialchars($img->url, ENT_COMPAT, 'UTF-8'); ?>" <img src="<?php echo htmlspecialchars($img->url, ENT_COMPAT, 'UTF-8'); ?>"
<?php echo $alt; ?> itemprop="thumbnail" /> <?php echo $alt; ?> itemprop="thumbnail" />
<?php if (!empty($images->image_first_caption)) : ?> <?php if (!empty($images->image_second_caption)) : ?>
<figcaption class="caption"><?php echo htmlspecialchars($images->image_second_caption, ENT_COMPAT, 'UTF-8'); ?></figcaption> <figcaption class="caption"><?php echo htmlspecialchars($images->image_second_caption, ENT_COMPAT, 'UTF-8'); ?></figcaption>
<?php endif; ?> <?php endif; ?>
</figure> </figure>

View File

@ -63,11 +63,13 @@ $params = $this->state->get('params');
<?php echo $this->form->renderField('image_first_alt', 'images'); ?> <?php echo $this->form->renderField('image_first_alt', 'images'); ?>
<?php echo $this->form->renderField('image_first_alt_empty', 'images'); ?> <?php echo $this->form->renderField('image_first_alt_empty', 'images'); ?>
<?php echo $this->form->renderField('float_first', 'images'); ?> <?php echo $this->form->renderField('float_first', 'images'); ?>
<?php echo $this->form->renderField('image_first_caption', 'images'); ?>
<?php echo $this->form->renderField('image_second', 'images'); ?> <?php echo $this->form->renderField('image_second', 'images'); ?>
<?php echo $this->form->renderField('image_second_alt', 'images'); ?> <?php echo $this->form->renderField('image_second_alt', 'images'); ?>
<?php echo $this->form->renderField('image_second_alt_empty', 'images'); ?> <?php echo $this->form->renderField('image_second_alt_empty', 'images'); ?>
<?php echo $this->form->renderField('float_second', 'images'); ?> <?php echo $this->form->renderField('float_second', 'images'); ?>
<?php echo $this->form->renderField('image_second_caption', 'images'); ?>
<?php if ($captchaEnabled) : ?> <?php if ($captchaEnabled) : ?>