Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 2175

Joomla! 5.x Coding • Re: Get image in my custom module in J!5

$
0
0
Unfortunately, the image address has been changed in J!4...

I found!

Code:

$img_one = HTMLHelper::cleanImageURL($img_one);echo '<img src="'. $img_one->url .'" alt="" width="'. $img_one->attributes['width'] .'" height="'. $img_one->attributes['height'] .'" loading="lazy">';$img_two = HTMLHelper::cleanImageURL($img_two);echo '<img src="'. $img_two->url .'" alt="" width="'. $img_two->attributes['width'] .'" height="'. $img_two->attributes['height'] .'" loading="lazy">';$img_three = HTMLHelper::cleanImageURL($img_three);echo '<img src="'. $img_three->url .'" alt="" width="'. $img_three->attributes['width'] .'" height="'. $img_three->attributes['height'] .'" loading="lazy">';

Can it be done more efficiently?

Statistics: Posted by b_wp_b — Wed Feb 28, 2024 11:14 am



Viewing all articles
Browse latest Browse all 2175

Trending Articles