| @@ -16,14 +16,15 @@ | ||
| 16 | 16 | </ul> |
| 17 | 17 | |
| 18 | 18 | <div class="tab-content"> |
| 19 | 19 | <div id="wp-chatbot-grok-settings" class="tab-pane in active"> |
| 20 | + <div class="col-sm-12"> | |
| 20 | 21 | <div class="row gx-0"> |
| 21 | 22 | <div class="mb-3"> |
| 22 | 23 | <div class="form-check form-switch my-4"> |
| 23 | 24 | <input class="form-check-input" type="checkbox" <?php echo ( get_option( 'qcld_grok_enabled' ) == 1 ) ? esc_attr( 'checked' ) : ''; ?> role="switch" value="" id="qcld_grok_enabled"> |
| 24 | 25 | <label class="form-check-label" for="qcld_grok_enabled"> |
| 25 | - <?php esc_html_e( 'Enable Grok AI', 'chatbot'); ?><span style="color:red"> <?php esc_html_e( '(if you want results from grok only, disable Site Search from Settings->Start Menu)', 'chatbot'); ?></span> | |
| 26 | + <?php esc_html_e( 'Enable Grok AI', 'chatbot'); ?><span style="color:red"> <?php esc_html_e( '(if you want results from grok only, disable Site Search from Settings->Action Start Menu)', 'chatbot'); ?></span> | |
| 26 | 27 | </label> |
| 27 | 28 | </div> |
| 28 | 29 | </div> |
| 29 | 30 | </div> |
| @@ -79,14 +80,16 @@ | ||
| 79 | 80 | <div class="form-group mb-3"> |
| 80 | 81 | <label for="qcld_grok_system_content"><?php esc_attr_e( 'System Command or Prompt for RAG and OpenAI Direct (Use it to Instruct ChatGPT how to behave)', 'chatbot'); ?></label> |
| 81 | 82 | <textarea type="text" rows="5" class="form-control" id="qcld_grok_system_content" placeholder="<?php echo esc_attr( 'You are a helpful and intelligent assistant for the website "' . site_url() . '". Use live website data and the provided context to respond accurately and briefly. Stay relevant and do not introduce additional topics.' ); ?>"><?php echo esc_html( get_option( 'qcld_grok_system_content' ) ); ?></textarea><br> |
| 82 | 83 | <label><small><?php esc_html_e( "To set the ChatBot's tone and character set a system message according to your need", 'chatbot'); ?></small></label></br> |
| 83 | - <label><small><?php esc_html_e( 'Example: You are a helpful and intelligent assistant for the website "' . site_url() . '". Use live website data and the provided context to respond accurately and briefly. Stay relevant and do not introduce additional topics.', 'chatbot'); ?></small></label> | |
| 84 | + <?php /* translators: %s: website URL. */ ?> | |
| 85 | + <label><small><?php printf( esc_html__( 'Example: You are a helpful and intelligent assistant for the website %s. Use live website data and the provided context to respond accurately and briefly. Stay relevant and do not introduce additional topics.', 'chatbot' ), esc_url( site_url() ) ); ?></small></label> | |
| 84 | 86 | </div> |
| 85 | 87 | </div> |
| 86 | 88 | <div class="form-group mb-3"> |
| 87 | 89 | <a class="btn btn-success" id="qcld_save_grok_setting"><?php esc_html_e( 'Save settings', 'chatbot'); ?></a> |
| 88 | 90 | </div> |
| 91 | + </div> | |
| 89 | 92 | </div> |
| 90 | 93 | </div> |
| 91 | 94 | <div id="wp-chatbot-grok-help" class="tab-pane"> |
| 92 | 95 | <?php |