/
home
/
techb158
/
public_html
/
wp-content
/
plugins
/
wpforms-lite
/
templates
/
integrations
/
ai
/
/home/techb158/public_html/wp-content/plugins/wpforms-lite/templates/integrations/ai
mkdir
upload
Name
Size
Mode
Actions
chat.php
2224
0666
edit
dl
rm
form-editor.php
2288
0666
edit
dl
rm
Edit:
/home/techb158/public_html/wp-content/plugins/wpforms-lite/templates/integrations/ai/chat.php
(2224B)
<?php /** * WPForms AI Chat templates. * * Outputs `<script type="text/html">` blocks for the FAB and modal that * `chat.js` (`assets/js/integrations/ai/chat/chat.js`) stamps into the DOM * via `wp.template()` on admin pages where a chat surface is active. * * @since 2.0.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; } ?> <script type="text/html" id="tmpl-wpforms-ai-chat-fab"> <button id="wpforms-ai-chat-fab" class="wpforms-ai-chat-fab wpforms-ai-chat-fab-hidden" type="button" title="<?php esc_attr_e( 'Ask WPForms AI', 'wpforms-lite' ); ?>"> <svg width="22" height="22" fill="#fff" viewBox="0 0 16 16" aria-hidden="true"> <path d="M8.826 12.481c1.652.508 2.176 1.032 2.683 2.684.041.132.23.132.27 0 .508-1.653 1.031-2.176 2.683-2.684a.141.141 0 0 0 0-.27c-1.652-.507-2.175-1.03-2.683-2.683a.141.141 0 0 0-.27 0c-.507 1.653-1.03 2.176-2.683 2.684a.141.141 0 0 0 0 .27Zm-7.52-4.807c2.998-.922 3.948-1.871 4.869-4.87a.256.256 0 0 1 .49 0c.92 2.999 1.87 3.949 4.869 4.87.24.074.24.416 0 .49-2.999.921-3.948 1.87-4.87 4.869a.256.256 0 0 1-.49 0c-.92-2.998-1.87-3.948-4.868-4.87a.256.256 0 0 1 0-.489Zm7.52-4.411c1.652-.508 2.176-1.031 2.683-2.683a.141.141 0 0 1 .27 0c.508 1.652 1.031 2.175 2.683 2.683.133.04.133.23 0 .27-1.652.508-2.175 1.031-2.683 2.683a.141.141 0 0 1-.27 0c-.507-1.652-1.03-2.175-2.683-2.683a.141.141 0 0 1 0-.27Z"/> </svg> <span class="screen-reader-text"><?php esc_html_e( 'WPForms AI', 'wpforms-lite' ); ?></span> </button> </script> <script type="text/html" id="tmpl-wpforms-ai-chat-modal"> <div id="wpforms-ai-chat-modal" class="wpforms-ai-chat-modal wpforms-ai-chat-modal-initial"> <div class="wpforms-ai-chat-modal-header"> <span class="wpforms-ai-chat-modal-title"> <?php esc_html_e( 'WPForms AI', 'wpforms-lite' ); ?> </span> <div class="wpforms-ai-chat-modal-controls"> <button class="js-wpforms-ai-chat-close wpforms-ai-chat-modal-btn" title="<?php esc_attr_e( 'Hide', 'wpforms-lite' ); ?>"> <i class="fa fa-chevron-down"></i> </button> </div> </div> <div class="wpforms-ai-chat-modal-body"> <wpforms-ai-chat mode="admin" field-id="admin" class="wpforms-ai-chat-light"></wpforms-ai-chat> </div> </div> </script>
Save
cmd:
run