UPDATES EasyBlog 6.0.14 Released! Joomla 5.x and PHP 8.x compatible now!

Helpdesk

Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is online
Our support specialists is available now. We will attend to you as soon as we can.
  Support is online

A tag and image

Philippe · ·
8:43 PM Friday, 16 April 2021
None
Hello,

For images, why is there an A tag when there is no link ?

In /components/com_easyblog/themes/wireframe/blogs/blocks/image.php

If the popup_url is empty, shouldn't the A tag be replaced by a div ?

<?php if (empty($block->data->popup_url)) { ?>
<a class="eb-image-viewport"<?php echo $imageLinkAttr; ?>>
<?php } ?>
<img src="/<?php echo $block->data->url;?>" <?php echo isset($block->data->alt_text) && $block->data->alt_text ? 'alt="' . $block->data->alt_text . '"' : '';?>
<?php echo $imageElementAttr; ?>/>
</a>


By :

<?php if (empty($block->data->popup_url)) { ?>
<div class="eb-image-viewport"<?php echo $imageLinkAttr; ?>>
<img src="/<?php echo $block->data->url;?>" <?php echo isset($block->data->alt_text) && $block->data->alt_text ? 'alt="' . $block->data->alt_text . '"' : '';?>
<?php echo $imageElementAttr; ?>/>
</div>
<?php } ?>


Thank you,
Philippe
The replies under this section are restricted to logged in users or users with an active subscription with us