Skip to content

Commit

Permalink
Fix issue validate html when Intro Image is null
Browse files Browse the repository at this point in the history
  • Loading branch information
sonvnn committed Jul 31, 2024
1 parent b613c3e commit 18e0b2f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions framework/html/com_content/category/blog_item.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,11 @@
<?php endif; ?>
</div>
<?php
if (($image_position == 'left' || $image_position == 'right')) {
echo '</div>';
echo '</div>';
if (((!empty($images->image_intro)) && $post_format == 'standard') || (is_string($image) && !empty($image))) {
if (($image_position == 'left' || $image_position == 'right')) {
echo '</div>';
echo '</div>';
}
}
?>
<?php if ($isUnpublished) : ?>
Expand Down

0 comments on commit 18e0b2f

Please sign in to comment.