| @@ -28,9 +28,9 @@ | ||
| 28 | 28 | </h1> |
| 29 | 29 | |
| 30 | 30 | <div class="qcld-wp-chatbot-wrap-header"> |
| 31 | 31 | |
| 32 | - <div class="qcld-wp-chatbot-wrap-header-logo"><a href="#" class="qcld-wp-chatbot-wrap-site__logo"><img style="width:100%" src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/chatbot.png' ); ?>" alt="Dialogflow CX"> WPBot Control Panel </a> | |
| 32 | + <div class="qcld-wp-chatbot-wrap-header-logo"><a href="#" class="qcld-wp-chatbot-wrap-site__logo"><img src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/chatbot.png' ); ?>" alt="Dialogflow CX"> WPBot Control Panel </a> | |
| 33 | 33 | <p><strong>Core Version:</strong> v<?php echo esc_attr(QCLD_wpCHATBOT_VERSION); ?></p> |
| 34 | 34 | </div> |
| 35 | 35 | <ul class="qcld-wp-chatbot-wrap-version-wrapper"> |
| 36 | 36 | <li> |
| @@ -71,35 +71,40 @@ | ||
| 71 | 71 | <section class="wp-chatbot-tab-container-inner"> |
| 72 | 72 | <div class="wp-chatbot-tabs wp-chatbot-tabs-style-flip"> |
| 73 | 73 | <nav> |
| 74 | 74 | <ul> |
| 75 | - <li class="tab-current" tab-data="started"><a href="<?php echo esc_url($action).'&tab=started' ?>"> <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-admin-home"></span> </span> <span class="wpwbot-admin-tab-name"> | |
| 75 | + <li class="tab-current" tab-data="started" data-section="#section-flip-1"><a href="<?php echo esc_url($action).'&tab=started' ?>"> <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-admin-home"></span> </span> <span class="wpwbot-admin-tab-name"> | |
| 76 | 76 | <?php esc_html_e('Getting Started', 'chatbot'); ?> |
| 77 | 77 | </span> </a></li> |
| 78 | - <li tab-data="general"><a href="<?php echo esc_url($action) .'&tab=general' ?>"> <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-admin-generic"></span></span> <span class="wpwbot-admin-tab-name"> | |
| 78 | + <li tab-data="general" data-section="#section-flip-2"><a href="<?php echo esc_url($action) .'&tab=general' ?>"> <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-admin-generic"></span></span> <span class="wpwbot-admin-tab-name"> | |
| 79 | 79 | <?php esc_html_e('General settings', 'chatbot'); ?> |
| 80 | 80 | </span> </a></li> |
| 81 | - <li tab-data="language"><a href="<?php echo esc_url($action) .'&tab=language' ?>"> <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-translation"></span> </span> <span class="wpwbot-admin-tab-name"> | |
| 82 | - <?php esc_html_e('Change Language', 'chatbot'); ?> | |
| 81 | + <div class="cxsc-settings_openai_border"> | |
| 82 | + <a href="<?php echo esc_url( $action) .'_openAi' ?>"> | |
| 83 | + <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-update"></span> | |
| 84 | + </span> <span class=""> <?php esc_html_e('AI Settings', 'chatbot'); ?> </span> | |
| 85 | + </a> | |
| 86 | + </div> | |
| 87 | + <div class="cxsc-settings_openai_border"> | |
| 88 | + <a href="<?php echo esc_url( $action) .'_ai_actions' ?>"> | |
| 89 | + <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-update"></span> | |
| 90 | + </span> <span class=""> <?php esc_html_e('AI Actions', 'chatbot'); ?> </span> | |
| 91 | + </a> | |
| 92 | + </div> | |
| 93 | + | |
| 94 | + <li tab-data="themes" data-section="#section-flip-3"><a href="<?php echo esc_url($action) .'&tab=themes' ?>"> <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-share-alt"></span> </span> <span class="wpwbot-admin-tab-name"> | |
| 95 | + <?php esc_html_e('Icons & Themes', 'chatbot'); ?> | |
| 83 | 96 | </span> </a></li> |
| 84 | - <li tab-data="social"><a href="<?php echo esc_url($action) .'&tab=social' ?>"> <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-image-filter"></span> </span> <span class="wpwbot-admin-tab-name"> | |
| 97 | + <li tab-data="startmenu" data-section="#section-flip-6"><a href="<?php echo esc_url($action).'&tab=startmenu' ?>"> <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-menu"></span> </span> <span class="wpwbot-admin-tab-name"><?php esc_html_e('Action Start Menu', 'chatbot'); ?></span> </a></li> | |
| 98 | + <li tab-data="social" data-section="#section-flip-51"><a href="<?php echo esc_url($action) .'&tab=social' ?>"> <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-image-filter"></span> </span> <span class="wpwbot-admin-tab-name"> | |
| 85 | 99 | <?php esc_html_e('Button Configurations', 'chatbot'); ?> |
| 86 | 100 | </span> </a></li> |
| 87 | - <div class="cxsc-settings_openai_border"> <a href="<?php echo esc_url( $action) .'_openAi' ?>"> <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-update"></span> | |
| 88 | - </span> <span class=""> <?php esc_html_e('AI Settings', 'chatbot'); ?> </span> | |
| 89 | - </a> | |
| 90 | -</div> | |
| 91 | - | |
| 92 | - | |
| 93 | - | |
| 94 | - <li tab-data="themes"><a href="<?php echo esc_url($action) .'&tab=themes' ?>"> <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-share-alt"></span> </span> <span class="wpwbot-admin-tab-name"> | |
| 95 | - <?php esc_html_e('Icons & Themes', 'chatbot'); ?> | |
| 101 | + <li tab-data="language" data-section="#section-flip-5"><a href="<?php echo esc_url($action) .'&tab=language' ?>"> <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-translation"></span> </span> <span class="wpwbot-admin-tab-name"> | |
| 102 | + <?php esc_html_e('Change Language', 'chatbot'); ?> | |
| 96 | 103 | </span> </a></li> |
| 97 | - <li tab-data="support"><a href="<?php echo esc_url($action).'&tab=support' ?>"> <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-info-outline"></span> </span> <span class="wpwbot-admin-tab-name"> | |
| 104 | + <li tab-data="support" data-section="#section-flip-4"><a href="<?php echo esc_url($action).'&tab=support' ?>"> <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-info-outline"></span> </span> <span class="wpwbot-admin-tab-name"> | |
| 98 | 105 | <?php esc_html_e('FAQ Builder', 'chatbot'); ?> |
| 99 | - </span> </a></li> | |
| 100 | - <li tab-data="startmenu"><a href="<?php echo esc_url($action).'&tab=startmenu' ?>"> <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-menu"></span> </span> <span class="wpwbot-admin-tab-name"><?php esc_html_e('Start Menu', 'chatbot'); ?></span> </a></li> | |
| 101 | - | |
| 106 | + </span> </a></li> | |
| 102 | 107 | |
| 103 | 108 | <li tab-data="ai"><a href="<?php echo esc_url($action).'&tab=ai' ?>"> <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-format-chat"></span> </span> <span class="wpwbot-admin-tab-name"> |
| 104 | 109 | <?php esc_html_e('Dialogflow', 'chatbot'); ?> |
| 105 | 110 | </span> </a></li> |
| @@ -104,9 +109,9 @@ | ||
| 104 | 109 | <?php esc_html_e('Dialogflow', 'chatbot'); ?> |
| 105 | 110 | </span> </a></li> |
| 106 | 111 | |
| 107 | 112 | |
| 108 | - <li tab-data="<?php echo esc_url('rpl'); ?>" class="conversational"><a href="<?php echo esc_url($action).'&tab=rpl' ?>"> | |
| 113 | + <li tab-data="<?php echo esc_url('rpl'); ?>" data-section="#section-flip-9" class="conversational"><a href="<?php echo esc_url($action).'&tab=rpl' ?>"> | |
| 109 | 114 | <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-feedback"></span> |
| 110 | 115 | </span> <span class="wpwbot-admin-tab-name"> <?php esc_html_e('Conversational Form', 'chatbot'); ?> |
| 111 | 116 | </span> |
| 112 | 117 | </a> |
| @@ -114,9 +119,9 @@ | ||
| 114 | 119 | |
| 115 | 120 | |
| 116 | 121 | |
| 117 | 122 | |
| 118 | - <li tab-data="custom_css"> <a href="<?php echo esc_url($action).'&tab=custom_css'?>"> | |
| 123 | + <li tab-data="custom_css" data-section="#section-flip-13"> <a href="<?php echo esc_url($action).'&tab=custom_css'?>"> | |
| 119 | 124 | <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-editor-code"></span> |
| 120 | 125 | </span> <span class="wpwbot-admin-tab-name"> <?php esc_html_e('Custom CSS', 'chatbot'); ?></span> |
| 121 | 126 | </a> |
| 122 | 127 | </li> |
| @@ -167,9 +172,9 @@ | ||
| 167 | 172 | <h3 class="qcld-wpbot-main-tabs-title"><?php echo esc_html__('WPBot Interactions', 'chatbot'); ?></h3> |
| 168 | 173 | <p><?php echo esc_html__('You can use WPBot to both answer user questions and collect information from the users.', 'chatbot'); ?></p> |
| 169 | 174 | <h4><?php echo esc_html__('To create answers to user questions you can use:', 'chatbot'); ?></h4> |
| 170 | 175 | <p> <b><?php echo esc_html__('Simple Text Responses', 'chatbot'); ?></b> (built-in), <b style="font-size: 14px"><?php echo esc_html__('FAQ', 'chatbot'); ?></b>(built-in), <b style="font-size: 14px"><?php echo esc_html__('Site search', 'chatbot'); ?></b>(built-in), <b style="font-size: 14px"><?php echo esc_html__('Product search', 'chatbot'); ?></b>(built-in Pro feature), <b style="font-size: 14px"><?php echo esc_html__('DialogFlow', 'chatbot'); ?></b>(3rd Party) or <b style="font-size: 14px"><?php echo esc_html__('OpenAI', 'chatbot'); ?></b>(3rd Party)</br> |
| 171 | -</p> | |
| 176 | + </p> | |
| 172 | 177 | <h4> <?php echo esc_html__('To collect information from your users you can use:', 'chatbot'); ?></h4> |
| 173 | 178 | <p> <b> |
| 174 | 179 | <?php echo esc_html__('Conversational forms', 'chatbot'); ?></b>(built-in), <b style="font-size: 14px"><?php echo esc_html__('Mail us', 'chatbot'); ?></b>(built-in), <b style="font-size: 14px"><?php echo esc_html__('Call me back', 'chatbot'); ?></b>(built-in), <b style="font-size: 14px"><?php echo esc_html__('Collect feedback features', 'chatbot'); ?></b>(built-in)</p> |
| 175 | 180 | <hr> |
| @@ -204,9 +209,9 @@ | ||
| 204 | 209 | <div class="to-icon-txt fa-4x-txt "> |
| 205 | 210 | <h3> |
| 206 | 211 | <span>// </span><?php esc_html_e('Send eMail, Call Me Back & Feedback Collection', 'chatbot'); ?> |
| 207 | 212 | </h3> |
| 208 | - <p><?php esc_html_e('Users can send a email to the site admin directly from the Chat window for customer support. The Call Me Back feature lets you get call requests from your customers which will be emailed to you. You can also use WPBot to collect Feedback from your customers regarding anything! You can disable/enable these features from the Start Menu.', 'chatbot'); ?></p> | |
| 213 | + <p><?php esc_html_e('Users can send a email to the site admin directly from the Chat window for customer support. The Call Me Back feature lets you get call requests from your customers which will be emailed to you. You can also use WPBot to collect Feedback from your customers regarding anything! You can disable/enable these features from the Action Start Menu.', 'chatbot'); ?></p> | |
| 209 | 214 | </div> |
| 210 | 215 | </div> |
| 211 | 216 | <div class="to-icon-box left txt-left"> |
| 212 | 217 | <div class="to-icon-txt fa-4x-txt "> |
| @@ -260,14 +265,14 @@ | ||
| 260 | 265 | </h4> |
| 261 | 266 | </div> |
| 262 | 267 | <div id="collapseTwo" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwo"> |
| 263 | 268 | <div class="panel-body"> |
| 264 | - <p><?php esc_html_e('Extend the Start Menu with the', 'chatbot'); ?> <?php esc_html_e('powerful Conversational Forms', 'chatbot'); ?> <?php esc_html_e(' Addon for WPBot. It extends WPBot’s functionality and adds the ability to create', 'chatbot'); ?> <?php esc_html_e('conditional conversations', 'chatbot'); ?> <?php esc_html_e('and/or', 'chatbot'); ?> <?php esc_html_e('forms', 'chatbot'); ?> <?php esc_html_e('for the WPBot. It is a visual,', 'chatbot'); ?> <?php esc_html_e('drag and drop', 'chatbot'); ?><?php esc_html_e(' form builder that is easy to use and very flexible. Supports conditional logic and use of variables to build all types of forms or just', 'chatbot'); ?> <?php esc_html_e('menu driven', 'chatbot'); ?> | |
| 269 | + <p><?php esc_html_e('Extend the Action Start Menu with the', 'chatbot'); ?> <?php esc_html_e('powerful Conversational Forms', 'chatbot'); ?> <?php esc_html_e(' Addon for WPBot. It extends WPBot’s functionality and adds the ability to create', 'chatbot'); ?> <?php esc_html_e('conditional conversations', 'chatbot'); ?> <?php esc_html_e('and/or', 'chatbot'); ?> <?php esc_html_e('forms', 'chatbot'); ?> <?php esc_html_e('for the WPBot. It is a visual,', 'chatbot'); ?> <?php esc_html_e('drag and drop', 'chatbot'); ?><?php esc_html_e(' form builder that is easy to use and very flexible. Supports conditional logic and use of variables to build all types of forms or just', 'chatbot'); ?> <?php esc_html_e('menu driven', 'chatbot'); ?> | |
| 265 | 270 | <?php esc_html_e('conversations', 'chatbot'); ?> <?php esc_html_e('with if else logic', 'chatbot'); ?> . <?php esc_html_e('Conversations or forms can be', 'chatbot'); ?> <?php esc_html_e('eMailed', 'chatbot'); ?> <?php esc_html_e('to you and', 'chatbot'); ?> <?php esc_html_e('saved in the database', 'chatbot'); ?>. |
| 266 | 271 | </p> |
| 267 | 272 | <h4><?php esc_html_e('Conversational Form Builder Free or Pro version works with the WPBot Free or Pro versions.', 'chatbot'); ?></h4> |
| 268 | 273 | <a class="FormBuilder" href="https://wordpress.org/plugins/conversational-forms/" target="_blank"><?php esc_html_e('Download Free Version', 'chatbot'); ?></a> |
| 269 | - <a class="FormBuilder" href="https://www.quantumcloud.com/products/conversations-and-form-builder/" target="_blank"><?php esc_html_e('Grab the Pro version', 'chatbot'); ?></a> | |
| 274 | + <a class="FormBuilder" href="https://www.quantumcloud.net/products/conversations-and-form-builder/" target="_blank"><?php esc_html_e('Grab the Pro version', 'chatbot'); ?></a> | |
| 270 | 275 | <h4><?php esc_html_e('What Can You Do with it?', 'chatbot'); ?></h4> |
| 271 | 276 | <p><?php esc_html_e('Conversation Forms allows you to create a wide variety of forms, that might include:', 'chatbot'); ?></p> |
| 272 | 277 | <ul> |
| 273 | 278 | <li><?php esc_html_e('Create menu or button driven conversations', 'chatbot'); ?></li> |
| @@ -370,16 +375,16 @@ | ||
| 370 | 375 | </div> |
| 371 | 376 | <div class="panel panel-default"> |
| 372 | 377 | <div class="panel-heading" role="tab" id="headingSix"> |
| 373 | 378 | <h4 class="panel-title"> |
| 374 | - <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseSix" aria-expanded="false" aria-controls="collapseSix"> <?php esc_html_e('Start Menu', 'chatbot'); ?> </a> | |
| 379 | + <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseSix" aria-expanded="false" aria-controls="collapseSix"> <?php esc_html_e('Action Start Menu', 'chatbot'); ?> </a> | |
| 375 | 380 | </h4> |
| 376 | 381 | </div> |
| 377 | 382 | <div id="collapseSix" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingSix"> |
| 378 | 383 | <div class="panel-body"> |
| 379 | - <?php echo esc_html_e('While using a ChatBot, users can get lost or not know how to Interact with the Bot. That is why we have a Start menu to always give the user', 'chatbot'); ?> <b><?php echo esc_html_e('options to do more', 'chatbot'); ?></b>. <?php echo esc_html_e('From ChatBot->Settings->Start Menu you can drag Available Menu Items (Intents) to the Active Menu Items area.', 'chatbot'); ?></br></br> | |
| 380 | - <?php echo esc_html_e('Besides the built-in Intents, you can also create custom Intents for your Start Menu using','chatbot'); ?> <b><?php echo esc_html_e('Simple Text Responses', 'chatbot'); ?></b> and <b><?php echo esc_html_e('Conversational form builder', 'chatbot'); ?></b>. <?php echo esc_html_e('You can create almost any kind of response with the combinations of the two.', 'chatbot'); ?></br></br> | |
| 381 | - <?php echo esc_html_e('We recommend enabling','chatbot'); ?><b><?php echo esc_html_e(' Show Start Menu After Greetings ', 'chatbot'); ?></b><?php echo esc_html_e('from ChatBot Pro->Settings->General settings.','chatbot'); ?> | |
| 384 | + <?php echo esc_html_e('While using a ChatBot, users can get lost or not know how to Interact with the Bot. That is why we have a Action Start Menu to always give the user', 'chatbot'); ?> <b><?php echo esc_html_e('options to do more', 'chatbot'); ?></b>. <?php echo esc_html_e('From ChatBot->Settings->Action Start Menu you can drag Available Menu Items (Intents) to the Active Menu Items area.', 'chatbot'); ?></br></br> | |
| 385 | + <?php echo esc_html_e('Besides the built-in Intents, you can also create custom Intents for your Action Start Menu using','chatbot'); ?> <b><?php echo esc_html_e('Simple Text Responses', 'chatbot'); ?></b> and <b><?php echo esc_html_e('Conversational form builder', 'chatbot'); ?></b>. <?php echo esc_html_e('You can create almost any kind of response with the combinations of the two.', 'chatbot'); ?></br></br> | |
| 386 | + <?php echo esc_html_e('We recommend enabling','chatbot'); ?><b><?php echo esc_html_e(' Show Action Start Menu After Greetings ', 'chatbot'); ?></b><?php echo esc_html_e('from ChatBot Pro->Settings->General settings.','chatbot'); ?> | |
| 382 | 387 | </div> |
| 383 | 388 | </div> |
| 384 | 389 | </div> |
| 385 | 390 | <div class="panel panel-default"> |
| @@ -389,9 +394,9 @@ | ||
| 389 | 394 | </h4> |
| 390 | 395 | </div> |
| 391 | 396 | <div id="collapseSeven" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingSeven"> |
| 392 | 397 | <div class="panel-body"> |
| 393 | - <?php echo esc_html_e('Head over to ChatBot Pro->Settings->General and make sure to Enable the Floating Icon. As soon as you do that, the ChatBot can start working for your users. Make sure to drag some items to the Active Menu area under the Start Menu.', 'chatbot'); ?></br></br> | |
| 398 | + <?php echo esc_html_e('Head over to ChatBot Pro->Settings->General and make sure to Enable the Floating Icon. As soon as you do that, the ChatBot can start working for your users. Make sure to drag some items to the Active Menu area under the Action Start Menu.', 'chatbot'); ?></br></br> | |
| 394 | 399 | <?php echo esc_html_e('The ChatBot settings area is full of options. Do not be intimidated by that. You do not need to use all the options – just what you need. Head over to the Settings->', 'chatbot'); ?><b><?php echo esc_html_e('Icons and Themes','chatbot'); ?></b> <?php echo esc_html_e('for options to customize your ChatBot. You will also find options to embed the ChatBot on a page, click to chat, FAQ builder etc. under the Setting options.', 'chatbot'); ?> |
| 395 | 400 | </div> |
| 396 | 401 | </div> |
| 397 | 402 | </div> |
| @@ -694,10 +699,10 @@ | ||
| 694 | 699 | <input value="1" id="skip_wp_greetings" type="checkbox" name="skip_wp_greetings" <?php echo(get_option('skip_wp_greetings') == 1 ? 'checked' : ''); ?>> |
| 695 | 700 | <div class="card-body"> |
| 696 | 701 | <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div> |
| 697 | 702 | <div class="icon-wrapper"><i class="dashicons dashicons-controls-skipforward" style="font-size:24px;width:24px;height:24px;"></i></div> |
| 698 | - <h4><?php echo esc_html__("Skip Greetings (Asking for Name, Email) and Show Start Menu", 'chatbot'); ?></h4> | |
| 699 | - <p><?php echo esc_html__("Skip asking for name, Email and directly show the Start Menu.", 'chatbot'); ?></p> | |
| 703 | + <h4><?php echo esc_html__("Skip Greetings (Asking for Name, Email) and Show Action Start Menu", 'chatbot'); ?></h4> | |
| 704 | + <p><?php echo esc_html__("Skip asking for name, Email and directly show the Action Start Menu.", 'chatbot'); ?></p> | |
| 700 | 705 | </div> |
| 701 | 706 | </label> |
| 702 | 707 | <label class="wpbot-checkbox-card"> |
| 703 | 708 | <input value="1" id="skip_wp_greetings_donot_show_menu" type="checkbox" name="skip_wp_greetings_donot_show_menu" <?php echo(get_option('skip_wp_greetings_donot_show_menu') == 1 ? 'checked' : ''); ?>> |
| @@ -703,10 +708,10 @@ | ||
| 703 | 708 | <input value="1" id="skip_wp_greetings_donot_show_menu" type="checkbox" name="skip_wp_greetings_donot_show_menu" <?php echo(get_option('skip_wp_greetings_donot_show_menu') == 1 ? 'checked' : ''); ?>> |
| 704 | 709 | <div class="card-body"> |
| 705 | 710 | <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div> |
| 706 | 711 | <div class="icon-wrapper"><i class="dashicons dashicons-hidden" style="font-size:24px;width:24px;height:24px;"></i></div> |
| 707 | - <h4><?php echo esc_html__("Skip Greetings (Asking for Name, Email) and Disable Start Menu", 'chatbot'); ?></h4> | |
| 708 | - <p><?php echo esc_html__("Skip asking for name, Email and disable the Start Menu.", 'chatbot'); ?></p> | |
| 712 | + <h4><?php echo esc_html__("Skip Greetings (Asking for Name, Email) and Disable Action Start Menu", 'chatbot'); ?></h4> | |
| 713 | + <p><?php echo esc_html__("Skip asking for name, Email and disable the Action Start Menu.", 'chatbot'); ?></p> | |
| 709 | 714 | </div> |
| 710 | 715 | </label> |
| 711 | 716 | <label class="wpbot-checkbox-card"> |
| 712 | 717 | <input value="1" id="show_menu_after_greetings" type="checkbox" name="show_menu_after_greetings" <?php echo (get_option('show_menu_after_greetings') == 1 ? esc_attr('checked' ): ''); ?>> |
| @@ -712,13 +717,41 @@ | ||
| 712 | 717 | <input value="1" id="show_menu_after_greetings" type="checkbox" name="show_menu_after_greetings" <?php echo (get_option('show_menu_after_greetings') == 1 ? esc_attr('checked' ): ''); ?>> |
| 713 | 718 | <div class="card-body"> |
| 714 | 719 | <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div> |
| 715 | 720 | <div class="icon-wrapper"><i class="dashicons dashicons-menu-alt" style="font-size:24px;width:24px;height:24px;"></i></div> |
| 716 | - <h4><?php esc_html_e('Show Start Menu After Greetings', 'chatbot'); ?></h4> | |
| 717 | - <p><?php esc_html_e('Show Start Menu immediately after greetings.', 'chatbot'); ?></p> | |
| 721 | + <h4><?php esc_html_e('Show Action Start Menu After Greetings', 'chatbot'); ?></h4> | |
| 722 | + <p><?php esc_html_e('Show Action Start Menu immediately after greetings.', 'chatbot'); ?></p> | |
| 718 | 723 | </div> |
| 719 | 724 | </label> |
| 720 | 725 | </div> |
| 726 | + <div class="wpbot-cards-grid-divider"> </div> | |
| 727 | + <div class="wpbot-cards-grid"> | |
| 728 | + <label class="wpbot-checkbox-card"> | |
| 729 | + <span class="pro-badge" style="display:inline-block; padding:2px 8px; background:#5B4E96; color:#fff; border-radius:20px; font-size:9px; font-weight:bold; text-transform:uppercase; vertical-align:middle;position: relative;top: 10px;z-index: 999;">PRO</span> | |
| 730 | + <input value="1" id="skip_wp_greetings_trigger_intent" type="checkbox" name="skip_wp_greetings_trigger_intent" disabled /> | |
| 731 | + <div class="card-body"> | |
| 732 | + <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div> | |
| 733 | + <div class="icon-wrapper"><i class="dashicons dashicons-controls-skipforward" style="font-size:24px;width:24px;height:24px;"></i></div> | |
| 734 | + <h4><?php echo esc_html__("Skip Greetings and Trigger an Intent", 'chatbot'); ?> </h4> | |
| 735 | + <p><?php echo esc_html__("Skip Asking for Name and Trigger an Intent", 'chatbot'); ?></p> | |
| 736 | + <div class="qc_wp_intent_select_container" style="margin-top: 10px; "> | |
| 737 | + <div style="margin-bottom: 8px;"> | |
| 738 | + <label style="font-weight: 600; font-size: 13px; color: #5b4e96; display: block; margin-bottom: 4px;"><?php esc_html_e('Select an Intent for non logged in user', 'chatbot'); ?></label> | |
| 739 | + <select name="qlcd_wp_chatbot_intent_for_non_logged_in_user" id="qlcd_wp_chatbot_intent_for_non_logged_in_user" style="width: 100%; max-width: 250px;" disabled> | |
| 740 | + <option value=""><?php esc_html_e('Select Intent', 'chatbot'); ?></option> | |
| 741 | + | |
| 742 | + </select> | |
| 743 | + </div> | |
| 744 | + <div> | |
| 745 | + <label style="font-weight: 600; font-size: 13px; color: #5b4e96; display: block; margin-bottom: 4px;"><?php esc_html_e('Select an Intent for Logged in User', 'chatbot'); ?></label> | |
| 746 | + <select name="qlcd_wp_chatbot_intent_for_logged_in_user" id="qlcd_wp_chatbot_intent_for_logged_in_user" style="width: 100%; max-width: 250px;" disabled> | |
| 747 | + <option value=""><?php esc_html_e('Select Intent', 'chatbot'); ?></option> | |
| 748 | + </select> | |
| 749 | + </div> | |
| 750 | + </div> | |
| 751 | + </div> | |
| 752 | + </label> | |
| 753 | + </div> | |
| 721 | 754 | <div class="wpbot-cards-grid-divider"></div> |
| 722 | 755 | <div class="wpbot-cards-grid"> |
| 723 | 756 | <label class="wpbot-checkbox-card"> |
| 724 | 757 | <input value="1" id="disable_back_to_start_menu" type="checkbox" name="disable_back_to_start_menu" <?php echo (get_option('disable_back_to_start_menu') == 1 ? esc_attr('checked' ): ''); ?>> |
| @@ -724,10 +757,10 @@ | ||
| 724 | 757 | <input value="1" id="disable_back_to_start_menu" type="checkbox" name="disable_back_to_start_menu" <?php echo (get_option('disable_back_to_start_menu') == 1 ? esc_attr('checked' ): ''); ?>> |
| 725 | 758 | <div class="card-body"> |
| 726 | 759 | <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div> |
| 727 | 760 | <div class="icon-wrapper"><i class="dashicons dashicons-undo" style="font-size:24px;width:24px;height:24px;"></i></div> |
| 728 | - <h4><?php esc_html_e('Disable Back to Start Menu', 'chatbot'); ?></h4> | |
| 729 | - <p><?php esc_html_e('Remove the option to go back to the Start Menu.', 'chatbot'); ?></p> | |
| 761 | + <h4><?php esc_html_e('Disable Back to Action Start Menu', 'chatbot'); ?></h4> | |
| 762 | + <p><?php esc_html_e('Remove the option to go back to the Action Start Menu.', 'chatbot'); ?></p> | |
| 730 | 763 | </div> |
| 731 | 764 | </label> |
| 732 | 765 | </div> |
| 733 | 766 | <div class="wpbot-cards-grid-divider"></div> |
| @@ -808,8 +841,13 @@ | ||
| 808 | 841 | </div> |
| 809 | 842 | </div> |
| 810 | 843 | </div> |
| 811 | 844 | </div> |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 812 | 850 | <div class="row"> |
| 813 | 851 | <div class="col-xs-12"> |
| 814 | 852 | <div class="form-group"> |
| 815 | 853 | <h4 class="qc-opt-title"> |
| @@ -1565,9 +1603,57 @@ | ||
| 1565 | 1603 | </ul> |
| 1566 | 1604 | <div class="tab-content"> |
| 1567 | 1605 | <div id="wp-chatbot-icon-theme-settings" class="tab-pane fade in active"> |
| 1568 | 1606 | <div class="top-section"> |
| 1569 | - <div class="row"> | |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
| 1610 | + <div class="row"> | |
| 1611 | + <div class="col-xs-6"> | |
| 1612 | + <div class="form-group"> | |
| 1613 | + <h4 class="qc-opt-title"> | |
| 1614 | + <?php esc_html_e('ChatBot Window Max Height', 'chatbot'); ?> | |
| 1615 | + </h4> | |
| 1616 | + <div class="cxsc-settings-blocks" style=" font-size: 15px;"> | |
| 1617 | + <?php | |
| 1618 | + $chatbot_content_max_height = get_option('chatbot_content_max_height'); | |
| 1619 | + if (!$chatbot_content_max_height) { | |
| 1620 | + $chatbot_content_max_height = 80; | |
| 1621 | + } else { | |
| 1622 | + $chatbot_content_max_height = get_option('chatbot_content_max_height'); | |
| 1623 | + } | |
| 1624 | + ?> | |
| 1625 | + <input value="<?php echo esc_attr( $chatbot_content_max_height ); ?>" id="chatbot_content_max_height" type="number" min="0" max="100" placeholder="Max height 100" name="chatbot_content_max_height"> vh | |
| 1626 | + </div> | |
| 1627 | + </div> | |
| 1628 | + </div> | |
| 1629 | + <div class="col-xs-6"> | |
| 1630 | + <div class="form-group"> | |
| 1631 | + <h4 class="qc-opt-title"> | |
| 1632 | + <?php esc_html_e('ChatBot Window Max Height ( Mobile Device )', 'chatbot'); ?> | |
| 1633 | + </h4> | |
| 1634 | + <div class="cxsc-settings-blocks" style=" font-size: 15px;"> | |
| 1635 | + <?php | |
| 1636 | + $chatbot_content_max_height_responsive = get_option('chatbot_content_max_height_responsive'); | |
| 1637 | + if (!$chatbot_content_max_height_responsive) { | |
| 1638 | + $chatbot_content_max_height_responsive = 100; | |
| 1639 | + } else { | |
| 1640 | + $chatbot_content_max_height_responsive = get_option('chatbot_content_max_height_responsive'); | |
| 1641 | + } | |
| 1642 | + ?> | |
| 1643 | + <input value="<?php echo esc_attr( $chatbot_content_max_height_responsive ); ?>" id="chatbot_content_max_height_responsive" type="number" min="0" max="100" placeholder="Max height 100" name="chatbot_content_max_height_responsive"> vh | |
| 1644 | + </div> | |
| 1645 | + </div> | |
| 1646 | + </div> | |
| 1647 | + </div> | |
| 1648 | + | |
| 1649 | + | |
| 1650 | + | |
| 1651 | + | |
| 1652 | + | |
| 1653 | + | |
| 1654 | + | |
| 1655 | + <div class="row"> | |
| 1570 | 1656 | <div class="col-xs-12"> |
| 1571 | 1657 | |
| 1572 | 1658 | <h3 class="qcld-wpbot-main-tabs-title"> |
| 1573 | 1659 | <?php esc_html_e('WPBot Icon', 'chatbot'); ?> |
| @@ -1749,11 +1835,121 @@ | ||
| 1749 | 1835 | </div> |
| 1750 | 1836 | </div> |
| 1751 | 1837 | </div> |
| 1752 | 1838 | </div> |
| 1839 | + <!-- ===== Custom Icon Video / YouTube ===== --> | |
| 1840 | + <div class="row"> | |
| 1841 | + <div class="col-xs-12"> | |
| 1842 | + <div class="form-group"> | |
| 1843 | + <h4 class="qc-opt-title"><?php echo esc_html__('Custom Icon Video / YouTube Link', 'chatbot'); ?></h4> | |
| 1844 | + <p style="margin-bottom:8px;"><?php echo esc_html__('Upload a short video file or paste a YouTube embed URL to use instead of the wpbot icon.', 'chatbot'); ?></p> | |
| 1845 | + <div class="cxsc-settings-blocks"> | |
| 1753 | 1846 | |
| 1847 | + <?php | |
| 1848 | + $wp_chatbot_icon_video = get_option('wp_chatbot_icon_video', ''); | |
| 1849 | + $is_youtube = (strpos($wp_chatbot_icon_video, 'youtube.com') !== false || strpos($wp_chatbot_icon_video, 'youtu.be') !== false); | |
| 1850 | + $is_video = !$is_youtube && $wp_chatbot_icon_video !== ''; | |
| 1851 | + ?> | |
| 1754 | 1852 | |
| 1853 | + <!-- Video Upload --> | |
| 1854 | + <p style="font-weight:600;margin-bottom:4px;"><?php echo esc_html__('Upload Video File', 'chatbot'); ?></p> | |
| 1855 | + <input type="hidden" | |
| 1856 | + name="wp_chatbot_icon_video" | |
| 1857 | + id="wp_chatbot_icon_video" | |
| 1858 | + value="<?php echo esc_url($wp_chatbot_icon_video); ?>" /> | |
| 1859 | + <button type="button" id="wp_chatbot_icon_video_btn" class="button"> | |
| 1860 | + <?php echo esc_html__('Upload Video', 'chatbot'); ?> | |
| 1861 | + </button> | |
| 1862 | + <?php if ($is_video): ?> | |
| 1863 | + <span style="margin-left:8px;vertical-align:middle;"> | |
| 1864 | + <video src="<?php echo esc_url($wp_chatbot_icon_video); ?>" width="80" height="80" style="border-radius:50%;object-fit:cover;" muted loop autoplay playsinline></video> | |
| 1865 | + </span> | |
| 1866 | + <?php endif; ?> | |
| 1867 | + <button type="button" id="wp_chatbot_icon_video_clear_btn" class="button" style="margin-left:6px;<?php echo ($wp_chatbot_icon_video === '' || $is_youtube) ? 'display:none;' : ''; ?>"> | |
| 1868 | + <?php echo esc_html__('Remove Video', 'chatbot'); ?> | |
| 1869 | + </button> | |
| 1755 | 1870 | |
| 1871 | + <!-- YouTube URL --> | |
| 1872 | + <p style="font-weight:600;margin-top:12px;margin-bottom:4px;"><?php echo esc_html__('— or — YouTube Embed URL', 'chatbot'); ?></p> | |
| 1873 | + <?php $youtube_url_val = $is_youtube ? esc_url($wp_chatbot_icon_video) : ''; ?> | |
| 1874 | + <input type="url" | |
| 1875 | + name="wp_chatbot_icon_youtube_url" | |
| 1876 | + id="wp_chatbot_icon_youtube_url" | |
| 1877 | + class="regular-text" | |
| 1878 | + placeholder="https://www.youtube.com/embed/VIDEO_ID" | |
| 1879 | + value="<?php echo esc_url( $youtube_url_val ); ?>" /> | |
| 1880 | + <button type="button" id="wp_chatbot_icon_youtube_url_clear_btn" class="button" style="margin-left:6px;<?php echo ($youtube_url_val === '' ? 'display:none;' : ''); ?>"> | |
| 1881 | + <?php echo esc_html__('Remove YouTube URL', 'chatbot'); ?> | |
| 1882 | + </button> | |
| 1883 | + <p class="description"><?php echo esc_html__('Paste the YouTube embed URL (e.g. https://www.youtube.com/embed/xxxxx). This will override the uploaded video above.', 'chatbot'); ?></p> | |
| 1884 | + | |
| 1885 | + <p style="font-weight:600;margin-top:14px;margin-bottom:4px;"><?php echo esc_html__('Autoplay Delay (seconds)', 'chatbot'); ?></p> | |
| 1886 | + <input type="number" | |
| 1887 | + name="wp_chatbot_icon_video_delay" | |
| 1888 | + id="wp_chatbot_icon_video_delay" | |
| 1889 | + class="small-text" | |
| 1890 | + min="0" | |
| 1891 | + max="60" | |
| 1892 | + step="1" | |
| 1893 | + value="<?php echo absint( get_option('wp_chatbot_icon_video_delay', 0) ); ?>" /> | |
| 1894 | + <p class="description"><?php echo esc_html__('Wait this many seconds after page load before starting the video. Set to 0 for immediate autoplay.', 'chatbot'); ?></p> | |
| 1895 | + | |
| 1896 | + </div> | |
| 1897 | + </div> | |
| 1898 | + </div> | |
| 1899 | + </div> | |
| 1900 | + <!-- ===== /Custom Icon Video / YouTube ===== --> | |
| 1901 | + <script> | |
| 1902 | + (function($){ | |
| 1903 | + $(document).ready(function(){ | |
| 1904 | + // Video upload via WP Media Library | |
| 1905 | + $('#wp_chatbot_icon_video_btn').on('click', function(e){ | |
| 1906 | + e.preventDefault(); | |
| 1907 | + var frame = wp.media({ | |
| 1908 | + title: '<?php echo esc_js(__('Select or Upload Video', 'chatbot')); ?>', | |
| 1909 | + button: { text: '<?php echo esc_js(__('Use this video', 'chatbot')); ?>' }, | |
| 1910 | + multiple: false, | |
| 1911 | + library: { type: 'video' } | |
| 1912 | + }); | |
| 1913 | + frame.on('select', function(){ | |
| 1914 | + var attachment = frame.state().get('selection').first().toJSON(); | |
| 1915 | + $('#wp_chatbot_icon_video').val(attachment.url); | |
| 1916 | + $('#wp_chatbot_icon_youtube_url').val(''); | |
| 1917 | + $('#wp_chatbot_icon_youtube_url_clear_btn').hide(); | |
| 1918 | + $('#wp_chatbot_icon_video_clear_btn').show(); | |
| 1919 | + }); | |
| 1920 | + frame.open(); | |
| 1921 | + }); | |
| 1922 | + | |
| 1923 | + // Clear uploaded video | |
| 1924 | + $('#wp_chatbot_icon_video_clear_btn').on('click', function(){ | |
| 1925 | + $('#wp_chatbot_icon_video').val(''); | |
| 1926 | + $(this).hide(); | |
| 1927 | + }); | |
| 1928 | + | |
| 1929 | + // Show/hide Remove YouTube URL button dynamically | |
| 1930 | + $('#wp_chatbot_icon_youtube_url').on('input keyup change', function(){ | |
| 1931 | + if ($(this).val().trim() !== '') { | |
| 1932 | + $('#wp_chatbot_icon_youtube_url_clear_btn').show(); | |
| 1933 | + } else { | |
| 1934 | + $('#wp_chatbot_icon_youtube_url_clear_btn').hide(); | |
| 1935 | + } | |
| 1936 | + }); | |
| 1937 | + | |
| 1938 | + // Clear YouTube URL | |
| 1939 | + $('#wp_chatbot_icon_youtube_url_clear_btn').on('click', function(){ | |
| 1940 | + $('#wp_chatbot_icon_youtube_url').val(''); | |
| 1941 | + var currentVideoVal = $('#wp_chatbot_icon_video').val(); | |
| 1942 | + if (currentVideoVal.indexOf('youtube.com') !== -1 || currentVideoVal.indexOf('youtu.be') !== -1) { | |
| 1943 | + $('#wp_chatbot_icon_video').val(''); | |
| 1944 | + } | |
| 1945 | + $(this).hide(); | |
| 1946 | + }); | |
| 1947 | + }); | |
| 1948 | + })(jQuery); | |
| 1949 | + </script> | |
| 1950 | + | |
| 1951 | + | |
| 1756 | 1952 | <div class="row"> |
| 1757 | 1953 | <div class="col-xs-12"> |
| 1758 | 1954 | <div class="form-group"> |
| 1759 | 1955 | <h4 class="qc-opt-title"> |
| @@ -2244,9 +2440,9 @@ | ||
| 2244 | 2440 | <input type="text" class="form-control" name="support_query[]" |
| 2245 | 2441 | placeholder="<?php esc_html_e('FAQ Query ', 'chatbot'); ?> "> |
| 2246 | 2442 | <br> |
| 2247 | 2443 | <p class="qc-opt-dcs-font"><strong> |
| 2248 | - <?php esc_html_e('Support answer', 'chatbot'); ?> | |
| 2444 | + <?php esc_html_e('FAQ answer', 'chatbot'); ?> | |
| 2249 | 2445 | </strong></p> |
| 2250 | 2446 | <?php |
| 2251 | 2447 | wp_editor(html_entity_decode(stripcslashes('')), 'support_ans_0', array('textarea_name' => |
| 2252 | 2448 | 'support_ans[]', |
| @@ -2290,8 +2486,10 @@ | ||
| 2290 | 2486 | <div class="top-section"> |
| 2291 | 2487 | <div class="notification-block-inner"> |
| 2292 | 2488 | <div class="row"> |
| 2293 | 2489 | <div class="col-xs-12"> |
| 2490 | + | |
| 2491 | + | |
| 2294 | 2492 | <div id="qcld-show-more-wrapper-box"> |
| 2295 | 2493 | <div class="qcld-show-more-text qcld-show-more-show-more-height"> |
| 2296 | 2494 | <div class="row"> |
| 2297 | 2495 | <div class="col-xs-12"> |
| @@ -2298,34 +2496,26 @@ | ||
| 2298 | 2496 | <h3 class="qcld-wpbot-main-tabs-title"><?php echo esc_attr('Predefined Intents'); ?></h3> |
| 2299 | 2497 | <div class="row"> |
| 2300 | 2498 | <div class="col-xs-12"> |
| 2301 | 2499 | <div class="form-group"> |
| 2302 | - <h4 class="qc-opt-title" style="margin-bottom: 20px;"> | |
| 2500 | + <h4 class="qc-opt-title"> | |
| 2303 | 2501 | <?php esc_html_e('Site Search', 'chatbot'); ?> |
| 2304 | 2502 | </h4> |
| 2305 | - <div class="wpbot-cards-grid" style="margin-top: 0;"> | |
| 2306 | - <label class="wpbot-checkbox-card"> | |
| 2307 | - <input value="<?php echo esc_attr('1' ); ?>" id="disable_wp_chatbot_site_search" type="checkbox" | |
| 2308 | - name="disable_wp_chatbot_site_search" <?php echo(get_option('disable_wp_chatbot_site_search') == 1 ? esc_attr('checked' ): ''); ?>> | |
| 2309 | - <div class="card-body"> | |
| 2310 | - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div> | |
| 2311 | - <div class="icon-wrapper"><i class="dashicons dashicons-search" style="font-size:24px;width:24px;height:24px;"></i></div> | |
| 2312 | - <h4><?php esc_html_e('Disable site search feature and button on Start Menu', 'chatbot'); ?></h4> | |
| 2313 | - <p><?php esc_html_e('Disable site search feature and button on Start Menu.', 'chatbot'); ?></p> | |
| 2314 | - </div> | |
| 2503 | + <div class="cxsc-settings-blocks"> | |
| 2504 | + <input value="<?php echo esc_attr('1' ); ?>" id="disable_wp_chatbot_site_search" type="checkbox" | |
| 2505 | + name="disable_wp_chatbot_site_search" <?php echo(get_option('disable_wp_chatbot_site_search') == 1 ? esc_attr('checked' ): ''); ?>> | |
| 2506 | + <label for="disable_wp_chatbot_site_search"> | |
| 2507 | + <?php esc_html_e('Disable site search feature and button on Action Start Menu', 'chatbot'); ?> | |
| 2315 | 2508 | </label> |
| 2316 | - <label class="wpbot-checkbox-card"> | |
| 2317 | - <input value="<?php echo esc_attr('1' ); ?>" id="enable_wp_chatbot_post_content" type="checkbox" | |
| 2318 | - name="enable_wp_chatbot_post_content" <?php echo(get_option('enable_wp_chatbot_post_content') == 1 ? esc_attr('checked' ): ''); ?>> | |
| 2319 | - <div class="card-body"> | |
| 2320 | - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div> | |
| 2321 | - <div class="icon-wrapper"><i class="dashicons dashicons-media-text" style="font-size:24px;width:24px;height:24px;"></i></div> | |
| 2322 | - <h4><?php esc_html_e('Enable Searching Post Contents as well', 'chatbot'); ?></h4> | |
| 2323 | - <p><?php esc_html_e('Enable searching within post contents as well.', 'chatbot'); ?></p> | |
| 2324 | - </div> | |
| 2509 | + </br><small><?php echo esc_html( '(You can disable searching post contents option below so it searches only the post Titles for most relevancy)'); ?></small></br> | |
| 2510 | + </div> | |
| 2511 | + <div class="cxsc-settings-blocks"> | |
| 2512 | + <input value="<?php echo esc_attr('1' ); ?>" id="enable_wp_chatbot_post_content" type="checkbox" | |
| 2513 | + name="enable_wp_chatbot_post_content" <?php echo(get_option('enable_wp_chatbot_post_content') == 1 ? esc_attr('checked' ): ''); ?>> | |
| 2514 | + <label for="enable_wp_chatbot_post_content"> | |
| 2515 | + <?php esc_html_e('Enable Searching Post Contents as well', 'chatbot'); ?> | |
| 2325 | 2516 | </label> |
| 2326 | 2517 | </div> |
| 2327 | - <small style="display:block; margin-bottom: 15px; color: #64748b;"><?php echo esc_html( '(You can disable searching post contents option so it searches only the post Titles for most relevancy)'); ?></small> | |
| 2328 | 2518 | </div> |
| 2329 | 2519 | </div> |
| 2330 | 2520 | </div> |
| 2331 | 2521 | <div class="form-group"> |
| @@ -2341,18 +2531,13 @@ | ||
| 2341 | 2531 | <div class="form-group"> |
| 2342 | 2532 | <h4 class="qc-opt-title"> |
| 2343 | 2533 | <?php esc_html_e('Call Me', 'chatbot'); ?> |
| 2344 | 2534 | </h4> |
| 2345 | - <div class="wpbot-cards-grid" style="margin-top: 15px;"> | |
| 2346 | - <label class="wpbot-checkbox-card"> | |
| 2347 | - <input value="<?php echo esc_attr('1'); ?>" id="disable_wp_chatbot_call_gen" type="checkbox" | |
| 2348 | - name="disable_wp_chatbot_call_gen" <?php echo(get_option('disable_wp_chatbot_call_gen') == 1 ? esc_attr('checked' ): ''); ?>> | |
| 2349 | - <div class="card-body"> | |
| 2350 | - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div> | |
| 2351 | - <div class="icon-wrapper"><i class="dashicons dashicons-phone" style="font-size:24px;width:24px;height:24px;"></i></div> | |
| 2352 | - <h4><?php esc_html_e('Disable Call Me feature and button on Start Menu', 'chatbot'); ?></h4> | |
| 2353 | - <p><?php esc_html_e('Disable Call Me feature and button on Start Menu.', 'chatbot'); ?></p> | |
| 2354 | - </div> | |
| 2535 | + <div class="cxsc-settings-blocks"> | |
| 2536 | + <input value="<?php echo esc_attr('1'); ?>" id="disable_wp_chatbot_call_gen" type="checkbox" | |
| 2537 | + name="disable_wp_chatbot_call_gen" <?php echo(get_option('disable_wp_chatbot_call_gen') == 1 ? esc_attr('checked' ): ''); ?>> | |
| 2538 | + <label for="disable_wp_chatbot_call_gen"> | |
| 2539 | + <?php esc_html_e('Disable Call Me feature and button on Action Start Menu', 'chatbot'); ?> | |
| 2355 | 2540 | </label> |
| 2356 | 2541 | </div> |
| 2357 | 2542 | </div> |
| 2358 | 2543 | </div> |
| @@ -2370,18 +2555,13 @@ | ||
| 2370 | 2555 | <div class="form-group"> |
| 2371 | 2556 | <h4 class="qc-opt-title"> |
| 2372 | 2557 | <?php esc_html_e('Email', 'chatbot'); ?> |
| 2373 | 2558 | </h4> |
| 2374 | - <div class="wpbot-cards-grid" style="margin-top: 15px;"> | |
| 2375 | - <label class="wpbot-checkbox-card"> | |
| 2376 | - <input value="<?php echo esc_attr('1' ); ?>" id="disable_wp_chatbot_feedback" type="checkbox" | |
| 2377 | - name="disable_wp_chatbot_feedback" <?php echo esc_attr((get_option('disable_wp_chatbot_feedback') == 1 ? 'checked' : ''), 'chatbot' ); ?>> | |
| 2378 | - <div class="card-body"> | |
| 2379 | - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div> | |
| 2380 | - <div class="icon-wrapper"><i class="dashicons dashicons-email" style="font-size:24px;width:24px;height:24px;"></i></div> | |
| 2381 | - <h4><?php esc_html_e('Disable Email feature and button on Start Menu', 'chatbot'); ?></h4> | |
| 2382 | - <p><?php esc_html_e('Disable Email feature and button on Start Menu.', 'chatbot'); ?></p> | |
| 2383 | - </div> | |
| 2559 | + <div class="cxsc-settings-blocks"> | |
| 2560 | + <input value="<?php echo esc_attr('1' ); ?>" id="disable_wp_chatbot_feedback" type="checkbox" | |
| 2561 | + name="disable_wp_chatbot_feedback" <?php echo esc_attr((get_option('disable_wp_chatbot_feedback') == 1 ? 'checked' : ''), 'chatbot' ); ?>> | |
| 2562 | + <label for="disable_wp_chatbot_feedback"> | |
| 2563 | + <?php esc_html_e('Disable Email feature and button on Action Start Menu', 'chatbot'); ?> | |
| 2384 | 2564 | </label> |
| 2385 | 2565 | </div> |
| 2386 | 2566 | </div> |
| 2387 | 2567 | </div> |
| @@ -2399,18 +2579,13 @@ | ||
| 2399 | 2579 | <div class="form-group"> |
| 2400 | 2580 | <h4 class="qc-opt-title"> |
| 2401 | 2581 | <?php esc_html_e('FAQ', 'chatbot'); ?> |
| 2402 | 2582 | </h4> |
| 2403 | - <div class="wpbot-cards-grid" style="margin-top: 15px;"> | |
| 2404 | - <label class="wpbot-checkbox-card"> | |
| 2405 | - <input value="<?php echo esc_attr('1' ); ?>" id="disable_wp_chatbot_faq" type="checkbox" | |
| 2406 | - name="disable_wp_chatbot_faq" <?php echo(get_option('disable_wp_chatbot_faq') == 1 ? esc_attr('checked' ): ''); ?>> | |
| 2407 | - <div class="card-body"> | |
| 2408 | - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div> | |
| 2409 | - <div class="icon-wrapper"><i class="dashicons dashicons-editor-help" style="font-size:24px;width:24px;height:24px;"></i></div> | |
| 2410 | - <h4><?php esc_html_e('Disable FAQ feature and button on Start Menu', 'chatbot'); ?></h4> | |
| 2411 | - <p><?php esc_html_e('Disable FAQ feature and button on Start Menu.', 'chatbot'); ?></p> | |
| 2412 | - </div> | |
| 2583 | + <div class="cxsc-settings-blocks"> | |
| 2584 | + <input value="<?php echo esc_attr('1' ); ?>" id="disable_wp_chatbot_faq" type="checkbox" | |
| 2585 | + name="disable_wp_chatbot_faq" <?php echo(get_option('disable_wp_chatbot_faq') == 1 ? esc_attr('checked' ): ''); ?>> | |
| 2586 | + <label for="disable_wp_chatbot_faq"> | |
| 2587 | + <?php esc_html_e('Disable FAQ feature and button on Action Start Menu', 'chatbot'); ?> | |
| 2413 | 2588 | </label> |
| 2414 | 2589 | </div> |
| 2415 | 2590 | </div> |
| 2416 | 2591 | </div> |
| @@ -2515,8 +2690,21 @@ | ||
| 2515 | 2690 | </ul> |
| 2516 | 2691 | <?php |
| 2517 | 2692 | } |
| 2518 | 2693 | } |
| 2694 | + | |
| 2695 | + // AI Forms | |
| 2696 | + $saved_ai_forms = get_option( 'wpbot_ai_forms', array() ); | |
| 2697 | + if ( ! empty( $saved_ai_forms ) && is_array( $saved_ai_forms ) ) { | |
| 2698 | + ?> | |
| 2699 | + <p><?php esc_html_e('AI Actions', 'chatbot'); ?></p> | |
| 2700 | + <ul> | |
| 2701 | + <?php foreach ( $saved_ai_forms as $index => $form ) : ?> | |
| 2702 | + <li><span class="qcld-chatbot-wildcard qcld-chatbot-ai-form qc_draggable_item" data-wildcart="ai_form" data-ai-form="<?php echo esc_attr( $index ); ?>"><?php echo esc_html( $form['title'] ); ?></span></li> | |
| 2703 | + <?php endforeach; ?> | |
| 2704 | + </ul> | |
| 2705 | + <?php | |
| 2706 | + } | |
| 2519 | 2707 | ?> |
| 2520 | 2708 | </div> |
| 2521 | 2709 | </div> |
| 2522 | 2710 | |
| @@ -2577,16 +2765,23 @@ | ||
| 2577 | 2765 | </div> |
| 2578 | 2766 | <div id="wp-chatbot-df-section-v2" style="display:block"> |
| 2579 | 2767 | <!-- Dialogflow V2 Configuration --> |
| 2580 | 2768 | |
| 2581 | - <?php if(!file_exists(QCLD_wpCHATBOT_GC_DIRNAME.'/autoload.php')): ?> | |
| 2769 | + <?php if(!file_exists(QCLD_wpCHATBOT_GC_DIRNAME.'/autoload.php')): | |
| 2770 | + global $wp_filesystem; | |
| 2771 | + if ( empty( $wp_filesystem ) ) { | |
| 2772 | + require_once ABSPATH . 'wp-admin/includes/file.php'; | |
| 2773 | + WP_Filesystem(); | |
| 2774 | + } | |
| 2775 | + $qcld_wpchatbot_gc_root_writable = ( $wp_filesystem && $wp_filesystem->is_writable( QCLD_wpCHATBOT_GC_ROOT ) ); | |
| 2776 | + ?> | |
| 2582 | 2777 | <div class="form-group"> <br> |
| 2583 | 2778 | <h4 class="qc-opt-title" style="color:red "><?php esc_html_e('For Interacting with Dialogflow V2 the Google Client Package is Required!', 'chatbot'); ?></h4> |
| 2584 | 2779 | <p><?php esc_html_e('Please click the download button below to download the Google Client package. The package will be downloaded inside your Wordpress`s', 'chatbot'); ?> <b><?php esc_html_e('/wp-content', 'chatbot'); ?></b> <?php esc_html_e('folder. This package is around', 'chatbot'); ?> <b><?php esc_html_e('0 MB', 'chatbot'); ?></b><?php esc_html_e(' in zip file format and it will be about', 'chatbot'); ?> <b><?php esc_html_e('49 MB', 'chatbot'); ?></b> <?php esc_html_e('after unzipping. Please make sure that your server has enough space to store that package.', 'chatbot'); ?></p> |
| 2585 | 2780 | <div class="qcld-wpbot-gcdownload-area"> |
| 2586 | - <button class="btn btn-primary" id="qc_wpbot_gc_download" <?php echo (!is_writable(QCLD_wpCHATBOT_GC_ROOT)?'disabled':''); ?>><?php esc_html_e('Download and Install the Google Client', 'chatbot'); ?></button> | |
| 2781 | + <button class="btn btn-primary" id="qc_wpbot_gc_download" <?php echo ( ! $qcld_wpchatbot_gc_root_writable ? 'disabled' : '' ); ?>><?php esc_html_e('Download and Install the Google Client', 'chatbot'); ?></button> | |
| 2587 | 2782 | <?php |
| 2588 | - if(!is_writable(QCLD_wpCHATBOT_GC_ROOT)){ | |
| 2783 | + if ( ! $qcld_wpchatbot_gc_root_writable ) { | |
| 2589 | 2784 | echo '<span style="color:red;font-size: 12px; "><b>'.esc_html('wp-content').' </b> '.esc_html('folder is not writable.').'</span>'; |
| 2590 | 2785 | } |
| 2591 | 2786 | ?> |
| 2592 | 2787 | <br> |
| @@ -2669,9 +2864,9 @@ | ||
| 2669 | 2864 | </section> |
| 2670 | 2865 | |
| 2671 | 2866 | <section id="section-flip-9"> |
| 2672 | 2867 | <div class="cxsc-settings-blocks-addon"><?php esc_html_e('Install the Conversational Form Builder to Collect Information from the users and create Button (menu) Driven Conversations.', 'chatbot'); ?></br> |
| 2673 | - <?php esc_html_e('After creating a Conversational form, you can add it to the ChatBot`s Start Menu from the ChatBot Settings->Start Menu', 'chatbot'); ?></b></div> | |
| 2868 | + <?php esc_html_e('After creating a Conversational form, you can add it to the ChatBot`s Action Start Menu from the ChatBot Settings->Action Start Menu', 'chatbot'); ?></b></div> | |
| 2674 | 2869 | |
| 2675 | 2870 | <div class="qcld-recommendbot-conv-feature"> |
| 2676 | 2871 | <?php include_once QCLD_wpCHATBOT_PLUGIN_DIR_PATH . '/qcld-recommendbot-plugin.php'; ?> |
| 2677 | 2872 | </div> |
| @@ -2691,9 +2886,9 @@ | ||
| 2691 | 2886 | |
| 2692 | 2887 | <h3><?php esc_html_e('How it Works?', 'chatbot'); ?></h3> |
| 2693 | 2888 | <p><?php esc_html_e('After creating a Conversation or form, you can show it in the ChatBot in different ways.', 'chatbot'); ?></p> |
| 2694 | 2889 | <ul> |
| 2695 | - <li><?php esc_html_e('🚀 Add it to the Start menu', 'chatbot'); ?></li> | |
| 2890 | + <li><?php esc_html_e('🚀 Add it to the Action Start Menu', 'chatbot'); ?></li> | |
| 2696 | 2891 | <li><?php esc_html_e('🚀 Invoke the form intent with a system command to start inside ChatBot any time', 'chatbot'); ?></li> |
| 2697 | 2892 | <li><?php esc_html_e('🚀 Load the single intent/form inside a ChatBot widget on any page', 'chatbot'); ?></li> |
| 2698 | 2893 | <li><?php esc_html_e('🚀 Load the intent/form inside the ChatBot using a Click to Chat button that can be placed anywhere inside your content on any page.', 'chatbot'); ?></li> |
| 2699 | 2894 | <li><?php esc_html_e('🚀 Trigger another conversational form or Intent like Live Chat using conditions', 'chatbot'); ?></li> |
| @@ -2720,9 +2915,9 @@ | ||
| 2720 | 2915 | <li><?php esc_html_e('🚀 Trigger another conversational form or Intent like Live Chat using conditions (**NEW)', 'chatbot'); ?></li> |
| 2721 | 2916 | <li><?php esc_html_e('🚀 Unlimited Variables creation', 'chatbot'); ?></li> |
| 2722 | 2917 | <li><?php esc_html_e('🚀 Form Revisions', 'chatbot'); ?></li> |
| 2723 | 2918 | <li><?php esc_html_e('🚀 Create system command to initiate form for ChatBot', 'chatbot'); ?></li> |
| 2724 | - <li><?php esc_html_e('🚀 Add form to Start Menu', 'chatbot'); ?></li> | |
| 2919 | + <li><?php esc_html_e('🚀 Add form to Action Start Menu', 'chatbot'); ?></li> | |
| 2725 | 2920 | <li><?php esc_html_e('🚀 Submit Forms to OpenAI for a Response with your instructions and user submitted data. Supports multi-modal mode. Users can upload an Image or Audio file along with other form fields that you create. Check this article on how Conversational forms work with OpenAI.', 'chatbot'); ?></li> |
| 2726 | 2921 | </ul> |
| 2727 | 2922 | </div> |
| 2728 | 2923 | |