This commit is contained in:
IGNY8 VPS (Salman)
2026-01-10 07:28:11 +00:00
parent ceee9ba34d
commit af95454049
5 changed files with 88 additions and 32 deletions

View File

@@ -169,15 +169,16 @@ $reuse_pattern = [1, 0, 3, 2]; // Featured, Square1, Landscape2, Square2
</div>
<?php
}
// Square image (left or right aligned)
// Square image (left or right aligned) - 2 column layout
elseif ($img_url && $img_type === 'square') {
$img_class = 'igny8-image-square-' . $img_align;
if (!$show_description) {
$img_class .= ' igny8-image-reuse';
}
$section_class = 'igny8-section-content igny8-has-square-image igny8-image-' . $img_align;
?>
<div class="igny8-section-content">
<figure class="igny8-image-figure <?php echo esc_attr($img_class); ?>">
<div class="<?php echo esc_attr($section_class); ?>">
<figure class="igny8-image-figure">
<img src="<?php echo esc_url($img_url); ?>"
alt="<?php echo esc_attr($section['heading']); ?>"
class="igny8-in-article-image"
@@ -191,10 +192,6 @@ $reuse_pattern = [1, 0, 3, 2]; // Featured, Square1, Landscape2, Square2
<div class="igny8-prose">
<?php echo $section['content']; ?>
</div>
<?php
// Widget placeholder below square images
igny8_render_widget_placeholder($img_align, $index);
?>
</div>
<?php
}