diff --git a/plugins/wordpress/source/igny8-wp-bridge/igny8-bridge.php b/plugins/wordpress/source/igny8-wp-bridge/igny8-bridge.php index 458db108..11fba76c 100644 --- a/plugins/wordpress/source/igny8-wp-bridge/igny8-bridge.php +++ b/plugins/wordpress/source/igny8-wp-bridge/igny8-bridge.php @@ -3,7 +3,7 @@ * Plugin Name: IGNY8 WordPress Bridge * Plugin URI: https://igny8.com/igny8-wp-bridge * Description: Lightweight bridge plugin that connects WordPress to IGNY8 API for one-way content publishing. - * Version: 1.3.2 + * Version: 1.3.3 * Author: IGNY8 * Author URI: https://igny8.com/ * License: GPL v2 or later @@ -22,7 +22,7 @@ if (!defined('ABSPATH')) { } // Define plugin constants -define('IGNY8_BRIDGE_VERSION', '1.3.2'); +define('IGNY8_BRIDGE_VERSION', '1.3.3'); define('IGNY8_BRIDGE_PLUGIN_DIR', plugin_dir_path(__FILE__)); define('IGNY8_BRIDGE_PLUGIN_URL', plugin_dir_url(__FILE__)); define('IGNY8_BRIDGE_PLUGIN_FILE', __FILE__); diff --git a/plugins/wordpress/source/igny8-wp-bridge/templates/assets/css/igny8-content-template.css b/plugins/wordpress/source/igny8-wp-bridge/templates/assets/css/igny8-content-template.css index ff20e94d..df3eec2e 100644 --- a/plugins/wordpress/source/igny8-wp-bridge/templates/assets/css/igny8-content-template.css +++ b/plugins/wordpress/source/igny8-wp-bridge/templates/assets/css/igny8-content-template.css @@ -510,8 +510,7 @@ /* Landscape images */ .igny8-image-landscape { max-width: 1024px; - width: 100%; - margin: 0 auto 2rem; + width: 100%; display: block; } @@ -538,8 +537,7 @@ /* Table-specific image positioning */ .igny8-image-before-table { max-width: 1024px; - width: 100%; - margin: 0 auto 2rem; + width: 100%; display: block; clear: both; } diff --git a/plugins/wordpress/source/igny8-wp-bridge/templates/parts/igny8-content-sections.php b/plugins/wordpress/source/igny8-wp-bridge/templates/parts/igny8-content-sections.php index 2545d648..06a854c1 100644 --- a/plugins/wordpress/source/igny8-wp-bridge/templates/parts/igny8-content-sections.php +++ b/plugins/wordpress/source/igny8-wp-bridge/templates/parts/igny8-content-sections.php @@ -143,19 +143,27 @@ $reuse_pattern = [1, 0, 3, 2]; // Featured, Square1, Landscape2, Square2 // Check if section has table $has_table = igny8_section_has_table($section['content']); if ($has_table && $img_url) { - // Place full-width image before table + // Place full-width image after first paragraph $img_type = 'landscape'; $img_align = 'full'; $img_class = 'igny8-image-landscape igny8-image-before-table'; if (!$show_description) { $img_class .= ' igny8-image-reuse'; } - $figure_class = 'igny8-image-figure'; + $figure_class = 'igny8-image-figure igny8-image-landscape-figure'; if (!$show_description || empty($img_caption)) { $figure_class .= ' igny8-image-no-caption'; } + + // Split content to insert image after first paragraph + $content_parts = preg_split('/(<\/p>)/i', $section['content'], 2, PREG_SPLIT_DELIM_CAPTURE); + $first_paragraph = isset($content_parts[0]) && isset($content_parts[1]) ? $content_parts[0] . $content_parts[1] : ''; + $remaining_content = isset($content_parts[2]) ? $content_parts[2] : $section['content']; ?>
+
+ +
<?php echo esc_attr($section['heading']); ?>
- +
)/i', $section['content'], 2, PREG_SPLIT_DELIM_CAPTURE); + $first_paragraph = isset($content_parts[0]) && isset($content_parts[1]) ? $content_parts[0] . $content_parts[1] : ''; + $remaining_content = isset($content_parts[2]) ? $content_parts[2] : $section['content']; ?>
+
+ +
<?php echo esc_attr($section['heading']); ?>
- +