RELEASE EasySocial 4.0.1 Released! User action logs and more! 🚀 🚀 🥳

Helpdesk

A tag and image

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
Attachments (1)
Attachments can only be downloaded by logged in users

This section can only be seen by users with a valid subscription.
If you have a valid subscription, please login now

Your time
Stack Ideas HQ
Support is
Offline

It is currently off working hours and most of us aren't around.

Rest assured that we will get back to your issues as soon as the day starts tomorrow!

Buy Us Coffee

Are you happy with our support and would like to buy us a cup of coffee?

$
Enjoy the Coffee!
Service via PayPal
Subscribe for product updates & promotions