['position' => 0, 'type' => 'square', 'align' => 'right'], // Section 1 1 => ['position' => 3, 'type' => 'landscape', 'align' => 'full'], // Section 2 2 => ['position' => 2, 'type' => 'square', 'align' => 'left'], // Section 3 3 => ['position' => 1, 'type' => 'landscape', 'align' => 'full'], // Section 4 ]; // Reuse pattern for sections 5+ $reuse_pattern = [1, 0, 3, 2]; // Featured, Square1, Landscape2, Square2 ?>
$section): ?>
$badge): ?>

= 4) { $reuse_index = ($index - 4) % count($reuse_pattern); $img_position = $reuse_pattern[$reuse_index]; // Position 1 is featured image, others are in-article if ($img_position === 1 && $featured_image_id) { $img_url = wp_get_attachment_image_url($featured_image_id, 'large'); $img_type = 'landscape'; $img_align = 'full'; } elseif (isset($in_article_images[$img_position])) { $img_data = $in_article_images[$img_position]; if (isset($img_data['attachment_id'])) { $img_url = wp_get_attachment_image_url($img_data['attachment_id'], 'large'); } elseif (isset($img_data['url'])) { $img_url = $img_data['url']; } $img_type = igny8_get_image_aspect($img_position); $img_align = ($img_type === 'square') ? (($reuse_index % 2 === 0) ? 'right' : 'left') : 'full'; } } // Check if section has table $has_table = igny8_section_has_table($section['content']); if ($has_table && $img_url) { // Place full-width image before table $img_type = 'landscape'; $img_align = 'full'; $img_class = 'igny8-image-landscape igny8-image-before-table'; if (!$show_description) { $img_class .= ' igny8-image-reuse'; } ?>
<?php echo esc_attr($section['heading']); ?>

Visual Direction

<?php echo esc_attr($section['heading']); ?>

Visual Direction

<?php echo esc_attr($section['heading']); ?>

Visual Direction