UPDATES EasyBlog 6.0.11 Released! Update to the latest version 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 offline
It is currently off working hours and most of us aren't around

Rest assured that we will get back to you as soon as the day starts tomorrow!
  Support is offline

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