Changeset 3428364
- Timestamp:
- 12/27/2025 07:35:25 PM (2 months ago)
- Location:
- iris-ai
- Files:
-
- 40 added
- 3 edited
-
tags/1.0.4 (added)
-
tags/1.0.4/assets (added)
-
tags/1.0.4/assets/css (added)
-
tags/1.0.4/assets/css/admin.css (added)
-
tags/1.0.4/assets/css/front.css (added)
-
tags/1.0.4/assets/css/widget.css (added)
-
tags/1.0.4/assets/js (added)
-
tags/1.0.4/assets/js/admin-chat.js (added)
-
tags/1.0.4/assets/js/admin-provider-toggle.js (added)
-
tags/1.0.4/assets/js/admin-usage-guide.js (added)
-
tags/1.0.4/assets/js/admin-vector-index.js (added)
-
tags/1.0.4/assets/js/chatbox.js (added)
-
tags/1.0.4/assets/js/libs (added)
-
tags/1.0.4/assets/js/libs/sine-waves.min.js (added)
-
tags/1.0.4/assets/js/libs/three.min.js (added)
-
tags/1.0.4/assets/js/widget.js (added)
-
tags/1.0.4/assets/logo-transparent.png (added)
-
tags/1.0.4/includes (added)
-
tags/1.0.4/includes/class-irisai-admin.php (added)
-
tags/1.0.4/includes/class-irisai-context-builder.php (added)
-
tags/1.0.4/includes/class-irisai-post-meta.php (added)
-
tags/1.0.4/includes/class-irisai-rest.php (added)
-
tags/1.0.4/includes/class-irisai-settings.php (added)
-
tags/1.0.4/includes/class-irisai-shortcodes.php (added)
-
tags/1.0.4/includes/class-irisai-vector-db.php (added)
-
tags/1.0.4/includes/class-irisai-vector-integration.php (added)
-
tags/1.0.4/includes/class-irisai-widget.php (added)
-
tags/1.0.4/includes/settings (added)
-
tags/1.0.4/includes/settings/traits (added)
-
tags/1.0.4/includes/settings/traits/trait-settings-advancedfields.php (added)
-
tags/1.0.4/includes/settings/traits/trait-settings-apifields.php (added)
-
tags/1.0.4/includes/settings/traits/trait-settings-chatpagefields.php (added)
-
tags/1.0.4/includes/settings/traits/trait-settings-generalfields.php (added)
-
tags/1.0.4/includes/settings/traits/trait-settings-uifields.php (added)
-
tags/1.0.4/includes/settings/traits/trait-settings-usagefields.php (added)
-
tags/1.0.4/includes/settings/traits/trait-settings-vector-indexing.php (added)
-
tags/1.0.4/includes/settings/traits/trait-settings-widgetfields.php (added)
-
tags/1.0.4/iris-ai.php (added)
-
tags/1.0.4/readme.txt (added)
-
tags/1.0.4/uninstall.php (added)
-
trunk/includes/class-irisai-shortcodes.php (modified) (1 diff)
-
trunk/iris-ai.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
iris-ai/trunk/includes/class-irisai-shortcodes.php
r3424224 r3428364 590 590 ?> 591 591 <section id="irisai-results" class="irisai-results" role="region" aria-label="<?php esc_attr_e('Chat results', 'iris-ai'); ?>"> 592 <div class="irisai-card irisai-empty">593 <div class="irisai-empty-icon" aria-hidden="true">594 <?php595 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped596 echo self::get_chat_icon_svg();597 ?>598 </div>599 <h3><?php echo esc_html($empty_title); ?></h3>600 <p><?php echo esc_html($empty_message); ?></p>601 </div>602 592 </section> 603 593 <?php -
iris-ai/trunk/iris-ai.php
r3424224 r3428364 4 4 * Plugin Name: Iris AI – AI Homepage, Chatbot & Site Assistant 5 5 * Description: AI assistant for WordPress with BYO-key or Proxy mode, chat UI, and content tools. 6 * Version: 1.0. 36 * Version: 1.0.4 7 7 * Author: Irisai 8 8 * Author URI: https://irisai.cloud … … 23 23 24 24 // Plugin constants. 25 define('IRISAI_VERSION', '1.0. 3');25 define('IRISAI_VERSION', '1.0.4'); 26 26 define('IRISAI_PATH', plugin_dir_path(__FILE__)); 27 27 define('IRISAI_URL', plugin_dir_url(__FILE__)); … … 396 396 wp_send_json_success(); 397 397 }); 398 399 add_filter( 'render_block', 'irisai_override_theme_hero', 10, 2 ); 400 401 /** 402 * Replace the IrisAI theme hero block with the live chat output on the front-end. 403 * 404 * This ensures the editor preview remains static while the front-end 405 * renders the interactive assistant. 406 * 407 * @since 1.0.4 408 * 409 * @param string $block_content Rendered block HTML. 410 * @param array $block Parsed block data. 411 * @return string 412 */ 413 function irisai_override_theme_hero( $block_content, $block ) { 414 415 // Only modify front-end output (not editor, REST, AJAX, feeds, etc). 416 if ( is_admin() || wp_doing_ajax() || wp_is_json_request() ) { 417 return $block_content; 418 } 419 420 // Validate expected block structure. 421 if ( empty( $block['attrs']['metadata']['name'] ) ) { 422 return $block_content; 423 } 424 425 // Only target the specific theme block. 426 if ( 'irisaitheme/hero' !== $block['attrs']['metadata']['name'] ) { 427 return $block_content; 428 } 429 430 // Only render if the shortcode is available. 431 if ( ! shortcode_exists( 'irisai_chat' ) ) { 432 return $block_content; 433 } 434 435 // Prevent potential recursive rendering. 436 remove_filter( 'render_block', 'irisai_override_theme_hero', 10 ); 437 438 $replacement = do_shortcode( '[irisai_chat]' ); 439 440 // Restore filter after rendering. 441 add_filter( 'render_block', 'irisai_override_theme_hero', 10, 2 ); 442 443 return $replacement; 444 } -
iris-ai/trunk/readme.txt
r3424224 r3428364 5 5 Requires at least: 5.0 6 6 Tested up to: 6.9 7 Stable tag: 1.0. 37 Stable tag: 1.0.4 8 8 Requires PHP: 7.4 9 9 License: GPLv2 or later … … 246 246 247 247 == Changelog == 248 = 1.0.4 = 249 * Improved compatibility with block themes by safely replacing the theme hero block with the live chat on the front-end while preserving the editor preview 250 * Simplified chat interface by removing unused empty-state card markup to improve performance and reduce unnecessary HTML output 248 251 249 252 = 1.0.0 = … … 269 272 == Upgrade Notice == 270 273 274 = 1.0.4 = 275 Improved block theme integration and streamlined the chat interface for better performance and cleaner markup. 276 271 277 = 1.0.0 = 272 278 Initial release of IrisAI. Transform your WordPress site with AI-powered chat, vector search, and source citations.
Note: See TracChangeset
for help on using the changeset viewer.