PluginProbe
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services / 3.4.2
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services v3.4.2
8.7.7 8.7.6 8.7.5 8.7.4 8.7.3 8.7.2 8.7.1 8.7.0 8.6.9 8.6.8 8.6.7 8.6.6 8.6.5 8.6.4 8.6.2 8.6.1 8.6.0 8.5.9 8.5.8 8.5.7 8.5.6 8.5.5 8.5.4 8.5.3 8.5.2 All 533 releases
← All changes | admin_ui.php +1764 -2820 8.6.73.4.2 View file →
@@ -1,2965 +1,1909 @@
1 +<?php
1 2
2 -<?php
3 3 // Exit if accessed directly
4 4 if ( ! defined( 'ABSPATH' ) ) {
5 - exit;
5 + exit;
6 6 }
7 -// Ensure WordPress escaping and translation functions are available
8 -if ( ! function_exists( 'esc_html' ) ) {
9 - require_once( ABSPATH . 'wp-includes/formatting.php' );
10 -}
11 -if ( ! function_exists( 'esc_html__' ) ) {
12 - require_once( ABSPATH . 'wp-includes/l10n.php' );
13 -}
14 -if ( ! function_exists( 'esc_html_e' ) ) {
15 - require_once( ABSPATH . 'wp-includes/l10n.php' );
16 -}
17 -if ( ! function_exists( 'esc_attr' ) ) {
18 - require_once( ABSPATH . 'wp-includes/formatting.php' );
19 -}
20 -if ( ! function_exists( 'esc_url' ) ) {
21 - require_once( ABSPATH . 'wp-includes/formatting.php' );
22 -}
23 7 ?>
24 -
25 -<div class="wrap qcld-main-wrapper">
26 - <h1 style="display:none">
27 - <?php esc_html_e('chatbot', 'chatbot'); ?>
28 - </h1>
29 -
30 -<div class="qcld-wp-chatbot-wrap-header">
31 -
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 - <p><strong>Core Version:</strong> v<?php echo esc_attr(QCLD_wpCHATBOT_VERSION); ?></p>
34 - </div>
35 - <ul class="qcld-wp-chatbot-wrap-version-wrapper">
36 - <li>
37 - <a class="wpchatbot-Upgrade" href="https://www.wpbot.pro/" target="_blank">Upgrade To Pro</a>
38 -
39 - </li>
40 - </ul>
8 +<div class="wrap">
9 + <h1 style="display:none"><?php _e('WPBot', 'wpchatbot'); ?> </h1>
41 10 </div>
42 -
43 -<div class="qcld-wp-chatbot-wrap-header-doc">
44 -
45 - <a href="https://wpbot.pro/docs/" target="_blank" class="qcld-wp-chatbot-wrap--doc_logo">
46 - <img style="width:100%" src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/doc.jpg' ); ?>" alt="Dialogflow CX">
47 - <div class="docs_icon"><span class="dashicons dashicons-media-document"></span></div>
48 -
49 - </a>
50 -
51 - <div class="qcld-wp-chatbot-wrap-header-doc-details">
52 -
53 - <h3><?php esc_html_e('Get Started with WPBot', 'chatbot'); ?></h3>
54 - <p><?php esc_html_e('Do more than just chat with your ChatBot! More Leads, Conversions & Satisfied customers while saving time & increasing your business opportunities. WPBot is the best ChatBot for WordPress to improve user engagement, Generate Leads, & provide Automated Live customer support across your website & social platforms.', 'chatbot'); ?></p>
55 -
56 - <div class="qcld-wp-chatbot-wrap-header-doc-button">
57 -
58 - <a href="https://wpbot.pro/docs/knowledgebase/getting-started-with-chatbot/" class="GetStartedwithYourChatBot" target="_blank">Get Started with Your ChatBot</a>
59 - <a href="https://wpbot.pro/docs/" target="_blank">Documentation</a>
60 - </div>
61 - </div>
62 -</div>
63 -
64 11 <div class="wp-chatbot-wrap">
65 -<div class="icon32"><br>
66 -</div>
67 -<form action="<?php echo esc_url($action); ?>" method="POST" id="wp-chatbot-admin-form"
68 - enctype="multipart/form-data">
69 - <div class="form-container">
12 + <div class="icon32"><br></div>
13 + <form action="<?php echo esc_attr($action); ?>" method="POST" id="wp-chatbot-admin-form"
14 + enctype="multipart/form-data">
15 + <div class="container form-container">
16 + <header class="wp-chatbot-admin-header">
17 + <div class="row">
18 + <div class="col-sm-6">
19 + <h2><?php echo __('WPBot Control Panel', 'wpchatbot'); ?><?php echo get_option('wp_chatbot_index_meta'); ?></h2>
20 + </div>
21 + <div class="col-sm-6 text-right wp-chatbot-version">
22 + <h3><?php _e('The Lite Version', 'wpchatbot'); ?></h3>
23 + <p><a target="_blank" href="https://www.quantumcloud.com/"><?php _e('WPBot is a project by Web Design Company QuantumCloud', 'wpchatbot'); ?></a></p>
24 + <p><a style="color: #b2ff20;" href="https://www.quantumcloud.com/products/chatbot-for-wordpress/" target="_blank">Upgrade To Pro</a></p>
25 + </div>
26 + </div>
27 + </header>
28 + <section class="wp-chatbot-tab-container-inner">
29 + <div class="wp-chatbot-tabs wp-chatbot-tabs-style-flip">
30 + <nav>
31 + <ul>
32 + <li tab-data="general"><a href="<?php echo esc_attr($action); ?>&tab=general">
33 + <span class="wpwbot-admin-tab-icon">
34 + <i class="fa fa-toggle-on"> </i>
35 + </span>
36 + <span class="wpwbot-admin-tab-name"> <?php _e('GENERAL SETTINGS', 'wpchatbot'); ?></span>
37 + </a></li>
38 + <li tab-data="themes"><a href="<?php echo esc_attr($action); ?>&tab=themes">
39 + <span class="wpwbot-admin-tab-icon">
40 + <i class="fa fa-gear faa-spin"></i>
41 + </span>
42 + <span class="wpwbot-admin-tab-name"> <?php _e('ICONS & THEMES', 'wpchatbot'); ?></span>
43 + </a></li>
44 + <li tab-data="support"><a href="<?php echo esc_attr($action); ?>&tab=support">
45 + <span class="wpwbot-admin-tab-icon">
46 + <i class="fa fa-life-ring"></i>
47 + </span>
48 + <span class="wpwbot-admin-tab-name"> <?php _e('FAQ Builder', 'wpchatbot'); ?></span>
49 + </a></li>
50 + <!--<li tab-data="notification"><a href="<?php echo esc_attr($action); ?>&tab=notification">
51 + <span class="wpwbot-admin-tab-icon">
52 + <i class="fa fa-bell-o"></i>
53 + </span>
54 + <span class="wpwbot-admin-tab-name"><?php _e('Notification Builder', 'wpchatbot'); ?></span>
55 + </a></li>-->
56 + <li tab-data="language"><a href="<?php echo esc_attr($action); ?>&tab=language">
57 + <span class="wpwbot-admin-tab-icon">
58 + <i class="fa fa-language"></i>
59 + </span>
60 + <span class="wpwbot-admin-tab-name"><?php _e('LANGUAGE CENTER', 'wpchatbot'); ?></span>
61 + </a></li>
62 +
63 + <li tab-data="startmenu"><a href="<?php echo esc_attr($action); ?>&tab=startmenu">
64 + <span class="wpwbot-admin-tab-icon">
65 + <i class="fa fa-bars"></i>
66 + </span>
67 + <span class="wpwbot-admin-tab-name"><?php echo esc_html__('Start Menu', 'wpchatbot'); ?></span>
68 + </a></li>
69 +
70 + <!--<li tab-data="hours"><a href="<?php echo esc_attr($action); ?>&tab=hours">
71 + <span class="wpwbot-admin-tab-icon">
72 + <i class="fa fa-calendar"></i>
73 + </span>
74 + <span class="wpwbot-admin-tab-name"><?php _e('Bot Activity Hour', 'wpchatbot'); ?></span>
75 + </a></li>-->
76 + <li tab-data="ai"><a href="<?php echo esc_attr($action); ?>&tab=ai">
77 + <span class="wpwbot-admin-tab-icon">
78 + <i class="fa fa-500px"></i>
79 + </span>
80 + <span class="wpwbot-admin-tab-name"><?php _e('Dialogflow', 'wpchatbot'); ?></span>
81 + </a></li>
82 + <!--<li tab-data="app"><a href="<?php echo esc_attr($action); ?>&tab=app">
83 + <span class="wpwbot-admin-tab-icon">
84 + <i class="fa fa-mobile"></i>
85 + </span>
86 + <span class="wpwbot-admin-tab-name"><?php _e('MOBILE APP', 'wpchatbot'); ?></span>
87 + </a></li>
88 + <li tab-data="custom"><a href="<?php echo esc_attr($action); ?>&tab=custom">
89 + <span class="wpwbot-admin-tab-icon">
90 + <i class="fa fa-code"></i>
91 + </span>
92 + <span class="wpwbot-admin-tab-name"><?php _e('Custom CSS', 'wpchatbot'); ?> </span>
93 + </a></li>-->
94 + <li tab-data="addons"><a href="<?php echo esc_attr($action); ?>&tab=addons">
95 + <span class="wpwbot-admin-tab-icon">
96 + <i class="fa fa-puzzle-piece" aria-hidden="true"></i>
97 + </span>
98 + <span class="wpwbot-admin-tab-name"><?php echo esc_html__('Addons', 'wpchatbot'); ?> </span>
99 + </a></li>
100 + </ul>
101 + <a class="wpbot_free_messenger_adds" href="https://wordpress.org/plugins/conversational-forms/" target="_blank">Try our new Conversational Form Addon for WPBot</a>
102 +
103 + <a class="wpbot_free_messenger_adds" href="https://wordpress.org/plugins/chatbot-for-messenger/" target="_blank">Try our new ChatBot for Messenger WPBot addon free</a>
104 + </nav>
105 + <div class="content-wrap">
106 + <section id="section-flip-1">
107 + <div class="top-section">
108 + <div class="row">
109 + <div class="col-xs-12">
110 + <div class="cxsc-settings-blocks">
111 + <div class="form-group">
112 + <?php
113 + $url = get_site_url();
114 + $url = parse_url($url);
115 + $domain = $url['host'];
116 +
117 + $admin_email = get_option('admin_email');
118 + ?>
119 + <h4 class="qc-opt-title"><?php echo esc_html__('Emails Will be Sent to', 'wpchatbot'); ?></h4>
120 + <input type="text" class="form-control qc-opt-dcs-font"
121 + name="qlcd_wp_chatbot_admin_email"
122 + value="<?php echo(get_option('qlcd_wp_chatbot_admin_email') != '' ? get_option('qlcd_wp_chatbot_admin_email') : $admin_email); ?>">
123 + <label for="disable_wp_chatbot"><?php echo esc_html__('Support and Call Back requests will be sent to this address', 'wpchatbot'); ?> </label>
124 + </div>
125 + </div>
126 +
127 + </div>
128 + </div>
129 + <div class="row">
130 + <div class="col-xs-12">
131 + <h4 class="qc-opt-title"> <?php _e('Disable WPBot', 'wpchatbot'); ?> </h4>
132 + <div class="cxsc-settings-blocks">
133 + <input value="1" id="disable_wp_chatbot" type="checkbox"
134 + name="disable_wp_chatbot" <?php echo(get_option('disable_wp_chatbot') == 1 ? 'checked' : ''); ?>>
135 + <label for="disable_wp_chatbot"><?php _e('Disable WPBot to Load', 'wpchatbot'); ?> </label>
136 + </div>
137 + </div>
138 + </div>
139 + <div class="row">
140 + <div class="col-xs-12">
141 + <h4 class="qc-opt-title"> <?php _e('Disable WPbot on Mobile Device', 'wpchatbot'); ?> </h4>
142 + <div class="cxsc-settings-blocks">
143 + <input value="1" id="disable_wp_chatbot_on_mobile" type="checkbox"
144 + name="disable_wp_chatbot_on_mobile" <?php echo(get_option('disable_wp_chatbot_on_mobile') == 1 ? 'checked' : ''); ?>>
145 + <label for="disable_wp_chatbot_on_mobile"><?php _e('Disable WpBot to Load on Mobile Device', 'wpchatbot'); ?> </label>
146 + </div>
147 + </div>
148 + </div>
149 + <!--<div class="row">
150 + <div class="col-xs-12">
151 + <h4 class="qc-opt-title"> <?php _e('Sound on Page Load', 'wpchatbot'); ?> </h4>
152 + <div class="form-group">
153 + <input value="1" id="enable_wp_chatbot_sound_initial" type="checkbox"
154 + name="enable_wp_chatbot_sound_initial" <?php echo(get_option('enable_wp_chatbot_sound_initial') == 1 ? 'checked' : ''); ?>>
155 + <label for="enable_wp_chatbot_sound_initial"><?php _e('Enable to play sound on initial page load', 'wpchatbot'); ?> </label>
156 + </div>
157 + </div>
158 + </div>-->
70 159
71 - <section class="wp-chatbot-tab-container-inner">
72 - <div class="wp-chatbot-tabs wp-chatbot-tabs-style-flip">
73 - <nav>
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">
76 - <?php esc_html_e('Getting Started', 'chatbot'); ?>
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">
79 - <?php esc_html_e('General settings', 'chatbot'); ?>
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'); ?>
83 - </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">
85 - <?php esc_html_e('Button Configurations', 'chatbot'); ?>
86 - </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'); ?>
96 - </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">
98 - <?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 -
102 -
103 - <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 - <?php esc_html_e('Dialogflow', 'chatbot'); ?>
105 - </span> </a></li>
106 -
107 -
108 - <li tab-data="<?php echo esc_url('rpl'); ?>" class="conversational"><a href="<?php echo esc_url($action).'&tab=rpl' ?>">
109 - <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-feedback"></span>
110 - </span> <span class="wpwbot-admin-tab-name"> <?php esc_html_e('Conversational Form', 'chatbot'); ?>
111 - </span>
112 - </a>
113 - </li>
114 -
115 -
116 -
117 -
118 - <li tab-data="custom_css"> <a href="<?php echo esc_url($action).'&tab=custom_css'?>">
119 - <span class="wpwbot-admin-tab-icon"> <span class="dashicons dashicons-editor-code"></span>
120 - </span> <span class="wpwbot-admin-tab-name"> <?php esc_html_e('Custom CSS', 'chatbot'); ?></span>
121 - </a>
122 - </li>
123 -
124 -
125 - </ul>
126 -
127 -<div class="text-center mt-5 qcld-goPreemium">
128 -
129 -<a href="https://www.wpbot.pro/" target="_blank"><span><svg xmlns="http://www.w3.org/2000/svg" width="24" height="21" viewBox="0 0 24 21" fill="none">
130 - <path d="M19.6799 17.28H4.31988C3.52596 17.28 2.87988 17.9261 2.87988 18.72C2.87988 19.5139 3.52596 20.16 4.31988 20.16H19.6799C20.4738 20.16 21.1199 19.5139 21.1199 18.72C21.1199 17.9261 20.4738 17.28 19.6799 17.28Z" fill="#FF9900"></path>
131 - <path d="M22.08 2.88C21.0211 2.88 20.16 3.74114 20.16 4.8C20.16 5.51137 20.5536 6.1267 21.1305 6.45886C20.0198 9.08925 18.287 10.703 16.6675 10.5571C14.8665 10.4102 13.3977 8.28094 12.5875 4.71839C13.6262 4.45533 14.4 3.51933 14.4 2.4C14.4 1.07616 13.3238 0 12 0C10.6761 0 9.59995 1.07616 9.59995 2.4C9.59995 3.51938 10.3737 4.45538 11.4124 4.71839C10.6022 8.28094 9.13336 10.4102 7.33242 10.5571C5.71964 10.703 3.97913 9.08925 2.86941 6.45886C3.44634 6.1267 3.83995 5.51133 3.83995 4.8C3.83995 3.74114 2.97881 2.88 1.91995 2.88C0.861141 2.88 0 3.74114 0 4.8C0 5.78498 0.748781 6.58945 1.70494 6.69886L3.55392 16.32H20.4461L22.295 6.69886C23.2512 6.58945 24 5.78498 24 4.8C24 3.74114 23.1389 2.88 22.08 2.88Z" fill="url(#paint0_linear_189_140)"></path>
132 - <defs>
133 - <linearGradient id="paint0_linear_189_140" x1="12" y1="0" x2="12" y2="16.32" gradientUnits="userSpaceOnUse">
134 - <stop stop-color="#FFC045"></stop>
135 - <stop offset="1" stop-color="#FF9900"></stop>
136 - </linearGradient>
137 - </defs>
138 - </svg></span>Go Premium</a>
139 -
140 -</div>
141 -
142 -
143 - <div class="text-center mt-5 qcld-Resetall">
144 - <input type="button" class="btn btn-warning submit-button"
145 - id="qcld-wp-chatbot-reset-option"
146 - value="<?php echo esc_attr__('Reset all options to Default', 'chatbot') ; ?>"/>
147 - </div>
148 - </nav>
149 -
150 -
151 -
152 -
153 - <div class="content-wrap">
154 - <section id="section-flip-1">
155 -
156 -
157 - <div class="wrap qcld-swpm-admin-menu-wrap">
158 - <div class="wrap qcld-swpm-admin-menu-wrap">
159 - <h3 class="nav-tab-wrapper sld_nav_container wppt_nav_container">
160 - <a class="nav-tab sld_click_handle nav-tab-active" href="#general_int"><?php echo esc_html__('Getting Started', 'chatbot'); ?></a>
161 - <a class="nav-tab sld_click_handle" href="#general_wp_nutshell"><?php echo esc_html__('WPBot – In a Nutshell', 'chatbot'); ?></a>
162 - </h3>
163 - <div class="wppt-settings-section" id="general_int">
164 - <div class="content form-container qcbot_help_secion" style="">
165 - <!-- new Section -->
166 -
167 - <h3 class="qcld-wpbot-main-tabs-title"><?php echo esc_html__('WPBot Interactions', 'chatbot'); ?></h3>
168 - <p><?php echo esc_html__('You can use WPBot to both answer user questions and collect information from the users.', 'chatbot'); ?></p>
169 - <h4><?php echo esc_html__('To create answers to user questions you can use:', 'chatbot'); ?></h4>
170 - <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>
172 - <h4> <?php echo esc_html__('To collect information from your users you can use:', 'chatbot'); ?></h4>
173 - <p> <b>
174 - <?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 - <hr>
176 - <p>
177 - <b> <?php echo esc_html__('When you activate the plugin, by default only the Site search option will work. Site search displays links to your website pages that contain the keywords in the user query. ', 'chatbot'); ?>
178 - </b></p>
179 - <p><b><?php echo esc_html__('To generate direct text responses, you need to use either Simple Text Responses or AI services. ', 'chatbot'); ?>
180 - </b></p>
181 - <hr>
182 - <h4><?php echo esc_html__('You can create user interactions in the following ways:', 'chatbot'); ?></h4>
183 -
184 - <div class="panel panel-default">
185 - <div class="panel-heading" role="tab" id="FeaturesOne">
186 - <h4 class="panel-title">
187 - <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#FeaturescollapseOne" aria-expanded="false" aria-controls="FeaturescollapseOne"> <?php esc_html_e('Predefined intents - Built-in ChatBot Features', 'chatbot'); ?> </a>
188 - </h4>
189 - </div>
190 - <div id="FeaturescollapseOne" class="panel-collapse collapse" role="tabpanel" aria-labelledby="FeaturesOne">
191 - <div class="panel-body"> <?php esc_html_e('Predefined intents can work without integration to DialogFlow API and AI. These are readily available as soon as you install the plugin and can be turned on or off individually.', 'chatbot'); ?> <div class="section-container">
192 - <div class="wpb_column vc_column_container vc_col-sm-6">
193 - <div class="vc_column-inner ">
194 - <div class="wpb_wrapper">
195 - <div class="to-icon-box left txt-left">
196 - <div class="to-icon-txt fa-4x-txt ">
197 - <h3>
198 - <span>// </span><?php esc_html_e('Simple Text Responses', 'chatbot'); ?>
199 - </h3>
200 - <p><?php esc_html_e('Create unlimited text responses from your WordPress backend. The ChatBot uses advanced search algorithm for natural language phrase matching with user input.', 'chatbot'); ?> </p>
201 - </div>
202 - </div>
203 - <div class="to-icon-box left txt-left">
204 - <div class="to-icon-txt fa-4x-txt ">
205 - <h3>
206 - <span>// </span><?php esc_html_e('Send eMail, Call Me Back &amp; Feedback Collection', 'chatbot'); ?>
207 - </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>
209 - </div>
210 - </div>
211 - <div class="to-icon-box left txt-left">
212 - <div class="to-icon-txt fa-4x-txt ">
213 - <h3>
214 - <span>// </span><?php esc_html_e('Advanced Site Search', 'chatbot'); ?> <span class="qc_wpbot_pro">PRO</span>
215 - </h3>
216 - <p><?php esc_html_e('If no matching text response is found WPBot will conduct an advanced website search and try to match user queries with your website contents and show results.', 'chatbot'); ?> </p>
217 - </div>
218 - </div>
219 - </div>
220 - </div>
221 - </div>
222 - <div class="wpb_column vc_column_container vc_col-sm-6">
223 - <div class="vc_column-inner ">
224 - <div class="wpb_wrapper">
225 - <div class="to-icon-box left txt-left">
226 - <div class="to-icon-txt fa-4x-txt ">
227 - <h3>
228 - <span>// </span><?php esc_html_e('Frequently Asked Questions', 'chatbot'); ?>
229 - </h3>
230 - <p><?php esc_html_e('Create a set of Frequently Asked Questions or FAQ so users can quickly find answers to the most common questions they have.', 'chatbot'); ?></p>
231 - </div>
232 - </div>
233 - <div class="to-icon-box left txt-left">
234 - <div class="to-icon-txt fa-4x-txt ">
235 - <h3>
236 - <span>// </span>Ask for name, email, phone number etc.
237 - </h3>
238 - <p><?php esc_html_e('Asking for the name is the default workflow. In the pro version, you can also ask for an email and phone number if you want to or skip the Greetings part altogether and load any intent of your choice.', 'chatbot'); ?></p>
239 - </div>
240 - </div>
241 - <div class="to-icon-box left txt-left">
242 - <div class="to-icon-txt fa-4x-txt ">
243 - <h3>
244 - <span>// </span><?php esc_html_e('Newsletter Subscription', 'chatbot'); ?> <span class="qc_wpbot_pro">PRO</span>
245 - </h3>
246 - <p><?php esc_html_e('WPBot can prompt User for eMail subscription. Link this with your Retargeting ChatBot window popup and a special offer. People can register their email address that you can later export as CSV!', 'chatbot'); ?> <strong>GDPR compliant</strong> with unsubscribe option from the ChatBot! </p>
247 - </div>
248 - </div>
249 - </div>
250 - </div>
251 - </div>
252 - </div>
253 - </div>
254 - </div>
255 - </div>
256 - <div class="panel panel-default">
257 - <div class="panel-heading" role="tab" id="headingTwo">
258 - <h4 class="panel-title">
259 - <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo"><?php esc_html_e(' Menu Driven - Created with Conversational Form Builder Addon', 'chatbot'); ?> </a>
260 - </h4>
261 - </div>
262 - <div id="collapseTwo" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwo">
263 - <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'); ?>&nbsp;<?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 - <?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 - </p>
267 - <h4><?php esc_html_e('Conversational Form Builder Free or Pro version works with the WPBot Free or Pro versions.', 'chatbot'); ?></h4>
268 - <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>
270 - <h4><?php esc_html_e('What Can You Do with it?', 'chatbot'); ?></h4>
271 - <p><?php esc_html_e('Conversation Forms allows you to create a wide variety of forms, that might include:', 'chatbot'); ?></p>
272 - <ul>
273 - <li><?php esc_html_e('Create menu or button driven conversations', 'chatbot'); ?></li>
274 - <li><?php esc_html_e('Conditional Menu Driven Conversations', 'chatbot'); ?>
275 - <span class="qc_wpbot_pro" style="font-size: 9px;"><?php esc_html_e('PRO', 'chatbot'); ?></span>
276 - </li>
277 - <li><?php esc_html_e('Standard Contact Forms', 'chatbot'); ?></li>
278 - <li><?php esc_html_e('Dynamic,', 'chatbot'); ?> <?php esc_html_e('conditional Forms', 'chatbot'); ?> <?php esc_html_e('– where fields can change based on the user selections', 'chatbot'); ?> <span class="qc_wpbot_pro" style="font-size: 9px;">PRO</span>
279 - </li>
280 - <li>Job <?php esc_html_e('Application Forms', 'chatbot'); ?>
281 - </li>
282 - <li>
283 - <?php esc_html_e('Lead Capture', 'chatbot'); ?> <?php esc_html_e('Forms', 'chatbot'); ?>
284 - </li>
285 - <li><?php esc_html_e('Various types of', 'chatbot'); ?> <?php esc_html_e('Calculators', 'chatbot'); ?>
286 - <span class="qc_wpbot_pro" style="font-size: 9px;"><?php esc_html_e('PRO', 'chatbot'); ?></span>
287 - </li>
288 - <li><?php esc_html_e('Feedback', 'chatbot'); ?> Survey<?php esc_html_e(' Forms etc.', 'chatbot'); ?> </li>
289 - </ul>
290 - </div>
291 - </div>
292 - </div>
293 - <div class="panel panel-default">
294 - <div class="panel-heading" role="tab" id="AIheadingThree">
295 - <h4 class="panel-title">
296 - <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#AIcollapseThree" aria-expanded="false" aria-controls="AIcollapseThree"> <?php esc_html_e('DialogFlow ES and CX, OpenAI', 'chatbot'); ?> </a>
297 - </h4>
298 - </div>
299 - <div id="AIcollapseThree" class="panel-collapse collapse" role="tabpanel" aria-labelledby="AIheadingThree">
300 - <div class="panel-body">
301 -
302 - <div class="section-container">
303 - <div class="wpb_column vc_column_container vc_col-sm-6">
304 - <div class="wpb_wrapper">
305 - <h3 style="font-size: 20px;"><?php esc_html_e('DialogFlow Essential', 'chatbot'); ?></h3> <?php esc_html_e('Intents created in Dialogflow give you the power to build a truly human like, intelligent and comprehensive chatbot. Build any type of Intents and Responses (including rich message responses) directly in DialogFlow and train the bot accordingly. When you create custom intents and responses in DialogFlow, WPBot will automatically display them when user inputs match with your Custom Intents along with the responses you created. You can also build Rich responses by enabling Facebook messenger Response option.', 'chatbot'); ?> <p></p>
306 - <p style="text-align: left;"><?php esc_html_e('In addition you can also Enable ', 'chatbot'); ?><?php esc_html_e('Advanced Chained Question and Answers using follow up Intents, Contexts, Entities etc. and then have resulting answers from your users emailed to you. This feature lets you create a a series of questions in DialogFlow that will be asked by the bot and based on the user inputs a response will be displayed.', 'chatbot'); ?> <span class="qc_wpbot_pro" style="font-size: 9px;"><?php esc_html_e('PRO', 'chatbot'); ?></span>
307 - </p>
308 - <p style="text-align: left;"><?php esc_html_e('WPBot also supports Rich responses using Facebook Messenger integration. This allows you to display Image,', 'chatbot'); ?> Cards<?php esc_html_e(', Quick Text Reply or Custom PayLoad inside the ChatBot window. You can also insert an ', 'chatbot'); ?><?php esc_html_e('image', 'chatbot'); ?><?php esc_html_e(' or', 'chatbot'); ?> <?php esc_html_e('youtube video', 'chatbot'); ?><?php esc_html_e(' link inside the DialogFlow responses and they will be automatically rendered by the WPBot!', 'chatbot'); ?> <span class="qc_wpbot_pro" style="font-size: 9px;"><?php esc_html_e('PRO', 'chatbot'); ?></span>
309 - </p>
310 - <h3 style="font-size: 20px;"><?php esc_html_e('OpenAI', 'chatbot'); ?></h3><?php esc_html_e('Connect the ChatBot to OpenAI. OpenAI’s API provides access to GPT-3, for a wide variety of natural language tasks. Train your ChatBot with (pre-trained) GPT-3 to answer any user questions using. Select your preferred Engine from DaVinci, Ada, Curie or Babbag! Add your own API key to the addon to connect to your OpenAI account. To go live, you need to apply to OpenAI.', 'chatbot'); ?>
160 + <!-- row-->
161 + <!--<div class="row">
162 + <div class="col-xs-12">
163 + <h4 class="qc-opt-title"> <?php _e('Disable WpBot Icon Animation', 'wpchatbot'); ?> </h4>
164 + <div class="cxsc-settings-blocks">
165 + <input value="1" id="disable_wp_chatbot_icon_animation" type="checkbox"
166 + name="disable_wp_chatbot_icon_animation" <?php echo(get_option('disable_wp_chatbot_icon_animation') == 1 ? 'checked' : ''); ?>>
167 + <label for="disable_wp_chatbot_icon_animation"><?php _e('Disable WpBot icon border animation', 'wpchatbot'); ?> </label>
311 168 </div>
169 + </div>
170 + </div>-->
171 +
172 +
173 +
174 + <!--<div class="row">
175 + <div class="col-xs-12">
176 + <h4 class="qc-opt-title"><?php _e('Disable WpBot Opening Notification', 'wpchatbot'); ?> </h4>
177 + <div class="cxsc-settings-blocks">
178 + <input value="1" id="disable_wp_chatbot_notification" type="checkbox"
179 + name="disable_wp_chatbot_notification" <?php echo(get_option('disable_wp_chatbot_notification') == 1 ? 'checked' : ''); ?>>
180 + <label for="disable_wp_chatbot_notification"><?php _e('Disable WpBot Opening notification messages', 'wpchatbot'); ?> </label>
312 181 </div>
313 - <div class="wpb_column vc_column_container vc_col-sm-6">
314 - <div class="wpb_wrapper">
315 - <h3 style="font-size: 20px;"><?php esc_html_e('DialogFlow CX', 'chatbot'); ?> <span class="qc_wpbot_pro">PRO</span>
316 - </h3>
317 - <p><?php esc_html_e('WPBot supports', 'chatbot'); ?> <?php esc_html_e('visual workflow builder', 'chatbot'); ?><?php esc_html_e(' Dialogflow CX. It provides a new way of designing agents, taking a state machine approach to agent design. This gives you clear and explicit control over a conversation, a better end-user experience, and a better development', 'chatbot'); ?> <?php esc_html_e('workflow', 'chatbot'); ?>. </p>
318 - <ul>
319 - <li>
320 - <?php esc_html_e('Console visualization', 'chatbot'); ?><?php esc_html_e(': A new', 'chatbot'); ?><?php esc_html_e('visual builder', 'chatbot'); ?> <?php esc_html_e('makes building and maintaining agents easier. Conversation paths are graphed as a state machine model, which makes conversations easier to design, enhance, and maintain.', 'chatbot'); ?>
321 - </li>
322 - <li>
323 - <?php esc_html_e('Intuitive and powerful conversation control', 'chatbot'); ?>: <?php esc_html_e('Conversation states and state transitions are first-class types that provide explicit and powerful control over conversation paths. You can clearly define a series of steps that you want the end-user to go through.', 'chatbot'); ?>
324 - </li>
325 - <li>
326 - <?php esc_html_e('Flows for agent partitions', 'chatbot'); ?>: <?php esc_html_e('With flows, you can partition your agent into smaller conversation topics. Different team members can own different flows, which makes large and complex agents easy to build.', 'chatbot'); ?>
327 - </li>
328 - <img style="width:100%" src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/dialogflow-cx-1024x676.jpg' ); ?>" alt="Dialogflow CX">
182 + </div>
183 + </div>-->
184 + <div class="row">
185 + <div class="col-xs-12">
186 + <h4 class="qc-opt-title"><?php _e('Enable RTL', 'wpchatbot'); ?> </h4>
187 + <div class="cxsc-settings-blocks">
188 + <input value="1" id="enable_wp_chatbot_rtl" type="checkbox"
189 + name="enable_wp_chatbot_rtl" <?php echo(get_option('enable_wp_chatbot_rtl') == 1 ? 'checked' : ''); ?>>
190 + <label for="enable_wp_chatbot_rtl"><?php _e('Enable RTL (Right to Left language) Support for Chat', 'wpchatbot'); ?> </label>
191 + </div>
192 + </div>
193 + </div>
194 +
195 + <div class="row">
196 + <div class="col-xs-12">
197 + <h4 class="qc-opt-title"> <?php echo esc_html__('Show Start Menu After Greetings', 'wpchatbot'); ?> </h4>
198 + <div class="cxsc-settings-blocks">
199 + <input value="1" id="show_menu_after_greetings" type="checkbox"
200 + name="show_menu_after_greetings" <?php echo(get_option('show_menu_after_greetings') == 1 ? 'checked' : ''); ?>>
201 + <label for="show_menu_after_greetings"><?php echo esc_html__('Show Start Menu After Greetings', 'wpchatbot'); ?> </label>
202 + </div>
203 + </div>
204 + </div>
205 +
206 + <!--<div class="row">
207 + <div class="col-xs-12">
208 + <h4 class="qc-opt-title"><?php _e('Disable Call Me', 'wpchatbot'); ?> </h4>
209 + <div class="cxsc-settings-blocks">
210 + <input value="1" id="disable_wp_chatbot_call_sup" type="checkbox"
211 + name="disable_wp_chatbot_call_sup" <?php echo(get_option('disable_wp_chatbot_call_sup') == 1 ? 'checked' : ''); ?>>
212 + <label for="disable_wp_chatbot_call_sup"><?php _e('Disable Call Me button', 'wpchatbot'); ?> </label>
213 + </div>
214 + </div>
215 + </div>-->
216 +
217 + <!-- row-->
218 + <div class="row">
219 + <div class="col-xs-12">
220 + <h4 class="qc-opt-title"><?php _e('WPBot Open Full Screen in Mobile', 'wpchatbot'); ?> </h4>
221 + <div class="cxsc-settings-blocks">
222 + <input value="1" id="enable_wp_chatbot_mobile_full_screen" type="checkbox"
223 + name="enable_wp_chatbot_mobile_full_screen" <?php echo(get_option('enable_wp_chatbot_mobile_full_screen') == 1 ? 'checked' : ''); ?>>
224 + <label for="enable_wp_chatbot_mobile_full_screen"><?php _e('Enable WpBot Open Full Screen in Mobile', 'wpchatbot'); ?> </label>
225 + </div>
226 + </div>
227 + </div>
228 + <div class="row">
229 + <div class="col-xs-12">
230 + <h4 class="qc-opt-title"><?php _e('Override WPBot Icon\'s Position', 'wpchatbot'); ?> </h4>
231 + <div class="cxsc-settings-blocks">
232 + <?php
233 + $qcld_wb_chatbot_position_x = get_option('wp_chatbot_position_x');
234 + if ((!isset($qcld_wb_chatbot_position_x)) || ($qcld_wb_chatbot_position_x == "")) {
235 + $qcld_wb_chatbot_position_x = __("120", "wp_chatbot");
236 + }
237 + $qcld_wb_chatbot_position_y = get_option('wp_chatbot_position_y');
238 + if ((!isset($qcld_wb_chatbot_position_y)) || ($qcld_wb_chatbot_position_y == "")) {
239 + $qcld_wb_chatbot_position_y = __("120", "wp_chatbot");
240 + } ?>
241 + <input type="number" class="qc-opt-dcs-font"
242 + name="wp_chatbot_position_x"
243 + id=""
244 + value="<?php echo($qcld_wb_chatbot_position_x); ?>"
245 + placeholder="<?php _e('From Right In px', 'wpchatbot'); ?>"> <span class="qc-opt-dcs-font"><?php _e('From Right In px', 'wpchatbot'); ?></span>
246 + <input type="number" class="qc-opt-dcs-font"
247 + name="wp_chatbot_position_y"
248 + id=""
249 + value="<?php echo($qcld_wb_chatbot_position_y); ?>"
250 + placeholder="<?php _e('From Bottom In Px', 'wpchatbot'); ?>"> <span class="qc-opt-dcs-font"><?php _e('From Bottom In px', 'wpchatbot'); ?></span>
251 + </div>
252 + </div>
253 + <!--.col-sm-12-->
254 + </div>
255 + <!-- row-->
256 +
257 + <div class="row">
258 + <div class="col-xs-12">
259 + <h4 class="qc-opt-title"><strong> <?php _e('WPBot', 'wpchatbot'); ?></strong> <?php _e('Loading Control Options', 'wpchatbot'); ?> </h4>
260 + <div class="cxsc-settings-blocks">
261 + <div class="row">
262 + <div class="col-sm-4 text-right">
263 + <span class="qc-opt-title-font"><?php _e('Show on Home Page', 'wpchatbot'); ?></span>
264 + </div>
265 + <div class="col-sm-8">
266 + <label class="radio-inline">
267 + <input id="wp-chatbot-show-home-page" type="radio"
268 + name="wp_chatbot_show_home_page"
269 + value="on" <?php echo(get_option('wp_chatbot_show_home_page') == 'on' ? 'checked' : ''); ?>>
270 + <?php _e('YES', 'wpchatbot'); ?>
271 + </label>
272 + <label class="radio-inline">
273 + <input id="wp-chatbot-show-home-page" type="radio"
274 + name="wp_chatbot_show_home_page"
275 + value="off" <?php echo(get_option('wp_chatbot_show_home_page') == 'off' ? 'checked' : ''); ?>>
276 + <?php _e('NO', 'wpchatbot'); ?>
277 + </label>
278 + </div>
279 + </div>
280 + <!-- row-->
281 + <div class="row">
282 + <div class="col-sm-4 text-right">
283 + <span class="qc-opt-title-font"><?php _e('Show on blog posts', 'wpchatbot'); ?></span>
284 + </div>
285 + <div class="col-sm-8">
286 + <label class="radio-inline">
287 + <input class="wp-chatbot-show-posts" type="radio"
288 + name="wp_chatbot_show_posts"
289 + value="on" <?php echo(get_option('wp_chatbot_show_posts') == 'on' ? 'checked' : ''); ?>>
290 + <?php _e('YES', 'wpchatbot'); ?>
291 + </label>
292 + <label class="radio-inline">
293 + <input class="wp-chatbot-show-posts" type="radio"
294 + name="wp_chatbot_show_posts"
295 + value="off" <?php echo(get_option('wp_chatbot_show_posts') == 'off' ? 'checked' : ''); ?>>
296 + <?php _e('NO', 'wpchatbot'); ?>
297 + </label>
298 + </div>
299 + </div>
300 + <!-- row-->
301 + <div class="row">
302 + <div class="col-md-4 text-right">
303 + <span class="qc-opt-title-font"><?php _e('Show on pages', 'wpchatbot'); ?></span>
304 + </div>
305 + <div class="col-md-8">
306 + <label class="radio-inline">
307 + <input class="wp-chatbot-show-pages" type="radio"
308 + name="wp_chatbot_show_pages"
309 + value="on" <?php echo(get_option('wp_chatbot_show_pages') == 'on' ? 'checked' : ''); ?>>
310 + <?php _e('All Pages', 'wpchatbot'); ?>
311 + </label>
312 + <label class="radio-inline">
313 + <input class="wp-chatbot-show-pages" type="radio"
314 + name="wp_chatbot_show_pages"
315 + value="off" <?php echo(get_option('wp_chatbot_show_pages') == 'off' ? 'checked' : ''); ?>>
316 + <?php _e('Selected Pages Only ', 'wpchatbot'); ?></label>
317 + <div id="wp-chatbot-show-pages-list">
318 + <ul class="checkbox-list">
319 + <?php
320 + $wp_chatbot_pages = get_pages();
321 + $wp_chatbot_select_pages = unserialize(get_option('wp_chatbot_show_pages_list'));
322 + foreach ($wp_chatbot_pages as $wp_chatbot_page) {
323 + ?>
324 + <li>
325 + <input
326 + id="wp_chatbot_show_page_<?php echo $wp_chatbot_page->ID; ?>"
327 + type="checkbox"
328 + name="wp_chatbot_show_pages_list[]"
329 + value="<?php echo $wp_chatbot_page->ID; ?>" <?php if (!empty($wp_chatbot_select_pages) && in_array($wp_chatbot_page->ID, $wp_chatbot_select_pages) == true) {
330 + echo 'checked';
331 + } ?> >
332 + <label
333 + for="wp_chatbot_show_page_<?php echo $wp_chatbot_page->ID; ?>"> <?php echo $wp_chatbot_page->post_title; ?></label>
334 + </li>
335 + <?php } ?>
336 + </ul>
337 + </div>
338 + </div>
339 + </div>
340 +
341 + </div>
342 + <!-- cxsc-settings-blocks-->
343 + </div>
344 + <!-- col-xs-12-->
345 + </div>
346 + <!-- row-->
347 +
348 + </div>
349 + <!-- top-section-->
350 + </section>
351 + <section id="section-flip-2">
352 + <div class="top-section">
353 +
354 + <div class="row">
355 + <div class="col-xs-12">
356 +
357 + <div class="row">
358 + <div class="col-xs-12">
359 + <p class="wpqcld_chk_seft">
360 + <a target="_blank" href="https://www.quantumcloud.com/products/themes/chatbot-theme/"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL ?>/chatbot-theme.jpg" alt="" /></a>
361 + </p>
362 + </div>
363 + </div>
364 +
365 + <h4 class="qc-opt-title"><?php _e('WPBot Icon', 'wpchatbot'); ?></h4>
366 + <div class="cxsc-settings-blocks">
367 + <ul class="radio-list">
368 + <!--<li><label for="wp_chatbot_icon_0" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-0.png"
369 + alt=""> <input id="wp_chatbot_icon_0" type="radio"
370 + name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-0.png' ? 'checked' : ''); ?>
371 + value="icon-0.png">
372 + <?php _e('Icon - 0', 'wpchatbot'); ?></label>
373 + </li>
374 + <li><label for="wp_chatbot_icon_1" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-1.png"
375 + alt=""> <input id="wp_chatbot_icon_1" type="radio"
376 + name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-1.png' ? 'checked' : ''); ?>
377 + value="icon-1.png">
378 + <?php _e('Icon - 1', 'wpchatbot'); ?></label>
379 + </li>-->
380 + <li><label for="wp_chatbot_icon_2" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-2.png"
381 + alt=""> <input id="wp_chatbot_icon_2" type="radio"
382 + name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-2.png' ? 'checked' : ''); ?>
383 + value="icon-2.png">
384 + <?php _e('Icon - 2', 'wpchatbot'); ?></label>
385 + </li>
386 + <li><label for="wp_chatbot_icon_3" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-3.png"
387 + alt=""> <input id="wp_chatbot_icon_3" type="radio"
388 + name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-3.png' ? 'checked' : ''); ?>
389 + value="icon-3.png">
390 + <?php _e('Icon - 3', 'wpchatbot'); ?></label>
391 + </li>
392 + <li><label for="wp_chatbot_icon_4" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-4.png"
393 + alt=""> <input id="wp_chatbot_icon_4" type="radio"
394 + name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-4.png' ? 'checked' : ''); ?>
395 + value="icon-4.png">
396 + <?php _e('Icon - 4', 'wpchatbot'); ?></label>
397 + </li>
398 + <li><label for="wp_chatbot_icon_5" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-5.png"
399 + alt=""> <input id="wp_chatbot_icon_5" type="radio"
400 + name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-5.png' ? 'checked' : ''); ?>
401 + value="icon-5.png">
402 + <?php _e('Icon - 5', 'wpchatbot'); ?></label>
403 + </li>
404 + <li><label for="wp_chatbot_icon_6" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-6.png"
405 + alt=""> <input id="wp_chatbot_icon_6" type="radio"
406 + name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-6.png' ? 'checked' : ''); ?>
407 + value="icon-6.png">
408 + <?php _e('Icon - 6', 'wpchatbot'); ?></label>
409 + </li>
410 + <li><label for="wp_chatbot_icon_7" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-7.png"
411 + alt=""> <input id="wp_chatbot_icon_7" type="radio"
412 + name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-7.png' ? 'checked' : ''); ?>
413 + value="icon-7.png">
414 + <?php _e('Icon - 7', 'wpchatbot'); ?></label>
415 + </li>
416 + <li><label for="wp_chatbot_icon_8" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-8.png"
417 + alt=""> <input id="wp_chatbot_icon_8" type="radio"
418 + name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-8.png' ? 'checked' : ''); ?>
419 + value="icon-8.png">
420 + <?php _e('Icon - 8', 'wpchatbot'); ?></label>
421 + </li>
422 + <li><label for="wp_chatbot_icon_9" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-9.png"
423 + alt=""> <input id="wp_chatbot_icon_9" type="radio"
424 + name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-9.png' ? 'checked' : ''); ?>
425 + value="icon-9.png">
426 + <?php _e('Icon - 9', 'wpchatbot'); ?></label>
427 + </li>
428 + <li><label for="wp_chatbot_icon_10" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-10.png"
429 + alt=""> <input id="wp_chatbot_icon_10" type="radio"
430 + name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-10.png' ? 'checked' : ''); ?>
431 + value="icon-10.png">
432 + <?php _e('Icon - 10', 'wpchatbot'); ?></label>
433 + </li>
434 + <li><label for="wp_chatbot_icon_11" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-11.png"
435 + alt=""> <input id="wp_chatbot_icon_11" type="radio"
436 + name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-11.png' ? 'checked' : ''); ?>
437 + value="icon-11.png">
438 + <?php _e('Icon - 11', 'wpchatbot'); ?></label>
439 + </li>
440 + <li><label for="wp_chatbot_icon_12" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-12.png"
441 + alt=""> <input id="wp_chatbot_icon_12" type="radio"
442 + name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-12.png' ? 'checked' : ''); ?>
443 + value="icon-12.png">
444 + <?php _e('Icon - 12', 'wpchatbot'); ?></label>
445 + </li>
446 + <li><label for="wp_chatbot_icon_13" class="qc-opt-dcs-font"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>/icon-13.png"
447 + alt=""> <input id="wp_chatbot_icon_13" type="radio"
448 + name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-13.png' ? 'checked' : ''); ?>
449 + value="icon-13.png">
450 + <?php _e('Icon - 13', 'wpchatbot'); ?></label>
451 + </li>
452 +
453 + <li>
454 + <?php
455 + if (get_option('wp_chatbot_custom_icon_path') != "") {
456 + $wp_chatbot_custom_icon_path = get_option('wp_chatbot_custom_icon_path');
457 + } else {
458 + $wp_chatbot_custom_icon_path = QCLD_wpCHATBOT_IMG_URL . 'custom.png';
459 + }
460 + ?>
461 + <label for="wp_chatbot_custom_icon_input" class="qc-opt-dcs-font">
462 + <img id="wp_chatbot_custom_icon_src"
463 + src="<?php echo $wp_chatbot_custom_icon_path; ?>" alt="">
464 + <input id="wp_chatbot_custom_icon_input" type="radio"
465 + name="wp_chatbot_icon"
466 + value="custom.png" <?php echo(get_option('wp_chatbot_icon') == 'custom.png' ? 'checked' : ''); ?>>
467 + <?php _e('Custom Icon', 'wpchatbot'); ?></label>
468 + </li>
469 +
329 470 </ul>
330 471 </div>
472 + <!-- cxsc-settings-blocks-->
473 + </div>
474 + </div>
475 + <div class="row">
476 + <div class="col-xs-12">
477 + <h4 class="qc-opt-title"><?php _e(' Upload custom Icon ', 'wpchatbot'); ?></h4>
478 + <div class="cxsc-settings-blocks">
479 + <input type="hidden" name="wp_chatbot_custom_icon_path"
480 + id="wp_chatbot_custom_icon_path"
481 + value="<?php echo $wp_chatbot_custom_icon_path; ?>"/>
482 + <button type="button" class="wp_chatbot_custom_icon_button button"><?php _e('Upload Icon', 'wpchatbot'); ?> </button>
331 483 </div>
484 +
332 485 </div>
333 -
334 -
335 - </div>
336 - </div>
337 -
338 -
339 - <!-- end new Section -->
340 -
341 - </div>
342 - </div>
343 - </div>
344 -
345 -
346 -
347 -
348 - <div class="wppt-settings-section" id="general_wp_nutshell" style="display:none;">
349 - <div class="content form-container qcbot_help_secion">
350 - <!-- new Section -->
351 - <h3 class="qcld-wpbot-main-tabs-title"><?php echo esc_html__('WPBot – In a Nutshell', 'chatbot'); ?></h3>
352 -
353 - <p><?php echo esc_html__('This is by no means a comprehensive list of WPBot features. But knowing these core terms will help you understand how WPBot was designed to work.', 'chatbot'); ?></p>
354 - <div style="clear:both"></div>
355 - <div class="panel panel-default">
356 - <div class="panel-heading" role="tab" id="headingOne">
357 - <h4 class="panel-title">
358 - <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="false" aria-controls="collapseOne"> <?php esc_html_e('Intents', 'chatbot'); ?> </a>
359 - </h4>
486 + </div>
360 487 </div>
361 - <div id="collapseOne" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingOne">
362 - <div class="panel-body">
363 - <?php echo esc_html_e(' Intent is all about what the user wants to get out of the interaction. Whenever a user types something or clicks a button, the ChatBot will try to understand what the user wants and fulfill the request with appropriate responses.', 'chatbot'); ?></br></br>
364 - <?php echo esc_html_e('You have to create possible Intent Responses using different features of the WPBot so the bot can respond accordingly. You can create Responses for various Intents using:', 'chatbot'); ?><b>
365 - <?php echo esc_html_e('Simple Text Responses, Conversational form builder, FAQ, Site Search, Send an eMail, Newsletter Subscription, DialogFlow, OpenAI etc.', 'chatbot'); ?></b></br></br>
366 - <?php echo esc_html_e('Please check this article for','chatbot'); ?> <span class="wppt_nav_container qcld-plan-tab-text">
367 - <a href="#general_int"><?php echo esc_html_e('more details', 'chatbot'); ?></a> </span> <?php echo esc_html_e('on how you can create Intents and Responses.', 'chatbot'); ?>
488 +
489 + <div class="top-section">
490 + <div class="row">
491 + <div class="col-xs-12">
492 + <h4 class="qc-opt-title"><?php _e(' WPBot Agent Image', 'wpchatbot'); ?></h4>
493 + <div class="cxsc-settings-blocks">
494 + <ul class="radio-list">
495 + <li>
496 + <label for="wp_chatbot_agent_image_def" class="qc-opt-dcs-font">
497 + <img src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>icon-0.png"
498 + alt=""> <input id="wp_chatbot_agent_image_def" type="radio"
499 + name="wp_chatbot_agent_image" <?php echo(get_option('wp_chatbot_agent_image') == 'agent-0.png' ? 'checked' : ''); ?>
500 + value="agent-0.png">
501 +
502 + <?php _e('Default Agent', 'wpchatbot'); ?></label>
503 + </li>
504 + <li>
505 + <?php
506 + if (get_option('wp_chatbot_custom_agent_path') != "") {
507 + $wp_chatbot_custom_agent_path = get_option('wp_chatbot_custom_agent_path');
508 + } else {
509 + $wp_chatbot_custom_agent_path = QCLD_wpCHATBOT_IMG_URL . 'custom-agent.png';
510 + }
511 + ?>
512 + <label for="wp_chatbot_agent_image_custom" class="qc-opt-dcs-font">
513 + <img id="wp_chatbot_custom_agent_src"
514 + src="<?php echo esc_url($wp_chatbot_custom_agent_path); ?>"
515 + alt="Agent">
516 + <input type="radio" name="wp_chatbot_agent_image"
517 + id="wp_chatbot_agent_image_custom"
518 + value="custom-agent.png" <?php echo(get_option('wp_chatbot_agent_image') == 'custom-agent.png' ? 'checked' : ''); ?>>
519 + <?php echo esc_html__('Custom Agent', 'wpchatbot'); ?></label>
520 + </li>
521 +
522 + </ul>
523 + </div>
524 + <!-- cxsc-settings-blocks-->
368 525 </div>
526 + </div>
527 + <div class="row">
528 + <div class="col-xs-12">
529 + <h4 class="qc-opt-title"> <?php _e('Custom Agent Icon', 'wpchatbot'); ?> </h4>
530 + <div class="cxsc-settings-blocks">
531 + <input type="hidden" name="wp_chatbot_custom_agent_path"
532 + id="wp_chatbot_custom_agent_path"
533 + value="<?php echo $wp_chatbot_custom_agent_path; ?>"/>
534 + <button type="button" class="wp_chatbot_custom_agent_button button"><?php _e('Upload Agent Icon', 'wpchatbot'); ?></button>
535 + </div>
536 + </div>
537 + </div>
369 538 </div>
370 - </div>
371 - <div class="panel panel-default">
372 - <div class="panel-heading" role="tab" id="headingSix">
373 - <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>
375 - </h4>
376 - </div>
377 - <div id="collapseSix" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingSix">
378 - <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'); ?>
539 + <div id="top-section">
540 + <div class="row">
541 + <div class="col-sm-12">
542 + <h4 class="qc-opt-title"> <?php _e('WPBot Themes', 'wpchatbot'); ?></h4>
543 + </div>
382 544 </div>
545 + <div class="row">
546 + <div class="col-sm-3">
547 + <label for="qcld_wb_chatbot_theme_0">
548 + <img class="thumbnail theme_prev"
549 + src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>templates/template-00.JPG"
550 + alt="Theme Basic">
551 + <input id="qcld_wb_chatbot_theme_0" type="radio"
552 + name="qcld_wb_chatbot_theme" <?php echo(get_option('qcld_wb_chatbot_theme') == 'template-00' ? 'checked' : ''); ?>
553 + value="template-00">
554 + <?php _e('Theme Basic', 'wpchatbot'); ?></label>
555 + </div>
556 + <div class="col-sm-3">
557 + <label for="qcld_wb_chatbot_theme_1">
558 + <img class="thumbnail theme_prev"
559 + src="<?php echo QCLD_wpCHATBOT_IMG_URL; ?>templates/template-01.JPG"
560 + alt="Theme Basic">
561 + <input id="qcld_wb_chatbot_theme_1" type="radio"
562 + name="qcld_wb_chatbot_theme" <?php echo(get_option('qcld_wb_chatbot_theme') == 'template-01' ? 'checked' : ''); ?>
563 + value="template-01">
564 + <?php _e('Theme One', 'wpchatbot'); ?></label>
565 + </div>
566 +
567 + </div>
383 568 </div>
384 - </div>
385 - <div class="panel panel-default">
386 - <div class="panel-heading" role="tab" id="headingSeven">
387 - <h4 class="panel-title">
388 - <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseSeven" aria-expanded="false" aria-controls="collapseSeven"> <?php esc_html_e('Settings', 'chatbot'); ?> </a>
389 - </h4>
390 - </div>
391 - <div id="collapseSeven" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingSeven">
392 - <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>
394 - <?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'); ?>
569 + <!--<hr>
570 + <div id="top-section">
571 + <div class="row">
572 + <div class="col-sm-12">
573 + <h4 class="qc-opt-title"> <?php _e('Custom Backgroud', 'wpchatbot'); ?></h4>
574 + <div class="cxsc-settings-blocks">
575 + <input value="1" id="qcld_wb_chatbot_change_bg" type="checkbox"
576 + name="qcld_wb_chatbot_change_bg" <?php echo(get_option('qcld_wb_chatbot_change_bg') == 1 ? 'checked' : ''); ?>>
577 + <label for="qcld_wb_chatbot_change_bg"><?php _e('Change the wpwBot message board background for Theme 2 and Theme 3.', 'wpchatbot'); ?> </label>
578 + </div>
395 579 </div>
396 - </div>
397 - </div>
398 - <div class="panel panel-default">
399 - <div class="panel-heading" role="tab" id="headingEight">
400 - <h4 class="panel-title">
401 - <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseEight" aria-expanded="false" aria-controls="collapseEight"> <?php esc_html_e('Language Center', 'chatbot'); ?> </a>
402 - </h4>
403 - </div>
404 - <div id="collapseEight" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingEight">
405 - <div class="panel-body">
406 - <?php echo esc_html_e('You can use the ChatBot in', 'chatbot'); ?> <b><?php echo esc_html_e('ANY language', 'chatbot'); ?></b>. <?php echo esc_html_e('Just translate the texts used by the ChatBot from the WordPress dashboard ChatBot Pro->', 'chatbot'); ?><b><?php echo esc_html_e('Language Center. Multi language', 'chatbot'); ?></b> <?php echo esc_html_e('module is available in the Master License..','chatbot'); ?>
580 + </div>
581 + <div class="row qcld-wp-chatbot-board-bg-container" <?php if (get_option('qcld_wb_chatbot_change_bg') != 1) {
582 + echo 'style="display:none"';
583 + } ?>>
584 + <div class="col-xs-6">
585 + <p class="wp-chatbot-settings-instruction"> <?php _e('Upload wpwBot message board background (Ideal image size 376px X 688px).', 'wpchatbot'); ?> </p>
586 + <div class="cxsc-settings-blocks">
587 + <?php
588 + if (get_option('qcld_wb_chatbot_board_bg_path') != "") {
589 + $qcld_wb_chatbot_board_bg_path = get_option('qcld_wb_chatbot_board_bg_path');
590 + } else {
591 + $qcld_wb_chatbot_board_bg_path = QCLD_wpCHATBOT_IMG_URL . 'background/background.png';
592 + }
593 + ?>
594 + <input type="hidden" name="qcld_wb_chatbot_board_bg_path"
595 + id="qcld_wb_chatbot_board_bg_path"
596 + value="<?php echo $qcld_wb_chatbot_board_bg_path; ?>"/>
597 + <button type="button" class="qcld_wb_chatbot_board_bg_button button"><?php _e('Upload WpBot background.', 'wpchatbot'); ?></button>
598 + </div>
407 599 </div>
408 - </div>
409 - </div>
410 - <div class="panel panel-default">
411 - <div class="panel-heading" role="tab" id="headingtwo">
412 - <h4 class="panel-title">
413 - <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapsetwo" aria-expanded="false" aria-controls="collapseOne"> <?php esc_html_e('Simple Text Responses', 'chatbot'); ?> </a>
414 - </h4>
415 - </div>
416 - <div id="collapsetwo" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingtwo">
417 - <div class="panel-body">
418 - <?php echo esc_html_e('You can use ChatBot Pro->Simple Text Responses to create', 'chatbot'); ?> <b><?php echo esc_html_e('text-based responses', 'chatbot'); ?></b> <?php echo esc_html_e('that users may ask your ChatBot. Just define the questions, answers, and some keywords and you are done. This is a much simpler', 'chatbot'); ?> <b><?php echo esc_html_e('alternative ', 'chatbot'); ?></b> <?php echo esc_html_e('to DialogFlow or OpenAI.', 'chatbot'); ?>
600 +
601 + <div class="col-xs-6">
602 + <p class="wp-chatbot-settings-instruction"> <?php _e('Custom message board background', 'wpchatbot'); ?> </p>
603 + <img id="qcld_wb_chatbot_board_bg_image" style="height:100%;width:100%"
604 + src="<?php echo $qcld_wb_chatbot_board_bg_path; ?>"
605 + alt="Custom Background">
419 606 </div>
607 + </div>
608 + </div>-->
609 + </section>
610 + <section id="section-flip-3">
611 + <div class="row">
612 + <div class="col-xs-12">
613 +
614 +
615 +
616 + </div>
420 617 </div>
421 - </div>
422 - <div class="panel panel-default">
423 - <div class="panel-heading" role="tab" id="headingThree">
424 - <h4 class="panel-title">
425 - <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseThree" aria-expanded="false" aria-controls="collapseThree"> <?php esc_html_e('Conversational Forms', 'chatbot'); ?> </a>
426 - </h4>
427 - </div>
428 - <div id="collapseThree" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingThree">
429 - <div class="panel-body">
430 - <?php echo esc_html_e('Use conversational forms to collect information from the users. This is also great for Button driven workflow. Create conditional conversations and forms for a native WordPress ChatBot experience. Build Standard Forms, Dynamic Forms with', 'chatbot'); ?> <b> <?php echo esc_html_e('conditional fields, Calculators, Appointment booking', 'chatbot'); ?></b> <?php echo esc_html_e('etc.', 'chatbot'); ?>
618 + <div class="top-section">
619 + <h4 class="qc-opt-title"><?php _e('Build FAQ Query and Answers', 'wpchatbot'); ?></h4>
620 + <div class="block-inner ui-sortable" id="wp-chatbot-support-builder">
621 + <?php
622 + $support_quereis=$this->qcld_wb_chatbot_str_replace(unserialize( get_option('support_query')));
623 + $support_ans=$this->qcld_wb_chatbot_str_replace(unserialize( get_option('support_ans')));
624 + if (count($support_ans) >= 1) {
625 + //foreach (get_option('support_ans') as $support_ans){
626 + $query_ans_counter=0;
627 + foreach (array_combine($support_quereis, $support_ans) as $query => $ans) {
628 + ?>
629 + <div class="row">
630 + <span class="pull-right"> </span>
631 + <div class="col-xs-12">
632 + <button type="button"
633 + class="btn btn-danger btn-sm wp-chatbot-remove-support pull-right">
634 + <i class="fa fa-times" aria-hidden="true"></i>
635 + </button>
636 + <span class="wp-chatbot-support-cross pull-right" >
637 + <i class="fa fa-crosshairs" aria-hidden="true"></i>
638 + </span>
639 + <div class="cxsc-settings-blocks">
640 + <p class="qc-opt-dcs-font"><?php _e('FAQ query ', 'wpchatbot'); ?></p>
641 + <input type="text" class="form-control" name="support_query[]"
642 + placeholder="<?php _e('FAQ query ', 'wpchatbot'); ?>" value="<?php echo $query ?>">
643 + <br>
644 + <p class="qc-opt-dcs-font"><?php _e('FAQ answer', 'wpchatbot'); ?></p>
645 + <?php wp_editor(html_entity_decode(stripcslashes($ans)), 'support_ans'.'_'.$query_ans_counter, array('textarea_name' =>
646 + 'support_ans[]',
647 + 'textarea_rows' => 20,
648 + 'editor_height' => 100,
649 + 'disabled' => 'disabled',
650 + 'media_buttons' => false,
651 + 'tinymce' => array(
652 + 'toolbar1' => 'bold,italic,underline,separator,alignleft,aligncenter,alignright,separator,link,unlink',)
653 + )); ?>
654 + </div>
655 + </div>
656 + </div>
657 + <?php
658 + $query_ans_counter++;
659 + }
660 + //}
661 + } else {
662 + ?>
663 + <div class="row">
664 + <div class="col-xs-12">
665 + <button type="button"
666 + class="btn btn-danger btn-sm wp-chatbot-remove-support pull-right">
667 + <i class="fa fa-times" aria-hidden="true"></i>
668 + </button>
669 + <span class="wp-chatbot-support-cross pull-right" >
670 + <i class="fa fa-crosshairs" aria-hidden="true"></i>
671 + </span>
672 + <div class="cxsc-settings-blocks">
673 + <p class="qc-opt-dcs-font"><?php _e('Support query', 'wpchatbot'); ?> </p>
674 + <input type="text" class="form-control" name="support_query[]"
675 + placeholder="<?php _e('Support query ', 'wpchatbot'); ?>">
676 + <br>
677 + <p class="qc-opt-dcs-font"><strong><?php _e('Support answer', 'wpchatbot'); ?></strong></p>
678 + <?php wp_editor(html_entity_decode(stripcslashes('')), 'support_ans_0', array('textarea_name' =>
679 + 'support_ans[]',
680 + 'textarea_rows' => 20,
681 + 'editor_height' => 100,
682 + 'disabled' => 'disabled',
683 + 'media_buttons' => false,
684 + 'tinymce' => array(
685 + 'toolbar1' => 'bold,italic,underline,separator,alignleft,aligncenter,alignright,separator,link,unlink',)
686 + )); ?>
687 + </div>
688 + <br>
689 + </div>
690 + </div>
691 + <?php
692 + }
693 + ?>
431 694 </div>
432 - </div>
433 - </div>
434 - <div class="panel panel-default">
435 - <div class="panel-heading" role="tab" id="headingten">
436 - <h4 class="panel-title">
437 - <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseten" aria-expanded="false" aria-controls="collapseten"> <?php esc_html_e('Retargeting (Pro feature)', 'chatbot'); ?> </a>
438 - </h4>
439 - </div>
440 - <div id="collapseten" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingten">
441 - <div class="panel-body">
442 - <?php echo esc_html_e('Retargeting is a powerful feature to grab your user’s attention with motivating information (a sale, coupon, ebook etc.). You can trigger a Retargeting message and the ChatBot window will automatically', 'chatbot'); ?> <b> <?php echo esc_html_e('automatically ', 'chatbot'); ?></b><?php echo esc_html_e('open up with your message. You can trigger Retargeting for ', 'chatbot'); ?><b> <?php echo esc_html_e('Exit Intent, Exit Intent, Scroll Intent, Auto After “X” Seconds, Checkout', 'chatbot'); ?></b> <?php echo esc_html_e('etc.', 'chatbot'); ?>
695 + <div class="row">
696 + <div class="col-sm-6 text-left"></div>
697 + <div class="col-sm-6 text-right">
698 + <button class="btn btn-success btn-sm" type="button"
699 + id="add-more-support-query"><i
700 + class="fa fa-plus" aria-hidden="true"></i> <?php _e('Add More Questions and Answers', 'wpchatbot'); ?>
701 + </button>
702 + </div>
443 703 </div>
444 704 </div>
445 - </div>
446 - <div class="panel panel-default">
447 - <div class="panel-heading" role="tab" id="headingFour">
448 - <h4 class="panel-title">
449 - <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseFour" aria-expanded="false" aria-controls="collapseFour"> <?php esc_html_e('OpenAI or DialogFlow', 'chatbot'); ?> </a>
450 - </h4>
451 - </div>
452 - <div id="collapseFour" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingFour">
453 - <div class="panel-body">
454 - <?php echo esc_html_e('If you need a bot that can understand natural language better, use either OpenAI or DialogFlow. Between the two', 'chatbot'); ?> <b> <?php echo esc_html_e('DialogFlow', 'chatbot'); ?></b> <?php echo esc_html_e('is better if you want to', 'chatbot'); ?> <b> <?php echo esc_html_e('provide customer support', 'chatbot'); ?></b>. <?php echo esc_html_e('OpenAI is better at generic questions and training OpenAI also requires a large dataset. But you do not have to use either 3rd party service. Using OpenAI or DialogFlow requires some patience and', 'chatbot'); ?> <b> <?php echo esc_html_e('effort', 'chatbot'); ?></b>. <?php echo esc_html_e('You may very well achieve what you need using ', 'chatbot'); ?><b> <?php echo esc_html_e('Simple Text Responses', 'chatbot'); ?></b> <?php echo esc_html_e('and/or', 'chatbot'); ?> <b> <?php echo esc_html_e('Conversational form builder', 'chatbot'); ?></b> <?php echo esc_html_e('instead.', 'chatbot'); ?>
705 + </section>
706 + <!--<section id="section-flip-4">
707 + <div class="top-section">
708 + <div class="notification-block-inner">
709 + <div class="row">
710 + <div class="col-xs-12">
711 + <div class="cxsc-settings-blocks">
712 + <?php $notification_interval = get_option('qlcd_wp_chatbot_notification_interval') != "" ? get_option('qlcd_wp_chatbot_notification_interval') : 5 ?>
713 + <h4 class="qc-opt-title"><?php _e('Interval between notifications (in Seconds).', 'wpchatbot'); ?></h4>
714 + <input type="text" class="form-control"
715 + name="qlcd_wp_chatbot_notification_interval"
716 + value="<?php echo $notification_interval ?>">
717 + </div>
718 + </div>
719 + </div>
720 +
721 + <?php
722 + $notifications = $this->qcld_wb_chatbot_str_replace(unserialize(get_option('qlcd_wp_chatbot_notifications')));
723 + if (!empty($notifications)) {
724 + $chatbot_notif_counter=0;
725 + foreach ($notifications as $notification) {
726 + ?>
727 + <div class="row">
728 + <div class="col-xs-12">
729 + <button type="button"
730 + class="btn btn-danger btn-sm wp-chatbot-remove-notification pull-right">
731 + <i class="fa fa-times" aria-hidden="true"></i>
732 + </button>
733 + <div class="cxsc-settings-blocks">
734 + <?php wp_editor(html_entity_decode(stripcslashes($notification)), 'qlcd_wp_chatbot_notifications_'.$chatbot_notif_counter, array('textarea_name' =>
735 + 'qlcd_wp_chatbot_notifications[]',
736 + 'textarea_rows' => 20,
737 + 'editor_height' => 100,
738 + 'disabled' => 'disabled',
739 + 'media_buttons' => false,
740 + 'tinymce' => array(
741 + 'toolbar1' => 'bold,italic,underline,separator,alignleft,aligncenter,alignright,separator,link,unlink',)
742 + )); ?>
743 + </div>
744 + </div>
745 +
746 + </div>
747 +
748 + <?php
749 + $chatbot_notif_counter++;
750 + }
751 + //}
752 + } else {
753 + ?>
754 + <div class="row">
755 + <div class="col-xs-12">
756 + <button type="button"
757 + class="btn btn-danger btn-sm wp-chatbot-remove-notification pull-right">
758 + <i class="fa fa-times" aria-hidden="true"></i>
759 + </button>
760 + <div class="cxsc-settings-blocks">
761 + <?php wp_editor(html_entity_decode(stripcslashes('')), 'qlcd_wp_chatbot_notifications_0', array('textarea_name' =>
762 + 'qlcd_wp_chatbot_notifications[]',
763 + 'textarea_rows' => 20,
764 + 'editor_height' => 100,
765 + 'disabled' => 'disabled',
766 + 'media_buttons' => false,
767 + 'tinymce' => array(
768 + 'toolbar1' => 'bold,italic,underline,separator,alignleft,aligncenter,alignright,separator,link,unlink',)
769 + )); ?>
770 + </div>
771 + </div>
772 + </div>
773 + <?php
774 + }
775 + ?>
455 776 </div>
456 - </div>
457 - </div>
458 - <div class="panel panel-default">
459 - <div class="panel-heading" role="tab" id="headingFive">
460 - <h4 class="panel-title">
461 - <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseFive" aria-expanded="false" aria-controls="collapseFive"> <?php esc_html_e('Getting Help', 'chatbot'); ?> </a>
462 - </h4>
463 - </div>
464 - <div id="collapseFive" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingFive">
465 - <div class="panel-body">
466 - <?php echo esc_html_e('We have built-in Help section under each module. Please check them out and you will get many answers to the questions you may have. If you cannot find the answer to something particular, just contact us.', 'chatbot'); ?> <b><?php echo esc_html_e('Pro version ', 'chatbot'); ?></b><?php echo esc_html_e('users can open a support ticket from here. We are ', 'chatbot'); ?><b><?php echo esc_html_e('friendly ', 'chatbot'); ?></b><?php echo esc_html_e('and always here to help.', 'chatbot'); ?>
777 + <div class="row">
778 + <div class="col-sm-6 text-left"></div>
779 + <div class="col-sm-6 text-right">
780 + <button class="btn btn-success btn-sm" type="button"
781 + id="add-more-notification-message">
782 + <i class="fa fa-plus" aria-hidden="true"></i> <?php _e('Add', 'wpchatbot'); ?>
783 + </button>
784 + </div>
467 785 </div>
786 +
468 787 </div>
469 - </div>
470 - </div>
471 - <!-- end new Section -->
472 -
473 -
474 - </div>
475 - <script type="text/javascript">
476 - jQuery(document).ready(function($){
477 - var url=document.URL;
478 - var arr=url.split('#');
479 - var tab_tar = '.'+arr[1];
480 - setTimeout(function(){
481 - jQuery(tab_tar).trigger('click');
482 - }, 500);
483 -
484 - jQuery('.wppt_nav_container .nav-tab').on('click', function(e){
485 - e.preventDefault();
486 - var section_id = jQuery(this).attr('href');
487 - jQuery('.wppt_nav_container .nav-tab').removeClass('nav-tab-active');
488 - jQuery(this).addClass('nav-tab-active');
489 - jQuery('.wppt-settings-section').hide();
490 - jQuery('.wppt-settings-section').each(function(){
491 - jQuery(section_id).show();
492 - });
493 - });
494 - })
495 - </script>
496 - </section>
497 - <section id="section-flip-2">
498 - <div class="top-section">
499 - <div class="row">
500 - <div class="col-xs-12">
501 - <!-- <div class="<?php // esc_attr_e( 'cxsc-settings-blocks-notic" style="<?php // echo esc_attr('background: #2271B1'); ?>">
502 - <p class="<?php // esc_attr_e( 'd-ib"><?php // esc_html_e('New horizontal/wide template is now available. Select from Icons and Themes', 'chatbot'); ?>
503 - </div> -->
504 -
505 - <h3 class="qcld-wpbot-main-tabs-title"><?php esc_html_e('General settings', 'chatbot'); ?></h3>
506 -
507 - <?php if( get_option( 'ai_enabled') != 1 && get_option('qcld_openrouter_enabled') !='1' ){ ?>
508 - <div class="qcld-general-settings-connection-notic">
509 -
510 - <p>
511 - <?php esc_html_e( ' When you activate the plugin, by default only the Site search option will work. Site search displays links to your website pages that contain the keywords in the user query.','chatbot' ); ?>
512 - </p>
513 - <p>
514 - <?php esc_html_e( 'Use ','chatbot' ); ?><a href="<?php echo esc_url(admin_url('admin.php?page=simple-text-response')); ?>"><b><?php esc_html_e( 'Simple Text Responses','chatbot' ); ?></b></a> <?php esc_html_e( ' or','chatbot' ); ?> <a href="<?php echo esc_url(admin_url('admin.php?page=wpbot_openAi')); ?>"><b><?php esc_html_e( 'Connect to an AI service','chatbot' ); ?> </b></a><?php esc_html_e( 'like OpenAI or OpenRouter. Openrouter supports all the major AI models like Anthropic, Google Gemini, Meta, Mistral, Cohere, xAI, Perplexity AI, DeepSeek etc. and also provides Free Credits.','chatbot' ); ?>
515 -
516 - </p>
517 -
518 - <a class="qcld-general-settings-close" href="javascript:void(0);" onclick="this.parentElement.style.display='none'; localStorage.setItem('qcld_general_settings_notice_closed', '1');">×</a>
519 - </div>
520 - <?php } ?>
521 -
522 - <div class="cxsc-settings-blocks-notic">
523 - <p class="d-ib"><i class="dashicons dashicons-yes" aria-hidden="true"></i> <?php esc_html_e('Please see the plugin`s Getting Started section for how to create interactions.', 'chatbot'); ?></p>
524 - <p class="d-ib"><i class="dashicons dashicons-yes" aria-hidden="true"></i> <?php esc_html_e('You can change ALL the texts used by the ChatBot to YOUR language here to make it speak French, German, Spanish etc. -> Change Language', 'chatbot'); ?></p>
525 - <p class="d-ib"><i class="dashicons dashicons-yes" aria-hidden="true"></i> <?php esc_html_e('Please see the plugin`s Help and Debugging section to troubleshoot common issues.', 'chatbot'); ?></p>
526 - </div>
527 - </div>
528 - </div>
529 -
530 -
531 -
532 -
533 - <div class="row">
534 - <div class="col-xs-6">
535 - <div class="cxsc-settings-blocks">
536 - <div class="form-group" style=" min-height: 150px;">
537 - <?php
538 - $qcld_wpbot_url = get_site_url();
539 - $qcld_wpbot_url_parts = wp_parse_url($qcld_wpbot_url);
540 - $qcld_wpbot_domain = $qcld_wpbot_url_parts['host'];
541 - $qcld_wpbot_admin_email = get_option('admin_email');
542 - ?>
543 - <h4 class="qc-opt-title"><?php esc_html_e('Emails Will be Sent to', 'chatbot'); ?></h4>
544 - <input type="text" class="form-control qc-opt-dcs-font"
545 - name="qlcd_wp_chatbot_admin_email"
546 - value="<?php echo (get_option('qlcd_wp_chatbot_admin_email') != '' ? esc_attr(get_option('qlcd_wp_chatbot_admin_email')) : esc_attr(sanitize_email($qcld_wpbot_admin_email)) ); ?>">
547 - <label class="qcld_label_width_full qcld_label_width_half" for="disable_wp_chatbot"><?php esc_html_e('Support and Call Back requests will be sent to this address', 'chatbot'); ?> </label>
548 - </div>
549 - </div>
550 - </div>
551 - <div class="col-xs-6">
552 - <div class="cxsc-settings-blocks">
553 - <div class="form-group">
554 - <?php
555 - $qcld_wpbot_url = get_site_url();
556 - $qcld_wpbot_url_parts = wp_parse_url($qcld_wpbot_url);
557 - $qcld_wpbot_domain = $qcld_wpbot_url_parts['host'];
558 - $qcld_wpbot_from_email = "wordpress@" . $qcld_wpbot_domain;
559 - ?>
560 - <h4 class="qc-opt-title"><?php esc_html_e('From Email Address', 'chatbot'); ?></h4>
561 - <input type="text" class="form-control qc-opt-dcs-font"
562 - name="qlcd_wp_chatbot_from_email"
563 - value="<?php echo (get_option('qlcd_wp_chatbot_from_email') != '' ? esc_attr( get_option('qlcd_wp_chatbot_from_email')) : esc_attr(sanitize_email($qcld_wpbot_from_email))); ?> ">
564 - <label class="qcld_label_width_full qcld_label_width_half" for="qlcd_wp_chatbot_from_email"><?php esc_html_e('All emails will be sent from this email address. If you change the From Email Address then please make sure the domain remains the same as where WordPress is installed. Otherwise, the emails may not be received.', 'chatbot'); ?> </label>
565 - </div>
566 - </div>
567 - </div>
568 - </div>
569 - <style>
570 - .wpbot-cards-grid {
571 - display: grid;
572 - grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
573 - gap: 20px;
574 - margin-bottom: 20px;
575 - margin-top: 20px;
576 - }
577 - .wpbot-checkbox-card {
578 - cursor: pointer;
579 - display: block;
580 - position: relative;
581 - margin: 0;
582 - }
583 - .wpbot-checkbox-card input[type="checkbox"] {
584 - position: absolute;
585 - opacity: 0;
586 - width: 0;
587 - height: 0;
588 - }
589 - .wpbot-checkbox-card .card-body {
590 - border: 1px solid #e2e8f0;
591 - border-radius: 12px;
592 - padding: 20px;
593 - background: #f8fafc;
594 - transition: all 0.2s ease;
595 - height: 100%;
596 - box-sizing: border-box;
597 - display: flex;
598 - flex-direction: column;
599 - position: relative;
600 - }
601 - .wpbot-checkbox-card input[type="checkbox"]:checked + .card-body {
602 - border-color: #5b4e96;
603 - background: #eff6ff;
604 - box-shadow: 0 0 0 1px #5b4e96, 0 8px 24px rgba(37, 99, 235, 0.15);
605 - }
606 - .wpbot-checkbox-card .check-icon {
607 - position: absolute;
608 - top: 30px;
609 - right: 16px;
610 - width: 24px;
611 - height: 24px;
612 - border-radius: 50%;
613 - background: #f8fafc;
614 - border: 2px solid #e2e8f0;
615 - display: flex;
616 - align-items: center;
617 - justify-content: center;
618 - transition: all 0.2s ease;
619 - z-index: 2;
620 - }
621 - .wpbot-checkbox-card input[type="checkbox"]:checked + .card-body .check-icon {
622 - background: #5b4e96;
623 - border-color: #5b4e96;
624 - }
625 - .wpbot-checkbox-card .check-icon svg {
626 - width: 14px;
627 - height: 14px;
628 - stroke: #e2e8f0;
629 - stroke-width: 3;
630 - stroke-linecap: round;
631 - stroke-linejoin: round;
632 - fill: none;
633 - transition: stroke 0.2s ease;
634 - }
635 - .wpbot-checkbox-card input[type="checkbox"]:checked + .card-body .check-icon svg {
636 - stroke: white;
637 - }
638 - .wpbot-checkbox-card .icon-wrapper {
639 - width: 48px;
640 - height: 48px;
641 - border-radius: 12px;
642 - background: #ffffff;
643 - border: 1px solid #e2e8f0;
644 - display: flex;
645 - align-items: center;
646 - justify-content: center;
647 - margin-bottom: 16px;
648 - color: #64748b;
649 - }
650 - .wpbot-checkbox-card input[type="checkbox"]:checked + .card-body .icon-wrapper {
651 - border-color: #e0e7ff;
652 - background: #f0fdf4;
653 - color: #5b4e96;
654 - }
655 - .wpbot-checkbox-card h4 {
656 - margin: 0 0 8px 0 !important;
657 - font-size: 16px !important;
658 - font-weight: 600 !important;
659 - color: #1e293b !important;
660 - line-height: 1.4 !important;
661 - }
662 - .wpbot-checkbox-card p {
663 - margin: 0 !important;
664 - font-size: 14px !important;
665 - color: #64748b !important;
666 - line-height: 1.5 !important;
667 - }
668 - .wpbot-cards-grid-divider {
669 - height: 1px;
670 - width: 100%;
671 - background: #eee;
672 - }
673 - </style>
674 -
675 - <div class="row">
676 - <div class="col-xs-12">
677 -
678 - <div class="wpbot-cards-grid-divider"></div>
679 -
680 - <div class="wpbot-cards-grid">
681 - <label class="wpbot-checkbox-card">
682 - <input value="1" id="enable_asking_for_email" type="checkbox" name="enable_asking_for_email" <?php echo (get_option('enable_asking_for_email') == 1 ? esc_attr('checked' ): ''); ?>>
683 - <div class="card-body">
684 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
685 - <div class="icon-wrapper"><i class="dashicons dashicons-email" style="font-size:24px;width:24px;height:24px;"></i></div>
686 - <h4><?php esc_html_e('Enable Asking for Email', 'chatbot'); ?></h4>
687 - <p><?php esc_html_e('Enable Asking for Email', 'chatbot'); ?></p>
688 - </div>
689 - </label>
690 - </div>
691 - <div class="wpbot-cards-grid-divider"></div>
692 - <div class="wpbot-cards-grid">
693 - <label class="wpbot-checkbox-card">
694 - <input value="1" id="skip_wp_greetings" type="checkbox" name="skip_wp_greetings" <?php echo(get_option('skip_wp_greetings') == 1 ? 'checked' : ''); ?>>
695 - <div class="card-body">
696 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
697 - <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>
700 - </div>
701 - </label>
702 - <label class="wpbot-checkbox-card">
703 - <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 - <div class="card-body">
705 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
706 - <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>
709 - </div>
710 - </label>
711 - <label class="wpbot-checkbox-card">
712 - <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 - <div class="card-body">
714 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
715 - <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>
718 - </div>
719 - </label>
720 - </div>
721 - <div class="wpbot-cards-grid-divider"></div>
722 - <div class="wpbot-cards-grid">
723 - <label class="wpbot-checkbox-card">
724 - <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 - <div class="card-body">
726 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
727 - <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>
730 - </div>
731 - </label>
732 - </div>
733 - <div class="wpbot-cards-grid-divider"></div>
734 - <div class="wpbot-cards-grid">
735 -
736 -
737 - <label class="wpbot-checkbox-card">
738 - <input value="1" id="enable_wp_chatbot_rtl" type="checkbox" name="enable_wp_chatbot_rtl" <?php echo (get_option('enable_wp_chatbot_rtl') == 1 ? esc_attr('checked' ): ''); ?>>
739 - <div class="card-body">
740 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
741 - <div class="icon-wrapper"><i class="dashicons dashicons-editor-rtl" style="font-size:24px;width:24px;height:24px;"></i></div>
742 - <h4><?php esc_html_e('Enable RTL', 'chatbot'); ?></h4>
743 - <p><?php esc_html_e('Enable Right to Left language support for Chat.', 'chatbot'); ?></p>
744 - </div>
745 - </label>
746 -
747 -
748 - <label class="wpbot-checkbox-card">
749 - <input value="1" id="wpbot_enable_on_search" type="checkbox" name="wpbot_enable_on_search" <?php echo (get_option('wpbot_enable_on_search') == 1 ? esc_attr('checked') : ''); ?>>
750 - <div class="card-body">
751 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
752 - <div class="icon-wrapper"><i class="dashicons dashicons-search" style="font-size:24px;width:24px;height:24px;"></i></div>
753 - <h4><?php esc_html_e('Enable Chatbot On WordPress search', 'chatbot'); ?></h4>
754 - <p><?php esc_html_e('Enable Chatbot on WordPress search pages.', 'chatbot'); ?></p>
755 - </div>
756 - </label>
757 -
758 - <label class="wpbot-checkbox-card">
759 - <input value="1" id="open_links_new_window" type="checkbox" name="open_links_new_window" <?php echo (get_option('open_links_new_window') == 1 ? esc_attr('checked'): ''); ?>>
760 - <div class="card-body">
761 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
762 - <div class="icon-wrapper"><i class="dashicons dashicons-external" style="font-size:24px;width:24px;height:24px;"></i></div>
763 - <h4><?php esc_html_e('Links in New Window', 'chatbot'); ?></h4>
764 - <p><?php esc_html_e('Open all Chatbot links in a new browser window.', 'chatbot'); ?></p>
765 - </div>
766 - </label>
767 - </div>
768 - <div class="wpbot-cards-grid-divider"></div>
769 - <div class="wpbot-cards-grid">
770 - <label class="wpbot-checkbox-card">
771 - <input value="1" id="disable_floating_button" type="checkbox" name="disable_floating_button" <?php echo (get_option('disable_floating_button') == 1 ? esc_attr('checked' ): ''); ?>>
772 - <div class="card-body">
773 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
774 - <div class="icon-wrapper"><i class="dashicons dashicons-dismiss" style="font-size:24px;width:24px;height:24px;"></i></div>
775 - <h4><?php esc_html_e('Disable Floating Button', 'chatbot'); ?></h4>
776 - <p><?php esc_html_e('Hide the chatbot floating icon from your website.', 'chatbot'); ?></p>
777 - </div>
778 - </label>
779 - <label class="wpbot-checkbox-card">
780 - <input value="1" id="disable_wp_chatbot_on_mobile" type="checkbox" name="disable_wp_chatbot_on_mobile" <?php echo (get_option('disable_wp_chatbot_on_mobile') == 1 ? esc_attr('checked' ) : ''); ?>>
781 - <div class="card-body">
782 - <div class="check-icon"><svg viewBox="0 0 14 14"><path d="M4 7.2L6.2 9.4L10 5" /></svg></div>
783 - <div class="icon-wrapper"><i class="dashicons dashicons-smartphone" style="font-size:24px;width:24px;height:24px;"></i></div>
784 - <h4><?php esc_html_e('Disable WPbot on Mobile Device', 'chatbot'); ?></h4>
785 - <p><?php esc_html_e('Disable WPBot from loading on mobile devices.', 'chatbot'); ?></p>
786 - </div>
787 - </label>
788 - </div>
789 -
790 -
791 - </div>
792 - </div>
793 -
794 - <div class="row">
795 - <div class="col-xs-12">
796 - <div class="form-group">
797 - <h4 class="qc-opt-title"><?php esc_html_e('Bot Response Delay', 'chatbot'); ?> </h4>
798 - <div class="cxsc-settings-blocks">
799 - <select name="wpbot_preloading_time" id="wpbot_preloading_time">
800 - <?php $current_preloading_time = get_option('wpbot_preloading_time'); ?>
801 - <option value="100" <?php selected($current_preloading_time, '100'); ?>><?php esc_html_e('0.1 Second', 'chatbot'); ?></option>
802 - <option value="500" <?php selected($current_preloading_time, '500'); ?>><?php esc_html_e('0.5 Second', 'chatbot'); ?></option>
803 - <option value="1000" <?php selected($current_preloading_time, '1000'); ?>><?php esc_html_e('1 Second', 'chatbot'); ?></option>
804 - <option value="2000" <?php selected($current_preloading_time, '2000'); ?>><?php esc_html_e('2 Second', 'chatbot'); ?></option>
805 - <option value="3000" <?php selected($current_preloading_time, '3000'); ?>><?php esc_html_e('3 Second', 'chatbot'); ?></option>
806 - </select>
807 - <label class="qcld_label_width_full" for="wpbot_preloading_time"><?php esc_html_e('Bot Response Delay', 'chatbot'); ?> </label>
808 - </div>
809 - </div>
810 - </div>
811 - </div>
812 -
813 -
814 -
815 -
816 -
817 - <div class="row">
818 - <div class="col-xs-12">
819 - <div class="form-group">
820 - <h4 class="qc-opt-title">
821 - <?php esc_html_e('Override WPBot Icon\'s Position', 'chatbot'); ?>
822 - </h4>
823 - <div class="cxsc-settings-blocks cxsc-settings-blocks-font-resize">
824 - <?php
825 - $qcld_wb_chatbot_position_x = get_option('wp_chatbot_position_x');
826 - if ((!isset($qcld_wb_chatbot_position_x)) || ($qcld_wb_chatbot_position_x == "")) {
827 - $qcld_wb_chatbot_position_x = __("120", 'chatbot');
828 - }
829 - $qcld_wb_chatbot_position_y = get_option('wp_chatbot_position_y');
830 - if ((!isset($qcld_wb_chatbot_position_y)) || ($qcld_wb_chatbot_position_y == "")) {
831 - $qcld_wb_chatbot_position_y = __("120", 'chatbot');
832 - }
833 - ?>
834 - <input type="number" class="qc-opt-dcs-font"
835 - name="wp_chatbot_position_x"
836 - value="<?php echo esc_attr($qcld_wb_chatbot_position_x);?>"
837 - placeholder="<?php esc_attr_e('From Right In ', 'chatbot'); ?>">
838 - <span class="qc-opt-dcs-font">
839 - <?php esc_html_e('From Right In px', 'chatbot'); ?>
840 - </span>
841 - <input type="number" class="qc-opt-dcs-font"
842 - name="wp_chatbot_position_y"
843 - value="<?php echo esc_attr($qcld_wb_chatbot_position_y); ?>"
844 - placeholder="<?php esc_attr_e('From Bottom In Px', 'chatbot'); ?> ">
845 - <span class="qc-opt-dcs-font">
846 - <?php esc_html_e('From Bottom In px', 'chatbot'); ?>
847 - </span> </div>
848 - </div>
849 - <!--.col-sm-12-->
850 - </div>
851 - <!-- row-->
852 - </div>
853 - <div class="row">
854 - <div class="col-xs-12">
855 -
856 - <div class="panel panel-default">
857 - <div class="panel-heading" role="tab" id="headingTwoControl">
858 - <h4 class="panel-title">
859 - <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseTwoControl" aria-expanded="false" aria-controls="collapseTwoControl"> <?php esc_html_e('WPBot Loading Control Options', 'chatbot'); ?> </a>
860 - </h4>
861 - </div>
862 - <div id="collapseTwoControl" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwoControl">
863 - <div class="panel-body">
864 - <h3 class="qcld-wpbot-main-tabs-title"><?php esc_html_e('WPBot Loading Control Options', 'chatbot'); ?></h3>
865 - <div class="cxsc-settings-blocks cxsc-settings-blocks-style">
866 - <div class="row">
867 - <div class="col-sm-4 text-right"> <span class="qc-opt-title-font">
868 - <?php esc_html_e('Show on Home Page', 'chatbot'); ?>
869 - </span> </div>
870 - <div class="col-sm-8">
871 - <label class="radio-inline ">
872 - <input id="wp-chatbot-show-home-page" type="radio"
873 - name="wp_chatbot_show_home_page"
874 - value="on" <?php echo(get_option('wp_chatbot_show_home_page') == 'on' ? esc_attr('checked' ): ''); ?>>
875 - <?php esc_html_e('YES', 'chatbot'); ?>
876 - </label>
877 - <label class="radio-inline ">
878 - <input id="wp-chatbot-show-home-page" type="radio"
879 - name="wp_chatbot_show_home_page"
880 - value="off" <?php echo(get_option('wp_chatbot_show_home_page') == 'off' ? esc_attr('checked' ): ''); ?>>
881 - <?php esc_html_e('NO', 'chatbot'); ?>
882 - </label>
883 - </div>
884 - </div>
885 - <!-- row-->
886 - <div class="row">
887 - <div class="col-sm-4 text-right"> <span class="qc-opt-title-font">
888 - <?php esc_html_e('Show on blog posts', 'chatbot'); ?>
889 - </span> </div>
890 - <div class="col-sm-8">
891 - <label class="radio-inline ">
892 - <input class="wp-chatbot-show-posts" type="radio"
893 - name="wp_chatbot_show_posts"
894 - value="on" <?php echo(get_option('wp_chatbot_show_posts') == 'on' ? esc_attr('checked' ): ''); ?>>
895 - <?php esc_html_e('YES', 'chatbot'); ?>
896 - </label>
897 - <label class="radio-inline ">
898 - <input class="wp-chatbot-show-posts" type="radio"
899 - name="wp_chatbot_show_posts"
900 - value="off" <?php echo(get_option('wp_chatbot_show_posts') == 'off' ? esc_attr('checked' ): ''); ?>>
901 - <?php esc_html_e('NO', 'chatbot'); ?>
902 - </label>
903 - </div>
904 - </div>
905 - <!-- row-->
906 - <div class="row">
907 - <div class="col-md-4 text-right"> <span class="qc-opt-title-font">
908 - <?php esc_html_e('Show on pages', 'chatbot'); ?>
909 - </span> </div>
910 - <div class="col-md-8">
911 - <label class="radio-inline ">
912 - <input class="wp-chatbot-show-pages" type="radio"
913 - name="wp_chatbot_show_pages"
914 - value="on" <?php echo(get_option('wp_chatbot_show_pages') == 'on' ? esc_attr('checked' ): ''); ?>>
915 - <?php esc_html_e('All Pages', 'chatbot'); ?>
916 - </label>
917 - <label class="radio-inline ">
918 - <input class="wp-chatbot-show-pages" type="radio"
919 - name="wp_chatbot_show_pages"
920 - value="off" <?php echo(get_option('wp_chatbot_show_pages') == 'off' ? esc_attr('checked' ): ''); ?>>
921 - <?php esc_html_e('Selected Pages Only ', 'chatbot'); ?>
922 - </label>
923 - <div id="wp-chatbot-show-pages-list">
924 - <ul class="checkbox-list">
925 - <?php
926 - $wp_chatbot_pages = get_pages();
927 - $wp_chatbot_select_pages = maybe_unserialize(get_option('wp_chatbot_show_pages_list'));
928 - foreach ($wp_chatbot_pages as $wp_chatbot_page) {
929 - ?>
930 - <li>
931 - <input id="<?php echo esc_attr('wp_chatbot_show_page_'. $wp_chatbot_page->ID ); ?>"
932 - type="checkbox"
933 - name="wp_chatbot_show_pages_list[]"
934 - value="<?php echo esc_attr($wp_chatbot_page->ID); ?>" <?php if (!empty($wp_chatbot_select_pages) && in_array($wp_chatbot_page->ID, $wp_chatbot_select_pages) == true) {
935 - echo esc_attr('checked');
936 - } ?> >
937 - <label for="wp_chatbot_show_page_<?php echo esc_attr($wp_chatbot_page->ID); ?>"> <?php echo esc_html($wp_chatbot_page->post_title); ?></label>
938 - </li>
939 - <?php } ?>
940 - </ul>
941 - </div>
942 - </div>
943 - </div>
944 - <!--row-->
945 - <div class="row">
946 - <div class="col-sm-4 text-right"> <span class="qc-opt-title-font">
947 - <?php esc_html_e('Exclude from Custom Post', 'chatbot'); ?>
948 - </span></div>
949 - <div class="col-sm-8">
950 - <div id="wp-chatbot-exclude-post-list" class="wp-chatbot-exclude-post-list">
951 - <ul class="checkbox-list">
952 - <?php
953 - $get_cpt_args = array(
954 - 'public' => true,
955 - '_builtin' => false
956 - );
957 -
958 - $post_types = get_post_types( $get_cpt_args, 'object' );
959 - $wp_chatbot_exclude_post_list = maybe_unserialize(get_option('wp_chatbot_exclude_post_list'));
960 -
961 - foreach ($post_types as $post_type) {
962 - ?>
963 - <li>
964 - <input
965 - id="<?php echo esc_attr( 'wp_chatbot_exclude_post_'. $post_type->name ); ?>"
966 - type="checkbox"
967 - name="wp_chatbot_exclude_post_list[]"
968 - value="<?php echo esc_attr($post_type->name); ?>" <?php if (!empty($wp_chatbot_exclude_post_list) && in_array($post_type->name, $wp_chatbot_exclude_post_list) == true) {
969 - echo esc_attr('checked');
970 - } ?> >
971 - <label
972 - for="wp_chatbot_exclude_post_<?php echo esc_attr($post_type->name); ?>"> <?php echo esc_html($post_type->name); ?></label>
973 - </li>
974 - <?php } ?>
975 - </ul>
976 - </div>
977 - </div>
978 - </div>
979 - </div>
980 -
981 - </div>
982 - </div>
983 - </div>
984 - <!-- cxsc-settings-blocks-->
985 - </div>
986 - <!-- col-xs-12-->
987 - </div>
988 - <!-- row-->
989 -
990 - </div>
991 - <!-- top-section-->
992 - </section>
993 - <section id="section-flip-5">
994 - <div class="wp-chatbot-language-center-summmery"> </div>
995 - <div class="row">
996 - <div class="col-md-12">
997 - <h4 class="qc-opt-title"><b><?php echo esc_html__( 'Change Language', 'chatbot'); ?></b></h4>
998 - <!-- Language Selection Dropdown -->
999 - <div class="cxsc-settings-blocks mb-6">
1000 - <div class="form-group">
1001 - <label for="qcld_language_center_select" class="block text-sm font-medium text-gray-700 mb-2 qc-opt-language-title">
1002 - <?php echo esc_html__( 'Select a Language:', 'chatbot'); ?>
1003 - </label>
1004 - <select id="qcld_language_center_select" class="form-select" onchange="qcld_wpbot_languageChange_from_center(this.value)">
1005 - <option value=""> <?php echo esc_html__( '-- Choose a language --', 'chatbot'); ?></option>
1006 - <option value="arabic" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'arabic' ? 'selected' : '' ?>><?php echo esc_html__( 'Arabic (ar)', 'chatbot'); ?></option>
1007 - <option value="bulgarian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'bulgarian' ? 'selected' : '' ?>><?php echo esc_html__( 'Bulgarian (bg)', 'chatbot'); ?></option>
1008 - <option value="chinese" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'chinese' ? 'selected' : '' ?>><?php echo esc_html__( 'Chinese (zh)', 'chatbot'); ?></option>
1009 - <option value="chinese_mandarin" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'chinese_mandarin' ? 'selected' : '' ?>><?php echo esc_html__( 'Chinese Mandarin (cmn)', 'chatbot'); ?></option>
1010 - <option value="danish" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'danish' ? 'selected' : '' ?>><?php echo esc_html__( 'Danish (da)', 'chatbot'); ?></option>
1011 - <option value="dutch" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'dutch' ? 'selected' : '' ?>><?php echo esc_html__( 'Dutch (nl)', 'chatbot'); ?></option>
1012 - <option value="english" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'english' ? 'selected' : '' ?>><?php echo esc_html__( 'English (en)', 'chatbot'); ?></option>
1013 - <option value="estonian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'estonian' ? 'selected' : '' ?>><?php echo esc_html__( 'Estonian (et)', 'chatbot'); ?></option>
1014 - <option value="filipino" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'filipino' ? 'selected' : '' ?>><?php echo esc_html__( 'Filipino (fil)', 'chatbot'); ?></option>
1015 - <option value="french" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'french' ? 'selected' : '' ?>><?php echo esc_html__( 'French (fr)', 'chatbot'); ?></option>
1016 - <option value="german" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'german' ? 'selected' : '' ?>><?php echo esc_html__( 'German (de)', 'chatbot'); ?></option>
1017 - <option value="greek" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'greek' ? 'selected' : '' ?>><?php echo esc_html__( 'Greek (el)', 'chatbot'); ?></option>
1018 - <option value="hebrew" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'hebrew' ? 'selected' : '' ?>><?php echo esc_html__( 'Hebrew (he)', 'chatbot'); ?></option>
1019 - <option value="hindi" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'hindi' ? 'selected' : '' ?>><?php echo esc_html__( 'Hindi (hi)', 'chatbot'); ?></option>
1020 - <option value='hungarian' <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'hungarian' ? 'selected' : '' ?>><?php echo esc_html__( 'Hungarian (hu)', 'chatbot'); ?></option>
1021 - <option value="indonesian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'indonesian' ? 'selected' : '' ?>><?php echo esc_html__( 'Indonesian (id)', 'chatbot'); ?></option>
1022 - <option value="italian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'italian' ? 'selected' : '' ?>><?php echo esc_html__( 'Italian (it)', 'chatbot'); ?></option>
1023 - <option value="japanese" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'japanese' ? 'selected' : '' ?>><?php echo esc_html__( 'Japanese (ja)', 'chatbot'); ?></option>
1024 - <option value="korean" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'korean' ? 'selected' : '' ?>><?php echo esc_html__( 'Korean (ko)', 'chatbot'); ?></option>
1025 - <option value="lithuanian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'lithuanian' ? 'selected' : '' ?>><?php echo esc_html__( 'Lithuanian (lt)', 'chatbot'); ?></option>
1026 - <option value="malay" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'malay' ? 'selected' : '' ?>><?php echo esc_html__( 'Malay (ms)', 'chatbot'); ?></option>
1027 - <option value="norwegian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'norwegian' ? 'selected' : '' ?>><?php echo esc_html__( 'Norwegian (no)', 'chatbot'); ?></option>
1028 - <option value="persian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'persian' ? 'selected' : '' ?>><?php echo esc_html__( 'Persian (fa)', 'chatbot'); ?></option>
1029 - <option value="polish" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'polish' ? 'selected' : '' ?>><?php echo esc_html__( 'Polish (pl)', 'chatbot'); ?></option>
1030 - <option value="portuguese" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'portuguese' ? 'selected' : '' ?>><?php echo esc_html__( 'Portuguese (pt)', 'chatbot'); ?></option>
1031 - <option value="romanian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'romanian' ? 'selected' : '' ?>><?php echo esc_html__( 'Romanian (ro)', 'chatbot'); ?></option>
1032 - <option value="russian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'russian' ? 'selected' : '' ?>><?php echo esc_html__( 'Russian (ru)', 'chatbot'); ?></option>
1033 - <option value="sinhala" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'sinhala' ? 'selected' : '' ?>><?php echo esc_html__( 'Sinhala (si)', 'chatbot'); ?></option>
1034 - <option value="spanish" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'spanish' ? 'selected' : '' ?>><?php echo esc_html__( 'Spanish (es)', 'chatbot'); ?></option>
1035 - <option value="swedish" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'swedish' ? 'selected' : '' ?>><?php echo esc_html__( 'Swedish (sv)', 'chatbot'); ?></option>
1036 - <option value="thai" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'thai' ? 'selected' : '' ?>><?php echo esc_html__( 'Thai (th)', 'chatbot'); ?></option>
1037 - <option value="turkish" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'turkish' ? 'selected' : '' ?>><?php echo esc_html__( 'Turkish (tr)', 'chatbot'); ?></option>
1038 - <option value="ukrainian" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'ukrainian' ? 'selected' : '' ?>><?php echo esc_html__( 'Ukrainian (uk)', 'chatbot'); ?></option>
1039 - <option value="vietnamese" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'vietnamese' ? 'selected' : '' ?>><?php echo esc_html__( 'Vietnamese (vi)', 'chatbot'); ?></option>
1040 - <option value="not_mine" <?php echo (get_option('wp_chatbot_language_center_language') !== "") && get_option('wp_chatbot_language_center_language') === 'not_mine' ? 'selected' : '' ?>><?php echo esc_html__( 'My language is not here', 'chatbot'); ?></option>
1041 - </select>
1042 - <!-- Results Display Area -->
1043 - <div id="results-container" class="mt-8 p-4 flex items-center justify-center text-gray-600">
1044 - <p id="initial-message">
1045 - <?php echo esc_html__( 'Select your language to auto translate the texts used by the ChatBot. You can fine tune and update them manually from below.', 'chatbot'); ?> <b><?php echo esc_html__( 'Remember to Save the Settings.', 'chatbot'); ?></b>
1046 - </p>
1047 - <p id="waring-message"></p>
1048 - </div>
788 +
789 + </section>-->
790 + <section id="section-flip-4">
791 + <div class="wp-chatbot-language-center-summmery">
792 +
1049 793 </div>
1050 - </div>
1051 - </div>
1052 - </div>
1053 - <ul class="nav nav-tabs">
1054 - <li class="active"><a data-toggle="tab" href="#wp-chatbot-lng-general">
1055 - <?php esc_html_e('General', 'chatbot'); ?>
1056 - </a></li>
1057 - <li><a data-toggle="tab" href="#wp-chatbot-lng-support">
1058 - <?php esc_html_e('FAQ', 'chatbot'); ?>
1059 - </a></li>
1060 - <li><a data-toggle="tab" href="#wp-chatbot-lng-reserve-keyword">
1061 - <?php esc_html_e('ChatBot Keywords', 'chatbot'); ?>
1062 - </a></li>
1063 - </ul>
1064 - <div class="tab-content">
1065 - <div id="wp-chatbot-lng-general" class="tab-pane fade in active">
1066 - <div class="top-section">
1067 -
1068 - <div class="row">
1069 - <div class="col-xs-12" id="wp-chatbot-language-section">
1070 - <p style="color: red"><b><?php esc_html_e('You can change ALL the texts used by the ChatBot to YOUR OWN language here (like Spanish, French etc.).', 'chatbot' ); ?></b></p>
1071 - <p><?php esc_html_e('After making changes in the language center or settings, please type reset and hit enter in the ChatBot to start testing from the beginning or open a new Incognito window (Ctrl+Shit+N in chrome).', 'chatbot' ); ?></p>
1072 - <p><?php esc_html_e('You could use &lt;br&gt; tag for line break.', 'chatbot' ); ?></p>
1073 - <div class="form-group">
1074 - <h4 class="qc-opt-title">
1075 - <?php esc_html_e('Your Company or Website Name', 'chatbot'); ?>
1076 - </h4>
1077 - <input type="text" class="form-control qc-opt-dcs-font"
794 + <ul class="nav nav-tabs">
795 + <li class="active"><a data-toggle="tab" href="#wp-chatbot-lng-general"><?php _e('General', 'wpchatbot'); ?></a></li>
796 +
797 + <li><a data-toggle="tab" href="#wp-chatbot-lng-support"><?php _e('FAQ', 'wpchatbot'); ?></a></li>
798 +
799 + <li><a data-toggle="tab" href="#wp-chatbot-lng-reserve-keyword"><?php _e('ChatBot Keywords', 'wpchatbot'); ?></a></li>
800 + </ul>
801 + <div class="tab-content">
802 + <div id="wp-chatbot-lng-general" class="tab-pane fade in active">
803 + <div class="top-section">
804 + <div class="row">
805 + <div class="col-xs-12" id="wp-chatbot-language-section">
806 +
807 + <p>After making changes in the language center or settings, please type reset and hit enter in the ChatBot to start testing from the beginning or open a new Incognito window (Ctrl+Shit+N in chrome).</p>
808 + <p>You could use &lt;br&gt; tag for line break.</p>
809 +
810 + <div class="form-group">
811 + <h4 class="qc-opt-title"><?php _e('Your Company or Website Name', 'wpchatbot'); ?></h4>
812 + <input type="text" class="form-control qc-opt-dcs-font"
1078 813 name="qlcd_wp_chatbot_host"
1079 - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_host') != '' ? get_option('qlcd_wp_chatbot_host') : 'Our Store') ); ?>">
1080 - </div>
1081 - <div class="form-group">
1082 - <h4 class="qc-opt-title">
1083 - <?php esc_html_e('Agent name', 'chatbot'); ?>
1084 - </h4>
1085 - <input type="text" class="form-control qc-opt-dcs-font"
814 + value="<?php echo(get_option('qlcd_wp_chatbot_host') != '' ? get_option('qlcd_wp_chatbot_host') : 'Our Store'); ?>">
815 + </div>
816 + <div class="form-group">
817 + <h4 class="qc-opt-title"><?php _e('Agent name', 'wpchatbot'); ?></h4>
818 + <input type="text" class="form-control qc-opt-dcs-font"
1086 819 name="qlcd_wp_chatbot_agent"
1087 - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_agent') != '' ? get_option('qlcd_wp_chatbot_agent') : 'Carrie')); ?>">
1088 - </div>
1089 - <div class="form-group">
1090 - <h4 class="qc-opt-title">
1091 - <?php esc_html_e('User demo name', 'chatbot'); ?>
1092 - </h4>
1093 - <input type="text" class="form-control qc-opt-dcs-font"
820 + value="<?php echo(get_option('qlcd_wp_chatbot_agent') != '' ? get_option('qlcd_wp_chatbot_agent') : 'Carrie'); ?>">
821 + </div>
822 + <div class="form-group">
823 + <h4 class="qc-opt-title"><?php _e('User demo name', 'wpchatbot'); ?></h4>
824 + <input type="text" class="form-control qc-opt-dcs-font"
1094 825 name="qlcd_wp_chatbot_shopper_demo_name"
1095 - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_shopper_demo_name') != '' ? get_option('qlcd_wp_chatbot_shopper_demo_name') : 'Amigo')); ?>">
1096 - </div>
1097 - <div class="form-group">
1098 - <h4 class="qc-opt-title">
1099 - <?php esc_html_e('YES', 'chatbot'); ?>
1100 - </h4>
1101 - <input type="text" class="form-control qc-opt-dcs-font"
826 + value="<?php echo(get_option('qlcd_wp_chatbot_shopper_demo_name') != '' ? get_option('qlcd_wp_chatbot_shopper_demo_name') : 'Amigo'); ?>">
827 + </div>
828 + <div class="form-group">
829 + <h4 class="qc-opt-title"><?php _e('YES', 'wpchatbot'); ?></h4>
830 + <input type="text" class="form-control qc-opt-dcs-font"
1102 831 name="qlcd_wp_chatbot_yes"
1103 - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_yes') != '' ? get_option('qlcd_wp_chatbot_yes') : 'YES')); ?>">
1104 - </div>
1105 - <div class="form-group">
1106 - <h4 class="qc-opt-title">
1107 - <?php esc_html_e('NO', 'chatbot'); ?>
1108 - </h4>
1109 - <input type="text" class="form-control qc-opt-dcs-font"
832 + value="<?php echo(get_option('qlcd_wp_chatbot_yes') != '' ? get_option('qlcd_wp_chatbot_yes') : 'YES'); ?>">
833 + </div>
834 + <div class="form-group">
835 + <h4 class="qc-opt-title"><?php _e('NO', 'wpchatbot'); ?></h4>
836 + <input type="text" class="form-control qc-opt-dcs-font"
1110 837 name="qlcd_wp_chatbot_no"
1111 - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_no') != '' ? get_option('qlcd_wp_chatbot_no') : 'NO')); ?>">
1112 - </div>
1113 - <div class="form-group">
1114 - <h4 class="qc-opt-title">
1115 - <?php esc_html_e('OR', 'chatbot'); ?>
1116 - </h4>
1117 - <input type="text" class="form-control qc-opt-dcs-font"
838 + value="<?php echo(get_option('qlcd_wp_chatbot_no') != '' ? get_option('qlcd_wp_chatbot_no') : 'NO'); ?>">
839 + </div>
840 + <div class="form-group">
841 + <h4 class="qc-opt-title"><?php _e('OR', 'wpchatbot'); ?></h4>
842 + <input type="text" class="form-control qc-opt-dcs-font"
1118 843 name="qlcd_wp_chatbot_or"
1119 - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_or') != '' ? get_option('qlcd_wp_chatbot_or') : 'OR')); ?>">
1120 - </div>
1121 - <div class="form-group">
1122 - <h4 class="qc-opt-title">
1123 - <?php esc_html_e('Sorry', 'chatbot'); ?>
1124 - </h4>
1125 - <input type="text" class="form-control qc-opt-dcs-font "
844 + value="<?php echo(get_option('qlcd_wp_chatbot_or') != '' ? get_option('qlcd_wp_chatbot_or') : 'OR'); ?>">
845 + </div>
846 + <div class="form-group">
847 + <h4 class="qc-opt-title"><?php _e('Sorry', 'wpchatbot'); ?></h4>
848 + <input type="text" class="form-control qc-opt-dcs-font"
1126 849 name="qlcd_wp_chatbot_sorry"
1127 - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_sorry') != '' ? get_option('qlcd_wp_chatbot_sorry') : 'Sorry')); ?>">
1128 - </div>
1129 -
1130 - <div class="form-group">
1131 - <?php
1132 - $agent_join_options = maybe_unserialize(get_option('qlcd_wp_chatbot_agent_join'));
1133 - $agent_join_option = 'qlcd_wp_chatbot_agent_join';
1134 - $agent_join_text = __('has joined the conversation', 'chatbot');
1135 - $this->qcld_wb_chatbot_dynamic_multi_option($agent_join_options, $agent_join_option, $agent_join_text);
1136 - ?>
1137 - </div>
1138 - </div>
1139 - <!--col-xs-12-->
1140 - <div class="col-xs-12" id="wp-chatbot-language-section">
1141 - <h4 class="text-success">
1142 - <?php esc_html_e(' Message setting for Greetings: ', 'chatbot'); ?>
1143 - </h4>
1144 - <div class="form-group">
1145 - <?php
1146 - $welcome_to_options = maybe_unserialize(get_option('qlcd_wp_chatbot_welcome'));
1147 - $welcome_to_option = 'qlcd_wp_chatbot_welcome';
1148 - $welcome_to_text = esc_html('Welcome to');
1149 - $this->qcld_wb_chatbot_dynamic_multi_option($welcome_to_options, $welcome_to_option, $welcome_to_text);
1150 - ?>
1151 - </div>
1152 - <div class="form-group">
1153 - <?php
1154 - $welcome_back_options = maybe_unserialize(get_option('qlcd_wp_chatbot_welcome_back'));
1155 - $welcome_back_option = 'qlcd_wp_chatbot_welcome_back';
1156 - $welcome_back_text = esc_html('Welcome back');
1157 - $this->qcld_wb_chatbot_dynamic_multi_option($welcome_back_options, $welcome_back_option, $welcome_back_text);
1158 - ?>
1159 - </div>
1160 - <div class="form-group">
1161 - <?php
1162 - $back_to_start_options = maybe_unserialize(get_option('qlcd_wp_chatbot_back_to_start'));
1163 - $back_to_start_option = 'qlcd_wp_chatbot_back_to_start';
1164 - $back_to_start_text = esc_html('Back to Start');
1165 - $this->qcld_wb_chatbot_dynamic_multi_option($back_to_start_options, $back_to_start_option, $back_to_start_text);
1166 - ?>
1167 - </div>
1168 - <div class="form-group">
1169 - <?php
1170 - $hi_there_options = maybe_unserialize(get_option('qlcd_wp_chatbot_hi_there'));
1171 - $hi_there_option = 'qlcd_wp_chatbot_hi_there';
1172 - $hi_there_text = esc_html('Hi There!');
1173 - $this->qcld_wb_chatbot_dynamic_multi_option($hi_there_options, $hi_there_option, $hi_there_text);
1174 - ?>
1175 - </div>
1176 - <div class="form-group">
1177 - <?php
1178 - $hello_options = maybe_unserialize(get_option('qlcd_wp_chatbot_hello'));
1179 - $hello_option = 'qlcd_wp_chatbot_hello';
1180 - $hello_text = esc_html('Hello');
1181 - $this->qcld_wb_chatbot_dynamic_multi_option($hello_options, $hello_option, $hello_text);
1182 - ?>
1183 - </div>
1184 - <div class="form-group">
1185 - <?php
1186 - $asking_name_options = maybe_unserialize(get_option('qlcd_wp_chatbot_asking_name'));
1187 - $asking_name_option = 'qlcd_wp_chatbot_asking_name';
1188 - $asking_name_text = esc_html('May I know your name?');
1189 - $this->qcld_wb_chatbot_dynamic_multi_option($asking_name_options, $asking_name_option, $asking_name_text);
1190 - ?>
1191 - </div>
1192 - <div class="form-group">
1193 - <?php
1194 - $i_am_options = maybe_unserialize(get_option('qlcd_wp_chatbot_i_am'));
1195 - $i_am_option = 'qlcd_wp_chatbot_i_am';
1196 - $i_am_text = esc_html('I am');
1197 - $this->qcld_wb_chatbot_dynamic_multi_option($i_am_options, $i_am_option, $i_am_text);
1198 - ?>
1199 - </div>
1200 - <div class="form-group">
1201 - <?php
1202 - $name_greeting_options = maybe_unserialize(get_option('qlcd_wp_chatbot_name_greeting'));
850 + value="<?php echo(get_option('qlcd_wp_chatbot_sorry') != '' ? get_option('qlcd_wp_chatbot_sorry') : 'Sorry'); ?>">
851 + </div>
852 + <div class="form-group">
853 + <?php
854 + $agent_join_options = unserialize(get_option('qlcd_wp_chatbot_agent_join'));
855 + $agent_join_option = 'qlcd_wp_chatbot_agent_join';
856 + $agent_join_text = __('has joined the conversation', 'wpchatbot');
857 + $this->qcld_wb_chatbot_dynamic_multi_option($agent_join_options, $agent_join_option, $agent_join_text);
858 + ?>
859 + </div>
860 + </div>
861 + <!--col-xs-12-->
862 + <div class="col-xs-12" id="wp-chatbot-language-section">
863 + <h4 class="text-success"><?php _e(' Message setting for Greetings: ', 'wpchatbot'); ?></h4>
864 + <div class="form-group">
865 + <?php
866 + $welcome_to_options = unserialize(get_option('qlcd_wp_chatbot_welcome'));
867 + $welcome_to_option = 'qlcd_wp_chatbot_welcome';
868 + $welcome_to_text =__('Welcome to', 'wpchatbot');
869 + $this->qcld_wb_chatbot_dynamic_multi_option($welcome_to_options, $welcome_to_option, $welcome_to_text);
870 + ?>
871 + </div>
872 + <div class="form-group">
873 + <?php
874 + $welcome_back_options = unserialize(get_option('qlcd_wp_chatbot_welcome_back'));
875 + $welcome_back_option = 'qlcd_wp_chatbot_welcome_back';
876 + $welcome_back_text = __('Welcome back', 'wpchatbot');
877 + $this->qcld_wb_chatbot_dynamic_multi_option($welcome_back_options, $welcome_back_option, $welcome_back_text);
878 + ?>
879 + </div>
880 + <div class="form-group">
881 + <?php
882 + $back_to_start_options = unserialize(get_option('qlcd_wp_chatbot_back_to_start'));
883 + $back_to_start_option = 'qlcd_wp_chatbot_back_to_start';
884 + $back_to_start_text = __('Back to Start', 'wpchatbot');
885 + $this->qcld_wb_chatbot_dynamic_multi_option($back_to_start_options, $back_to_start_option, $back_to_start_text);
886 + ?>
887 + </div>
888 + <div class="form-group">
889 + <?php
890 + $hi_there_options = unserialize(get_option('qlcd_wp_chatbot_hi_there'));
891 + $hi_there_option = 'qlcd_wp_chatbot_hi_there';
892 + $hi_there_text = __('Hi There!', 'wpchatbot');
893 + $this->qcld_wb_chatbot_dynamic_multi_option($hi_there_options, $hi_there_option, $hi_there_text);
894 + ?>
895 + </div>
896 + <div class="form-group">
897 + <?php
898 + $asking_name_options = unserialize(get_option('qlcd_wp_chatbot_asking_name'));
899 + $asking_name_option = 'qlcd_wp_chatbot_asking_name';
900 + $asking_name_text = __('May I know your name?', 'wpchatbot');
901 + $this->qcld_wb_chatbot_dynamic_multi_option($asking_name_options, $asking_name_option, $asking_name_text);
902 + ?>
903 + </div>
904 + <div class="form-group">
905 + <?php
906 + $i_am_options = unserialize(get_option('qlcd_wp_chatbot_i_am'));
907 + $i_am_option = 'qlcd_wp_chatbot_i_am';
908 + $i_am_text = __('I am', 'wpchatbot');
909 + $this->qcld_wb_chatbot_dynamic_multi_option($i_am_options, $i_am_option, $i_am_text);
910 + ?>
911 + </div>
912 + <div class="form-group">
913 + <?php
914 + $name_greeting_options = unserialize(get_option('qlcd_wp_chatbot_name_greeting'));
1203 915 $name_greeting_option = 'qlcd_wp_chatbot_name_greeting';
1204 - $name_greeting_text = esc_html('Nice to meet you');
916 + $name_greeting_text = __('Nice to meet you', 'wpchatbot');
1205 917 $this->qcld_wb_chatbot_dynamic_multi_option($name_greeting_options, $name_greeting_option, $name_greeting_text);
1206 918 ?>
1207 - </div>
1208 - <div class="form-group">
1209 - <?php
1210 - $wildcard_msg_options = maybe_unserialize(get_option('qlcd_wp_chatbot_wildcard_msg'));
919 + </div>
920 + <div class="form-group">
921 + <?php
922 + $wildcard_msg_options = unserialize(get_option('qlcd_wp_chatbot_wildcard_msg'));
1211 923 $wildcard_msg_option = 'qlcd_wp_chatbot_wildcard_msg';
1212 - $wildcard_msg_text = esc_html('I am here to find what you need. What are you looking for?');
924 + $wildcard_msg_text = __('I am here to find what you need. What are you looking for?', 'wpchatbot');
1213 925 $this->qcld_wb_chatbot_dynamic_multi_option($wildcard_msg_options, $wildcard_msg_option, $wildcard_msg_text);
1214 926 ?>
1215 - </div>
1216 - <div class="form-group">
1217 - <?php
1218 - $empty_filter_msgs = maybe_unserialize(get_option('qlcd_wp_chatbot_empty_filter_msg'));
927 + </div>
928 + <div class="form-group">
929 + <?php
930 + $empty_filter_msgs = unserialize(get_option('qlcd_wp_chatbot_empty_filter_msg'));
1219 931 $empty_filter_msg = 'qlcd_wp_chatbot_empty_filter_msg';
1220 - $empty_filter_msg_text = esc_html('Sorry, I did not understand that');
932 + $empty_filter_msg_text = __('Sorry, I did not understand that', 'wpchatbot');
1221 933 $this->qcld_wb_chatbot_dynamic_multi_option($empty_filter_msgs, $empty_filter_msg, $empty_filter_msg_text);
1222 934 ?>
1223 - </div>
1224 - <div class="form-group">
1225 - <?php
1226 - $qlcd_wp_chatbot_did_you_mean = maybe_unserialize(get_option('qlcd_wp_chatbot_did_you_mean'));
935 + </div>
936 +
937 + <div class="form-group">
938 + <?php
939 + $qlcd_wp_chatbot_did_you_mean = unserialize(get_option('qlcd_wp_chatbot_did_you_mean'));
1227 940 $qlcd_wp_chatbot_did_you_means = 'qlcd_wp_chatbot_did_you_mean';
1228 - $wp_chatbot_no_result_text = esc_html('Did you mean?');
941 + $wp_chatbot_no_result_text = esc_html__('Did you mean?', 'wpchatbot');
1229 942 $this->qcld_wb_chatbot_dynamic_multi_option($qlcd_wp_chatbot_did_you_mean, $qlcd_wp_chatbot_did_you_means, $wp_chatbot_no_result_text);
1230 943 ?>
1231 - </div>
1232 - <h4 class="text-success">
1233 - <?php esc_html_e('Message setting for Editor Box ', 'chatbot'); ?>
1234 - </h4>
1235 - <div class="form-group">
1236 - <?php
1237 - $is_typing_options = maybe_unserialize(get_option('qlcd_wp_chatbot_is_typing'));
944 + </div>
945 +
946 + <h4 class="text-success"> <?php _e('Message setting for Editor Box ', 'wpchatbot'); ?></h4>
947 + <div class="form-group">
948 + <?php
949 + $is_typing_options = unserialize(get_option('qlcd_wp_chatbot_is_typing'));
1238 950 $is_typing_option = 'qlcd_wp_chatbot_is_typing';
1239 - $is_typing_text = esc_html('is typing...');
951 + $is_typing_text = __('is typing...', 'wpchatbot');
1240 952 $this->qcld_wb_chatbot_dynamic_multi_option($is_typing_options, $is_typing_option, $is_typing_text);
1241 953 ?>
1242 - </div>
1243 - <div class="form-group">
1244 - <?php
1245 - $send_a_msg_options = maybe_unserialize(get_option('qlcd_wp_chatbot_send_a_msg'));
954 + </div>
955 + <div class="form-group">
956 + <?php
957 + $send_a_msg_options = unserialize(get_option('qlcd_wp_chatbot_send_a_msg'));
1246 958 $send_a_msg_option = 'qlcd_wp_chatbot_send_a_msg';
1247 - $send_a_msg_text = esc_html('Send a message');
959 + $send_a_msg_text =__('Send a message', 'wpchatbot');
1248 960 $this->qcld_wb_chatbot_dynamic_multi_option($send_a_msg_options, $send_a_msg_option, $send_a_msg_text);
1249 961 ?>
1250 - </div>
1251 - <div class="form-group">
1252 - <?php
1253 - $choose_option_options = maybe_unserialize(get_option('qlcd_wp_chatbot_choose_option'));
962 + </div>
963 + <div class="form-group">
964 + <?php
965 + $choose_option_options = unserialize(get_option('qlcd_wp_chatbot_choose_option'));
1254 966 $choose_option_option = 'qlcd_wp_chatbot_choose_option';
1255 - $choose_option_text = esc_html('Choose an option');
967 + $choose_option_text = __('Choose an option', 'wpchatbot');
1256 968 $this->qcld_wb_chatbot_dynamic_multi_option($choose_option_options, $choose_option_option, $choose_option_text);
1257 969 ?>
1258 - </div>
1259 - <div class="form-group">
1260 - <?php
1261 - $asking_email_options = maybe_unserialize(get_option('qlcd_wp_chatbot_asking_email'));
970 + </div>
971 +
972 +
973 +
974 + <div class="form-group">
975 + <?php
976 + $asking_email_options = unserialize(get_option('qlcd_wp_chatbot_asking_email'));
1262 977 $asking_email_option = 'qlcd_wp_chatbot_asking_email';
1263 - $asking_email_text = esc_html('Please provide your email address');
978 + $asking_email_text = __('Please provide your email address', 'wpchatbot');
1264 979 $this->qcld_wb_chatbot_dynamic_multi_option($asking_email_options, $asking_email_option, $asking_email_text);
1265 980 ?>
1266 - </div>
1267 - <div class="form-group">
1268 - <?php
1269 - $invalid_email_options = maybe_unserialize(get_option('qlcd_wp_chatbot_invalid_email'));
981 + </div>
982 + <div class="form-group">
983 + <?php
984 + $invalid_email_options = unserialize(get_option('qlcd_wp_chatbot_invalid_email'));
1270 985 $invalid_email_option = 'qlcd_wp_chatbot_invalid_email';
1271 - $invalid_email_text = esc_html('Sorry, Email address is not valid! Please provide a valid email.');
986 + $invalid_email_text = __('Sorry, Email address is not valid! Please provide a valid email.', 'wpchatbot');
1272 987 $this->qcld_wb_chatbot_dynamic_multi_option($invalid_email_options, $invalid_email_option, $invalid_email_text);
1273 988 ?>
1274 - </div>
1275 - <div class="form-group">
1276 - <?php
1277 - $asking_msg_options = maybe_unserialize(get_option('qlcd_wp_chatbot_asking_msg'));
989 + </div>
990 + <div class="form-group">
991 + <?php
992 + $asking_msg_options = unserialize(get_option('qlcd_wp_chatbot_asking_msg'));
1278 993 $asking_msg_option = 'qlcd_wp_chatbot_asking_msg';
1279 - $asking_msg_text = esc_html('Thank you for email address. Please write your message now.');
994 + $asking_msg_text = __('Thank you for email address. Please write your message now.', 'wpchatbot');
1280 995 $this->qcld_wb_chatbot_dynamic_multi_option($asking_msg_options, $asking_msg_option, $asking_msg_text);
1281 996 ?>
1282 - </div>
1283 - <div class="form-group">
1284 - <h4 class="qc-opt-title">
1285 - <?php esc_html_e('WPBot Support Mail Subject', 'chatbot'); ?>
1286 - </h4>
1287 - <input type="text" class="form-control qc-opt-dcs-font"
1288 - name="qlcd_wp_chatbot_email_sub"
1289 - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_email_sub') != '' ? wp_unslash(get_option('qlcd_wp_chatbot_email_sub')) : 'Support Email Subject') ); ?>">
1290 - </div>
1291 - <div class="form-group">
1292 - <?php
1293 - $support_option_again_options = maybe_unserialize(get_option('qlcd_wp_chatbot_support_option_again'));
997 + </div>
998 +
999 +
1000 +
1001 + <div class="form-group">
1002 + <h4 class="qc-opt-title"><?php _e('WPBot Support Mail Subject', 'wpchatbot'); ?></h4>
1003 + <input type="text" class="form-control qc-opt-dcs-font"
1004 + name="qlcd_wp_chatbot_email_sub"
1005 + value="<?php echo(get_option('qlcd_wp_chatbot_email_sub') != '' ? get_option('qlcd_wp_chatbot_email_sub') : 'Support Email Subject'); ?>">
1006 + </div>
1007 +
1008 + <div class="form-group">
1009 + <?php
1010 + $support_option_again_options = unserialize(get_option('qlcd_wp_chatbot_support_option_again'));
1294 1011 $support_option_again_option = 'qlcd_wp_chatbot_support_option_again';
1295 - $support_option_again_text = esc_html('You may choose option from below.');
1012 + $support_option_again_text = __('You may choose option from below.', 'wpchatbot');
1296 1013 $this->qcld_wb_chatbot_dynamic_multi_option($support_option_again_options, $support_option_again_option, $support_option_again_text);
1297 1014 ?>
1298 - </div>
1299 - <div class="form-group">
1300 - <h4 class="qc-opt-title">
1301 - <?php esc_html_e('Your email was sent successfully.Thanks!', 'chatbot'); ?>
1302 - </h4>
1303 - <input type="text" class="form-control qc-opt-dcs-font"
1304 - name="qlcd_wp_chatbot_email_sent"
1305 - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_email_sent') != '' ? get_option('qlcd_wp_chatbot_email_sent') : 'Your email was sent successfully.Thanks!')); ?> ">
1306 - </div>
1307 - <div class="form-group">
1308 - <h4 class="qc-opt-title">
1309 - <?php esc_html_e('Sorry! I could not send your mail! Please contact the webmaster.', 'chatbot'); ?>
1310 - </h4>
1311 - <input type="text" class="form-control qc-opt-dcs-font "
1312 - name="qlcd_wp_chatbot_email_fail"
1313 - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_email_fail') != '' ? wp_unslash(get_option('qlcd_wp_chatbot_email_fail')) : 'Sorry! fail to send email')); ?> ">
1314 - </div>
1315 -
1316 - <div class="form-group">
1317 - <h4 class="qc-opt-title">
1318 - <?php esc_html_e('Check the relevant pages for more details and up to date information:', 'chatbot'); ?>
1319 - </h4>
1320 - <input type="text" class="form-control qc-opt-dcs-font "
1321 - name="qlcd_wp_chatbot_relevant_post_link_openai"
1322 - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_relevant_post_link_openai') != '' ? wp_unslash(get_option('qlcd_wp_chatbot_relevant_post_link_openai')) : 'Check the relevant pages for more details and up to date information:')); ?> ">
1323 - </div>
1324 -
1325 - <div class="form-group">
1326 - <?php
1327 - $asking_phone_options = maybe_unserialize(get_option('qlcd_wp_chatbot_asking_phone'));
1015 + </div>
1016 +
1017 + <div class="form-group">
1018 + <h4 class="qc-opt-title"><?php _e('Your email was sent successfully.Thanks!', 'wpchatbot'); ?></h4>
1019 + <input type="text" class="form-control qc-opt-dcs-font"
1020 + name="qlcd_wp_chatbot_email_sent"
1021 + value="<?php echo(get_option('qlcd_wp_chatbot_email_sent') != '' ? get_option('qlcd_wp_chatbot_email_sent') : 'Your email was sent successfully.Thanks!'); ?>">
1022 + </div>
1023 + <div class="form-group">
1024 + <h4 class="qc-opt-title"><?php _e('Sorry! I could not send your mail! Please contact the webmaster.', 'wpchatbot'); ?></h4>
1025 + <input type="text" class="form-control qc-opt-dcs-font"
1026 + name="qlcd_wp_chatbot_email_fail"
1027 + value="<?php echo(get_option('qlcd_wp_chatbot_email_fail') != '' ? get_option('qlcd_wp_chatbot_email_fail') : 'Sorry! fail to send email'); ?>">
1028 + </div>
1029 +
1030 +
1031 +
1032 +
1033 + <div class="form-group">
1034 + <?php
1035 + $asking_phone_options = unserialize(get_option('qlcd_wp_chatbot_asking_phone'));
1328 1036 $asking_phone_option = 'qlcd_wp_chatbot_asking_phone';
1329 - $asking_phone_text = esc_html('Please provide your Phone number');
1037 + $asking_phone_text = __('Please provide your Phone number', 'wpchatbot');
1330 1038 $this->qcld_wb_chatbot_dynamic_multi_option($asking_phone_options, $asking_phone_option, $asking_phone_text);
1331 1039 ?>
1332 - </div>
1333 - <div class="form-group">
1334 - <?php
1335 - $thanks_phone_options = maybe_unserialize(get_option('qlcd_wp_chatbot_thank_for_phone'));
1040 + </div>
1041 + <div class="form-group">
1042 + <?php
1043 + $thanks_phone_options = unserialize(get_option('qlcd_wp_chatbot_thank_for_phone'));
1336 1044 $thanks_phone_option = 'qlcd_wp_chatbot_thank_for_phone';
1337 - $thanks_phone_text = esc_html('Thank you for Phone number');
1045 + $thanks_phone_text = __('Thank you for Phone number', 'wpchatbot');
1338 1046 $this->qcld_wb_chatbot_dynamic_multi_option($thanks_phone_options, $thanks_phone_option, $thanks_phone_text);
1339 1047 ?>
1340 - </div>
1341 - <div class="form-group">
1342 - <h4 class="qc-opt-title">
1343 - <?php esc_html_e('Thanks for your phone number. We will call you ASAP!', 'chatbot'); ?>
1344 - </h4>
1345 - <input type="text" class="form-control qc-opt-dcs-font"
1346 - name="qlcd_wp_chatbot_phone_sent"
1347 - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_phone_sent') != '' ?get_option('qlcd_wp_chatbot_phone_sent') : 'Thanks for your phone number. We will call you ASAP!')); ?> ">
1348 - </div>
1349 - <div class="form-group">
1350 - <h4 class="qc-opt-title">
1351 - <?php esc_html_e('Sorry! I could not collect phone number! Please contact the webmaster.', 'chatbot'); ?>
1352 - </h4>
1353 - <input type="text" class="form-control qc-opt-dcs-font"
1354 - name="qlcd_wp_chatbot_phone_fail"
1355 - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_phone_fail') != '' ? wp_unslash(get_option('qlcd_wp_chatbot_phone_fail')) : 'Sorry! I could not collect phone number!')); ?> ">
1356 - </div>
1357 -
1358 - <div class="form-group">
1359 - <h4 class="qc-opt-title">
1360 - <?php esc_html_e('Please enter your keyword for searching', 'chatbot'); ?>
1361 - </h4>
1362 - <input type="text" class="form-control qc-opt-dcs-font"
1363 - name="qlcd_wp_chatbot_asking_search_keyword"
1364 - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_asking_search_keyword') != '' ? wp_unslash(get_option('qlcd_wp_chatbot_asking_search_keyword')) : 'Please enter your keyword for searching')); ?> ">
1365 - </div>
1366 - <div class="form-group">
1367 - <h4 class="qc-opt-title">
1368 - <?php esc_html_e('We have found these results', 'chatbot'); ?>
1369 - </h4>
1370 - <input type="text" class="form-control qc-opt-dcs-font"
1371 - name="qlcd_wp_chatbot_found_result"
1372 - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_found_result') != '' ? wp_unslash(get_option('qlcd_wp_chatbot_found_result')) : 'We have found these results')); ?> ">
1373 - </div>
1374 - <div class="form-group">
1375 - <?php
1376 - $qlcd_wp_chatbot_product_fails = maybe_unserialize(get_option('qlcd_wp_chatbot_product_fail'));
1377 - $qlcd_wp_chatbot_product_fail = 'qlcd_wp_chatbot_product_fail';
1378 - $fail_text = esc_html('Sorry, I found nothing');
1379 - $this->qcld_wb_chatbot_dynamic_multi_option($qlcd_wp_chatbot_product_fails, $qlcd_wp_chatbot_product_fail, $fail_text);
1380 - ?>
1381 - </div>
1382 - </div>
1383 - </div>
1384 - </div>
1385 - </div>
1386 - <div id="wp-chatbot-lng-support" class="tab-pane fade">
1387 - <div class="top-section">
1388 - <div class="row">
1389 - <div class="col-xs-12" id="wp-chatbot-language-section">
1390 - <div class="form-group">
1391 - <?php
1392 - $support_welcome_options = maybe_unserialize(get_option('qlcd_wp_chatbot_support_welcome'));
1393 - $support_welcome_option = 'qlcd_wp_chatbot_support_welcome';
1394 - $support_welcome_text = esc_html('Welcome to FAQ Section');
1395 - $this->qcld_wb_chatbot_dynamic_multi_option($support_welcome_options, $support_welcome_option, $support_welcome_text);
1396 - ?>
1397 - </div>
1398 -
1399 -
1400 -
1401 - </div>
1402 - </div>
1403 - </div>
1404 - </div>
1405 - <div id="wp-chatbot-lng-reserve-keyword" class="tab-pane fade">
1406 - <div class="top-section">
1407 - <div class="row">
1408 - <div class="col-xs-12" id="wp-chatbot-language-section">
1409 - <div class="form-group">
1410 - <h4 class="qc-opt-title">
1411 - <?php esc_html_e('Start Keyword', 'chatbot'); ?>
1412 - </h4>
1413 - <input type="text" class="form-control qc-opt-dcs-font"
1048 + </div>
1049 +
1050 + <div class="form-group">
1051 + <h4 class="qc-opt-title"><?php _e('Thanks for your phone number. We will call you ASAP!', 'wpchatbot'); ?></h4>
1052 + <input type="text" class="form-control qc-opt-dcs-font"
1053 + name="qlcd_wp_chatbot_phone_sent"
1054 + value="<?php echo(get_option('qlcd_wp_chatbot_phone_sent') != '' ? get_option('qlcd_wp_chatbot_phone_sent') : 'Thanks for your phone number. We will call you ASAP!'); ?>">
1055 + </div>
1056 + <div class="form-group">
1057 + <h4 class="qc-opt-title"><?php _e('Sorry! I could not collect phone number! Please contact the webmaster.', 'wpchatbot'); ?></h4>
1058 + <input type="text" class="form-control qc-opt-dcs-font"
1059 + name="qlcd_wp_chatbot_phone_fail"
1060 + value="<?php echo(get_option('qlcd_wp_chatbot_phone_fail') != '' ? get_option('qlcd_wp_chatbot_phone_fail') : 'Sorry! I could not collect phone number!'); ?>">
1061 + </div>
1062 +
1063 +
1064 +
1065 +
1066 +
1067 +
1068 + </div>
1069 + </div>
1070 + </div>
1071 + </div>
1072 +
1073 + <div id="wp-chatbot-lng-support" class="tab-pane fade">
1074 + <div class="top-section">
1075 + <div class="row">
1076 + <div class="col-xs-12" id="wp-chatbot-language-section">
1077 +
1078 + <div class="form-group">
1079 + <?php
1080 + $support_welcome_options = unserialize(get_option('qlcd_wp_chatbot_support_welcome'));
1081 + $support_welcome_option = 'qlcd_wp_chatbot_support_welcome';
1082 + $support_welcome_text = __('Welcome to FAQ Section', 'wpchatbot');
1083 + $this->qcld_wb_chatbot_dynamic_multi_option($support_welcome_options, $support_welcome_option, $support_welcome_text);
1084 + ?>
1085 + </div>
1086 +
1087 +
1088 +
1089 + <!--<div class="form-group">
1090 + <?php
1091 + $feedback_label_options = unserialize(get_option('qlcd_wp_chatbot_feedback_label'));
1092 + $feedback_label_option = 'qlcd_wp_chatbot_feedback_label';
1093 + $feedback_label_text = __('Send Feedback!', 'wpchatbot');
1094 + $this->qcld_wb_chatbot_dynamic_multi_option($feedback_label_options, $feedback_label_option, $feedback_label_text);
1095 + ?>
1096 + </div>-->
1097 +
1098 +
1099 + </div>
1100 + </div>
1101 + </div>
1102 + </div>
1103 +
1104 + <div id="wp-chatbot-lng-reserve-keyword" class="tab-pane fade">
1105 + <div class="top-section">
1106 + <div class="row">
1107 + <div class="col-xs-12" id="wp-chatbot-language-section">
1108 + <div class="form-group">
1109 + <h4 class="qc-opt-title"><?php _e('Start Keyword', 'wpchatbot'); ?></h4>
1110 + <input type="text" class="form-control qc-opt-dcs-font"
1414 1111 name="qlcd_wp_chatbot_sys_key_help"
1415 - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_sys_key_help') != '' ? get_option('qlcd_wp_chatbot_sys_key_help'): 'start')) ; ?> ">
1416 - </div>
1417 - <div class="form-group">
1418 - <h4 class="qc-opt-title"><strong>
1419 - <?php esc_html_e('FAQ', 'chatbot'); ?>
1420 - </strong>
1421 - <?php esc_html_e('Keyword', 'chatbot'); ?>
1422 - </h4>
1423 - <input type="text" class="form-control qc-opt-dcs-font"
1112 + value="<?php echo(get_option('qlcd_wp_chatbot_sys_key_help') != '' ? get_option('qlcd_wp_chatbot_sys_key_help') : 'start'); ?>">
1113 + </div>
1114 +
1115 +
1116 +
1117 + <div class="form-group">
1118 + <h4 class="qc-opt-title"><strong><?php _e('FAQ', 'wpchatbot'); ?></strong> <?php _e('Keyword', 'wpchatbot'); ?></h4>
1119 + <input type="text" class="form-control qc-opt-dcs-font"
1424 1120 name="qlcd_wp_chatbot_sys_key_support"
1425 - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_sys_key_support') != '' ? get_option('qlcd_wp_chatbot_sys_key_support') : 'faq')); ?> ">
1426 - </div>
1427 - <div class="form-group">
1428 - <h4 class="qc-opt-title"><strong>
1429 - <?php esc_html_e('Converstion History Clear', 'chatbot'); ?>
1430 - </strong>
1431 - <?php esc_html_e('Keyword', 'chatbot'); ?>
1432 - </h4>
1433 - <input type="text" class="form-control qc-opt-dcs-font"
1121 + value="<?php echo(get_option('qlcd_wp_chatbot_sys_key_support') != '' ? get_option('qlcd_wp_chatbot_sys_key_support') : 'faq'); ?>">
1122 + </div>
1123 + <div class="form-group">
1124 + <h4 class="qc-opt-title"><strong><?php _e('Converstion History Clear', 'wpchatbot'); ?></strong> <?php _e('Keyword', 'wpchatbot'); ?></h4>
1125 + <input type="text" class="form-control qc-opt-dcs-font"
1434 1126 name="qlcd_wp_chatbot_sys_key_reset"
1435 - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_sys_key_reset') != '' ? get_option('qlcd_wp_chatbot_sys_key_reset') : 'reset')); ?> ">
1436 - </div>
1437 - <div class="form-group">
1438 - <h4 class="qc-opt-title"><strong>
1439 - <?php esc_html_e('eMail', 'chatbot'); ?>
1440 - </strong>
1441 - <?php esc_html_e('Keyword to Send eMail', 'chatbot'); ?>
1442 - </h4>
1443 - <input type="text" class="form-control qc-opt-dcs-font"
1444 - name="qlcd_wp_chatbot_sys_key_email"
1445 - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_sys_key_email') != '' ? get_option('qlcd_wp_chatbot_sys_key_email'): 'email')); ?>">
1446 - </div>
1447 - <div class="form-group">
1448 - <?php
1449 - $help_welcome_options = maybe_unserialize(wp_kses_post(get_option('qlcd_wp_chatbot_help_welcome')));
1127 + value="<?php echo(get_option('qlcd_wp_chatbot_sys_key_reset') != '' ? get_option('qlcd_wp_chatbot_sys_key_reset') : 'reset'); ?>">
1128 + </div>
1129 + <div class="form-group">
1130 + <?php
1131 + $help_welcome_options = unserialize(get_option('qlcd_wp_chatbot_help_welcome'));
1450 1132 $help_welcome_option = 'qlcd_wp_chatbot_help_welcome';
1451 - $help_welcome_text = esc_html('Welcome to Help Section');
1133 + $help_welcome_text = 'Welcome to Help Section';
1452 1134 $this->qcld_wb_chatbot_dynamic_multi_option($help_welcome_options, $help_welcome_option, $help_welcome_text);
1453 1135 ?>
1454 - </div>
1455 - <div class="form-group">
1456 - <?php
1457 - $help_msg_options = maybe_unserialize(wp_kses_post(get_option('qlcd_wp_chatbot_help_msg')));
1136 + </div>
1137 + <div class="form-group">
1138 + <?php
1139 + $help_msg_options = unserialize(get_option('qlcd_wp_chatbot_help_msg'));
1458 1140 $help_msg_option = 'qlcd_wp_chatbot_help_msg';
1459 - $help_msg_text = '<b>Type and Hit Enter</b><br><ul><li> <b>start</b> to Get back to the main menu. </li><li> <b>faq</b> for FAQ. </li><li> <b>email </b> to send eMail </li><li> <b>reset</b> to restart the chat</li></ul>';
1141 + $help_msg_text = '<h3>Type and Hit Enter</h3> 1. <b>start</b> Get back to the main menu. <br> 2. <b>faq</b> for FAQ. <br> 3. <b>eMail </b> to Send eMail <br> 4. <b>reset</b> To clear chat history and start from the beginning.';
1460 1142 $this->qcld_wb_chatbot_dynamic_multi_option($help_msg_options, $help_msg_option, $help_msg_text);
1461 1143 ?>
1462 - </div>
1463 - <div class="form-group">
1464 - <?php
1465 - $reset_options = maybe_unserialize(wp_kses_post(get_option('qlcd_wp_chatbot_reset')));
1144 + </div>
1145 + <div class="form-group">
1146 + <?php
1147 + $reset_options = unserialize(get_option('qlcd_wp_chatbot_reset'));
1466 1148 $reset_option = 'qlcd_wp_chatbot_reset';
1467 - $reset_text = esc_html('Do you want to clear our chat history and start over?' );
1149 + $reset_text = 'Do you want to clear our chat history and start over?';
1468 1150 $this->qcld_wb_chatbot_dynamic_multi_option($reset_options, $reset_option, $reset_text);
1469 1151 ?>
1470 - </div>
1471 - </div>
1472 - <!-- col-xs-12-->
1473 - </div>
1474 - <!-- row-->
1475 - </div>
1476 - <!-- top-section-->
1477 - </div>
1478 - </div>
1479 - <!-- tab-content-->
1480 - </section>
1481 - <section id="section-flip-51">
1482 - <!-- <div class="<?php // esc_attr_e( 'cxsc-settings-blocks-notic" style="<?php // echo esc_attr('background: #2271B1'); ?>">
1483 - <p class="<?php // esc_attr_e( 'd-ib"><?php // esc_html_e('New horizontal/wide template is now available. Select from Icons and Themes', 'chatbot'); ?>
1484 - </div> -->
1485 - <div class="wp-chatbot-socail-btn-summmery"> </div>
1152 + </div>
1153 + </div>
1154 + <!-- col-xs-12-->
1155 + </div>
1156 + <!-- row-->
1157 + </div>
1158 + <!-- top-section-->
1159 + </div>
1160 +
1161 + </div>
1162 + <!-- tab-content-->
1163 + </section>
1486 1164
1487 - <div class="tab-content">
1488 - <div id="wp-chatbot-lng-general" class="tab-pane fade in active">
1489 - <div class="top-section">
1490 - <div class="row">
1491 - <div class="col-xs-12" id="wp-chatbot-socila-btn">
1492 -
1493 -
1494 -
1495 - <div class="form-group">
1496 - <h4 class="qc-opt-title"> <?php echo esc_html__( 'Enable Chat Reactions for analytics (Like & Dislike)', 'chatbot' ); ?> </h4>
1497 - <div class="cxsc-settings-blocks">
1498 - <input value="1" id="skip_chat_reactions_menu" type="checkbox"
1499 - name="skip_chat_reactions_menu" <?php echo( get_option( 'skip_chat_reactions_menu', 1 ) == 1 ? 'checked' : '' ); ?>>
1500 - <label for="skip_chat_reactions_menu"><?php echo esc_html__( 'Enable Chat Reactions for analytics (Like & Dislike)', 'chatbot' ); ?> </label>
1501 - </div>
1502 - </div>
1503 - <div class="form-group">
1504 - <h4 class="qc-opt-title">
1505 - <?php esc_html_e('Like Text', 'chatbot'); ?>
1506 - </h4>
1507 - <input type="text" class="form-control qc-opt-dcs-font "
1508 - name="qlcd_wp_chatbot_like_text"
1509 - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_like_text') != '' ? get_option('qlcd_wp_chatbot_like_text') : 'Like')); ?>">
1510 - </div>
1511 - <div class="form-group">
1512 - <h4 class="qc-opt-title">
1513 - <?php esc_html_e('Dislike Text', 'chatbot'); ?>
1514 - </h4>
1515 - <input type="text" class="form-control qc-opt-dcs-font "
1516 - name="qlcd_wp_chatbot_dislike_text"
1517 - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_dislike_text') != '' ? get_option('qlcd_wp_chatbot_dislike_text') : 'Dislike')); ?>">
1518 - </div>
1519 -
1520 - <div class="form-group">
1521 - <h4 class="qc-opt-title"> <?php echo esc_html__( 'Enable Reporting Message', 'chatbot'); ?> </h4>
1522 - <div class="cxsc-settings-blocks">
1523 - <input value="1" id="enable_chat_report_menu" type="checkbox"
1524 - name="enable_chat_report_menu" <?php echo( get_option( 'enable_chat_report_menu', 1 ) == 1 ? 'checked' : '' ); ?>>
1525 - <label for="enable_chat_report_menu"><?php echo esc_html__( 'Enable Reporting Message', 'chatbot'); ?> </label>
1526 - </div>
1527 - </div>
1528 - <div class="form-group">
1529 - <h4 class="qc-opt-title">
1530 - <?php esc_html_e('Report this Message', 'chatbot'); ?>
1531 - </h4>
1532 - <input type="text" class="form-control qc-opt-dcs-font "
1533 - name="qlcd_wp_chatbot_report_text"
1534 - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_report_text') != '' ? get_option('qlcd_wp_chatbot_report_text') : 'Report')); ?>">
1535 - </div>
1536 - <div class="form-group">
1537 - <h4 class="qc-opt-title"> <?php echo esc_html__( 'Enable Chat Share', 'chatbot'); ?> </h4>
1538 - <div class="cxsc-settings-blocks">
1539 - <input value="1" id="enable_chat_share_menu" type="checkbox"
1540 - name="enable_chat_share_menu" <?php echo( get_option( 'enable_chat_share_menu', 1 ) == 1 ? 'checked' : '' ); ?>>
1541 - <label for="enable_chat_share_menu"><?php echo esc_html__( 'Enable Chat Share', 'chatbot'); ?> </label>
1542 - </div>
1543 - </div>
1544 - <div class="form-group">
1545 - <h4 class="qc-opt-title">
1546 - <?php esc_html_e('Share', 'chatbot'); ?>
1547 - </h4>
1548 - <input type="text" class="form-control qc-opt-dcs-font "
1549 - name="qlcd_wp_chatbot_share_text"
1550 - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_share_text') != '' ? get_option('qlcd_wp_chatbot_share_text') : 'Share')); ?>">
1551 - </div>
1552 -
1553 - </div>
1554 -
1555 - </div>
1556 - </div>
1557 - </div>
1558 -
1559 - </div>
1560 - <!-- tab-content-->
1561 - </section>
1562 -
1563 - <section id="section-flip-3">
1564 - <!-- <div class="<?php // esc_attr_e( 'cxsc-settings-blocks-notic" style="<?php // echo esc_attr('background: #2271B1'); ?>">
1565 - <p class="<?php // esc_attr_e( 'd-ib"><?php // esc_html_e('New horizontal/wide template is now available. Select from Icons and Themes', 'chatbot'); ?>
1566 - </div> -->
1567 - <ul class="nav nav-tabs">
1568 - <li class="active"><a data-toggle="tab" href="#wp-chatbot-icon-theme-settings"><?php esc_html_e('Icons & Themes', 'chatbot'); ?></a></li>
1569 - <li><a data-toggle="tab" href="#wp-chatbot-custom-color-options"><?php esc_html_e('Custom Style Options', 'chatbot'); ?></a></li>
1570 - </ul>
1571 - <div class="tab-content">
1572 - <div id="wp-chatbot-icon-theme-settings" class="tab-pane fade in active">
1573 - <div class="top-section">
1574 -
1575 -
1576 -
1577 - <div class="row">
1578 - <div class="col-xs-6">
1579 - <div class="form-group">
1580 - <h4 class="qc-opt-title">
1581 - <?php esc_html_e('ChatBot Window Max Height', 'wpchatbot'); ?>
1582 - </h4>
1583 - <div class="cxsc-settings-blocks" style=" font-size: 15px;">
1584 - <?php
1585 - $chatbot_content_max_height = get_option('chatbot_content_max_height');
1586 - if (!$chatbot_content_max_height) {
1587 - $chatbot_content_max_height = 80;
1588 - } else {
1589 - $chatbot_content_max_height = get_option('chatbot_content_max_height');
1590 - }
1591 - ?>
1592 - <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
1165 +
1166 + <section id="section-flip-5">
1167 + <?php
1168 + wp_enqueue_style('qcld-wp-chatbot-common-style', plugins_url(basename(plugin_dir_path(__FILE__)) . '/css/common-style.css', basename(__FILE__)), '', QCLD_wpCHATBOT_VERSION, 'screen');
1169 + ?>
1170 + <div class="top-section">
1171 + <div class="notification-block-inner">
1172 + <div class="row">
1173 + <div class="col-xs-12">
1174 +
1175 + <div class="row">
1176 + <div class="col-xs-12">
1177 + <h2>Predefined Intents</h2>
1178 +
1179 +
1180 + <div class="row">
1181 + <div class="col-xs-12">
1182 + <h4 class="qc-opt-title"><?php _e('Call Me', 'wpchatbot'); ?> </h4>
1183 + <div class="cxsc-settings-blocks">
1184 + <input value="1" id="disable_wp_chatbot_call_gen" type="checkbox"
1185 + name="disable_wp_chatbot_call_gen" <?php echo(get_option('disable_wp_chatbot_call_gen') == 1 ? 'checked' : ''); ?>>
1186 + <label for="disable_wp_chatbot_call_gen"><?php _e('Disable Call Me feature and button on Start Menu', 'wpchatbot'); ?> </label>
1187 + </div>
1188 + </div>
1593 1189 </div>
1190 + <div class="form-group" style="margin-bottom:0px">
1191 + <h4 class="qc-opt-title"><?php _e('Button Label', 'wpchatbot'); ?> </h4>
1192 + <input type="text" class="form-control qc-opt-dcs-font"
1193 + name="qlcd_wp_chatbot_support_phone"
1194 + value="<?php echo(get_option('qlcd_wp_chatbot_support_phone') != '' ? get_option('qlcd_wp_chatbot_support_phone') : 'Leave your number. We will call you back!'); ?>">
1195 + </div>
1196 +
1197 + <div class="row">
1198 + <div class="col-xs-12">
1199 + <h4 class="qc-opt-title"><?php _e('Email', 'wpchatbot'); ?> </h4>
1200 + <div class="cxsc-settings-blocks">
1201 + <input value="1" id="disable_wp_chatbot_feedback" type="checkbox"
1202 + name="disable_wp_chatbot_feedback" <?php echo(get_option('disable_wp_chatbot_feedback') == 1 ? 'checked' : ''); ?>>
1203 + <label for="disable_wp_chatbot_feedback"><?php _e('Disable Email feature and button on Start Menu', 'wpchatbot'); ?> </label>
1204 + </div>
1205 + </div>
1206 + </div>
1207 + <div class="form-group" style="margin-bottom:0px">
1208 + <h4 class="qc-opt-title"><?php _e('Button Label', 'wpchatbot'); ?> </h4>
1209 + <input type="text" class="form-control qc-opt-dcs-font"
1210 + name="qlcd_wp_chatbot_support_email"
1211 + value="<?php echo(get_option('qlcd_wp_chatbot_support_email') != '' ? get_option('qlcd_wp_chatbot_support_email') : 'Send us Email'); ?>">
1212 + </div>
1213 + <div class="row">
1214 + <div class="col-xs-12">
1215 + <h4 class="qc-opt-title"><?php _e('FAQ', 'wpchatbot'); ?> </h4>
1216 + <div class="cxsc-settings-blocks">
1217 + <input value="1" id="disable_wp_chatbot_faq" type="checkbox"
1218 + name="disable_wp_chatbot_faq" <?php echo(get_option('disable_wp_chatbot_faq') == 1 ? 'checked' : ''); ?>>
1219 + <label for="disable_wp_chatbot_faq"><?php _e('Disable FAQ feature and button on Start Menu', 'wpchatbot'); ?> </label>
1220 + </div>
1221 + </div>
1222 + </div>
1223 + <div class="form-group" style="margin-bottom:0px">
1224 + <h4 class="qc-opt-title"><?php _e('Button Label', 'wpchatbot'); ?> </h4>
1225 + <input type="text" class="form-control qc-opt-dcs-font"
1226 + name="qlcd_wp_chatbot_wildcard_support"
1227 + value="<?php echo(get_option('qlcd_wp_chatbot_wildcard_support') != '' ? get_option('qlcd_wp_chatbot_wildcard_support') : 'FAQ'); ?>">
1228 + </div>
1229 +
1230 +
1594 1231 </div>
1595 1232 </div>
1596 - <div class="col-xs-6">
1597 - <div class="form-group">
1598 - <h4 class="qc-opt-title">
1599 - <?php esc_html_e('ChatBot Window Max Height ( Mobile Device )', 'wpchatbot'); ?>
1600 - </h4>
1601 - <div class="cxsc-settings-blocks" style=" font-size: 15px;">
1602 - <?php
1603 - $chatbot_content_max_height_responsive = get_option('chatbot_content_max_height_responsive');
1604 - if (!$chatbot_content_max_height_responsive) {
1605 - $chatbot_content_max_height_responsive = 100;
1606 - } else {
1607 - $chatbot_content_max_height_responsive = get_option('chatbot_content_max_height_responsive');
1608 - }
1609 - ?>
1610 - <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
1611 - </div>
1612 - </div>
1613 - </div>
1614 - </div>
1615 -
1616 -
1617 -
1618 -
1619 -
1620 -
1621 -
1622 - <div class="row">
1623 - <div class="col-xs-12">
1624 -
1625 - <h3 class="qcld-wpbot-main-tabs-title">
1626 - <?php esc_html_e('WPBot Icon', 'chatbot'); ?>
1627 - </h3>
1628 - <div class="cxsc-settings-blocks">
1629 - <ul class="radio-list">
1630 -
1631 - <li>
1632 - <label for="wp_chatbot_icon_0" class="qc-opt-dcs-font"><img src="<?php echo esc_url(QCLD_wpCHATBOT_IMG_URL); ?>/icon-0.png" alt="">
1633 - <input id="wp_chatbot_icon_0" type="radio"
1634 - name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-0.png' ? esc_attr('checked' ): ''); ?>
1635 - value="<?php echo esc_attr('icon-0.png'); ?>">
1636 - <?php esc_html_e('Icon - 0', 'chatbot'); ?>
1637 - </label>
1638 - </li>
1639 - <li>
1640 - <label for="wp_chatbot_icon_1" class="qc-opt-dcs-font"><img src="<?php echo esc_url(QCLD_wpCHATBOT_IMG_URL); ?>/icon-1.png"
1641 - alt="">
1642 - <input id="wp_chatbot_icon_1" type="radio"
1643 - name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-1.png' ? esc_attr('checked' ): ''); ?>
1644 - value="<?php echo esc_attr('icon-1.png'); ?>">
1645 - <?php esc_html_e('Icon - 1', 'chatbot'); ?>
1646 - </label>
1647 - </li>
1648 - <li>
1649 - <label for="wp_chatbot_icon_2" class="qc-opt-dcs-font"><img src="<?php echo esc_url(QCLD_wpCHATBOT_IMG_URL); ?>/icon-2.png"
1650 - alt="">
1651 - <input id="wp_chatbot_icon_2" type="radio"
1652 - name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-2.png' ? esc_attr('checked' ): ''); ?>
1653 - value="<?php echo esc_attr('icon-2.png'); ?>">
1654 - <?php esc_html_e('Icon - 2', 'chatbot'); ?>
1655 - </label>
1656 - </li>
1657 - <li>
1658 - <label for="wp_chatbot_icon_3" class="qc-opt-dcs-font"><img src="<?php echo esc_url(QCLD_wpCHATBOT_IMG_URL); ?>/icon-3.png"
1659 - alt="">
1660 - <input id="wp_chatbot_icon_3" type="radio"
1661 - name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-3.png' ? esc_attr('checked' ): ''); ?>
1662 - value="<?php echo esc_attr('icon-3.png'); ?>">
1663 - <?php esc_html_e('Icon - 3', 'chatbot'); ?>
1664 - </label>
1665 - </li>
1666 - <li>
1667 - <label for="wp_chatbot_icon_4" class="qc-opt-dcs-font"><img src="<?php echo esc_url(QCLD_wpCHATBOT_IMG_URL); ?>/icon-4.png"
1668 - alt="' ">
1669 - <input id="wp_chatbot_icon_4" type="radio"
1670 - name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-4.png' ? esc_attr('checked'): ''); ?>
1671 - value="<?php echo esc_attr('icon-4.png'); ?>">
1672 - <?php esc_html_e('Icon - 4', 'chatbot'); ?>
1673 - </label>
1674 - </li>
1675 - <li>
1676 - <label for="wp_chatbot_icon_5" class="qc-opt-dcs-font"><img src="<?php echo esc_url(QCLD_wpCHATBOT_IMG_URL); ?>/icon-5.png"
1677 - alt="">
1678 - <input id="wp_chatbot_icon_5" type="radio"
1679 - name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-5.png' ? esc_attr('checked' ): ''); ?>
1680 - value="<?php echo esc_attr('icon-5.png'); ?>">
1681 - <?php esc_html_e('Icon - 5', 'chatbot'); ?>
1682 - </label>
1683 - </li>
1684 - <li>
1685 - <label for="wp_chatbot_icon_6" class="qc-opt-dcs-font"><img src="<?php echo esc_url(QCLD_wpCHATBOT_IMG_URL); ?>/icon-6.png"
1686 - alt=" ">
1687 - <input id="wp_chatbot_icon_6" type="radio"
1688 - name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-6.png' ? esc_attr('checked' ): ''); ?>
1689 - value="<?php echo esc_attr('icon-6.png'); ?>">
1690 - <?php esc_html_e('Icon - 6', 'chatbot'); ?>
1691 - </label>
1692 - </li>
1693 - <li>
1694 - <label for="wp_chatbot_icon_7" class="qc-opt-dcs-font"><img src="<?php echo esc_url(QCLD_wpCHATBOT_IMG_URL); ?>/icon-7.png"
1695 - alt=" ">
1696 - <input id="wp_chatbot_icon_7" type="radio"
1697 - name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-7.png' ? esc_attr('checked' ): ''); ?>
1698 - value="<?php echo esc_attr('icon-7.png'); ?>">
1699 - <?php esc_html_e('Icon - 7', 'chatbot'); ?>
1700 - </label>
1701 - </li>
1702 - <li>
1703 - <label for="wp_chatbot_icon_8" class="qc-opt-dcs-font"><img src="<?php echo esc_url(QCLD_wpCHATBOT_IMG_URL); ?>/icon-8.png"
1704 - alt="">
1705 - <input id="wp_chatbot_icon_8" type="radio"
1706 - name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-8.png' ? esc_attr('checked' ): ''); ?>
1707 - value="<?php echo esc_attr('icon-8.png'); ?>">
1708 - <?php esc_html_e('Icon - 8', 'chatbot'); ?>
1709 - </label>
1710 - </li>
1711 - <li>
1712 - <label for="wp_chatbot_icon_9" class="qc-opt-dcs-font"><img src="<?php echo esc_url(QCLD_wpCHATBOT_IMG_URL); ?>/icon-9.png"
1713 - alt=" ">
1714 - <input id="wp_chatbot_icon_9" type="radio"
1715 - name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-9.png' ? esc_attr('checked' ): ''); ?>
1716 - value="<?php echo esc_attr('icon-9.png'); ?>">
1717 - <?php esc_html_e('Icon - 9', 'chatbot'); ?>
1718 - </label>
1719 - </li>
1720 - <li>
1721 - <label for="wp_chatbot_icon_10" class="qc-opt-dcs-font"><img src="<?php echo esc_url(QCLD_wpCHATBOT_IMG_URL); ?>/icon-10.png"
1722 - alt=" ">
1723 - <input id="wp_chatbot_icon_10" type="radio"
1724 - name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-10.png' ? esc_attr('checked' ): ''); ?>
1725 - value="<?php echo esc_attr('icon-10.png'); ?>">
1726 - <?php esc_html_e('Icon - 10', 'chatbot'); ?>
1727 - </label>
1728 - </li>
1729 - <li>
1730 - <label for="wp_chatbot_icon_11" class="qc-opt-dcs-font"><img src="<?php echo esc_url(QCLD_wpCHATBOT_IMG_URL); ?>/icon-11.png"
1731 - alt="">
1732 - <input id="wp_chatbot_icon_11" type="radio"
1733 - name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-11.png' ? esc_attr('checked' ): ''); ?>
1734 - value="<?php echo esc_attr('icon-11.png'); ?>">
1735 - <?php esc_html_e('Icon - 11', 'chatbot'); ?>
1736 - </label>
1737 - </li>
1738 - <li>
1739 - <label for="wp_chatbot_icon_12" class="qc-opt-dcs-font"><img src="<?php echo esc_url(QCLD_wpCHATBOT_IMG_URL); ?>/icon-12.png"
1740 - alt="">
1741 - <input id="wp_chatbot_icon_12" type="radio"
1742 - name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-12.png' ? esc_attr('checked' ): ''); ?>
1743 - value="<?php echo esc_attr('icon-12.png'); ?>">
1744 - <?php esc_html_e('Icon - 12', 'chatbot'); ?>
1745 - </label>
1746 - </li>
1747 -
1748 - <li>
1749 - <label for="wp_chatbot_icon_13" class="qc-opt-dcs-font"><img src="<?php echo esc_url(QCLD_wpCHATBOT_IMG_URL); ?>/icon-13.png"
1750 - alt="">
1751 - <input id="wp_chatbot_icon_13" type="radio"
1752 - name="wp_chatbot_icon" <?php echo(get_option('wp_chatbot_icon') == 'icon-13.png' ? esc_attr('checked' ): ''); ?>
1753 - value="<?php echo esc_attr('icon-13.png'); ?>">
1754 - <?php esc_html_e('Icon - 13', 'chatbot'); ?>
1755 - </label>
1756 - </li>
1757 - <li>
1758 - <?php
1759 - if (get_option('wp_chatbot_custom_icon_path') != "") {
1760 - $wp_chatbot_custom_icon_path = get_option('wp_chatbot_custom_icon_path');
1761 - } else {
1762 - $wp_chatbot_custom_icon_path = esc_url(QCLD_wpCHATBOT_IMG_URL) . 'custom.png';
1763 - }
1764 - ?>
1765 - <label for="wp_chatbot_custom_icon_input" class="qc-opt-dcs-font"> <img id="wp_chatbot_custom_icon_src "
1766 - src="<?php echo esc_url($wp_chatbot_custom_icon_path); ?>" alt=" ">
1767 - <input id="wp_chatbot_custom_icon_input" type="radio"
1768 - name="wp_chatbot_icon"
1769 - value="<?php echo esc_attr('custom.png' ); ?>" <?php echo(get_option('wp_chatbot_icon') == 'custom.png' ? esc_attr('checked' ): ''); ?>>
1770 - <?php esc_html_e('Custom Icon', 'chatbot'); ?>
1771 - </label>
1772 - </li>
1773 - </ul>
1774 - </div>
1775 - <!-- cxsc-settings-blocks-->
1776 -
1777 - <div class="row">
1778 - <div class="col-xs-12">
1779 - <div class="cxsc-settings-blocks">
1780 - <div class="form-group">
1781 - <h4 class="qc-opt-title">
1782 - <?php esc_html_e('WPBot Icon Background Color.', 'chatbot'); ?>
1783 - </h4>
1784 - <input id="wp_chatbot_floatingiconbg_color" type="text" name="wp_chatbot_floatingiconbg_color" value="<?php echo esc_attr((get_option('wp_chatbot_floatingiconbg_color') != '' ? get_option('wp_chatbot_floatingiconbg_color'): '#fff') ); ?>"/>
1785 - </div>
1786 - </div>
1787 - </div>
1788 - </div>
1789 - <div class="row">
1790 - <div class="col-xs-12">
1791 - <div class="form-group">
1792 - <h4 class="qc-opt-title">
1793 - <?php esc_html_e(' Upload custom Icon ', 'chatbot'); ?> <span class="small"><span class="text-danger"><?php esc_html_e('** If you select custom icon, you must upload an icon image.', 'chatbot'); ?></span></span>
1794 - </h4>
1795 - <div class="cxsc-settings-blocks">
1796 - <input type="hidden" name="wp_chatbot_custom_icon_path"
1797 - id="wp_chatbot_custom_icon_path"
1798 - value="<?php echo esc_attr( $wp_chatbot_custom_icon_path ); ?>"/>
1799 - <button type="button" class="qcld_chatbot_custom_icon_button button">
1800 - <?php esc_html_e('Upload Icon', 'chatbot'); ?>
1801 - </button>
1802 - </div>
1803 - </div>
1804 - </div>
1805 - </div>
1233 + <div class="qc_menu_setup_area">
1806 1234
1235 + <h2>Menu Sorting & Customization Area</h2>
1236 + <p style="color:red">After making changes in the settings, please clear browser cache and cookies before reloading the page or open a new Incognito window (Ctrl+Shit+N in chrome).</p>
1237 + <p>In this section you can control the UI of the menu.<br> To adjust the <b>Active Menu</b> ordering just drag it up or down. To add a menu item in <b>Active Menu</b> simply drag a menu item from <b>Available Menu</b> and drop it to <b>Active Menu</b> . To remove a menu item from <b>Active Menu</b> simple drag the menu item and drop it to <b>Available Menu</b>.</p>
1238 + <br>
1239 +
1240 + <div class="qc_menu_area">
1241 + <h4>Acitve Menu</h4>
1242 +
1243 + <div class="qc_menu_area_container" id="qc_menu_area">
1807 1244
1245 + <?php
1246 + if(get_option('qc_wpbot_menu_order')!=''):
1247 + echo stripslashes(get_option('qc_wpbot_menu_order'));
1248 + else:?>
1249 + <?php if(get_option('disable_wp_chatbot_faq')==''): ?>
1250 + <span class="qcld-chatbot-wildcard qc_draggable_item_remove" data-wildcart="support"><?php echo get_option('qlcd_wp_chatbot_wildcard_support'); ?></span>
1251 + <?php endif; ?>
1252 +
1253 + <?php if(get_option('enable_wp_chatbot_messenger')=='1'): ?>
1254 + <span class="qcld-chatbot-wildcard qc_draggable_item_remove" data-wildcart="messenger"><?php echo qcld_choose_random(unserialize(get_option('qlcd_wp_chatbot_messenger_label'))) ?></span>
1255 + <?php endif; ?>
1256 +
1257 + <?php if(get_option('enable_wp_chatbot_whats')=='1'): ?>
1258 + <span class="qcld-chatbot-wildcard qc_draggable_item_remove" data-wildcart="whatsapp"><?php echo qcld_choose_random(unserialize(get_option('qlcd_wp_chatbot_whats_label'))); ?></span>
1259 + <?php endif; ?>
1260 +
1261 + <?php if(get_option('disable_wp_chatbot_feedback')==''): ?>
1262 + <span class="qcld-chatbot-suggest-email qc_draggable_item_remove"><?php echo get_option('qlcd_wp_chatbot_support_email'); ?></span>
1263 + <?php endif; ?>
1264 +
1265 + <?php if(get_option('disable_wp_chatbot_call_gen')==''): ?>
1266 + <span class="qcld-chatbot-suggest-phone qc_draggable_item_remove" ><?php echo get_option('qlcd_wp_chatbot_support_phone'); ?></span>
1267 + <?php endif; ?>
1268 +
1269 + <?php
1270 + if(class_exists('Qcformbuilder_Forms_Admin')){
1271 + global $wpdb;
1808 1272
1809 - <div class="row">
1810 - <div class="col-xs-12">
1811 - <div class="form-group">
1812 - <h4 class="qc-opt-title">
1813 - <?php esc_html_e(' WPBot Agent Image', 'chatbot'); ?>
1814 - </h4>
1815 - <div class="cxsc-settings-blocks">
1816 - <ul class="radio-list radio-list-custom">
1817 - <li>
1818 - <label for="wp_chatbot_agent_image_def" class="qc-opt-dcs-font"> <img src="<?php echo esc_url(QCLD_wpCHATBOT_IMG_URL); ?>icon-13.png"
1819 - alt="">
1820 - <input id="wp_chatbot_agent_image_def" type="radio"
1821 - name="wp_chatbot_agent_image" <?php echo(get_option('wp_chatbot_agent_image') == 'agent-0.png' ? esc_attr('checked' ): ''); ?>
1822 - value="agent-0.png">
1823 - <?php esc_html_e('Default Agent', 'chatbot'); ?>
1824 - </label>
1825 - </li>
1826 - <li>
1827 -
1828 - <?php
1829 - if (get_option('wp_chatbot_custom_agent_path') != "") {
1830 - $wp_chatbot_custom_agent_path = get_option('wp_chatbot_custom_agent_path');
1831 - } else {
1832 - $wp_chatbot_custom_agent_path = esc_url(QCLD_wpCHATBOT_IMG_URL) . 'custom.png';
1833 - }
1834 - ?>
1273 + $results = $wpdb->get_results("SELECT * FROM ". $wpdb->prefix."wfb_forms where 1 and type='primary'");
1274 + if(!empty($results)){
1275 + ?>
1276 + <?php
1277 + foreach($results as $result){
1278 + $form = unserialize($result->config);
1279 + ?>
1280 + <span class="qcld-chatbot-wildcard qcld-chatbot-form qc_draggable_item_remove" data-form="<?php echo $form['ID']; ?>" ><?php echo $form['name']; ?></span>
1281 + <?php
1282 + }
1283 + ?>
1284 + <?php
1285 + }
1286 + }
1287 + ?>
1288 +
1289 + <?php endif; ?>
1290 + </div>
1291 + </div>
1835 1292
1836 - <label for="wp_chatbot_agent_image_custom" class="qc-opt-dcs-font"> <img id="wp_chatbot_custom_agent_src"
1837 - src="<?php echo esc_url($wp_chatbot_custom_agent_path); ?>"
1838 - alt="Agent">
1839 - <input type="radio" name="wp_chatbot_agent_image"
1840 - id="wp_chatbot_agent_image_custom"
1841 - value="<?php echo esc_attr('custom-agent.png' ); ?>" <?php echo(get_option('wp_chatbot_agent_image') == 'custom-agent.png' ? esc_attr('checked' ): ''); ?>>
1842 - <?php esc_html_e('Custom Agent', 'chatbot'); ?></label>
1293 + <div class="qc_menu_list_area">
1294 + <h4>Available Menu</h4>
1295 + <div class="qc_menu_list_container">
1296 + <p>Predefined Intents</p>
1297 + <ul>
1298 +
1299 +
1300 +
1301 +
1302 + <li>
1303 + <?php if(get_option('disable_wp_chatbot_faq')==''): ?>
1304 + <span class="qcld-chatbot-wildcard qc_draggable_item" data-wildcart="support"><?php echo get_option('qlcd_wp_chatbot_wildcard_support'); ?></span>
1305 + <?php endif; ?>
1306 +
1307 + </li>
1308 + <li>
1309 + <?php if(get_option('enable_wp_chatbot_messenger')=='1'): ?>
1310 + <span class="qcld-chatbot-wildcard qc_draggable_item" data-wildcart="messenger"><?php echo qcld_choose_random(unserialize(get_option('qlcd_wp_chatbot_messenger_label'))) ?></span>
1311 + <?php endif; ?>
1312 +
1313 + </li>
1843 1314
1844 - </li>
1845 - </ul>
1315 + <li>
1316 + <?php if(get_option('enable_wp_chatbot_whats')=='1'): ?>
1317 + <span class="qcld-chatbot-wildcard qc_draggable_item" data-wildcart="whatsapp"><?php echo qcld_choose_random(unserialize(get_option('qlcd_wp_chatbot_whats_label'))); ?></span>
1318 + <?php endif; ?>
1319 +
1320 + </li>
1321 +
1322 + <li>
1323 + <?php if(get_option('disable_wp_chatbot_feedback')==''): ?>
1324 + <span class="qcld-chatbot-suggest-email qc_draggable_item"><?php echo get_option('qlcd_wp_chatbot_support_email'); ?></span>
1325 + <?php endif; ?>
1326 +
1327 + </li>
1328 +
1329 +
1330 +
1331 + <li>
1332 + <?php if(get_option('disable_wp_chatbot_call_gen')==''): ?>
1333 + <span class="qcld-chatbot-suggest-phone qc_draggable_item" ><?php echo get_option('qlcd_wp_chatbot_support_phone'); ?></span>
1334 + <?php endif; ?>
1335 +
1336 + </li>
1337 +
1338 +
1339 + </ul>
1340 +
1341 +
1342 +
1343 +
1344 + <?php
1345 + if(class_exists('Qcformbuilder_Forms_Admin')){
1346 + global $wpdb;
1347 +
1348 + $results = $wpdb->get_results("SELECT * FROM ". $wpdb->prefix."wfb_forms where 1 and type='primary'");
1349 + if(!empty($results)){
1350 + ?>
1351 + <p>Conversational Form</p>
1352 + <ul>
1353 + <?php
1354 + foreach($results as $result){
1355 + $form = unserialize($result->config);
1356 + ?>
1357 + <li><span class="qcld-chatbot-wildcard qcld-chatbot-form qc_draggable_item" data-form="<?php echo $form['ID']; ?>" ><?php echo $form['name']; ?></span></li>
1358 + <?php
1359 + }
1360 + ?>
1361 + </ul>
1362 + <?php
1363 + }
1364 + }
1365 + ?>
1366 +
1367 +
1368 + </div>
1369 +
1370 + </div>
1371 +
1372 + </div>
1373 +
1374 + <input id="qc_wpbot_menu_order" type="hidden" name="qc_wpbot_menu_order" value='<?php echo stripslashes(get_option('qc_wpbot_menu_order')); ?>' />
1375 +
1376 + </div>
1377 + </div>
1378 + </div>
1846 1379 </div>
1847 - <!-- cxsc-settings-blocks-->
1848 - </div>
1849 - </div>
1850 - </div>
1851 - </div>
1852 - </div>
1853 - </div>
1854 - <div class="top-section">
1855 - <div class="row">
1856 - <div class="col-xs-12">
1857 - <div class="form-group">
1858 - <h4 class="qc-opt-title">
1859 - <?php esc_html_e('Custom Agent Icon', 'chatbot'); ?>
1860 - </h4>
1861 - <div class="cxsc-settings-blocks">
1862 - <input type="hidden" name="wp_chatbot_custom_agent_path"
1863 - id="wp_chatbot_custom_agent_path"
1864 - value="<?php echo esc_attr( $wp_chatbot_custom_agent_path ); ?>"/>
1865 - <button type="button" class="wp_chatbot_custom_agent_button button">
1866 - <?php esc_html_e('Upload Agent Icon', 'chatbot'); ?>
1867 - </button>
1868 - </div>
1869 - </div>
1870 - </div>
1871 - </div>
1872 - </div>
1873 - <div id="top-section">
1874 - <div class="form-group">
1875 - <!-- Avatar Location Section -->
1876 - <div class="avatar-location-wrapper">
1877 - <h4 class="qc-opt-title"><?php esc_html_e('Avatar Location', 'chatbot'); ?></h4>
1878 - <?php $avatar_location = get_option('qcld_chatbot_avatar_location'); ?>
1879 - <input type="hidden" id="qcld-avatar-location" name="qcld_chatbot_avatar_location" value="<?php echo esc_attr($avatar_location); ?>">
1880 - <div class="avatar-location-cards">
1881 - <div class="avatar-location-card <?php echo ($avatar_location === 'inside') ? 'active' : ''; ?>" data-location="inside">
1882 - <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="3" y1="6" x2="21" y2="6"/><line x1="3" y1="12" x2="21" y2="12"/><line x1="3" y1="18" x2="21" y2="18"/></svg>
1883 - <span><?php esc_html_e('Inside', 'chatbot'); ?></span>
1884 - </div>
1885 - <div class="avatar-location-card <?php echo ($avatar_location === 'side') ? 'active' : ''; ?>" data-location="side">
1886 - <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"/><line x1="9" y1="3" x2="9" y2="21"/></svg>
1887 - <span><?php esc_html_e('Side', 'chatbot'); ?></span>
1888 - </div>
1889 - <div class="avatar-location-card <?php echo ($avatar_location === 'hidden') ? 'active' : ''; ?>" data-location="hidden">
1890 - <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"/><line x1="1" y1="1" x2="23" y2="23"/></svg>
1891 - <span><?php esc_html_e('Hidden', 'chatbot'); ?></span>
1892 - </div>
1893 - </div>
1894 - </div>
1895 - <!-- End Avatar Location Section -->
1896 - <div class="row">
1897 - <div class="col-sm-12">
1898 - <h4 class="qc-opt-title">
1899 - <?php esc_html_e('WPBot Themes', 'chatbot'); ?>
1900 - </h4>
1901 - </div>
1902 - </div>
1903 - <div class="row qcld_thumbnail_theme_prev">
1904 - <div class="col-sm-3">
1905 - <label for="qcld_wb_chatbot_theme_0"> <img class="thumbnail theme_prev"
1906 - src="<?php echo esc_url(QCLD_wpCHATBOT_IMG_URL); ?>templates/template-00.JPG"
1907 - alt="Theme Basic">
1908 - <input id="qcld_wb_chatbot_theme_0" type="radio"
1909 - name="qcld_wb_chatbot_theme" <?php echo(get_option('qcld_wb_chatbot_theme') == 'template-00' ? esc_attr('checked' ): ''); ?>
1910 - value="template-00">
1911 - <?php esc_html_e('Theme Basic', 'chatbot'); ?>
1912 - </label>
1913 - </div>
1914 - <div class="col-sm-3">
1915 - <label for="qcld_wb_chatbot_theme_1"> <img class="thumbnail theme_prev"
1916 - src="<?php echo esc_url(QCLD_wpCHATBOT_IMG_URL); ?>templates/template-01.JPG"
1917 - alt="Theme Basic">
1918 - <input id="qcld_wb_chatbot_theme_1" type="radio"
1919 - name="qcld_wb_chatbot_theme" <?php echo(get_option('qcld_wb_chatbot_theme') == 'template-01' ? esc_attr('checked' ): ''); ?>
1920 - value="template-01">
1921 - <?php esc_html_e('Theme One', 'chatbot'); ?>
1922 - </label>
1923 - </div>
1924 - <div class="col-sm-6">
1925 - <label for="qcld_wb_chatbot_theme_horizontal"> <img class="thumbnail theme_prev"
1926 - src="<?php echo esc_url(QCLD_wpCHATBOT_IMG_URL); ?>templates/horizontal.png"
1927 - alt="Theme horizontal">
1928 - <input id="qcld_wb_chatbot_theme_horizontal" type="radio"
1929 - name="qcld_wb_chatbot_theme" <?php echo(get_option('qcld_wb_chatbot_theme') == 'template-horizontal' ? esc_attr('checked' ): ''); ?>
1930 - value="template-horizontal">
1931 - <?php esc_html_e('Theme Horizontal', 'chatbot'); ?>
1932 - </label>
1933 - </div>
1934 - </div>
1935 - </div>
1936 - </div>
1937 - </div>
1938 -
1939 -
1940 - <div id="wp-chatbot-custom-color-options" class="tab-pane fade">
1941 - <div class="top-section">
1942 - <div class="row">
1943 -
1944 - <div class="col-xs-6">
1945 - <div class="cxsc-settings-blocks cxsc-settings-blocks-style">
1946 - <div class="form-group">
1947 - <h4 class="qc-opt-title">
1948 - <?php esc_html_e('Custom Style Options', 'chatbot'); ?>
1949 - </h4>
1950 - <div class="cxsc-settings-blocks">
1951 - <input value="1" id="enable_wp_chatbot_custom_color" type="checkbox"
1952 - name="enable_wp_chatbot_custom_color" <?php echo(get_option('enable_wp_chatbot_custom_color') == 1 ? esc_attr('checked' ): ''); ?>>
1953 - <label for="enable_wp_chatbot_custom_color">
1954 - <?php esc_html_e('Enable Custom Styles ', 'chatbot'); ?>
1955 - </label>
1956 - </div>
1957 - </div>
1958 - </div>
1959 - </div>
1960 - <div class="col-xs-6">
1961 - <div class="cxsc-settings-blocks">
1962 - <div class="form-group">
1963 - <h4 class="qc-opt-title">
1964 - <?php esc_html_e('Text Color.', 'chatbot'); ?>
1965 - </h4>
1966 - <input id="wp_chatbot_text_color" type="text"
1967 - name="wp_chatbot_text_color"
1968 - value="<?php echo esc_attr((get_option('wp_chatbot_text_color') != '' ? get_option('wp_chatbot_text_color') : '#37424c')); ?>"/>
1969 - </div>
1970 - </div>
1971 - </div>
1972 - <div class="col-xs-6">
1973 - <div class="cxsc-settings-blocks">
1974 - <div class="form-group">
1975 - <h4 class="qc-opt-title">
1976 - <?php esc_html_e('Link Color.', 'chatbot'); ?>
1977 - </h4>
1978 - <input id="wp_chatbot_link_color" type="text"
1979 - name="wp_chatbot_link_color"
1980 - value="<?php echo esc_attr((get_option('wp_chatbot_link_color') != '' ? get_option('wp_chatbot_link_color') : '#e2cc1f')); ?>"/>
1981 - </div>
1982 - </div>
1380 + </section>
1381 +
1382 + <!--<section id="section-flip-8">
1383 + <div class="top-section">
1384 + <div class="wp-chatbot-language-center-summmery">
1385 + <p><?php _e('WPBot will be opened based on the following settings', 'wpchatbot'); ?> </p>
1386 + </div>
1387 + <div class="row">
1388 + <div class="col-xs-12">
1389 + <h4 class="qc-opt-title"><?php _e('Enable Bot Activity Hour', 'wpchatbot'); ?> </h4>
1390 + <div class="cxsc-settings-blocks" style="padding:0 20px;">
1391 + <input value="1" id="enable_wp_chatbot_opening_hour" type="checkbox"
1392 + name="enable_wp_chatbot_opening_hour" <?php echo(get_option('enable_wp_chatbot_opening_hour') == 1 ? 'checked' : ''); ?>>
1393 + <label for="enable_wp_chatbot_opening_hour"><?php _e('If enabled WPBot will show only during the time schedule you set below. The timezone you set from WordPress general settings will be used.', 'wpchatbot'); ?> </label>
1394 + </div>
1395 + </div>
1396 + </div>
1397 + <style>
1398 + .wp-chatbot-hours-container{
1399 + padding:0px 0 15px 0;
1400 + display: flex;
1401 + justify-content: space-between;
1402 + }
1403 + .wp-chatbot-hours{
1404 + /*width:75%;*/
1405 + display: inline-block;
1406 + }
1407 + .wp-chatbot-hours input{
1408 + display: inline-block;
1409 + width: 40%;
1410 + padding-right: 10px;
1411 + text-align: center;
1412 + }
1413 + .wp-chatbot-hours-remove{
1414 + display: inline-block;
1415 + /*width:20%;*/
1416 + }
1417 + </style>
1418 + <div class="row" id="wp-chatbot-hours-wrapper">
1419 + <div class="col-xs-12">
1420 + <h4 class="qc-opt-title"><?php _e('WPBot Bot Activity Hours', 'wpchatbot'); ?> </h4>
1421 + <?php
1422 +
1423 + if(get_option('wpwbot_hours')){
1424 + $wpwbot_times=unserialize(get_option('wpwbot_hours'));
1425 + }else{
1426 + $wpwbot_times=array();
1427 + }
1428 + ?>
1429 + <div class="row">
1430 + <div class="col-xs-3">Monday</div>
1431 + <div class="col-xs-4 wp-chatbot-day">
1432 + <?php
1433 + $this->wp_chatbot_opening_hours('monday',$wpwbot_times);
1434 + ?>
1983 1435 </div>
1984 - <div class="col-xs-6">
1985 - <div class="cxsc-settings-blocks">
1986 - <div class="form-group">
1987 - <h4 class="qc-opt-title">
1988 - <?php esc_html_e('Link Hover Color.', 'chatbot'); ?>
1989 - </h4>
1990 - <input id="wp_chatbot_link_hover_color" type="text"
1991 - name="wp_chatbot_link_hover_color"
1992 - value="<?php echo esc_attr((get_option('wp_chatbot_link_hover_color') != '' ? get_option('wp_chatbot_link_hover_color') : '#734006')); ?>"/>
1993 - </div>
1994 - </div>
1436 + <div class="col-xs-3">
1437 + <button class="btn btn-success btn-sm wp-chatbot-hours-add-btn" type="button" data-day="monday">
1438 + <i class="fa fa-plus" aria-hidden="true"></i> Add
1439 + </button>
1995 1440 </div>
1996 - <div class="col-xs-6">
1997 - <div class="cxsc-settings-blocks">
1998 - <div class="form-group">
1999 - <h4 class="qc-opt-title">
2000 - <?php esc_html_e('Bot Message Background Color.', 'chatbot'); ?>
2001 - </h4>
2002 - <input id="wp_chatbot_bot_msg_bg_color" type="text"
2003 - name="wp_chatbot_bot_msg_bg_color"
2004 - value="<?php echo esc_attr((get_option('wp_chatbot_bot_msg_bg_color') != '' ? get_option('wp_chatbot_bot_msg_bg_color'): '#1f8ceb')) ; ?>"/>
2005 - </div>
2006 - </div>
1441 + </div>
1442 + <div class="row">
1443 + <div class="col-xs-3">Tuesday</div>
1444 + <div class="col-xs-4 wp-chatbot-day">
1445 + <?php
1446 + $this->wp_chatbot_opening_hours('tuesday',$wpwbot_times);
1447 + ?>
2007 1448 </div>
2008 - <div class="col-xs-6">
2009 - <div class="cxsc-settings-blocks">
2010 - <div class="form-group">
2011 - <h4 class="qc-opt-title">
2012 - <?php esc_html_e('Bot Message Text Color.', 'chatbot'); ?>
2013 - </h4>
2014 - <input id="wp_chatbot_bot_msg_text_color" type="text"
2015 - name="wp_chatbot_bot_msg_text_color"
2016 - value="<?php echo esc_attr((get_option('wp_chatbot_bot_msg_text_color') != '' ? get_option('wp_chatbot_bot_msg_text_color') : '#ffffff')); ?>"/>
2017 - </div>
2018 - </div>
1449 + <div class="col-xs-3">
1450 + <button class="btn btn-success btn-sm wp-chatbot-hours-add-btn" type="button" data-day="tuesday">
1451 + <i class="fa fa-plus" aria-hidden="true"></i> Add
1452 + </button>
2019 1453 </div>
2020 - <div class="col-xs-6">
2021 - <div class="cxsc-settings-blocks">
2022 - <div class="form-group">
2023 - <h4 class="qc-opt-title">
2024 - <?php esc_html_e('User Message Background Color.', 'chatbot'); ?>
2025 - </h4>
2026 - <input id="wp_chatbot_user_msg_bg_color" type="text"
2027 - name="wp_chatbot_user_msg_bg_color"
2028 - value="<?php echo esc_attr((get_option('wp_chatbot_user_msg_bg_color') != '' ? get_option('wp_chatbot_user_msg_bg_color') : '#ffffff') ); ?>"/>
2029 - </div>
2030 - </div>
1454 + </div>
1455 + <div class="row">
1456 + <div class="col-xs-3">Wednesday</div>
1457 + <div class="col-xs-4 wp-chatbot-day">
1458 + <?php
1459 + $this->wp_chatbot_opening_hours('wednesday',$wpwbot_times);
1460 + ?>
2031 1461 </div>
2032 - <div class="col-xs-6">
2033 - <div class="cxsc-settings-blocks">
2034 - <div class="form-group">
2035 - <h4 class="qc-opt-title">
2036 - <?php esc_html_e('User Message Text Color.', 'chatbot'); ?>
2037 - </h4>
2038 - <input id="wp_chatbot_user_msg_text_color" type="text"
2039 - name="wp_chatbot_user_msg_text_color"
2040 - value="<?php echo esc_attr((get_option('wp_chatbot_user_msg_text_color') != '' ? get_option('wp_chatbot_user_msg_text_color') : '#000000')); ?>"/>
2041 - </div>
2042 - </div>
1462 + <div class="col-xs-3">
1463 + <button class="btn btn-success btn-sm wp-chatbot-hours-add-btn" type="button" data-day="wednesday">
1464 + <i class="fa fa-plus" aria-hidden="true"></i> Add
1465 + </button>
2043 1466 </div>
2044 - <div class="col-xs-6">
2045 - <div class="cxsc-settings-blocks">
2046 - <div class="form-group">
2047 - <h4 class="qc-opt-title">
2048 - <?php esc_html_e('Buttons Background Color.', 'chatbot'); ?>
2049 - </h4>
2050 - <input id="wp_chatbot_buttons_bg_color" type="text"
2051 - name="wp_chatbot_buttons_bg_color"
2052 - value="<?php echo esc_attr((get_option('wp_chatbot_buttons_bg_color') != '' ?get_option('wp_chatbot_buttons_bg_color'): '#1f8ceb')) ; ?>"/>
2053 - </div>
2054 - </div>
1467 + </div>
1468 + <div class="row">
1469 + <div class="col-xs-3">Thursday</div>
1470 + <div class="col-xs-4 wp-chatbot-day">
1471 + <?php
1472 + $this->wp_chatbot_opening_hours('thursday',$wpwbot_times);
1473 + ?>
2055 1474 </div>
2056 - <div class="col-xs-6">
2057 - <div class="cxsc-settings-blocks">
2058 - <div class="form-group">
2059 - <h4 class="qc-opt-title">
2060 - <?php esc_html_e('Buttons Hover Background Color.', 'chatbot'); ?>
2061 - </h4>
2062 - <input id="wp_chatbot_buttons_bg_color" type="text"
2063 - name="wp_chatbot_buttons_bg_color_hover"
2064 - value="<?php echo esc_attr((get_option('wp_chatbot_buttons_bg_color_hover') != '' ? get_option('wp_chatbot_buttons_bg_color_hover') : '#1f8ceb')); ?>"/>
2065 - </div>
2066 - </div>
1475 + <div class="col-xs-3">
1476 + <button class="btn btn-success btn-sm wp-chatbot-hours-add-btn" type="button" data-day="thursday">
1477 + <i class="fa fa-plus" aria-hidden="true"></i> Add
1478 + </button>
2067 1479 </div>
2068 - <div class="col-xs-6">
2069 - <div class="cxsc-settings-blocks">
2070 - <div class="form-group">
2071 - <h4 class="qc-opt-title">
2072 - <?php esc_html_e('Buttons Text Color.', 'chatbot'); ?>
2073 - </h4>
2074 - <input id="wp_chatbot_buttons_text_color" type="text"
2075 - name="wp_chatbot_buttons_text_color"
2076 - value="<?php echo esc_attr((get_option('wp_chatbot_buttons_text_color') != '' ? get_option('wp_chatbot_buttons_text_color') : '#ffffff')); ?>"/>
2077 - </div>
2078 - </div>
1480 + </div>
1481 + <div class="row">
1482 + <div class="col-xs-3">Friday</div>
1483 + <div class="col-xs-4 wp-chatbot-day">
1484 + <?php
1485 + $this->wp_chatbot_opening_hours('friday',$wpwbot_times);
1486 + ?>
2079 1487 </div>
2080 - <div class="col-xs-6">
2081 - <div class="cxsc-settings-blocks">
2082 - <div class="form-group">
2083 - <h4 class="qc-opt-title">
2084 - <?php esc_html_e('Buttons Text Color Hover.', 'chatbot'); ?>
2085 - </h4>
2086 - <input id="wp_chatbot_buttons_text_color" type="text"
2087 - name="wp_chatbot_buttons_text_color_hover"
2088 - value="<?php echo esc_attr((get_option('wp_chatbot_buttons_text_color_hover') != '' ? get_option('wp_chatbot_buttons_text_color_hover') : '#ffffff')); ?>"/>
2089 - </div>
2090 - </div>
1488 + <div class="col-xs-3">
1489 + <button class="btn btn-success btn-sm wp-chatbot-hours-add-btn" type="button" data-day="friday">
1490 + <i class="fa fa-plus" aria-hidden="true"></i> Add
1491 + </button>
2091 1492 </div>
2092 - <div class="col-xs-6">
2093 - <div class="cxsc-settings-blocks">
2094 - <div class="form-group">
2095 - <h4 class="qc-opt-title">
2096 - <?php esc_html_e('Header background Color', 'chatbot'); ?>
2097 - </h4>
2098 - <input id="wp_chatbot_header_background_color" type="text"
2099 - name="wp_chatbot_header_background_color"
2100 - value="<?php echo esc_attr((get_option('wp_chatbot_header_background_color') != '' ? get_option('wp_chatbot_header_background_color'): '#ffffff')); ?>"/>
2101 - </div>
2102 - </div>
1493 + </div>
1494 + <div class="row">
1495 + <div class="col-xs-3">Saturday</div>
1496 + <div class="col-xs-4 wp-chatbot-day">
1497 + <?php
1498 + $this->wp_chatbot_opening_hours('saturday',$wpwbot_times);
1499 + ?>
2103 1500 </div>
2104 - <div class="col-xs-6">
2105 - <div class="cxsc-settings-blocks">
2106 - <div class="form-group">
2107 - <h4 class="qc-opt-title">
2108 - <?php esc_html_e('Theme Primary Color', 'chatbot'); ?>
2109 - </h4>
2110 - <input id="wp_chatbot_theme_primary_color" type="text"
2111 - name="wp_chatbot_theme_primary_color"
2112 - value="<?php echo esc_attr((get_option('wp_chatbot_theme_primary_color') != '' ? get_option('wp_chatbot_theme_primary_color') : '#ffffff')); ?>"/>
2113 - </div>
2114 - </div>
1501 + <div class="col-xs-3">
1502 + <button class="btn btn-success btn-sm wp-chatbot-hours-add-btn" type="button" data-day="saturday">
1503 + <i class="fa fa-plus" aria-hidden="true"></i> Add
1504 + </button>
2115 1505 </div>
2116 - <div class="col-xs-6">
2117 - <div class="cxsc-settings-blocks">
2118 - <div class="form-group">
2119 - <h4 class="qc-opt-title">
2120 - <?php esc_html_e('Theme Secondary Color', 'chatbot'); ?>
2121 - </h4>
2122 - <input id="wp_chatbot_theme_secondary_color" type="text"
2123 - name="wp_chatbot_theme_secondary_color"
2124 - value="<?php echo esc_attr((get_option('wp_chatbot_theme_secondary_color') != '' ? get_option('wp_chatbot_theme_secondary_color') : '#ffffff')); ?>"/>
2125 - </div>
2126 - </div>
1506 + </div>
1507 + <div class="row">
1508 + <div class="col-xs-3">Sunday</div>
1509 + <div class="col-xs-4 wp-chatbot-day">
1510 + <?php
1511 + $this->wp_chatbot_opening_hours('sunday',$wpwbot_times);
1512 + ?>
2127 1513 </div>
2128 - <div class="col-xs-6">
2129 - <div class="cxsc-settings-blocks">
2130 - <div class="form-group">
2131 - <h4 class="qc-opt-title">
2132 - <?php esc_html_e('Font size', 'chatbot'); ?>
2133 - </h4>
2134 - <input id="wp_chatbot_font_size" type="number"
2135 - name="wp_chatbot_font_size"
2136 - value="<?php echo esc_attr((get_option('wp_chatbot_font_size') != '' ? get_option('wp_chatbot_font_size'): '16')) ; ?>"/>
2137 - </div>
2138 - </div>
1514 + <div class="col-xs-3">
1515 + <button class="btn btn-success btn-sm wp-chatbot-hours-add-btn" type="button" data-day="sunday">
1516 + <i class="fa fa-plus" aria-hidden="true"></i> Add
1517 + </button>
2139 1518 </div>
2140 - <div class="col-xs-6">
2141 - <div class="cxsc-settings-blocks">
2142 - <div class="form-group">
2143 - <h4 class="qc-opt-title">
2144 - <?php
2145 - esc_html_e('User message Font family ', 'chatbot');
2146 - $user_font = get_option('wp_chat_user_font_family') != '' ? get_option('wp_chat_user_font_family') : '';
2147 - $user_font_family = str_replace("\\", "",$user_font);
2148 - ?>
2149 - </h4>
2150 - <input id="wp_chatbot_user_font" type="text" name="wp_chatbot_user_font"
2151 - value="<?php echo esc_attr((get_option('wp_chatbot_user_font') != '' ? get_option('wp_chatbot_user_font') : ''));?>">
2152 - <input id="wp_chat_user_font_family" type="hidden"
2153 - name="wp_chat_user_font_family"
2154 - />
2155 - </div>
2156 - </div>
2157 - </div>
2158 - <div class="col-xs-6">
2159 - <div class="cxsc-settings-blocks">
2160 - <div class="form-group">
2161 - <h4 class="qc-opt-title">
2162 - <?php
2163 - esc_html_e('Bot message Font family ', 'chatbot');
2164 - $bot_font = get_option('wp_chat_bot_font_family') != '' ? get_option('wp_chat_bot_font_family') : '';
2165 - $bot_font_family = str_replace("\\", "",$bot_font);
2166 - ?>
2167 - </h4>
2168 - <input id="wp_chatbot_bot_font" type="text" name="wp_chatbot_bot_font"
2169 - value="<?php echo esc_attr((get_option('wp_chatbot_bot_font') != '' ? get_option('wp_chatbot_bot_font') : ''));?>">
2170 - <input id="wp_chat_bot_font_family" type="hidden"
2171 - name="wp_chat_bot_font_family"
2172 - />
2173 - </div>
2174 - </div>
2175 - </div>
2176 -
2177 - <?php
2178 - $custom_js = "jQuery(function ($) {
2179 - $('#wp_chat_user_font_family').val(JSON.stringify(". esc_attr($user_font_family) ."));
2180 - $('#wp_chat_bot_font_family').val(JSON.stringify(". esc_attr($bot_font_family)."));
2181 - $('#wp_chatbot_user_font')
2182 - .fontpicker()
2183 - .on('change', function() {
2184 - var tmp = this.value.split(':'),
2185 - family = tmp[0],
2186 - variant = tmp[1] || '400',
2187 - weight = parseInt(variant,10),
2188 - italic = /i$/.test(variant);
2189 - var css = {
2190 - fontFamily:family,
2191 - fontWeight: weight,
2192 - fontStyle: italic ? 'italic' : 'normal'
2193 - };
2194 - $('#wp_chat_user_font_family').val(JSON.stringify(css));
2195 - });
2196 - $('#wp_chatbot_bot_font')
2197 - .fontpicker()
2198 - .on('change', function() {
2199 - var tmp = this.value.split(':'),
2200 - family = tmp[0],
2201 - variant = tmp[1] || '400',
2202 - weight = parseInt(variant,10),
2203 - italic = /i$/.test(variant);
2204 - // Set selected font on body
2205 - var css = {
2206 - fontFamily:family,
2207 - fontWeight: weight,
2208 - fontStyle: italic ? 'italic' : 'normal'
2209 - };
2210 - $('#wp_chat_bot_font_family').val(JSON.stringify(css));
2211 - });
2212 - });
2213 - ";
2214 - wp_add_inline_script('qcld-wp-chatbot-admin-js', $custom_js );
2215 -
2216 - ?>
2217 - </div>
2218 - </div>
2219 - </div>
2220 - </div>
2221 - </section>
2222 -
2223 - <section id="section-flip-4">
2224 - <div class="row">
2225 - <div class="col-xs-12">
2226 - <!-- <div class="<?php // esc_attr_e( 'cxsc-settings-blocks-notic" style="<?php // echo esc_attr('background: #2271B1'); ?>">
2227 - <p class="<?php // esc_attr_e( 'd-ib"><?php // esc_html_e('New horizontal/wide template is now available. Select from Icons and Themes', 'chatbot'); ?>
2228 - </div> -->
2229 - </div>
2230 - </div>
2231 - <div class="top-section">
2232 - <h3 class="qcld-wpbot-main-tabs-title">
2233 - <?php esc_html_e('Build FAQ Query and Answers', 'chatbot'); ?>
2234 -
2235 - </h3>
1519 + </div>
1520 + </div>
1521 + </div>
1522 + </div>
1523 +
1524 + </section>-->
1525 + <section id="section-flip-6">
1526 + <div class="top-section">
1527 + <div class="wp-chatbot-language-center-summmery">
1528 + <p><?php _e('DialogFlow as Artificial Intelligences Engine for wpwBot', 'wpchatbot'); ?> </p>
1529 + </div>
1530 + <div class="row">
1531 + <div class="col-xs-12">
1532 + <p class="wpqcld_chk_seft">
1533 + <a target="_blank" href="https://www.quantumcloud.com/custom-chatbot-services/"><img src="<?php echo QCLD_wpCHATBOT_IMG_URL ?>/chatbot-custom-service.jpg" alt="" /></a>
1534 + </p>
1535 + </div>
1536 + </div>
1537 + <div class="row">
1538 + <div class="col-xs-12">
1539 + <h4 class="qc-opt-title"><?php echo esc_html__('Enable DialogFlow as AI Engine to Detect Intent', 'wpchatbot'); ?> </h4>
1540 + <div class="cxsc-settings-blocks">
1541 + <input value="1" id="enable_wp_chatbot_dailogflow" type="checkbox"
1542 + name="enable_wp_chatbot_dailogflow" <?php echo(get_option('enable_wp_chatbot_dailogflow') == 1 ? 'checked' : ''); ?>>
1543 + <label for="enable_wp_chatbot_dailogflow"><?php echo esc_html__('Enable DialogFlow AI Engine to process Natural Language commands from users.', 'wpchatbot'); ?> </label>
1544 + </div>
1545 + </div>
1546 + <div class="col-xs-12">
1547 + <br>
1548 + <p><?php echo esc_html__('Log in to DialogFlow Console from', 'wpchatbot'); ?>
1549 + <a class="wpbot_df_instruction" href="<?php echo esc_url('https://dialogflow.com/'); ?>" target="_blank"><?php echo esc_html__('Here', 'wpchatbot'); ?></a> <?php echo esc_html__('with your gmail account.', 'wpchatbot'); ?>
2236 1550
2237 -<p><b><?php esc_html_e('These FAQs are not searchable. You can use ChatBot->Simple Text Responses for searchable FAQs', 'chatbot'); ?></b></p>
1551 + <a class="wpbot_df_instruction" href="<?php echo esc_url(QCLD_wpCHATBOT_PLUGIN_URL.'download/wpwBot.zip'); ?>" download ><?php echo esc_html__('Download', 'wpchatbot'); ?></a> <?php echo esc_html__('the agent training data and import from DialogFlow->Settings->Export and Import tab. You can add your own intents in that agent but do not modify our following training intents which are', 'wpchatbot'); ?> <b>email, email subscription, faq, get email, get name, help, phone, reset, site search and start.</b> </p>
1552 + </div>
2238 1553
2239 - <div class="block-inner ui-sortable qcld-faq-block" id="wp-chatbot-support-builder">
2240 - <?php
2241 - $support_quereis=$this->qcld_wb_chatbot_str_replace(maybe_unserialize( get_option('support_query')));
2242 - $support_ans=$this->qcld_wb_chatbot_str_replace(maybe_unserialize( get_option('support_ans')));
2243 - if (($support_quereis[0] != '') && ($support_ans[0] != '') && !empty($support_ans[0]) && (count($support_ans) == count($support_quereis))) {
2244 -
2245 - $query_ans_counter=0;
2246 - foreach (array_combine($support_quereis, $support_ans) as $query => $ans) {
2247 - ?>
2248 - <div class="row"> <span class="pull-right"> </span>
2249 - <div class="col-xs-12">
2250 - <button type="button" class="btn btn-danger btn-sm wp-chatbot-remove-support pull-right"> <span class="dashicons dashicons-remove"></span></button>
2251 -
2252 - <div class="cxsc-settings-blocks cxsc-settings-faq-blocks">
2253 - <p>
2254 - <b> <?php esc_html_e('FAQ query ', 'chatbot'); ?> </b>
2255 - </p>
2256 - <input type="text" class="form-control" name="support_query[]"
2257 - placeholder="<?php esc_html_e('FAQ query', 'chatbot' ); ?> " value="<?php echo esc_html( $query ); ?>">
2258 - <br>
2259 - <p>
2260 - <b><?php esc_html_e('FAQ answer', 'chatbot'); ?></b>
2261 - </p>
2262 - <?php
2263 - $anss = is_string( $ans ) ? $ans : '';
2264 - $answer = !is_array($ans) ? stripcslashes($ans) : $anss;
1554 + <div class="col-xs-12" id="wp-chatbot-dialflow-section">
1555 + <h4 class="qc-opt-title"><?php echo esc_html__('DialogFlow API Version', 'wpchatbot'); ?></h4>
1556 + <div class="form-group">
2265 1557
2266 - wp_editor(html_entity_decode($answer), 'support_ans'.'_'.$query_ans_counter, array('textarea_name' =>
2267 - 'support_ans[]',
2268 - 'textarea_rows' => 20,
2269 - 'editor_height' => 100,
2270 - 'disabled' => 'disabled',
2271 - 'media_buttons' => false,
2272 - 'tinymce' => array(
2273 - 'toolbar1' => 'bold,italic,underline,separator,alignleft,aligncenter,alignright,separator,link,unlink',)
2274 - ));
2275 -
2276 - ?>
2277 - </div>
2278 - </div>
2279 - </div>
2280 - <?php
2281 - $query_ans_counter++;
2282 - }
2283 - //}
2284 - } else {
2285 - ?>
2286 - <div class="row"> <span class="pull-right"> </span>
2287 - <div class="col-xs-12">
2288 - <button type="button" class="btn btn-danger btn-sm wp-chatbot-remove-support pull-right"> <span class="dashicons dashicons-remove"></span> </button>
2289 -
1558 + <label class="radio-inline">
1559 + <input id="wp-chatbot-df-api" type="radio"
1560 + name="wp_chatbot_df_api"
1561 + value="v1" <?php echo(get_option('wp_chatbot_df_api') == 'v1' ? 'checked' : ''); ?>>
1562 + <?php echo esc_html__('Dialogflow API V1', 'wpchatbot'); ?>
1563 + </label>
1564 + <label class="radio-inline">
1565 + <input id="wp-chatbot-df-api" type="radio"
1566 + name="wp_chatbot_df_api"
1567 + value="v2" <?php echo(get_option('wp_chatbot_df_api') == 'v2' ? 'checked' : ''); ?>>
1568 + <?php echo esc_html__('Dialogflow API V2', 'wpchatbot'); ?>
1569 + </label>
2290 1570
1571 + </div>
2291 1572
2292 -
2293 - <div class="cxsc-settings-blocks">
2294 - <p>
2295 - <b> <?php esc_html_e('FAQ Query', 'chatbot'); ?></b>
2296 - </p>
2297 - <input type="text" class="form-control" name="support_query[]"
2298 - placeholder="<?php esc_html_e('FAQ Query ', 'chatbot'); ?> ">
2299 - <br>
2300 - <p class="qc-opt-dcs-font"><strong>
2301 - <?php esc_html_e('FAQ answer', 'chatbot'); ?>
2302 - </strong></p>
2303 - <?php
2304 - wp_editor(html_entity_decode(stripcslashes('')), 'support_ans_0', array('textarea_name' =>
2305 - 'support_ans[]',
2306 - 'textarea_rows' => 20,
2307 - 'editor_height' => 100,
2308 - 'disabled' => 'disabled',
2309 - 'media_buttons' => false,
2310 - 'tinymce' => array(
2311 - 'toolbar1' => 'bold,italic,underline,separator,alignleft,aligncenter,alignright,separator,link,unlink',)
2312 - ));
2313 - ?>
2314 - </div>
2315 - <br>
2316 - </div>
2317 - </div>
2318 - <?php
2319 - }
2320 - ?>
2321 - </div>
2322 - <div class="row">
2323 - <div class="col-sm-6 text-left"></div>
2324 - <div class="col-sm-6 text-right">
2325 - <button class="btn btn-success btn-sm" type="button"
2326 - id="add-more-support-query">
2327 - <span class="dashicons dashicons-plus"></span>
1573 + <div id="wp-chatbot-df-section-v2">
1574 + <!-- Dialogflow V2 Configuration -->
1575 +
1576 + <?php if(!file_exists(QCLD_wpCHATBOT_GC_DIRNAME.'/autoload.php')): ?>
1577 + <div class="form-group">
1578 +
1579 + <br>
1580 + <h4 class="qc-opt-title" style="color:red"><?php echo esc_html__('For Interacting with Dialogflow V2 the Google Client Package is Required!', 'wpchatbot'); ?></h4>
1581 + <p>Please click the download button below to download the Google Client package. The package will be downloaded inside your Wordpress's <b>/wp-content</b> folder. This package is around <b>10 MB</b> in zip file format and it will be about <b>49 MB</b> after unzipping. Please make sure that your server has enough space to store that package.</p>
1582 + <div class="qcld-wpbot-gcdownload-area">
1583 + <button class="btn btn-primary" id="qc_wpbot_gc_download" <?php echo (!is_writable(QCLD_wpCHATBOT_GC_ROOT)?'disabled':''); ?>>Download and Install the Google Client</button>
1584 + <?php
1585 + if(!is_writable(QCLD_wpCHATBOT_GC_ROOT)){
1586 + echo '<span style="color:red;font-size: 12px;"><b>wp-content</b> folder is not writable.</span>';
1587 + }
1588 + ?>
1589 + <br><br>
1590 + <p>Alternatively, If the download operation fails for some reason like folder permission or server timeout issue then you can manually upload the <u title="Google Client">GC</u> package by following some simple steps.</p>
1591 + <p>1. Download GC package from: <a href="https://github.com/qcloud/gc/archive/master.zip" target="_blank">https://github.com/qcloud/gc/archive/master.zip</a></p>
1592 + <p>2. Unzip the <b>wpbotgc.zip</b> inside to your computer.</p>
1593 + <p>3. Create a folder with name <b>wpbot-dfv2-client</b> under <b>wp-content</b> into your server.</p>
1594 + <p>4. Upload the upziped files and folders into <b>wpbot-dfv2-client</b> via FTP.</p>
1595 +
1596 +
1597 + <div class="qcld_wpbot_download_statuses">
1598 +
1599 + </div>
1600 + </div>
1601 + <br>
1602 +
1603 + </div>
1604 + <?php else: ?>
1605 + <div class="form-group">
1606 + <h4 class="qc-opt-title" style="color:green"><?php echo esc_html__('Google Client Package is Installed on Your Website.', 'wpchatbot'); ?></h4>
1607 + </div>
1608 + <?php endif; ?>
1609 +
1610 + <div class="form-group">
1611 + <h4 class="qc-opt-title"><?php echo esc_html__('DialogFlow Project ID', 'wpchatbot'); ?></h4>
1612 + <p>You can follow the <a href="https://www.youtube.com/watch?v=qY-EHFY2wH8" target="_blank">tutorial</a> to get the Project ID. </p>
1613 + <input type="text" class="form-control qc-opt-dcs-font"
1614 + name="qlcd_wp_chatbot_dialogflow_project_id"
1615 + value="<?php echo(get_option('qlcd_wp_chatbot_dialogflow_project_id') != '' ? get_option('qlcd_wp_chatbot_dialogflow_project_id') : ''); ?>" placeholder="<?php echo esc_html__('DialogFlow Project ID', 'wpchatbot'); ?>">
1616 + </div>
1617 +<?php
2328 1618
2329 - </button>
2330 - </div>
2331 - </div>
2332 - </div>
2333 - </section>
2334 -
2335 -
2336 - <section id="section-flip-6">
2337 - <!-- <div class="<?php // esc_attr_e( 'cxsc-settings-blocks-notic" style="<?php // echo esc_attr('background: #2271B1'); ?>">
2338 - <p class="<?php // esc_attr_e( 'd-ib"><?php // esc_html_e('New horizontal/wide template is now available. Select from Icons and Themes', 'chatbot'); ?>
2339 - </div> -->
2340 - <?php
2341 - wp_enqueue_style('qcld-wp-chatbot-common-style', plugins_url(basename(plugin_dir_path(__FILE__)) . '/css/common-style.css', basename(__FILE__)), '', esc_attr(QCLD_wpCHATBOT_VERSION), 'screen');
2342 - ?>
2343 - <div class="top-section">
2344 - <div class="notification-block-inner">
2345 - <div class="row">
2346 - <div class="col-xs-12">
1619 +$placeholderPrivatekey = '{
1620 + "type": "service_account",
1621 + "project_id": "PLACEYOUROWNID",
1622 + "private_key_id": "31e300128..........c48",
1623 + "private_key": "-----BEGIN PRIVATE KEY-----\nTHIS IS A DEMO PRIVATE KEY to SHOW HOW IT SHOULD LOOK. Replace with ACTUAL KEY.+OdT09MGEdAjlgSF2HMDA3fl8Ey4dmTxRfAN9No6G3Ugs3BrpZHfY\nSviWzS4JQ0GkCubcJc0DzJ8AqG6xX7E3SfKpdtKEn1eYV7sfQL3C2lm2lTj6nWdt\nxrkhJVHn61kxfPAWChnkdPa5EbMNFnV5mN5rhwaOxR+tEjW9nWBjVFG0NMnOMWF4\nsu6QJVjQMtI99jPBCid1r4XV/sPABSXh8dscWdMinGhZfuCjF4sOGHUUaw+VDGb6\nZpPOh65nw5fsdOHETsb4BN/LW72Khux+870Ig4jkuLIN3PnSF9QfwO8U2qTG5sZK\nn5nxhT9zAgMBAAECggEAX1NSWRGnrcVsu6n1jn9xUpzvxyy+CJe1Z1DvHo1tmHNS\n0Q8OI/Y........THIS IS A DEMO PRIVATE KEY to SHOW HOW IT SHOULD LOOK. Replace with your own key......................................paqQKBgQCJ\nvNCZIHpLGVqwiw4SVYgZW2i+VsZ78sOw0SuuhjZNmOlGjpalbQCjKs9l5dSz5t5D\nVleJVyriFaXyvVty/iF6orqTgv0EhcLO2RI9KSrTpbOXcIkgeunAhRM3oloxSndt\n98H3f1xRvTLIm1enERLkOyGHmm7nWFV0BQWD+CxeCwKBgDtBGn+uBgNgZjSaLnkJ\noemAoIBN6aD4+QWduPldRgTilH6ABQ26SL+t4sa9jbAtkMuD/hWOMLBqmz98tfCC\ndy6cPghea+b0S7lj/wmUaDA1Vmz7luCLm+lO+fe3K6WIlEhAP/9MXVH90Sj6CllF\nAn4stWzIKHrRKA3lIvgJv+9W\n-----END PRIVATE KEY-----\n",
1624 + "client_email": "dialogflow-evysjn@wpbotpro.iam.gserviceaccount.com",
1625 + "client_id": "1026.....032997",
1626 + "auth_uri": "https://accounts.google.com/o/oauth2/auth",
1627 + "token_uri": "https://oauth2.googleapis.com/token",
1628 + "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
1629 + "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/dialogflow-evysjn%40wpbotpro.iam.gserviceaccount.com"
1630 +}';
2347 1631
1632 +?>
1633 + <div class="form-group">
1634 + <h4 class="qc-opt-title"><?php echo esc_html__('Private Key', 'wpchatbot'); ?></h4>
1635 + <p>Put your google service account's private key JSON string here. You can follow the <a href="https://dialogflow.com/docs/reference/v2-auth-setup" target="_blank">tutorial</a> to get private key JSON file. </p>
1636 + <textarea class="form-control" rows="20" name="qlcd_wp_chatbot_dialogflow_project_key" placeholder='<?php echo $placeholderPrivatekey; ?>'><?php echo(get_option('qlcd_wp_chatbot_dialogflow_project_key') != '' ? get_option('qlcd_wp_chatbot_dialogflow_project_key') : ''); ?></textarea>
1637 + </div>
2348 1638
2349 - <div id="qcld-show-more-wrapper-box">
2350 - <div class="qcld-show-more-text qcld-show-more-show-more-height">
2351 - <div class="row">
2352 - <div class="col-xs-12">
2353 - <h3 class="qcld-wpbot-main-tabs-title"><?php echo esc_attr('Predefined Intents'); ?></h3>
2354 - <div class="row">
2355 - <div class="col-xs-12">
2356 - <div class="form-group">
2357 - <h4 class="qc-opt-title">
2358 - <?php esc_html_e('Site Search', 'chatbot'); ?>
2359 - </h4>
2360 - <div class="cxsc-settings-blocks">
2361 - <input value="<?php echo esc_attr('1' ); ?>" id="disable_wp_chatbot_site_search" type="checkbox"
2362 - name="disable_wp_chatbot_site_search" <?php echo(get_option('disable_wp_chatbot_site_search') == 1 ? esc_attr('checked' ): ''); ?>>
2363 - <label for="disable_wp_chatbot_site_search">
2364 - <?php esc_html_e('Disable site search feature and button on Start Menu', 'chatbot'); ?>
2365 - </label>
2366 - </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>
2367 - </div>
2368 - <div class="cxsc-settings-blocks">
2369 - <input value="<?php echo esc_attr('1' ); ?>" id="enable_wp_chatbot_post_content" type="checkbox"
2370 - name="enable_wp_chatbot_post_content" <?php echo(get_option('enable_wp_chatbot_post_content') == 1 ? esc_attr('checked' ): ''); ?>>
2371 - <label for="enable_wp_chatbot_post_content">
2372 - <?php esc_html_e('Enable Searching Post Contents as well', 'chatbot'); ?>
2373 - </label>
2374 - </div>
2375 - </div>
2376 - </div>
2377 - </div>
2378 - <div class="form-group">
2379 - <h4 class="qc-opt-title">
2380 - <?php esc_html_e('Button Label', 'chatbot'); ?>
2381 - </h4>
2382 - <input type="text" class="form-control qc-opt-dcs-font"
2383 - name="qlcd_wp_chatbot_wildcard_site_search"
2384 - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_wildcard_site_search') != '' ? get_option('qlcd_wp_chatbot_wildcard_site_search') : 'Site Search')); ?> ">
2385 - </div>
2386 - <div class="row">
2387 - <div class="col-xs-12">
2388 - <div class="form-group">
2389 - <h4 class="qc-opt-title">
2390 - <?php esc_html_e('Call Me', 'chatbot'); ?>
2391 - </h4>
2392 - <div class="cxsc-settings-blocks">
2393 - <input value="<?php echo esc_attr('1'); ?>" id="disable_wp_chatbot_call_gen" type="checkbox"
2394 - name="disable_wp_chatbot_call_gen" <?php echo(get_option('disable_wp_chatbot_call_gen') == 1 ? esc_attr('checked' ): ''); ?>>
2395 - <label for="disable_wp_chatbot_call_gen">
2396 - <?php esc_html_e('Disable Call Me feature and button on Start Menu', 'chatbot'); ?>
2397 - </label>
2398 - </div>
2399 - </div>
2400 - </div>
2401 - </div>
2402 - <div class="form-group">
2403 - <h4 class="qc-opt-title">
2404 - <?php esc_html_e('Button Label', 'chatbot'); ?>
2405 - </h4>
2406 - <input type="text" class="form-control qc-opt-dcs-font"
2407 - name="qlcd_wp_chatbot_support_phone"
2408 - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_support_phone') != '' ? get_option('qlcd_wp_chatbot_support_phone') : 'Leave your number. We will call you back!')); ?> ">
2409 - </div>
2410 - <div class="row">
2411 - <div class="col-xs-12">
2412 - <div class="form-group">
2413 - <h4 class="qc-opt-title">
2414 - <?php esc_html_e('Email', 'chatbot'); ?>
2415 - </h4>
2416 - <div class="cxsc-settings-blocks">
2417 - <input value="<?php echo esc_attr('1' ); ?>" id="disable_wp_chatbot_feedback" type="checkbox"
2418 - name="disable_wp_chatbot_feedback" <?php echo esc_attr((get_option('disable_wp_chatbot_feedback') == 1 ? 'checked' : ''), 'chatbot' ); ?>>
2419 - <label for="disable_wp_chatbot_feedback">
2420 - <?php esc_html_e('Disable Email feature and button on Start Menu', 'chatbot'); ?>
2421 - </label>
2422 - </div>
2423 - </div>
2424 - </div>
2425 - </div>
2426 - <div class="form-group">
2427 - <h4 class="qc-opt-title">
2428 - <?php esc_html_e('Button Label', 'chatbot'); ?>
2429 - </h4>
2430 - <input type="text" class="form-control qc-opt-dcs-font"
2431 - name="qlcd_wp_chatbot_support_email"
2432 - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_support_email') != '' ? get_option('qlcd_wp_chatbot_support_email') : 'Send us Email')); ?> ">
2433 - </div>
2434 - <div class="row">
2435 - <div class="col-xs-12">
2436 - <div class="form-group">
2437 - <h4 class="qc-opt-title">
2438 - <?php esc_html_e('FAQ', 'chatbot'); ?>
2439 - </h4>
2440 - <div class="cxsc-settings-blocks">
2441 - <input value="<?php echo esc_attr('1' ); ?>" id="disable_wp_chatbot_faq" type="checkbox"
2442 - name="disable_wp_chatbot_faq" <?php echo(get_option('disable_wp_chatbot_faq') == 1 ? esc_attr('checked' ): ''); ?>>
2443 - <label for="disable_wp_chatbot_faq">
2444 - <?php esc_html_e('Disable FAQ feature and button on Start Menu', 'chatbot'); ?>
2445 - </label>
2446 - </div>
2447 - </div>
2448 - </div>
2449 - </div>
2450 - <div class="form-group">
2451 - <h4 class="qc-opt-title">
2452 - <?php esc_html_e('Button Label', 'chatbot'); ?>
2453 - </h4>
2454 - <input type="text" class="form-control qc-opt-dcs-font"
2455 - name="qlcd_wp_chatbot_wildcard_support"
2456 - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_wildcard_support') != '' ? get_option('qlcd_wp_chatbot_wildcard_support') : 'FAQ')); ?> ">
2457 - </div>
2458 -
2459 - </div>
2460 - </div>
2461 - </div>
2462 - <div class="qcld-show-more-show-more"><div class="Expandmore">Expand for More Options<span>+</span></div></div>
2463 - </div>
2464 - <div class="qc_menu_setup_area">
2465 - <h3 class="qcld-wpbot-main-tabs-title"><?php esc_html_e('Menu Sorting & Customization Area', 'chatbot'); ?></h3>
2466 - <p style="color:red"><?php esc_html_e('Always open a new Incognito window (Ctrl+Shit+N in chrome) to test after making any change.', 'chatbot'); ?></p>
2467 - <p><?php esc_html_e('To adjust the Active Menu ordering just drag it up or down.', 'chatbot'); ?><br>
2468 - <?php esc_html_e('To add a menu item in the', 'chatbot'); ?> <b><?php esc_html_e('Active Menu', 'chatbot'); ?> </b> <?php esc_html_e('simply drag a menu item from Available Menu column to the Active Menu. Double click to remove ', 'chatbot'); ?>.</p>
2469 - <p style="color:red;font-size:16px"><?php esc_html_e('**If you change any button label like FAQ, remove it from the active Menu Area. Add it back and save.', 'chatbot'); ?></p>
2470 -
2471 - <div class="qc_menu_area_box">
2472 - <div class="qc_menu_area">
2473 - <h4><?php esc_html_e( 'Acitve Menu', 'chatbot'); ?></h4>
2474 - <div class="qc_menu_area_container" id="qc_menu_area">
2475 - <?php
2476 - if(get_option('qc_wpbot_menu_order')!=''):
2477 - if( is_string( get_option('qc_wpbot_menu_order') ) ):
2478 - echo wp_kses_post(wp_kses_stripslashes(get_option('qc_wpbot_menu_order')));
2479 - endif;
2480 - else:
2481 - $site_search_label = get_option('qlcd_wp_chatbot_wildcard_site_search') != '' ? get_option('qlcd_wp_chatbot_wildcard_site_search') : 'Site Search';
2482 - $support_email_label = get_option('qlcd_wp_chatbot_support_email') != '' ? get_option('qlcd_wp_chatbot_support_email') : 'Send us Email.';
2483 - $support_phone_label = get_option('qlcd_wp_chatbot_support_phone') != '' ? get_option('qlcd_wp_chatbot_support_phone') : 'Leave your number. We will call you back!';
2484 - echo '<span class="qcld-chatbot-wildcard qc_draggable_item qcld-chatbot-site-search" data-wildcart="site_search">' . esc_attr($site_search_label) . '</span>';
2485 - echo '<span class="qcld-chatbot-suggest-email qc_draggable_item">' . esc_attr($support_email_label) . '</span>';
2486 - echo '<span class="qcld-chatbot-suggest-phone qc_draggable_item">' . esc_attr($support_phone_label) . '</span>';
2487 - endif;
2488 - ?>
2489 - </div>
2490 - </div>
2491 - <div class="qc_menu_list_area">
2492 - <h4><?php esc_html_e('Available Menu', 'chatbot'); ?></h4>
2493 - <div class="qc_menu_list_container">
2494 - <p><?php esc_html_e('Predefined Intents', 'chatbot'); ?></p>
2495 - <ul>
2496 - <li>
2497 - <?php if(get_option('disable_wp_chatbot_faq')==''): ?>
2498 - <span class="qcld-chatbot-wildcard qc_draggable_item" data-wildcart="support"><?php echo esc_attr(get_option('qlcd_wp_chatbot_wildcard_support')); ?></span>
2499 - <?php endif; ?>
2500 - </li>
2501 - <li>
2502 - <?php if(get_option('disable_wp_chatbot_site_search')==''): ?>
2503 - <span class="qcld-chatbot-wildcard qc_draggable_item qcld-chatbot-site-search" data-wildcart="site_search"><?php echo esc_attr(get_option('qlcd_wp_chatbot_wildcard_site_search')); ?></span>
2504 - <?php endif; ?>
2505 - </li>
2506 - <li>
2507 - <?php if(get_option('enable_wp_chatbot_messenger')=='1'): ?>
2508 - <span class="qcld-chatbot-wildcard qc_draggable_item" data-wildcart="messenger"><?php echo wp_kses_post(qcld_choose_random(maybe_unserialize(get_option('qlcd_wp_chatbot_messenger_label')))) ?></span>
2509 - <?php endif; ?>
2510 - </li>
2511 - <li>
2512 - <?php if(get_option('enable_wp_chatbot_whats')=='1'): ?>
2513 - <span class="qcld-chatbot-wildcard qc_draggable_item" data-wildcart="whatsapp"><?php echo wp_kses_post(qcld_choose_random(maybe_unserialize(get_option('qlcd_wp_chatbot_whats_label')))); ?></span>
2514 - <?php endif; ?>
2515 - </li>
2516 - <li>
2517 - <?php if(get_option('disable_wp_chatbot_feedback')==''): ?>
2518 - <span class="qcld-chatbot-suggest-email qc_draggable_item"><?php echo esc_attr(get_option('qlcd_wp_chatbot_support_email')); ?></span>
2519 - <?php endif; ?>
2520 - </li>
2521 - <li>
2522 - <?php if(get_option('disable_wp_chatbot_call_gen')==''): ?>
2523 - <span class="qcld-chatbot-suggest-phone qc_draggable_item" ><?php echo esc_attr(get_option('qlcd_wp_chatbot_support_phone')); ?></span>
2524 - <?php endif; ?>
2525 - </li>
2526 - </ul>
2527 - <?php
2528 - if(class_exists('Qcformbuilder_Forms_Admin')){
2529 -
2530 - global $wpdb;
1639 +
2531 1640
2532 - //To Do: Need to use prepared statement
1641 + <!-- End Dialogflow V2 Configuration -->
1642 + </div>
2533 1643
2534 - $results = $wpdb->get_results($wpdb->prepare("SELECT * FROM ". $wpdb->prefix."wfb_forms where 1 and type=%s",'primary')); // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, PluginCheck.Security.DirectDB.UnescapedDBParameter
2535 - if(!empty($results)){
2536 - ?>
2537 - <p><?php esc_html_e('Conversational Form', 'chatbot'); ?></p>
2538 - <ul>
2539 - <?php
2540 - foreach($results as $result){
2541 - $form = maybe_unserialize($result->config);
2542 - ?>
2543 - <li><span class="qcld-chatbot-wildcard qcld-chatbot-form qc_draggable_item" data-form="<?php echo esc_attr($form['ID']); ?>" ><?php echo esc_html($form['name']); ?></span></li>
2544 - <?php
2545 - }
2546 - ?>
2547 - </ul>
2548 - <?php
2549 - }
2550 - }
2551 - ?>
2552 - </div>
2553 - </div>
1644 + <div id="wp-chatbot-df-section-v1">
2554 1645
2555 - </div>
1646 + <div class="form-group">
1647 + <p style="color:red" class="qc-opt-title"><?php echo esc_html__('DialogFlow API V1 is going to be retired on October 23, 2019. Please move on to API V2 now so do not face any service interruption.', 'wpchatbot'); ?></>
1648 + </div>
2556 1649
2557 -
2558 - </div>
2559 - <input id="qc_wpbot_menu_order" type="hidden" name="qc_wpbot_menu_order" value='<?php echo esc_attr(wp_kses_stripslashes(get_option('qc_wpbot_menu_order'))); ?>' />
2560 - </div>
2561 - </div>
2562 - </div>
2563 - </div>
2564 - </section>
2565 - <section id="section-flip-7">
2566 - <!-- <div class="<?php // esc_attr_e( 'cxsc-settings-blocks-notic" style="<?php // echo esc_attr('background: #2271B1'); ?>">
2567 - <p class="<?php // esc_attr_e( 'd-ib"><?php // esc_html_e('New horizontal/wide template is now available. Select from Icons and Themes', 'chatbot'); ?>
2568 - </div> -->
2569 - <div class="top-section">
2570 - <div class="wp-chatbot-language-center-summmery">
2571 - <p>
2572 - <?php esc_html_e('DialogFlow as Artificial Intelligences Engine for wpwBot', 'chatbot'); ?>
2573 - </p>
2574 - </div>
2575 -
2576 - <div class="row wp-chatbot-language-center-summmery-checkbox">
2577 - <div class="col-xs-12">
2578 - <div class="wrapTexttop-lite">
2579 - <h3 class="qcld-wpbot-main-tabs-title"><?php esc_html_e('Enable DialogFlow as AI Engine to Detect Intent', 'chatbot'); ?> </h3>
2580 - <div class="alert alert-warning" role="alert">
2581 - <h5 style="color: #f00;font-weight:900"><?php esc_html_e('Please do not enable DialogFlow and OpenAI both at the same time.', 'chatbot'); ?> </h5>
2582 - <h5 style="color: #f00;font-weight:900 "><?php esc_html_e(' Enable either DialogFlow or OpenAI', 'chatbot'); ?> </h5>
2583 - </div>
2584 - <div class="cxsc-settings-blocks">
2585 - <input value="1" id="enable_wp_chatbot_dailogflow" type="checkbox"
2586 - name="enable_wp_chatbot_dailogflow" <?php echo(get_option('enable_wp_chatbot_dailogflow') == 1 ? esc_attr('checked' ): ''); ?>>
2587 - <label for="enable_wp_chatbot_dailogflow"><?php esc_html_e('Enable DialogFlow AI Engine to process Natural Language commands from users.', 'chatbot'); ?> </label> <br>
2588 -
2589 - </div>
2590 - </div>
2591 -
2592 -
2593 - <div class="qcld-dialogflow-enable-notice">If you Enable DialogFlow but do not configure it properly, the ChatBot will not respond.</div>
2594 - </div>
2595 -
2596 - <div class="col-xs-12" id="wp-chatbot-dialflow-section">
2597 - <p><?php esc_html_e('Log in to DialogFlow Console from', 'chatbot'); ?>
2598 - <a class="wpbot_df_instruction" href="<?php echo esc_url('https://dialogflow.com/', 'chatbot'); ?>"
2599 - target="_blank">
2600 - <?php esc_html_e('Here', 'chatbot'); ?></a>
2601 - <?php esc_html_e('with your gmail account.', 'chatbot'); ?> <a class="wpbot_df_instruction" href="<?php echo esc_url(QCLD_wpCHATBOT_PLUGIN_URL.'download/wpwBot.zip'); ?>" download ><?php esc_html_e('Download', 'chatbot'); ?></a> <?php esc_html_e('the agent training data and import from DialogFlow->Settings->Export and Import tab. You can add your own intents in that agent but do not modify our following training intents which are', 'chatbot'); ?> <b><?php esc_html_e('email, email subscription, faq, get email, get name, help, phone, reset, site search and start.', 'chatbot'); ?></b> </p>
2602 - <h4 class="qc-opt-title"><?php esc_html_e('DialogFlow API Version', 'chatbot'); ?></h4>
2603 - <div class="form-group">
2604 - <label class="radio-inline ">
2605 - <input id="wp-chatbot-df-api" type="radio"
2606 - name="wp_chatbot_df_api"
2607 - value="v2" checked>
2608 - <?php esc_html_e('Dialogflow API V2', 'chatbot'); ?> </label>
2609 - </div>
2610 - <div id="wp-chatbot-df-section-v2" style="display:block">
2611 - <!-- Dialogflow V2 Configuration -->
2612 -
2613 - <?php if(!file_exists(QCLD_wpCHATBOT_GC_DIRNAME.'/autoload.php')): ?>
2614 - <div class="form-group"> <br>
2615 - <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>
2616 - <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>
2617 - <div class="qcld-wpbot-gcdownload-area">
2618 - <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>
2619 - <?php
2620 - if(!is_writable(QCLD_wpCHATBOT_GC_ROOT)){
2621 - echo '<span style="color:red;font-size: 12px; "><b>'.esc_html('wp-content').' </b> '.esc_html('folder is not writable.').'</span>';
2622 - }
2623 - ?>
2624 - <br>
2625 - <br>
2626 - <p><?php esc_html_e('Alternatively, If the download operation fails for some reason like folder permission or server timeout issue then you can manually upload the ', 'chatbot'); ?> <u title="Google Client"><?php esc_html_e('GC', 'chatbot'); ?></u> <?php esc_html_e('package by following some simple steps.', 'chatbot'); ?></p>
2627 - <p><?php esc_html_e('1. Download GC package from:', 'chatbot'); ?> <a href="<?php echo esc_url('https://github.com/qcloud/gc/archive/master.zip'); ?>" target="_blank"><?php esc_attr_e('https://github.com/qcloud/gc/archive/master.zip', 'chatbot'); ?></a></p>
2628 - <p><?php esc_html_e('2. Unzip the', 'chatbot'); ?> <b><?php esc_html_e('wpbotgc.zip', 'chatbot'); ?></b> <?php esc_html_e('inside to your computer.', 'chatbot'); ?></p>
2629 - <p><?php esc_html_e('3. Create a folder with name ', 'chatbot'); ?><b><?php esc_html_e('wpbot-dfv2-client', 'chatbot'); ?></b> <?php esc_html_e('under ', 'chatbot'); ?><b><?php esc_html_e('wp-content', 'chatbot'); ?></b> <?php esc_html_e('into your server.', 'chatbot'); ?></p>
2630 - <p><?php esc_html_e('4. Upload the upziped files and folders into', 'chatbot'); ?> <b><?php esc_html_e('wpbot-dfv2-client', 'chatbot'); ?></b><?php esc_html_e(' via FTP.', 'chatbot'); ?></p>
2631 - <div class="qcld_wpbot_download_statuses"> </div>
2632 - </div>
2633 - <br>
2634 - </div>
2635 - <?php else: ?>
2636 - <div class="form-group">
2637 - <h4 class="qc-opt-title" style="color:green "><?php esc_html_e('Google Client Package is Installed on Your Website.', 'chatbot'); ?></h4>
2638 - </div>
2639 - <?php endif; ?>
2640 - <div class="form-group">
2641 - <h4 class="qc-opt-title" ><?php esc_html_e('Please follow along with this', 'chatbot'); ?> <a href="<?php echo esc_url('https://www.wpbot.pro/dialogflow-integration'); ?>" target="_blank"><?php esc_html_e('tutorial.', 'chatbot'); ?> </a><?php esc_html_e(' It will help you to create a project id, private key and integrate WPBot with Dialogflow. For DialogFlow agent region, try choosing any region other than the EU region which has known issues.', 'chatbot'); ?> </h4>
2642 - </div>
2643 - <div class="form-group">
2644 - <h4 class="qc-opt-title"><?php esc_html_e('DialogFlow Project ID', 'chatbot'); ?></h4>
2645 - <p><?php esc_html_e('You can follow the', 'chatbot'); ?> <a href="<?php echo esc_url('https://www.youtube.com/watch?v=qY-EHFY2wH8" '); ?>" target="_blank"><?php esc_html_e('tutorial', 'chatbot'); ?> </a><?php esc_html_e(' to get the Project ID.', 'chatbot'); ?> </p>
2646 - <input type="text" class="form-control qc-opt-dcs-font"
2647 - name="qlcd_wp_chatbot_dialogflow_project_id"
2648 - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_dialogflow_project_id') != '' ? get_option('qlcd_wp_chatbot_dialogflow_project_id') : '')); ?>" placeholder="<?php echo esc_attr('DialogFlow Project ID'); ?> ">
2649 - </div>
2650 - <?php
2651 -
2652 - $placeholderPrivatekey = '{
2653 - "type": "service_account",
2654 - "project_id": "YOUR_PROJECT_ID",
2655 - "private_key_id": "YOUR_PRIVATE_KEY_ID",
2656 - "private_key": "-----BEGIN PRIVATE KEY-----\nYOUR_PRIVATE_KEY\n-----END PRIVATE KEY-----\n",
2657 - "client_email": "YOUR_CLIENT_EMAIL",
2658 - "client_id": "YOUR_CLIENT_ID",
2659 - "auth_uri": "https://accounts.google.com/o/oauth2/auth",
2660 - "token_uri": "https://oauth2.googleapis.com/token",
2661 - "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
2662 - "client_x509_cert_url": "YOUR_CLIENT_X509_CERT_URL"
2663 - }';
2664 -
2665 - ?>
2666 - <div class="form-group">
2667 - <h4 class="qc-opt-title"><?php esc_html_e('Private Key', 'chatbot'); ?></h4>
2668 - <p><?php esc_html_e("Paste your google service account's private key JSON file's contents (string) here", 'chatbot'); ?> <a href="<?php echo esc_url('https://www.youtube.com/watch?v=qY-EHFY2wH8'); ?>" target="_blank"><?php esc_html_e('tutorial', 'chatbot'); ?></a> <?php esc_html_e('to get private key JSON file. ', 'chatbot'); ?></p>
2669 - <textarea class="form-control" rows="20" name="qlcd_wp_chatbot_dialogflow_project_key" placeholder='<?php echo esc_attr($placeholderPrivatekey); ?>'><?php echo esc_html(get_option('qlcd_wp_chatbot_dialogflow_project_key') != '' ? get_option('qlcd_wp_chatbot_dialogflow_project_key') : ''); ?></textarea>
2670 - </div>
2671 -
2672 - <!-- End Dialogflow V2 Configuration -->
2673 - </div>
2674 - <div class="form-group">
2675 - <h4 class="qc-opt-title"><?php esc_html_e('Please Click the Button Below to Test Dialogflow Connection.', 'chatbot'); ?> </h4>
2676 - <p style="color:red "><?php esc_html_e('*Save settings before pressing Test Dialogflow Connection', 'chatbot'); ?><br>
2677 - <?php esc_html_e('*You must have owner permission for the service account your are using in Dialogflow agent.', 'chatbot'); ?></p>
2678 - <div class="cxsc-settings-blocks">
2679 - <button class="btn btn-primary" id="qc_wpbot_df_status"><?php esc_html_e('Test Dialogflow Connection', 'chatbot'); ?></button>
2680 - <div class="qcwp_df_status"></div>
2681 - </div>
2682 - </div>
2683 - <br>
2684 - <div class="form-group">
2685 - <h4 class="qc-opt-title">
2686 - <?php esc_html_e('DialogFlow Default reply', 'chatbot'); ?>
2687 - </h4>
2688 - <input type="text" class="form-control qc-opt-dcs-font"
1650 + <div class="form-group">
1651 + <h4 class="qc-opt-title"><?php echo esc_html__('DialogFlow client Access Token', 'wpchatbot'); ?></h4>
1652 + <input type="text" class="form-control qc-opt-dcs-font"
1653 + name="qlcd_wp_chatbot_dialogflow_client_token"
1654 + value="<?php echo(get_option('qlcd_wp_chatbot_dialogflow_client_token') != '' ? get_option('qlcd_wp_chatbot_dialogflow_client_token') : ''); ?>" placeholder="<?php echo esc_html__('DialogFlow Client Access Token', 'wpchatbot'); ?>">
1655 + </div>
1656 + </div>
1657 + <div class="form-group">
1658 + <h4 class="qc-opt-title"><?php echo esc_html__('Please Click the Button Below to Test Dialogflow Connection.', 'wpchatbot'); ?> </h4>
1659 + <p style="color:red"><?php echo esc_html__('*Save settings before pressing Test Dialogflow Connection', 'wpchatbot'); ?><br>
1660 + <?php echo esc_html__('*You must have owner permission for the service account your are using in Dialogflow agent.', 'wpchatbot'); ?></p>
1661 + <div class="cxsc-settings-blocks">
1662 + <button class="btn btn-primary" id="qc_wpbot_df_status">Test Dialogflow Connection</button>
1663 + <div class="qcwp_df_status"></div>
1664 + </div>
1665 + </div>
1666 + <br>
1667 + <div class="form-group">
1668 + <h4 class="qc-opt-title"><?php _e('DialofFlow Default reply', 'wpchatbot'); ?></h4>
1669 + <input type="text" class="form-control qc-opt-dcs-font"
2689 1670 name="qlcd_wp_chatbot_dialogflow_defualt_reply"
2690 - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_dialogflow_defualt_reply') != '' ? get_option('qlcd_wp_chatbot_dialogflow_defualt_reply') : 'Sorry, I did not understand you. You may browse')); ?>" placeholder="<?php esc_html_e('DialogFlow default reply', 'chatbot'); ?> ">
2691 - </div>
2692 - <div class="form-group">
2693 - <h4 class="qc-opt-title"><?php esc_html_e('DialogFlow Agent Language (Ex: en)', 'chatbot'); ?></h4>
2694 - <input type="text" class="form-control qc-opt-dcs-font"
1671 + value="<?php echo(get_option('qlcd_wp_chatbot_dialogflow_defualt_reply') != '' ? get_option('qlcd_wp_chatbot_dialogflow_defualt_reply') : 'Sorry, I did not understand you. You may browse'); ?>" placeholder="<?php _e('DialogFlow default reply', 'wpchatbot'); ?>">
1672 + </div>
1673 +
1674 +
1675 + <div class="form-group">
1676 + <h4 class="qc-opt-title"><?php echo esc_html__('DialogFlow Agent Language (Ex: en)', 'wpchatbot'); ?></h4>
1677 + <input type="text" class="form-control qc-opt-dcs-font"
2695 1678 name="qlcd_wp_chatbot_dialogflow_agent_language"
2696 - value="<?php echo esc_attr((get_option('qlcd_wp_chatbot_dialogflow_agent_language') != '' ? get_option('qlcd_wp_chatbot_dialogflow_agent_language') : 'en')); ?>" placeholder="<?php esc_html_e('DialogFlow Agent Language', 'chatbot'); ?>">
2697 - </div>
2698 - </div>
2699 - </div>
2700 - </div>
2701 - </section>
1679 + value="<?php echo (get_option('qlcd_wp_chatbot_dialogflow_agent_language') != '' ? get_option('qlcd_wp_chatbot_dialogflow_agent_language') : 'en'); ?>" placeholder="<?php echo esc_html__('DialogFlow Agent Language', 'wpchatbot'); ?>">
1680 + </div>
1681 +
1682 + </div>
1683 + </div>
1684 + </div>
1685 +
1686 + </section>
1687 + <!--<section id="section-flip-10">
1688 + <div class="wp-chatbot-language-center-summmery">
1689 + <p><?php _e('Enable the Mobile App feature ONLY if you bought ', 'wpchatbot'); ?> <a target="_blank" href="https://www.quantumcloud.com/products/wpcommerce-chatbot-wpwbot/#app"><?php _e(' the Mobile App Addon.', 'wpchatbot'); ?></a>
1690 + </div>
1691 + <div class="top-section">
1692 + <div class="row">
1693 + <div class="col-xs-12">
1694 + <h4 class="qc-opt-title"><?php _e('Mobile App Pages', 'wpchatbot'); ?> </h4>
1695 + <div class="cxsc-settings-blocks">
1696 + <input value="1" id="wp_chatbot_app_pages" type="checkbox"
1697 + name="wp_chatbot_app_pages" <?php echo(get_option('wp_chatbot_app_pages') == 1 ? 'checked' : ''); ?>>
1698 + <label for="wp_chatbot_app_pages"><?php _e('Create pages for WpBot Mobile App', 'wpchatbot'); ?> </label>
1699 + </div>
1700 + <br>
1701 + <p class="qc-opt-title-font"><?php _e('Following pages will be created to use in', 'wpchatbot'); ?> <strong> <?php _e('WpBot', 'wpchatbot'); ?> </strong> <?php _e(' Android or IOS Mobile App', 'wpchatbot'); ?>.</p>
1702 + <ol>
1703 + <li><?php _e('WpBot Mobile App', 'wpchatbot'); ?></li>
1704 + <li><?php _e('WpBot App Checkout', 'wpchatbot'); ?></li>
1705 + <li><?php _e('WpBot App Order Thank You', 'wpchatbot'); ?></li>
1706 + </ol>
1707 + <p class="qc-opt-title-font"><?php _e('Follow the', 'wpchatbot'); ?> <strong> <?php _e('Documentation', 'wpchatbot'); ?> </strong> <?php _e('to build & publish a Mobile Application (Android or IOS ) for your store using any of', 'wpchatbot'); ?> </p>
1708 + <ol>
1709 + <li><?php _e('WpBot Ionic FrameWork package', 'wpchatbot'); ?></li>
1710 + <li><?php _e('WpBot PhoneGap package', 'wpchatbot'); ?></li>
1711 + </ol>
1712 + </div>
1713 + </div>
1714 + </div>
1715 +
1716 + </section>-->
2702 1717
2703 - <section id="section-flip-9">
2704 - <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>
2705 - <?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>
2706 -
2707 - <div class="qcld-recommendbot-conv-feature">
2708 - <?php include_once QCLD_wpCHATBOT_PLUGIN_DIR_PATH . '/qcld-recommendbot-plugin.php'; ?>
2709 - </div>
2710 - <div class="qcld-seo-help-feature">
2711 - <h3><?php esc_html_e('What Can You Do with it?', 'chatbot'); ?></h3>
2712 - <p><?php esc_html_e('Conversation Forms Pro allows you to create a wide variety of forms, that might include:', 'chatbot'); ?></p>
2713 - <ul>
2714 - <li><?php esc_html_e('🚀 Conditional Menu Driven Conversations', 'chatbot'); ?></li>
2715 - <li><?php esc_html_e('🚀 Standard Contact Forms', 'chatbot'); ?></li>
2716 - <li><?php esc_html_e('🚀 Dynamic, conditional Forms – where fields can change based on the user selections', 'chatbot'); ?></li>
2717 - <li><?php esc_html_e('🚀 Job Application Forms', 'chatbot'); ?></li>
2718 - <li><?php esc_html_e('🚀 Lead Capture Forms', 'chatbot'); ?></li>
2719 - <li><?php esc_html_e('🚀 Various types of Calculators', 'chatbot'); ?></li>
2720 - <li><?php esc_html_e('🚀 Feedback Survey Forms etc.', 'chatbot'); ?></li>
2721 - <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>
2722 - </ul>
2723 -
2724 - <h3><?php esc_html_e('How it Works?', 'chatbot'); ?></h3>
2725 - <p><?php esc_html_e('After creating a Conversation or form, you can show it in the ChatBot in different ways.', 'chatbot'); ?></p>
2726 - <ul>
2727 - <li><?php esc_html_e('🚀 Add it to the Start menu', 'chatbot'); ?></li>
2728 - <li><?php esc_html_e('🚀 Invoke the form intent with a system command to start inside ChatBot any time', 'chatbot'); ?></li>
2729 - <li><?php esc_html_e('🚀 Load the single intent/form inside a ChatBot widget on any page', 'chatbot'); ?></li>
2730 - <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>
2731 - <li><?php esc_html_e('🚀 Trigger another conversational form or Intent like Live Chat using conditions', 'chatbot'); ?></li>
2732 - </ul>
2733 - <h3><?php esc_html_e('Feature Highlights', 'chatbot'); ?></h3>
2734 -
1718 +
1719 + <section id="section-flip-7">
1720 + <div class="top-section">
1721 + <div class="row">
1722 + <div class="col-xs-12">
2735 1723
2736 - <div class="qcld-seo-help-feature-left">
2737 - <ul>
2738 - <li><?php esc_html_e('🚀 Easy to use visual drag and drop conversations and form builder', 'chatbot'); ?></li>
2739 - <li><?php esc_html_e('🚀 Create conversational form or just conversation using the HTML element', 'chatbot'); ?></li>
2740 - <li><?php esc_html_e('🚀 Add text fields, single option selection or multiple option selection with checkboxes', 'chatbot'); ?></li>
2741 - <li><?php esc_html_e('🚀 Add HTML contents inside the conversation forms', 'chatbot'); ?></li>
2742 - <li><?php esc_html_e('🚀 eMail conversations or forms to the admin at the end of conversation', 'chatbot'); ?></li>
2743 - <li><?php esc_html_e('🚀 Set different recipient email addresses for different conversation forms', 'chatbot'); ?></li>
2744 - <li><?php esc_html_e('🚀 Clone form', 'chatbot'); ?></li>
2745 - <li><?php esc_html_e('🚀 Export/Import Forms', 'chatbot'); ?></li>
2746 - <li><?php esc_html_e('🚀 Form Entries saved into database', 'chatbot'); ?></li>
2747 - <li><?php esc_html_e('🚀 Export Form Entries as CSV', 'chatbot'); ?></li>
2748 - <li><?php esc_html_e('🚀 12 Ready Form Templates to Get Started with (Contact Form, Feedback form. Survey Form, BMR Calculator, Appointment Request, Booking Form, Room Area Calculator)', 'chatbot'); ?></li>
2749 - <li><?php esc_html_e('🚀 11 Input Fields (Simple Text, Hidden, Email Address, Number, URL, Calculation, Select Option, Checkbox, DateTime Picker, HTML, File Upload, OpenAI Instructions)', 'chatbot'); ?></li>
2750 - <li><?php esc_html_e('🚀 Processor – Auto Responder – Send an auto response e-mail for form submission', 'chatbot'); ?></li>
2751 - <li><?php esc_html_e('🚀 Unlimited Conditional Field creation', 'chatbot'); ?></li>
2752 - <li><?php esc_html_e('🚀 Trigger another conversational form or Intent like Live Chat using conditions (**NEW)', 'chatbot'); ?></li>
2753 - <li><?php esc_html_e('🚀 Unlimited Variables creation', 'chatbot'); ?></li>
2754 - <li><?php esc_html_e('🚀 Form Revisions', 'chatbot'); ?></li>
2755 - <li><?php esc_html_e('🚀 Create system command to initiate form for ChatBot', 'chatbot'); ?></li>
2756 - <li><?php esc_html_e('🚀 Add form to Start Menu', 'chatbot'); ?></li>
2757 - <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>
2758 - </ul>
2759 - </div>
2760 -
2761 - </div>
2762 - </section>
1724 + <?php wp_enqueue_style( 'qcpd-google-font-lato', 'https://fonts.googleapis.com/css?family=Lato' ); ?>
1725 + <?php wp_enqueue_style( 'qcpd-style-addon-page', QCLD_wpCHATBOT_PLUGIN_URL.'qc-support-promo-page/css/style.css' ); ?>
1726 + <?php wp_enqueue_style( 'qcpd-style-responsive-addon-page', QCLD_wpCHATBOT_PLUGIN_URL.'qc-support-promo-page/css/responsive.css' ); ?>
2763 1727
2764 - <section id="section-flip-13">
2765 - <!-- <div class="<?php // esc_attr_e( 'cxsc-settings-blocks-notic" style="<?php // echo esc_attr('background: #2271B1'); ?>">
2766 - <p class="<?php // esc_attr_e( 'd-ib"><?php // esc_html_e('New horizontal/wide template is now available. Select from Icons and Themes', 'chatbot'); ?>
2767 - </div> -->
2768 - <div class="top-section">
2769 - <div class="row">
2770 - <div class="col-xs-12">
2771 - <h4 class="qc-opt-dcs"><?php esc_html_e('You can paste or write your custom css here.', 'chatbot'); ?></h4>
2772 - <textarea name="wp_chatbot_custom_css"
2773 - class="form-control wp-chatbot-custom-css"
2774 - cols="10"
2775 - rows="16"><?php echo esc_textarea(get_option('wp_chatbot_custom_css')); ?></textarea>
2776 - </div>
2777 - </div>
2778 - <!-- row-->
2779 - </div>
2780 - </section>
1728 +<div class="qc_support_container"><!--qc_support_container-->
2781 1729
2782 - <section id="section-flip-11">
2783 - <div class="cxsc-settings-blocks-addon">
2784 - <?php esc_html_e('Harness the power of AI to generate SEO Freindly contents quickly. Install our SEO Help plugin with One Click Turbo AI Content Writer, YouTube Subtitle to SEO Article Generator with AI, Global AI writing panel, AI Image Generator and RSS Feed AutoBlogging with OpenAI or Google Gemini.', 'chatbot'); ?></div>
2785 -
2786 - <div class="qcld-recommendbot-conv-feature">
2787 - <?php include_once QCLD_wpCHATBOT_PLUGIN_DIR_PATH . '/qcld-recommendbot-ai-plugin.php'; ?>
1730 +<div class="qc_tabcontent clearfix-div">
1731 +<div class="qc-row">
1732 + <div class="wpbot-chatbot-pro-link">
1733 + <a href="https://www.quantumcloud.com/products/chatbot-for-wordpress/" target="_blank" >Get the ChatBot Pro <img src="<?php echo esc_url(QCLD_wpCHATBOT_PLUGIN_URL.'images/wp-bot-logo.png'); ?>" /></a>
1734 + </div>
1735 + <h2 class="plugin-title wpbot_page_title" style="text-align:center" >Extend <a href="https://www.quantumcloud.com/products/chatbot-for-wordpress/" target="_blank">WPBot Pro</a> and give it more Super Powers</h2>
1736 + <p style="text-align:center">Following AddOns and Themes are available for the <a href="https://www.quantumcloud.com/products/chatbot-for-wordpress/" target="_blank">WPBot pro!</a></p>
1737 +
1738 + <div class="qc-column-6"><!-- qc-column-4 -->
1739 + <!-- Feature Box 1 -->
1740 + <div class="support-block support-block-custom">
1741 + <div class="support-block-img">
1742 + <img src="<?php echo esc_url(QCLD_wpCHATBOT_PLUGIN_URL.'images/conversational-forns.png'); ?>" alt="">
1743 + </div>
1744 + <div class="support-block-info">
1745 + <h4><a href="#">Conversational Form Addon</a></h4>
1746 + <p>Use the Conversational form builder AddOn to create conversations and forms for a native WordPress ChatBot experience without any 3rd party integrations. Conversational forms can also be emailed to you.</p>
1747 + <p><a href="https://wordpress.org/plugins/conversational-forms/" target="_blank">Download Free</a>|<a href="<?php echo esc_url('https://www.quantumcloud.com/products/conversations-and-form-builder/'); ?>" target="_blank">Download Pro</a></p>
2788 1748
2789 - </div>
2790 - <div class="qcld-seo-help-feature">
2791 - <h3><?php esc_html_e('SEO Help Features', 'chatbot'); ?></h3>
2792 - <h4><?php esc_html_e('OpenAI ChatGPT or Google Gemini Powered Content Generator', 'chatbot'); ?></h4>
2793 - <p>
2794 - <?php esc_html_e('🚀 Supports both Google Gemini AI and OpenAI (ChatGPT)', 'chatbot'); ?><br>
2795 - <?php esc_html_e('🚀 Generate Text Contents for your Blog with the Click of a Button – Turbo content generator', 'chatbot'); ?><br>
2796 - <?php esc_html_e('🚀 Generate Single Articles directly from your Blog post edit page', 'chatbot'); ?><br>
2797 - <?php esc_html_e('🚀 Generate BULK articles and schedule each article’s publish time', 'chatbot'); ?><br>
2798 - <?php esc_html_e('🚀 Select to auto publish or save in draft', 'chatbot'); ?><br>
2799 - <?php esc_html_e('🚀 Generate summeries for Blog Posts automatically using OpenAI ChatGPT. Automatic content summary (summarizer) or TLDR can be helpful for both your readers and SEO. Blog Post Article Summaries are automatically added to your contents and can make your content look fresh to Search Engines if you enable Generate multiple summaries and use them randomly.', 'chatbot'); ?><br>
2800 - <?php esc_html_e('🚀 Automatically Create and Insert AI Images inside your articles', 'chatbot'); ?><br>
2801 - <?php esc_html_e('🚀 Options to fine tune your articles (How many headings?, Heading Tag, Writing Style, Writing Tone, Image Size, Language, Add Image, Add Tagline, Add Introduction, Add Conclusion, Add Faq, Anchor Text, Target URL, Add Call-to-Action, Call-to-Action Position, Add Keywords, Keywords to Avoid, Make Keywords Bold etc.)', 'chatbot'); ?><br>
2802 - <?php esc_html_e('🚀 A Collection of hundreds of ready Prompts for your ideas', 'chatbot'); ?><br>
2803 - <?php esc_html_e('🚀 Generate royalty free AI Images with many different options (Artist, Style, Photography, Lighting, Subject, Camera, Composition, Resolution, Color, Special Effects, Size9(up to 4K))', 'chatbot'); ?><br>
2804 - <?php esc_html_e('🚀 Save AI Generated images to Media Library with one click', 'chatbot'); ?><br>
2805 - <?php esc_html_e('🚀 AI Image Gutenberg Block. Create and Insert Image directly into your blog post', 'chatbot'); ?><br>
2806 - <?php esc_html_e('🚀 Generate Meta Description with one click', 'chatbot'); ?><br>
2807 - <?php esc_html_e('🚀 Add meta description tag automatically to the page source', 'chatbot'); ?><br>
2808 - <?php esc_html_e('🚀 OpenAI playground', 'chatbot'); ?><br>
2809 - <?php esc_html_e('🚀 ChatGPT and Google Gemini in WordPress backend', 'chatbot'); ?><br>
2810 - <?php esc_html_e('🚀 Humanize article so they do not sound AI written', 'chatbot'); ?></p>
2811 - <h4><?php esc_html_e('YouTube Video Subtitle to SEO Article Generator with AI', 'chatbot'); ?></h4>
2812 - <p>
2813 - <?php esc_html_e('🚀 Generate Articles from YouTube Subtitles. Works Best for Long form Videos', 'chatbot'); ?><br>
2814 - <?php esc_html_e('🚀 Rewrite subtitle to a SEO Friendly Blog Article', 'chatbot'); ?><br>
2815 - <?php esc_html_e('🚀 Fine tune your articles (How many headings?, Heading Tag, Writing Style, Writing Tone, Image Size, Language, Add Image, Add Tagline, Add Introduction, Add Conclusion, Add Faq, Anchor Text, Target URL, Add Call-to-Action, Call-to-Action Position, Add Keywords, Keywords to Avoid, Make Keywords Bold etc.)', 'chatbot'); ?><br>
2816 - <?php esc_html_e('🚀 Directly Generate a Blog Post Draft', 'chatbot'); ?><br>
2817 - <?php esc_html_e('🚀 Humanize article so they do not sound AI written', 'chatbot'); ?></p>
2818 - <h4><?php esc_html_e('RSS Feed to Post, Auto Blogging', 'chatbot'); ?></h4>
2819 - <p>
2820 - <?php esc_html_e('🚀 Automatically Import and Convert RSS feed items to WordPress pages, posts, and custom post type.', 'chatbot'); ?><br>
2821 - <?php esc_html_e('🚀 Automatically import and aggregate unlimited RSS feeds from unlimited sources', 'chatbot'); ?><br>
2822 - <?php esc_html_e('🚀 Schedule RSS Feed to Post according to your need for Autoblogging', 'chatbot'); ?><br>
2823 - <?php esc_html_e('🚀 Rewrite RSS feeds with OpenAI AI before publishing to prevent duplicate contents', 'chatbot'); ?></p>
2824 - <h4><?php esc_html_e('SEO Features', 'chatbot'); ?></h4>
2825 - <p>
2826 - <?php esc_html_e('🚀 Outputs all the essential meta tags that are essential for Search Engine Optimization', 'chatbot'); ?><br>
2827 - <?php esc_html_e('🚀 Meta tags can be set for each Post type', 'chatbot'); ?><br>
2828 - <?php esc_html_e('🚀 Configure Meta Tags Globally and Per Post basis', 'chatbot'); ?><br>
2829 - <?php esc_html_e('🚀 Generate and Add Meta Description with one click', 'chatbot'); ?><br>
2830 - <?php esc_html_e('🚀 Set the OGP information required for Social Networking Websites such as Facebook and Twitter.', 'chatbot'); ?><br>
2831 - <?php esc_html_e('🚀 Customize the meta tag information individually for each post, page, and term.', 'chatbot'); ?><br>
2832 - <?php esc_html_e('🚀 Easily set the Google Analytics measurement code and Webmaster Tools verification code.', 'chatbot'); ?><br>
2833 - <?php esc_html_e('🚀 Works out of the box', 'chatbot'); ?></p>
2834 - <h4><?php esc_html_e('SEO Optimized Images', 'chatbot'); ?></h4>
2835 - <p>
2836 - <?php esc_html_e('🚀 Dynamically insert SEO-Friendly “alt” and “title” attributes to your images. Simply activate the plugin, provide the pattern, and you are ready to go.', 'chatbot'); ?><br>
2837 - <?php esc_html_e('🚀 Dynamically replaces the “alt” and “title” tags. It does not make any changes to the database. This means that if you deactivate the plugin, everything will return to the original settings.', 'chatbot'); ?><br>
2838 - <?php esc_html_e('🚀 Insert an image name, a post title and a post category in the “title” and “alt” attributes of the image.', 'chatbot'); ?></p>
2839 - <h4><?php esc_html_e('No-Index Features', 'chatbot'); ?></h4>
2840 - <p>
2841 - <?php esc_html_e('🚀 Easily add a meta-tag for robots noindex tags to parts of your WordPress site as necessary from a central location', 'chatbot'); ?>
2842 - </p>
2843 - <h5><?php esc_html_e('1. Pages and Posts', 'chatbot'); ?></h5>
2844 - <p>
2845 - <?php esc_html_e('🚀 Front Page: Block the indexing of the website’s front page.', 'chatbot'); ?><br>
2846 - <?php esc_html_e('🚀 Home Page: Block the indexing of the website’s home page.', 'chatbot'); ?><br>
2847 - <?php esc_html_e('🚀 Page: Block the indexing of the site’s pages.', 'chatbot'); ?><br>
2848 - <?php esc_html_e('🚀 Privacy Policy Page: Block the indexing of the website’s privacy policy page.', 'chatbot'); ?><br>
2849 - <?php esc_html_e('🚀 Single Post: Block the indexing of a post on the site.', 'chatbot'); ?>
2850 - </p>
2851 - <h5><?php esc_html_e('2. Taxonomies', 'chatbot'); ?></h5>
2852 - <p>
2853 - <?php esc_html_e('🚀 Categories: Block the indexing of the website categories.', 'chatbot'); ?><br>
2854 - <?php esc_html_e('🚀 Tags: Block the indexing of the website’s tags.', 'chatbot'); ?>
2855 - </p>
2856 - <h5><?php esc_html_e('3. Dates', 'chatbot'); ?></h5>
2857 - <p>
2858 - <?php esc_html_e('🚀 Date: Block the indexing based on any date-based archive pages.', 'chatbot'); ?><br>
2859 - <?php esc_html_e('🚀 Day, Month, Time, Year: Block the indexing for daily, monthly, by time, or yearly archive of the site.', 'chatbot'); ?>
2860 - </p>
2861 - <h5><?php esc_html_e('4. Archives', 'chatbot'); ?></h5>
2862 - <p>
2863 - <?php esc_html_e('🚀 Archive: Block the indexing of any type of Archive page. Category, Tag, Author and Date based pages etc. are all types of Archives.', 'chatbot'); ?><br>
2864 - <?php esc_html_e('🚀 Author: Block the indexing of the author’s page, where the author’s publications appear.', 'chatbot'); ?><br>
2865 - <?php esc_html_e('🚀 Post Type Archive: Block the indexing of any post type page.', 'chatbot'); ?>
2866 - </p>
2867 - <h5><?php esc_html_e('5. Pagination and Search', 'chatbot'); ?></h5>
2868 - <p>
2869 - <?php esc_html_e('🚀 Pagination: Block the indexing of the pagination, i.e. all pages other than the main page of an archive.', 'chatbot'); ?><br>
1749 + </div>
1750 + </div>
1751 + </div><!--/qc-column-4 -->
1752 +
1753 + <div class="qc-column-6"><!-- qc-column-4 -->
1754 + <!-- Feature Box 1 -->
1755 + <div class="support-block support-block-custom">
1756 + <div class="support-block-img">
1757 + <a href="<?php echo esc_url('https://www.quantumcloud.com/products/chatbot-addons/'); ?>" target="_blank"> <img src="<?php echo esc_url(QCLD_wpCHATBOT_PLUGIN_URL.'images/woo-addon-256.png'); ?>" alt=""></a>
1758 + </div>
1759 + <div class="support-block-info">
1760 + <h4><a href="<?php echo esc_url('https://www.quantumcloud.com/products/chatbot-addons/'); ?>" target="_blank">Woocommerce Addon</a></h4>
1761 + <p>Utilize the Chatbot on your Woocommerce website and make a Woocommerce Chatbot with zero configuration</p>
2870 1762
2871 - <?php esc_html_e('🚀 Search: Block the indexing of the internal search result pages.', 'chatbot'); ?>
2872 - </p>
2873 - <h5><?php esc_html_e('6. Attachments and Previews', 'chatbot'); ?></h5>
2874 - <p>
2875 - <?php esc_html_e('🚀 Attachment: Block the indexing of an attachment document to a post or page.', 'chatbot'); ?><br>
2876 - <?php esc_html_e('🚀 Customize Preview: Block the indexing when a content is being displayed in customize mode', 'chatbot'); ?><br>
2877 - <?php esc_html_e('🚀 Preview: Block the indexing when a single post is being displayed in draft mode.', 'chatbot'); ?>
2878 - </p>
2879 - <h5><?php esc_html_e('7. Error Page', 'chatbot'); ?></h5>
2880 - <p>
2881 - <?php esc_html_e('🚀 Error 404: This will cause an error page to be blocked from being indexed. As it is an error page, it should not be indexed per se, but just in case.', 'chatbot'); ?>
2882 - </p>
2883 - <h5><?php esc_html_e('8. Other Features', 'chatbot'); ?></h5>
2884 - <p>
2885 - <?php esc_html_e('🚀 Works with all modern browsers', 'chatbot'); ?><br>
2886 - <?php esc_html_e('🚀 Scan for Broken Links on your website', 'chatbot'); ?><br>
2887 - <?php esc_html_e('🚀 Open External links in new window', 'chatbot'); ?><br>
2888 - <?php esc_html_e('🚀 Priority, Premium Support', 'chatbot'); ?><br>
2889 - <?php esc_html_e('🚀 Auto Upgrades for Plugin', 'chatbot'); ?></p>
2890 - </div>
2891 - </section>
1763 + </div>
1764 + </div>
1765 + </div><!--/qc-column-4 -->
1766 +
1767 + <div class="qc-column-6"><!-- qc-column-4 -->
1768 + <!-- Feature Box 1 -->
1769 + <div class="support-block support-block-custom">
1770 + <div class="support-block-img">
1771 + <a href="<?php echo esc_url('https://www.quantumcloud.com/products/chatbot-addons/'); ?>" target="_blank"> <img src="<?php echo esc_url(QCLD_wpCHATBOT_PLUGIN_URL.'images/messenger-chatbot.png'); ?>" alt=""></a>
1772 + </div>
1773 + <div class="support-block-info">
1774 + <h4><a href="<?php echo esc_url('https://www.quantumcloud.com/products/chatbot-addons/'); ?>" target="_blank">Messenger ChatBot Addon</a></h4>
1775 + <p>Utilize the WPBot on your website as a hub to respond to customer questions on FB Page & Messenger</p>
1776 + <p><a href="https://wordpress.org/plugins/chatbot-for-messenger/" target="_blank">Download Free</a>|<a href="<?php echo esc_url('https://www.quantumcloud.com/products/chatbot-addons/'); ?>" target="_blank">Download Pro</a></p>
2892 1777
1778 + </div>
1779 + </div>
1780 + </div><!--/qc-column-4 -->
1781 +
1782 + <div class="qc-column-6"><!-- qc-column-4 -->
1783 + <!-- Feature Box 1 -->
1784 + <div class="support-block support-block-custom">
1785 + <div class="support-block-img">
1786 + <a href="<?php echo esc_url('https://www.quantumcloud.com/products/chatbot-addons/'); ?>" target="_blank"> <img src="<?php echo esc_url(QCLD_wpCHATBOT_PLUGIN_URL.'images/custom-post-type-addon-logo.png'); ?>" alt=""></a>
1787 + </div>
1788 + <div class="support-block-info">
1789 + <h4><a href="<?php echo esc_url('https://www.quantumcloud.com/products/chatbot-addons/'); ?>" target="_blank">Extended Search</a></h4>
1790 + <p>Extend WPBot’s search power to include almost any Custom Post Type including WooCommerce</p>
2893 1791
2894 - <footer class="wp-chatbot-admin-footer">
2895 - <div class="row">
2896 -
2897 -
2898 - <input type="submit" class="btn btn-primary submit-button" name="submit"
2899 - id="submit" value="Save Settings"/>
2900 -
2901 - </div>
2902 - <!-- row-->
2903 - </footer>
1792 + </div>
1793 + </div>
1794 + </div><!--/qc-column-4 -->
1795 +
2904 1796
2905 - </div>
1797 + <div class="qc-column-6"><!-- qc-column-4 -->
1798 + <!-- Feature Box 1 -->
1799 + <div class="support-block support-block-custom">
1800 + <div class="support-block-img">
1801 + <a href="<?php echo esc_url('https://www.quantumcloud.com/products/chatbot-addons/'); ?>" target="_blank"> <img src="<?php echo esc_url(QCLD_wpCHATBOT_PLUGIN_URL.'images/chatbot-sesssion-save.png'); ?>" alt=""></a>
1802 + </div>
1803 + <div class="support-block-info">
1804 + <h4><a href="<?php echo esc_url('https://www.quantumcloud.com/products/chatbot-addons/'); ?>" target="_blank">ChatBot Session Save Addon</a></h4>
1805 + <p>This AddOn saves the user chat sessions and helps you fine tune the bot for better support and performance.</p>
2906 1806
1807 + </div>
1808 + </div>
1809 + </div><!--/qc-column-4 -->
1810 +
1811 +
1812 + <div class="qc-column-6"><!-- qc-column-4 -->
1813 + <!-- Feature Box 1 -->
1814 + <div class="support-block support-block-custom">
1815 + <div class="support-block-img">
1816 + <a href="<?php echo esc_url('https://www.quantumcloud.com/products/chatbot-addons/'); ?>" target="_blank"> <img src="<?php echo esc_url(QCLD_wpCHATBOT_PLUGIN_URL.'images/WPBot-LiveChat.png'); ?>" alt=""></a>
1817 + </div>
1818 + <div class="support-block-info">
1819 + <h4><a href="<?php echo esc_url('https://www.quantumcloud.com/products/chatbot-addons/'); ?>" target="_blank">LiveChat Addon</a></h4>
1820 + <p>Live Human Chat integrated with WPBot<p/>
1821 + </div>
1822 + </div>
1823 + </div><!--/qc-column-4 -->
2907 1824
2908 -
2909 -<div class="wp-chatbot-admin-upgrade-pro-sidebar">
2910 - <div class="wp-chatbot-admingradient-color">
2911 - <img class="wp-chatbot-admin-banner" src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/template-sample.gif' ); ?>" alt="">
2912 - <h3 class="wp-chatbot-admincart-title">Upgrade To <span>Pro</span></h3>
2913 - <ul class="feature-list">
2914 - <li><img src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/check2.svg' ); ?>" alt="">Core WPBot Pro</li>
2915 - <li><img src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/check2.svg' ); ?>" alt="">Chat Sessions and Histories</li>
2916 - <li><img src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/check2.svg' ); ?>" alt="">Extended Search Module</li>
2917 - <li><img src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/check2.svg' ); ?>" alt="">OpenAI Basic and DialogFlow</li>
2918 - <li><img src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/check2.svg' ); ?>" alt="">Simple text Responses Pro Module</li>
2919 - <li><img src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/check2.svg' ); ?>" alt="">Conversational Forms Pro Module</li>
2920 - <li><img src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/check2.svg' ); ?>" alt="">WooCommerce Module</li>
2921 - <li><img src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/check2.svg' ); ?>" alt="">OpenAI Pro Adv. (Fine Tuning, Assistant)</li>
2922 - <li><img src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/check2.svg' ); ?>" alt="">Live (Human) Chat Module</li>
2923 - <li><img src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/check2.svg' ); ?>" alt="">Tavily Search API module</li>
2924 - <li><img src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/check2.svg' ); ?>" alt="">Extended UI Module</li>
2925 - <li><img src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/check2.svg' ); ?>" alt="">WebHook & Mailing List Module</li>
2926 - <li><img src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/check2.svg' ); ?>" alt="">White Label Module</li>
2927 - <li><img src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/check2.svg' ); ?>" alt="">FaceBook Messenger Module</li>
2928 - <li><img src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/check2.svg' ); ?>" alt="">WhatsApp through Twilio Module</li>
2929 - <li><img src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/check2.svg' ); ?>" alt="">Multi Language Module</li>
2930 - <li><img src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/check2.svg' ); ?>" alt="">Settings Export Import Module</li>
2931 - <li><img src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/check2.svg' ); ?>" alt="">Voice Message Module</li>
2932 - <li><img src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/check2.svg' ); ?>" alt="">Voice Chat Module</li>
2933 - <li><img src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/check2.svg' ); ?>" alt="">Telegram Module</li>
2934 - <li><img src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/check2.svg' ); ?>" alt="">Priority Technical Support</li>
2935 - </ul>
2936 -
2937 - <a class="wp-chatbot-admin-pro-upgrade-button" target="_blank" href="https://www.wpbot.pro/">Upgrade to Pro <img src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/external-white.svg' ); ?>" alt=""></a>
1825 + <div class="qc-column-6"><!-- qc-column-4 -->
1826 + <!-- Feature Box 1 -->
1827 + <div class="support-block support-block-custom">
1828 + <div class="support-block-img">
1829 + <a href="<?php echo esc_url('https://www.quantumcloud.com/products/chatbot-addons/'); ?>" target="_blank"> <img src="<?php echo esc_url(QCLD_wpCHATBOT_PLUGIN_URL.'images/white-label.png'); ?>" alt=""></a>
2938 1830 </div>
2939 -
1831 + <div class="support-block-info">
1832 + <h4><a href="<?php echo esc_url('https://www.quantumcloud.com/products/chatbot-addons/'); ?>" target="_blank">White Label WPBot</a></h4>
1833 + <p>Replace the QuantumCloud Logo and branding with yours. Suitable for developers and agencies interested in providing ChatBot services for their clients.<p/>
1834 + </div>
2940 1835 </div>
1836 + </div><!--/qc-column-4 -->
1837 +
1838 + <div class="qc-column-6"><!-- qc-column-4 -->
1839 + <!-- Feature Box 1 -->
1840 + <div class="support-block support-block-custom">
1841 + <div class="support-block-img">
1842 + <a href="<?php echo esc_url('https://www.quantumcloud.com/products/chatbot-addons/'); ?>" target="_blank"> <img src="<?php echo esc_url(QCLD_wpCHATBOT_PLUGIN_URL.'images/mailing-list-integrationt (1).png'); ?>" alt=""></a>
1843 + </div>
1844 + <div class="support-block-info">
1845 + <h4><a href="<?php echo esc_url('https://www.quantumcloud.com/products/chatbot-addons/'); ?>" target="_blank">Mailing List Integration AddOn</a></h4>
1846 + <p>Mailing List Integration is an addon that lets you connect our ChatBot with Mailchimp and Zapier accounts. You can add new subscribers to your Mailchimp Lists and unsubscribe them.<p/>
1847 + </div>
1848 + </div>
1849 + </div><!--/qc-column-4 -->
1850 + <div class="qc-column-6"><!-- qc-column-4 -->
1851 + <!-- Feature Box 1 -->
1852 + <div class="support-block support-block-custom">
1853 + <div class="support-block-img">
1854 + <a href="<?php echo esc_url('https://www.quantumcloud.com/products/chatbot-addons/'); ?>" target="_blank"> <img src="<?php echo esc_url(QCLD_wpCHATBOT_PLUGIN_URL.'images/chatbot-addons.png'); ?>" alt=""></a>
1855 + </div>
1856 + <div class="support-block-info">
1857 + <h4><a href="<?php echo esc_url('https://www.quantumcloud.com/products/chatbot-addons/'); ?>" target="_blank">More Addons</a></h4>
1858 + <p>Check out all the available ChatBot AddOns<p/>
1859 + </div>
1860 + </div>
1861 + </div><!--/qc-column-4 -->
1862 + <div class="qc-column-12"><!-- qc-column-4 -->
1863 + <!-- Feature Box 1 -->
1864 + <div class="support-block ">
1865 + <div class="support-block-img">
1866 + <a href="<?php echo esc_url('https://www.quantumcloud.com/products/themes/chatbot-theme/'); ?>" target="_blank"> <img class="wp_addon_fullwidth" src="<?php echo esc_url(QCLD_wpCHATBOT_PLUGIN_URL.'images/ChatBot-Master-theme.png'); ?>" alt=""></a>
1867 + </div>
1868 + <div class="support-block-info">
1869 + <h4><a href="<?php echo esc_url('https://www.quantumcloud.com/products/chatbot-addons/'); ?>" target="_blank">ChatBot Master Theme</a></h4>
1870 + <p style="margin-top: -24px;margin-bottom: 50px;">Get a ChatBot Powered Theme!</p>
1871 + </div>
1872 + </div>
1873 + </div><!--/qc-column-4 -->
2941 1874
2942 -
2943 -
2944 -
2945 - </div>
2946 -
2947 - </section>
2948 -
2949 -
2950 -
2951 -
2952 -
2953 -
2954 - </div>
2955 - <?php wp_nonce_field('wp_chatbot'); ?>
2956 -</form>
2957 -
2958 -
2959 1875 </div>
1876 +<!--qc row-->
1877 +</div>
2960 1878
1879 +</div><!--qc_support_container-->
2961 1880
2962 1881
2963 1882
2964 -
2965 -
1883 + </div>
1884 + </div>
1885 + <!-- row-->
1886 + </div>
1887 + </section>
1888 +
1889 +
1890 + </div><!-- /content -->
1891 + </div><!-- /wp-chatbot-tabs -->
1892 + <footer class="wp-chatbot-admin-footer">
1893 + <div class="row">
1894 + <div class="text-left col-sm-3 col-sm-offset-3">
1895 + <input type="button" class="btn btn-warning submit-button"
1896 + id="qcld-wp-chatbot-reset-option"
1897 + value="<?php _e('Reset all options to Default', 'wpchatbot'); ?>"/>
1898 + </div>
1899 + <div class="text-right col-sm-6">
1900 + <input type="submit" class="btn btn-primary submit-button" name="submit"
1901 + id="submit" value="<?php _e('Save Settings', 'wpchatbot'); ?>"/>
1902 + </div>
1903 + </div>
1904 + <!-- row-->
1905 + </footer>
1906 + </section>
1907 + </div>
1908 + <?php wp_nonce_field('wp_chatbot'); ?>
1909 + </form>