Changeset 3359336
- Timestamp:
- 09/10/2025 05:12:20 PM (7 months ago)
- Location:
- chat-bot-alpha-interface/trunk
- Files:
-
- 2 edited
-
chat-bot-alpha_interface.php (modified) (6 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
chat-bot-alpha-interface/trunk/chat-bot-alpha_interface.php
r3356143 r3359336 4 4 * Plugin URI: https://www.npmjs.com/package/alpha-interface 5 5 * Description: Embeds the Alpha Interface chatbot into your site using a custom web component. 6 * Version: 2.0. 36 * Version: 2.0.4 7 7 * Author: alphainterface 8 8 * Author URI: https://alphainterface.ai … … 22 22 wp_register_script( 23 23 'ai-chatbot-module', 24 'https://cdn.jsdelivr.net/npm/alpha-interface@1.0. 1/dist/hash-bot/hash-bot.esm.js',24 'https://cdn.jsdelivr.net/npm/alpha-interface@1.0.2/dist/hash-bot/hash-bot.esm.js', 25 25 [], 26 26 null, … … 44 44 function ai_chatbot_render() { 45 45 $options = get_option( 'ai_chatbot_settings', [] ); 46 47 $apiurl = esc_attr( $options['apiurl'] ?? '' ); 46 $bot_name = esc_attr( $options['bot_name'] ?? 'Chat Bot' ); 48 47 $agent_uuid = esc_attr( $options['agent_uuid'] ?? '' ); 49 48 $welcome_message = esc_attr( $options['welcome_message'] ?? '' ); 50 $bot_name = esc_attr( $options['bot_name'] ?? 'Chat Bot' );51 49 $iconsize = esc_attr( $options['iconsize'] ?? '70' ); 52 50 $chatbotwidth = esc_attr( $options['chatbotwidth'] ?? '300' ); … … 54 52 55 53 echo '<hash-bot 54 bot_name="' . $bot_name . '" 56 55 agent_uuid="'. $agent_uuid . '" 57 apiurl="' . $apiurl . '"58 56 welcome_message="' . $welcome_message . '" 59 bot_name="' . $bot_name . '"60 57 iconsize="' . $iconsize . '" 61 58 chatbotwidth="' . $chatbotwidth . '" … … 114 111 <table class="form-table" role="presentation"> 115 112 <tr> 116 <th scope="row"> API URL</th>117 <td><input type="text" name="ai_chatbot_settings[ apiurl]" value="<?php echo esc_attr( $options['apiurl'] ?? '' ); ?>" class="regular-text" /></td>113 <th scope="row">Bot Name</th> 114 <td><input type="text" name="ai_chatbot_settings[bot_name]" value="<?php echo esc_attr( $options['bot_name'] ?? '' ); ?>" class="regular-text" /></td> 118 115 </tr> 119 116 <tr> … … 123 120 <tr> 124 121 <th scope="row">Welcome Message</th> 125 <td><input type="text" name="ai_chatbot_settings[welcome_message]" value="<?php echo esc_attr( $options['welcome_message'] ?? "Hi! \n I'm an AI assistant trained on documentation, help articles, and other content. \n \n Ask me anything!" ); ?>" class="regular-text" /></td> 126 </tr> 127 <tr> 128 <th scope="row">Bot Name</th> 129 <td><input type="text" name="ai_chatbot_settings[bot_name]" value="<?php echo esc_attr( $options['bot_name'] ?? '' ); ?>" class="regular-text" /></td> 122 <td><input type="text" name="ai_chatbot_settings[welcome_message]" value="<?php echo esc_attr( $options['welcome_message'] ?? "Hi. Ask me anything!" ); ?>" class="regular-text" /></td> 130 123 </tr> 131 124 <tr> -
chat-bot-alpha-interface/trunk/readme.txt
r3356143 r3359336 4 4 Requires at least: 5.0 5 5 Tested up to: 6.8 6 Stable tag: 2.0. 36 Stable tag: 2.0.4 7 7 License: GPLv2 or later 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 16 16 17 17 * Agent UUID 18 * API URL19 18 * Chat ID 20 19 * Icon Size … … 30 29 31 30 == Changelog == 32 = 2.0. 3=33 * UI change, Chatbot name, Welcome message, FAQ31 = 2.0.4 = 32 * Removed API Url 34 33 35 34 == Source Code ==
Note: See TracChangeset
for help on using the changeset viewer.