| @@ -3,9 +3,149 @@ | ||
| 3 | 3 | exit; |
| 4 | 4 | } |
| 5 | 5 | global $wpdb; |
| 6 | 6 | ?> |
| 7 | +<style> | |
| 8 | +.wpbot_dashboard_header { | |
| 9 | + margin-right: unset !important; | |
| 10 | + margin-left: unset !important; | |
| 11 | + background: #32373c; | |
| 12 | + color: #fff; | |
| 13 | + text-align: center; | |
| 14 | + border-radius: 5px 5px 0px 0px; | |
| 15 | +} | |
| 16 | +.wpbot_addons_section { | |
| 17 | + margin-right: unset !important; | |
| 18 | + margin-left: unset !important; | |
| 19 | + margin-bottom: 10px; | |
| 20 | + background: #32373c; | |
| 21 | + padding-bottom: 20px; | |
| 22 | + border-radius: 0px 0px 5px 5px; | |
| 23 | +} | |
| 24 | +.wpbot_single_addon_wrapper2 { | |
| 25 | + background: #32373c !important; | |
| 26 | + color: #fff !important; | |
| 27 | + padding: 20px; | |
| 28 | +} | |
| 29 | +.wpbot_single_addon_wrapper2 .form-table th,.wpbot_single_addon_wrapper2 .form-wrap label{ | |
| 30 | + color: #fff !important; | |
| 31 | +} | |
| 32 | +.wp-chatbot-admin-header, .wp-chatbot-admin-footer { | |
| 33 | + padding: 25px; | |
| 34 | +} | |
| 35 | +.wpbot_dashboard_header h1 { | |
| 36 | + font-size: 30px; | |
| 37 | + line-height: 100px; | |
| 38 | + margin: 0px; | |
| 39 | + color: #fff; | |
| 40 | +} | |
| 41 | +.container { | |
| 42 | + width: 1170px; | |
| 43 | + padding-right: 15px; | |
| 44 | + padding-left: 15px; | |
| 45 | +} | |
| 46 | +.wrapTexttop { | |
| 47 | + background: #464b50; | |
| 48 | + padding: 8px 20px; | |
| 49 | +} | |
| 50 | +.form-table-str{ | |
| 51 | + border: 0 !important; | |
| 52 | +} | |
| 53 | +.form-table{ | |
| 54 | + border: 0 !important; | |
| 55 | +} | |
| 56 | +.form-table-str.form-table tr:nth-child(odd){ | |
| 57 | + background: #32373c !important; | |
| 58 | +} | |
| 59 | +.form-table tr:nth-child(odd) { | |
| 60 | + background: #32373c !important; | |
| 61 | +} | |
| 7 | 62 | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | +/* 10-16-2024 - CSS Updated*/ | |
| 67 | + | |
| 68 | +.TextResponsesouter .wrap.TextResponses{ | |
| 69 | + position: relative; | |
| 70 | + max-width: 1170px; | |
| 71 | +} | |
| 72 | +.TextResponsesouter .wrap.TextResponses:before { | |
| 73 | + content: ''; | |
| 74 | + position: absolute; | |
| 75 | + background: url("<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/hud-left-dark.png' );?>") top left; | |
| 76 | + left: -6px; | |
| 77 | + width: 40px; | |
| 78 | + height: 100%; | |
| 79 | + z-index: 999; | |
| 80 | + top: 0; | |
| 81 | + background-repeat: repeat !important; | |
| 82 | +} | |
| 83 | +.TextResponsesouter .wrap.TextResponses:after { | |
| 84 | + content: ''; | |
| 85 | + position: absolute; | |
| 86 | + background: url("<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/hud-righ-dark.png' );?>") top right; | |
| 87 | + | |
| 88 | + width: 41px; | |
| 89 | + height: 100%; | |
| 90 | + right: -22px; | |
| 91 | + width: 28px; | |
| 92 | + z-index: 999; | |
| 93 | + top: 0; | |
| 94 | + background-repeat: repeat !important; | |
| 95 | +} | |
| 96 | +.TextResponsesouter { | |
| 97 | + position: relative; | |
| 98 | + max-width: 1190px; | |
| 99 | +} | |
| 100 | +.TextResponsesouter:before { | |
| 101 | + content: ''; | |
| 102 | + position: absolute; | |
| 103 | + background: url(<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/hud-top-dark_new.png' );?>) top center; | |
| 104 | + left: 2px; | |
| 105 | + width: 100%; | |
| 106 | + height: 34px; | |
| 107 | + z-index: 9999999; | |
| 108 | + top: -7px; | |
| 109 | + background-repeat: no-repeat; | |
| 110 | + background-size: cover; | |
| 111 | +} | |
| 112 | +.card-header .wpbot_dashboard_header { | |
| 113 | + background: #222222; | |
| 114 | +} | |
| 115 | +.card-header .wpbot_addons_section { | |
| 116 | + background: #222222; | |
| 117 | +} | |
| 118 | + | |
| 119 | +path{stroke-dasharray:300;stroke-dashoffset:300;stroke:#c3a477;stroke-width:2px;-webkit-animation:draw ease-out infinite;animation:draw ease-out infinite} | |
| 120 | +#l1{-webkit-animation-duration:3s;animation-duration:3s} | |
| 121 | +#l2{-webkit-animation-duration:5.5s;animation-duration:5.5s} | |
| 122 | +#l3{-webkit-animation-duration:2s;animation-duration:2s} | |
| 123 | +#l4{-webkit-animation-duration:5.5s;animation-duration:5.5s}@-webkit-keyframes draw{50%{stroke-dashoffset:0}100%{stroke-dashoffset:-300}}@keyframes draw{50%{stroke-dashoffset:0}100%{stroke-dashoffset:-300}} | |
| 124 | +.lineanimation{position:absolute;top:-64px;z-index:99999999;left:-10px;right:0;margin:0 auto;width:257px;max-width:257px;height:90px;overflow:hidden;bottom:0} | |
| 125 | +.lineanimation svg{width:250px;height:95px}.lineanimation svg{width:250px;height:150px;overflow:hidden}.lineanimation path{stroke:#5e5e5e} | |
| 126 | + | |
| 127 | + | |
| 128 | +.TextResponsesouter .TextResponses { | |
| 129 | + background: #222222; | |
| 130 | +} | |
| 131 | + | |
| 132 | +.TextResponsesouter { | |
| 133 | + max-width: 1230px; | |
| 134 | +} | |
| 135 | +.TextResponsesouter .form-table-str.form-table tr:nth-child(odd) { | |
| 136 | + background: #222222 !important; | |
| 137 | +} | |
| 138 | + | |
| 139 | +.wrapTexttop { | |
| 140 | + margin: 20px 0 0 0; | |
| 141 | +} | |
| 142 | +.form-table-str.form-table tr:nth-child(odd) { | |
| 143 | + background: #32373c !important; | |
| 144 | +} | |
| 145 | +</style> | |
| 146 | + | |
| 147 | + | |
| 8 | 148 | <?php |
| 9 | 149 | if(isset($_GET['opt']) && $_GET['opt']=='add'): |
| 10 | 150 | |
| 11 | 151 | do_action('qcld_str_add_category'); |
| @@ -17,13 +157,13 @@ | ||
| 17 | 157 | elseif(isset($_GET['page']) && $_GET['page']=='simple-text-response' && isset($_GET['action']) && $_GET['action']=='import'): |
| 18 | 158 | |
| 19 | 159 | do_action('qcld_str_import'); |
| 20 | 160 | |
| 21 | - elseif(isset($_GET['action']) && wp_unslash($_GET['action'])=='manage-categories'): | |
| 161 | + elseif(isset($_GET['action']) && $_GET['action']=='manage-categories'): | |
| 22 | 162 | |
| 23 | 163 | include_once(QCLD_wpCHATBOT_PLUGIN_DIR_PATH.'/includes/templates/manage-categories.php'); |
| 24 | 164 | |
| 25 | - elseif(isset($_GET['action']) && wp_unslash($_GET['action'])=='edit'): | |
| 165 | + elseif(isset($_GET['action']) && $_GET['action']=='edit'): | |
| 26 | 166 | |
| 27 | 167 | if(class_exists('Qcld_str_pro')): |
| 28 | 168 | do_action('qcld_str_pro_stredit'); |
| 29 | 169 | else: |
| @@ -28,52 +168,42 @@ | ||
| 28 | 168 | do_action('qcld_str_pro_stredit'); |
| 29 | 169 | else: |
| 30 | 170 | |
| 31 | 171 | $hasEdit = false; |
| 32 | - if(isset($_GET['query']) && wp_unslash($_GET['query'])!=''){ | |
| 172 | + if(isset($_GET['query']) && $_GET['query']!=''){ | |
| 33 | 173 | $hasEdit = true; |
| 34 | - $id = sanitize_text_field(wp_unslash($_GET['query'])); | |
| 174 | + $id = sanitize_text_field($_GET['query']); | |
| 35 | 175 | $table = $wpdb->prefix.'wpbot_response'; |
| 36 | - $data = $wpdb->get_row($wpdb->prepare("select * from {$table} where id = %d", $id)); // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, PluginCheck.Security.DirectDB.UnescapedDBParameter | |
| 176 | + $data = $wpdb->get_row($wpdb->prepare("select * from $table where id = %d", $id)); //DB Call OK, No Caching OK | |
| 177 | + | |
| 37 | 178 | } |
| 179 | + | |
| 180 | + | |
| 38 | 181 | ?> |
| 39 | -<div class="qcld-wp-chatbot-wrap-header"> | |
| 40 | - | |
| 41 | - <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> | |
| 42 | - <p><strong>Core Version:</strong> v<?php echo esc_html( QCLD_wpCHATBOT_VERSION ); ?></p> | |
| 43 | - </div> | |
| 44 | - <ul class="qcld-wp-chatbot-wrap-version-wrapper"> | |
| 45 | - <li> | |
| 46 | - <a class="wpchatbot-Upgrade" href="https://www.wpbot.pro/" target="_blank">Upgrade To Pro</a> | |
| 47 | - | |
| 48 | - </li> | |
| 49 | - </ul> | |
| 50 | -</div> | |
| 51 | -<div class="TextResponsesoutside"> | |
| 52 | - <div class="qcwrap TextResponses"> | |
| 182 | + <div class="qcwrap"> | |
| 53 | 183 | <div class="wp-chatbot-wrap"> |
| 54 | - <div class="wpbot_dashboard_header "><h1><?php echo ($hasEdit?'Edit':'Add') ?> Response</h1></div> | |
| 184 | + <div class="wpbot_dashboard_header container"><h1><?php echo ($hasEdit?'Edit':'Add') ?> Response</h1></div> | |
| 55 | 185 | <form method="post" action=""> |
| 56 | - <div class="wpbot_addons_section "> | |
| 186 | + <div class="wpbot_addons_section container"> | |
| 57 | 187 | <div class="wpbot_single_addon_wrapper2"> |
| 58 | - <p><b><?php esc_html_e('Please note the following ', 'chatbot'); ?></b></p> | |
| 188 | + <p><b><?php esc_html_e('Please note the following ', 'wpbot'); ?></b></p> | |
| 59 | 189 | <ul> |
| 60 | - <li> <?php esc_html_e('1. The Query, Response and Keywords fields will be searched. Add Keywords for best matches', 'chatbot'); ?></li> | |
| 61 | - <li> <?php esc_html_e('2. Please clear browser Cache and Cookies both before testing new responses', 'chatbot'); ?></li> | |
| 190 | + <li> <?php esc_html_e('1. The Query, Response and Keywords fields will be searched. Add Keywords for best matches', 'wpbot'); ?></li> | |
| 191 | + <li> <?php esc_html_e('2. Please clear browser Cache and Cookies both before testing new responses', 'wpbot'); ?></li> | |
| 62 | 192 | </ul> |
| 63 | 193 | <table class="form-table-str form-table"> |
| 64 | 194 | <tbody> |
| 65 | 195 | <tr valign="top"> |
| 66 | - <th scope="row"><?php esc_html_e('Query', 'chatbot'); ?></th> | |
| 196 | + <th scope="row"><?php esc_html_e('Query', 'wpbot'); ?></th> | |
| 67 | 197 | <td> |
| 68 | 198 | <input name="str_nonce" type="hidden" value="<?php echo sanitize_key( wp_create_nonce('str-nonce') ); ?>" /> |
| 69 | - <input type="text" name="qc_bot_str_query" value="<?php echo esc_attr($hasEdit?$data->query:''); ?>" style="width: 100%;" required /> | |
| 70 | - <br><i><?php esc_html_e('*Required. Add the query here. ', 'chatbot'); ?></i> | |
| 199 | + <input type="text" name="qc_bot_str_query" value="<?php echo esc_attr($hasEdit?$data->query:''); ?>" style="width: 400px;" required /> | |
| 200 | + <br><i><?php esc_html_e('*Required. Add the query here. ', 'wpbot'); ?></i> | |
| 71 | 201 | </td> |
| 72 | 202 | </tr> |
| 73 | 203 | |
| 74 | 204 | <tr valign="top"> |
| 75 | - <th scope="row"> <?php esc_html_e('Response', 'chatbot'); ?></th> | |
| 205 | + <th scope="row"> <?php esc_html_e('Response', 'wpbot'); ?></th> | |
| 76 | 206 | <td> |
| 77 | 207 | <?php |
| 78 | 208 | |
| 79 | 209 | $content = ($hasEdit?$data->response:''); |
| @@ -82,16 +212,16 @@ | ||
| 82 | 212 | |
| 83 | 213 | wp_editor( $content, $editor_id, $settings ); |
| 84 | 214 | |
| 85 | 215 | ?> |
| 86 | - <br><i><?php esc_html_e('*Required. Add the response here. ', 'chatbot'); ?></i> | |
| 216 | + <br><i><?php esc_html_e('*Required. Add the response here. ', 'wpbot'); ?></i> | |
| 87 | 217 | </td> |
| 88 | 218 | </tr> |
| 89 | 219 | <tr valign="top"> |
| 90 | 220 | <th scope="row">Keyword</th> |
| 91 | 221 | <td> |
| 92 | - <input type="text" name="qc_bot_str_keyword" value="<?php echo esc_attr($hasEdit?$data->keyword:''); ?>" style="width: 100%;" /> | |
| 93 | - <br><i> <?php esc_html_e('Optional. Add multiple keyword or phrases as comma(,) seperated value. It will help to find the best match result.', 'chatbot'); ?></i> | |
| 222 | + <input type="text" name="qc_bot_str_keyword" value="<?php echo esc_attr($hasEdit?$data->keyword:''); ?>" style="width: 400px;" /> | |
| 223 | + <br><i> <?php esc_html_e('Optional. Add multiple keyword or phrases as comma(,) seperated value. It will help to find the best match result.', 'wpbot'); ?></i> | |
| 94 | 224 | </td> |
| 95 | 225 | </tr> |
| 96 | 226 | |
| 97 | 227 | |
| @@ -99,11 +229,14 @@ | ||
| 99 | 229 | |
| 100 | 230 | <input type="hidden" name="qc_bot_str_id" value="<?php echo esc_attr($data->id); ?>" /> |
| 101 | 231 | |
| 102 | 232 | <?php endif; ?> |
| 233 | + | |
| 234 | + | |
| 103 | 235 | </tbody> |
| 104 | 236 | </table> |
| 105 | 237 | </div> |
| 238 | + | |
| 106 | 239 | <footer class="wp-chatbot-admin-footer"> |
| 107 | 240 | <div class="row"> |
| 108 | 241 | <div class="text-left col-sm-3 col-sm-offset-3"> |
| 109 | 242 | |
| @@ -113,93 +246,86 @@ | ||
| 113 | 246 | </div> |
| 114 | 247 | </div> |
| 115 | 248 | <!-- row--> |
| 116 | 249 | </footer> |
| 250 | + | |
| 251 | + | |
| 117 | 252 | </div></form> |
| 118 | 253 | </div> |
| 119 | 254 | </div> |
| 120 | - </div> | |
| 255 | + <?php endif; ?> | |
| 256 | + <?php else: ?> | |
| 257 | + <h1 class="wp-heading-inline"><?php esc_html_e('Simple Text Responses', 'wpbot'); ?></h1> | |
| 258 | + <a href="<?php echo esc_url( add_query_arg( 'action', 'edit', admin_url('admin.php?page=simple-text-response') ) ); ?>" class="button page-title-action"><?php esc_html_e('Add New', 'wpbot'); ?></a> | |
| 259 | + | |
| 260 | + <?php if(class_exists('Qcld_str_pro')): ?> | |
| 261 | + | |
| 262 | + <a href="<?php echo esc_url( add_query_arg( 'action', 'manage-categories', admin_url('admin.php?page=simple-text-response') ) ); ?>" class="button page-title-action"><?php esc_html_e('Manage Categories', 'wpbot'); ?></a> | |
| 263 | + <a href="<?php echo esc_url( admin_url( 'admin-post.php?action=qc_str_export' ) ); ?>" class="button page-title-action"><?php esc_html_e('Export', 'wpbot'); ?></a> | |
| 264 | + <a href="<?php echo esc_url( add_query_arg( 'action', 'import', admin_url('admin.php?page=simple-text-response') ) ); ?>" class="button page-title-action"><?php esc_html_e('Import', 'wpbot'); ?></a> | |
| 265 | + | |
| 121 | 266 | <?php endif; ?> |
| 122 | 267 | |
| 268 | + <div class="TextResponsesouter"> | |
| 123 | 269 | |
| 124 | - <?php else: ?> | |
| 125 | 270 | |
| 126 | -<div class="qcld-wp-chatbot-wrap-header"> | |
| 271 | + <div class="lineanimation"> | |
| 272 | +<svg width="350" height="350" viewBox="0 0 308 309" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> | |
| 273 | +<defs> | |
| 274 | +<circle id="a" cx="150" cy="150" r="150"></circle> | |
| 275 | +<linearGradient x1="50%" y1="0%" x2="50%" y2="62.304%" id="c"> | |
| 276 | +<stop stop-color="#09DFF3" offset="0%"></stop> | |
| 277 | +<stop stop-color="#44BEFF" offset="100%"></stop> | |
| 278 | +</linearGradient> | |
| 279 | +</defs> | |
| 280 | +<g> | |
| 281 | +<path id="l1" d="M0 130 L300 130"></path> | |
| 282 | +<path id="l2" d="M0 150 L300 150"></path> | |
| 283 | +<path id="l3" d="M0 170 L300 170"></path> | |
| 284 | +<path id="l4" d="M0 190 L300 190"></path> | |
| 285 | +</g> | |
| 286 | +</svg></div> | |
| 127 | 287 | |
| 128 | - <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> | |
| 129 | - <p><strong>Core Version:</strong> v<?php echo esc_html( QCLD_wpCHATBOT_VERSION ); ?></p> | |
| 130 | - <ul class="qcld-wp-chatbot-wrap-version-wrapper"> | |
| 131 | - <li> | |
| 132 | - <a class="wpchatbot-Upgrade" href="https://www.wpbot.pro/" target="_blank">Upgrade To Pro</a> | |
| 133 | - | |
| 134 | - </li> | |
| 135 | - </ul> | |
| 136 | -</div> | |
| 137 | - | |
| 138 | -<div class="qcld-wp-chatbot-wrap-header_inn"> | |
| 139 | -<div class="qcld-wp-chatbot-wrap-header_inn_heading"> | |
| 140 | - <h1 class="wp-heading-inline"><?php esc_html_e('Simple Text Responses', 'chatbot'); ?></h1> | |
| 141 | - <a style="visibility: hidden;" href="<?php echo esc_url( add_query_arg( 'action', 'edit', admin_url('admin.php?page=simple-text-response') ) ); ?>" class="button page-title-action"><?php esc_html_e('Add New', 'chatbot'); ?></a> | |
| 142 | - </div> | |
| 143 | - <?php if(class_exists('Qcld_str_pro')): ?> | |
| 144 | - | |
| 145 | - <a href="<?php echo esc_url( add_query_arg( 'action', 'manage-categories', admin_url('admin.php?page=simple-text-response') ) ); ?>" class="button page-title-action"><?php esc_html_e('Manage Categories', 'chatbot'); ?></a> | |
| 146 | - <a href="<?php echo esc_url( admin_url( 'admin-post.php?action=qc_str_export' ) ); ?>" class="button page-title-action"><?php esc_html_e('Export', 'chatbot'); ?></a> | |
| 147 | - <a href="<?php echo esc_url( add_query_arg( 'action', 'import', admin_url('admin.php?page=simple-text-response') ) ); ?>" class="button page-title-action"><?php esc_html_e('Import', 'chatbot'); ?></a> | |
| 148 | - </div> | |
| 149 | - <?php endif; ?> | |
| 150 | - <div class="TextResponsesouter"> | |
| 288 | + | |
| 151 | 289 | <div class="wrap TextResponses"> |
| 290 | + | |
| 152 | 291 | |
| 153 | -<div id="qcld-show-more-wrapper-box"> | |
| 154 | -<div class="qcld-show-more-text qcld-show-more-show-more-height"> | |
| 155 | 292 | |
| 156 | 293 | <div class="wrapTexttop"> |
| 157 | - <p><?php esc_html_e('Create simple text responses and the ChatBot will use advanced search algorithm to answer user questions. This is a simpler alternative to OpenAI or DialogFlow.', 'chatbot'); ?><br> | |
| 158 | - <b><?php esc_html_e('NB: Simple Text Responses require mySQL Client version 5.6+', 'chatbot'); ?></b></p> | |
| 294 | + | |
| 295 | + <p><?php esc_html_e('Create simple text responses and the ChatBot will use advanced search algorithm to answer user questions. This is a simpler alternative to OpenAI or DialogFlow.', 'wpbot'); ?></p> | |
| 296 | + <p><b><?php esc_html_e('NB: Simple Text Responses require mySQL Client version 5.6+', 'wpbot'); ?></b></p> | |
| 159 | 297 | </div> |
| 160 | 298 | <form method="post" action=""> |
| 161 | 299 | <table class="form-table-str form-table"> |
| 162 | 300 | <tbody> |
| 163 | 301 | <tr valign="top"> |
| 164 | - <th scope="row"><?php esc_html_e('Phrase matching accuracy', 'chatbot'); ?></th> | |
| 302 | + <th scope="row"><?php esc_html_e('Phrase matching accuracy', 'wpbot'); ?></th> | |
| 165 | 303 | <td> |
| 166 | 304 | <input name="str_nonce" type="hidden" value="<?php echo sanitize_key( wp_create_nonce('str-nonce') ); ?>" /> |
| 167 | - <input type="text" name="qc_bot_str_weight" value="<?php echo esc_attr( !empty(get_option('qc_bot_str_weight')) ? get_option('qc_bot_str_weight') : '0.4' ); ?>" style="width: 100%;" required /> | |
| 168 | - <br><i><?php esc_html_e('Please enter a value between 0 to 1. Higher value means more exact matching of phrases.', 'chatbot'); ?></i> | |
| 305 | + <input type="text" name="qc_bot_str_weight" value="<?php esc_attr_e((get_option('qc_bot_str_weight')!=''?get_option('qc_bot_str_weight'):'0.4')); ?>" style="width: 400px;" required /> | |
| 306 | + <br><i><?php esc_html_e('Please enter a value between 0 to 1. Higher value means more exact matching of phrases.', 'wpbot'); ?></i> | |
| 169 | 307 | </td> |
| 170 | 308 | </tr> |
| 171 | 309 | <tr valign="top"> |
| 172 | - <th scope="row"><?php esc_html_e('Search Fields', 'chatbot'); ?></th> | |
| 310 | + <th scope="row"><?php esc_html_e('Search Fields', 'wpbot'); ?></th> | |
| 173 | 311 | <td> |
| 174 | 312 | <?php |
| 175 | 313 | $fields = get_option('qc_bot_str_fields'); |
| 176 | 314 | ?> |
| 177 | 315 | |
| 178 | - <label for="qc_bot_str_field_title"><?php esc_html_e('Title', 'chatbot'); ?></label> | |
| 316 | + <label for="qc_bot_str_field_title"><?php esc_html_e('Title', 'wpbot'); ?></label> | |
| 179 | 317 | <input id="qc_bot_str_field_title" type="checkbox" name="qc_bot_str_fields[]" value="query" <?php echo (!$fields?'checked="checked"':''); ?> <?php echo ($fields && in_array('query', $fields)?'checked="checked"':''); ?> /> |
| 180 | 318 | |
| 181 | - <label for="qc_bot_str_field_keyword"><?php esc_html_e('Keyword', 'chatbot'); ?></label> | |
| 319 | + <label for="qc_bot_str_field_keyword"><?php esc_html_e('Keyword', 'wpbot'); ?></label> | |
| 182 | 320 | <input id="qc_bot_str_field_keyword" type="checkbox" name="qc_bot_str_fields[]" value="keyword" <?php echo (!$fields?'checked="checked"':''); ?> <?php echo ($fields && in_array('keyword', $fields)?'checked="checked"':''); ?> /> |
| 183 | 321 | |
| 184 | - <label for="qc_bot_str_field_response"><?php esc_html_e('Response', 'chatbot'); ?></label> | |
| 322 | + <label for="qc_bot_str_field_response"><?php esc_html_e('Response', 'wpbot'); ?></label> | |
| 185 | 323 | <input id="qc_bot_str_field_response" type="checkbox" name="qc_bot_str_fields[]" value="response" <?php echo (!$fields?'checked="checked"':''); ?> <?php echo ($fields && in_array('response', $fields)?'checked="checked"':''); ?> /> |
| 186 | - <br><i><?php esc_html_e('Please check/uncheck to allow/disallow searching in that fields', 'chatbot'); ?></i> | |
| 324 | + <br><i><?php esc_html_e('Please check/uncheck to allow/disallow searching in that fields', 'wpbot'); ?></i> | |
| 187 | 325 | </td> |
| 188 | 326 | </tr> |
| 189 | - <?php | |
| 190 | - $current_user = wp_get_current_user(); | |
| 191 | - if ( in_array( 'administrator', $current_user->roles )) { | |
| 192 | - ?> | |
| 193 | - <tr valign="top"> | |
| 194 | - <th scope="row"><?php echo esc_html( 'Allow Author & Editor to edit STR' ); ?></th> | |
| 195 | - <td> | |
| 196 | - <input id="qc_bot_str_allow_author_editor" type="checkbox" name="qc_bot_str_allow_author_editor" value="1" <?php echo ( get_option( 'qc_bot_str_allow_author_editor' ) && get_option( 'qc_bot_str_allow_author_editor' ) == 1 ? 'checked="checked"' : '' ); ?> /> | |
| 197 | - <label for="qc_bot_str_allow_author_editor"><?php echo esc_html( 'Allow Author & Editor to edit STR' ); ?></label> | |
| 198 | - <br><i><?php echo esc_html( 'Please enable to allow Author & Editor to edit STR.' ); ?></i> | |
| 199 | - </td> | |
| 200 | - </tr> | |
| 201 | - <?php } ?> | |
| 327 | + | |
| 202 | 328 | <tr valign="top"> |
| 203 | 329 | <th scope="row"></th> |
| 204 | 330 | <td> |
| 205 | 331 | <input type="submit" class="button button-primary" name="submit" id="submit" value="Save Settings"> |
| @@ -207,30 +333,24 @@ | ||
| 207 | 333 | </tr> |
| 208 | 334 | </tbody> |
| 209 | 335 | </table> |
| 210 | 336 | </form> |
| 337 | + | |
| 211 | 338 | <form method="post" action=""> |
| 212 | 339 | <table class="form-table-str form-table"> |
| 213 | 340 | <tbody> |
| 214 | 341 | <tr valign="top"> |
| 215 | - <th scope="row"><?php esc_html_e('Re-Index STR', 'chatbot'); ?></th> | |
| 342 | + <th scope="row"><?php esc_html_e('Re-Index STR Simple Text Responses', 'wpbot'); ?></th> | |
| 216 | 343 | <td> |
| 217 | 344 | <input name="str_nonce" type="hidden" value="<?php echo sanitize_key( wp_create_nonce('str-nonce') ); ?>" /> |
| 218 | 345 | <input type="submit" class="button button-primary" name="qc-re-index" id="re-index" value="Re Index"> |
| 219 | - | |
| 220 | - <i><?php esc_html_e('Re-Index if results are not as expected.', 'chatbot'); ?></i> | |
| 346 | + <br/> | |
| 347 | + <i><?php esc_html_e('Re-Indexing may required after migration.', 'wpbot'); ?></i> | |
| 221 | 348 | </td> |
| 222 | 349 | </tr> |
| 223 | 350 | </tbody> |
| 224 | 351 | </table> |
| 225 | 352 | </form> |
| 226 | - | |
| 227 | - | |
| 228 | - | |
| 229 | - </div> | |
| 230 | - <div class="qcld-show-more-show-more"><div class="Expandmore">Expand for More Options<span>+</span></div></div> | |
| 231 | - </div> | |
| 232 | - | |
| 233 | 353 | <div id="poststuff"> |
| 234 | 354 | <div id="post-body" class="metabox-holder"> |
| 235 | 355 | <div id="post-body-content-edit" class="str-form"> |
| 236 | 356 | <div class="meta-box-sortables ui-sortable"> |
| @@ -235,9 +355,9 @@ | ||
| 235 | 355 | <div id="post-body-content-edit" class="str-form"> |
| 236 | 356 | <div class="meta-box-sortables ui-sortable"> |
| 237 | 357 | <form method="post"> |
| 238 | 358 | |
| 239 | - <a href="<?php echo esc_url( add_query_arg( 'action', 'edit', admin_url('admin.php?page=simple-text-response') ) ); ?>" class="button page-title-action str-addnew"><?php esc_html_e('Add New', 'chatbot'); ?></a> | |
| 359 | + <a href="<?php echo esc_url( add_query_arg( 'action', 'edit', admin_url('admin.php?page=simple-text-response') ) ); ?>" class="button page-title-action str-addnew"><?php esc_html_e('Add New', 'wpbot'); ?></a> | |
| 240 | 360 | <?php |
| 241 | 361 | $this->response_list->prepare_items(); |
| 242 | 362 | $this->response_list->display(); ?> |
| 243 | 363 | </form> |
| @@ -248,391 +368,93 @@ | ||
| 248 | 368 | </div> |
| 249 | 369 | </div> |
| 250 | 370 | </div> |
| 251 | 371 | <?php endif; ?> |
| 372 | +<script type="text/javascript"> | |
| 373 | + // var stopcheckBox = document.getElementById("qc_bot_str_remove_stopwords"); | |
| 374 | + // stopcheckBox.addEventListener('change', function () { | |
| 375 | + // if (stopcheckBox.checked == true){ | |
| 376 | + // stopcheckBox.value = "1"; | |
| 377 | + | |
| 378 | + // } else { | |
| 379 | + // stopcheckBox.value = "0"; | |
| 380 | + // } | |
| 381 | + // }); | |
| 252 | 382 | |
| 383 | + // var small_talk = document.getElementById('small_talk'); | |
| 384 | + // small_talk.addEventListener( 'click', () => { small_talk_import(); } ); | |
| 385 | + // function small_talk_import(){ | |
| 386 | + // var req = new XMLHttpRequest(); | |
| 387 | + // req.open('POST', ajaxurl, true); | |
| 388 | + // req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8'); | |
| 389 | + // var s = 'action=small_talk_import'; | |
| 390 | + // req.send(s); | |
| 391 | + // if(req.DONE == 4){ | |
| 392 | + // alert('Smalltalk is imported'); | |
| 393 | + // setTimeout(function(){ | |
| 394 | + // window.location.reload(); | |
| 395 | + // }, 3000); | |
| 396 | + // } | |
| 397 | + // } | |
| 398 | + | |
| 399 | +</script> | |
| 253 | 400 | |
| 254 | 401 | |
| 255 | - <style> | |
| 256 | -/* WPBot design tokens — change colors here to theme the whole admin UI */ | |
| 257 | -:root { | |
| 258 | - --woobot-primary: #5B4E96; | |
| 259 | - --woobot-primary-color: #5B4E96; | |
| 260 | - --woobot-primary-dark: #463a7a; | |
| 261 | - --woobot-primary-soft: #f3f1fa; | |
| 262 | - --woobot-primary-border: #e4e0f2; | |
| 263 | - --woobot-surface: #ffffff; | |
| 264 | - --woobot-page-bg: #F5F7FD; | |
| 265 | - --woobot-text: #2d2a3a; | |
| 266 | - --woobot-muted: #6b6680; | |
| 267 | - --woobot-danger: #e25563; | |
| 268 | - --woobot-nav-muted: #988FBD; | |
| 269 | - --woobot-primary-rgb: 91, 78, 150; | |
| 270 | -} | |
| 402 | +<style> | |
| 271 | 403 | |
| 272 | -body { | |
| 273 | - background-color: var(--woobot-page-bg); | |
| 274 | - font-family: "DM Sans", sans-serif !important; | |
| 275 | - font-optical-sizing: auto; | |
| 276 | - font-size: 16px; | |
| 277 | - font-weight: normal; | |
| 278 | -} | |
| 279 | -.qcld-wp-chatbot-wrap-header { | |
| 280 | - display: flex; | |
| 281 | - column-gap: 15px; | |
| 282 | - row-gap: 10px; | |
| 283 | - background: #fff; | |
| 284 | - padding: 15px 15px; | |
| 285 | - margin: 20px 20px 20px 0; | |
| 286 | - border-radius: 16px; | |
| 287 | - align-items: center; | |
| 288 | - justify-content: space-between; | |
| 289 | - width: 97%; | |
| 290 | -} | |
| 291 | 404 | |
| 292 | -.qcld-wp-chatbot-wrap-header img{ | |
| 293 | - max-width: 50px; | |
| 405 | +.TextResponses{ | |
| 406 | + background: #32373c; | |
| 407 | + padding: 20px 20px; | |
| 408 | + border-radius: 6px; | |
| 409 | + width: 100%; | |
| 410 | + max-width: 1220px; | |
| 294 | 411 | } |
| 295 | - | |
| 296 | -.qcld-wp-chatbot-wrap-header ul, .qcld-wp-chatbot-wrap-header p, .qcld-wp-chatbot-wrap-header li{ | |
| 297 | - margin: 0; | |
| 412 | +.TextResponses p{ | |
| 413 | + color:#fff; | |
| 298 | 414 | } |
| 299 | -.qcld-wp-chatbot-wrap-header a.wpchatbot-Upgrade { | |
| 300 | - padding: 12px 25px; | |
| 301 | - background: #ffffff; | |
| 302 | - color: var(--woobot-primary); | |
| 303 | - border: 2px solid var(--woobot-primary); | |
| 304 | - border-radius: 6px; | |
| 305 | - font-weight: bold; | |
| 415 | +.TextResponses i{ | |
| 416 | + color:#fff; | |
| 306 | 417 | } |
| 307 | - | |
| 308 | -.qcld-wp-chatbot-wrap-header a.wpchatbot-Upgrade:hover { | |
| 309 | - padding: 12px 25px; | |
| 310 | - background: var(--woobot-primary); | |
| 311 | - color: #fff; | |
| 312 | - border: 2px solid var(--woobot-primary); | |
| 313 | - border-radius: 6px; | |
| 314 | - font-weight: bold; | |
| 315 | - text-decoration: none; | |
| 418 | +.TextResponses h1{ | |
| 419 | + color:#fff; | |
| 316 | 420 | } |
| 317 | -a.qcld-wp-chatbot-wrap-site__logo { | |
| 318 | - font-size: 22px; | |
| 319 | - color: #000; | |
| 320 | - font-weight: bold; | |
| 321 | - display: flex; | |
| 322 | - align-items: center; | |
| 323 | - gap: 12px; | |
| 324 | - text-decoration: none; | |
| 325 | - margin: 0; | |
| 326 | - padding: 0; | |
| 421 | +.TextResponses .form-table th, .TextResponses .form-wrap label { | |
| 422 | + color:#fff; | |
| 327 | 423 | } |
| 328 | - | |
| 329 | -a{ | |
| 330 | - text-decoration: none; | |
| 424 | +.qcwrap { | |
| 425 | + margin: 20px 0 0 0; | |
| 331 | 426 | } |
| 332 | -.qcld-wp-chatbot-wrap-header_inn { | |
| 333 | - background: #fff; | |
| 334 | - border-radius: 16px; | |
| 335 | - margin: 0 20px 0 0; | |
| 336 | - padding: 20px; | |
| 337 | -} | |
| 338 | -.TextResponsesoutside { | |
| 339 | - background: #fff; | |
| 340 | - border-radius: 16px; | |
| 341 | - margin: 0 20px 0 0; | |
| 342 | - padding: 20px; | |
| 343 | -} | |
| 344 | - | |
| 345 | - | |
| 346 | -.qcld-wp-chatbot-wrap-header_inn h1.wp-heading-inline { | |
| 347 | - border-bottom: 1px solid #eee; | |
| 348 | - padding: 0 0 15px 0; | |
| 349 | - margin: 20px 0 12px 0; | |
| 350 | - font-weight: bold; | |
| 351 | - font-size: 22px !important; | |
| 352 | -} | |
| 353 | - | |
| 354 | -.TextResponsesoutside h1 { | |
| 355 | - border-bottom: 1px solid #eee; | |
| 356 | - padding: 0 0 8px 0; | |
| 357 | - margin: 20px 0 12px 0; | |
| 358 | - font-weight: bold; | |
| 359 | - font-size: 22px !important; | |
| 360 | -} | |
| 361 | -.TextResponsesoutside ul li { | |
| 362 | - font-size: 14px; | |
| 363 | -} | |
| 364 | -.wpbot_single_addon_wrapper2 p { | |
| 365 | - font-size: 16px; | |
| 366 | -} | |
| 367 | -.TextResponsesouter i { | |
| 368 | - font-weight: normal; | |
| 369 | - font-size: 12px; | |
| 370 | - color: red; | |
| 371 | -} | |
| 372 | -.TextResponsesoutside i { | |
| 373 | - font-weight: normal; | |
| 374 | - font-size: 12px; | |
| 375 | - color: red; | |
| 376 | -} | |
| 377 | - | |
| 378 | -table.form-table-str.form-table tr { | |
| 379 | - background: #fff; | |
| 380 | - padding: 2px 10px !important; | |
| 381 | - border-radius: 6px; | |
| 382 | - margin: 0 0 8px 0; | |
| 383 | - border: 5px solid #fff; | |
| 384 | - vertical-align: middle; | |
| 385 | - border: 1px solid #eee; | |
| 386 | -} | |
| 387 | -table.form-table-str.form-table { | |
| 388 | - border: 1px solid #eee; | |
| 389 | -} | |
| 390 | -table.form-table-str.form-table tr { | |
| 391 | - border: none; | |
| 392 | -} | |
| 393 | -table.form-table-str.form-table th { | |
| 394 | - vertical-align: top; | |
| 395 | - text-align: center; | |
| 396 | - padding: 20px 10px 20px 0; | |
| 397 | - width: 200px; | |
| 398 | - line-height: 1.3; | |
| 399 | - font-weight: 600; | |
| 400 | - vertical-align: middle; | |
| 401 | -} | |
| 402 | - | |
| 403 | -.TextResponsesoutside footer.wp-chatbot-admin-footer input#submit { | |
| 404 | - padding: 12px 20px; | |
| 405 | - width: 100%; | |
| 406 | - font-size: 16px; | |
| 407 | - font-weight: 500; | |
| 408 | - color: var(--woobot-nav-muted); | |
| 409 | - border-radius: 8px; | |
| 410 | - position: relative; | |
| 411 | - display: flex; | |
| 412 | - align-items: center; | |
| 413 | - gap: 15px; | |
| 414 | - background: var(--woobot-primary); | |
| 415 | - color: #ffffff; | |
| 416 | - text-decoration: none; | |
| 417 | - border: none; | |
| 418 | - max-width: 220px; | |
| 419 | - margin: 12px 0 0 0; | |
| 420 | - line-height: 24px; | |
| 421 | -} | |
| 422 | -.qcld-wp-chatbot-wrap-header_inn a.button.page-title-action { | |
| 423 | - padding: 3px 25px; | |
| 424 | - background: #ffffff; | |
| 425 | - color: var(--woobot-primary); | |
| 426 | - border: 2px solid var(--woobot-primary); | |
| 427 | - border-radius: 6px; | |
| 428 | - font-weight: bold; | |
| 429 | -} | |
| 430 | - | |
| 431 | -.qcld-wp-chatbot-wrap-header_inn a.button.page-title-action:hover { | |
| 432 | - padding: 0px 15px; | |
| 433 | - background: var(--woobot-primary); | |
| 427 | +.TextResponses label { | |
| 434 | 428 | color: #fff; |
| 435 | - border: 2px solid var(--woobot-primary); | |
| 436 | - border-radius: 6px; | |
| 437 | - font-weight: bold; | |
| 438 | - position: absolute; | |
| 439 | - top: 36px; | |
| 440 | - left: 280px; | |
| 441 | 429 | } |
| 442 | -.qcld-wp-chatbot-wrap-header_inn a.button.page-title-action { | |
| 443 | - padding: 0px 15px; | |
| 444 | - background: #ffffff; | |
| 445 | - color: var(--woobot-primary); | |
| 446 | - border: 2px solid var(--woobot-primary); | |
| 447 | - border-radius: 6px; | |
| 448 | - font-weight: bold; | |
| 449 | - position: absolute; | |
| 450 | - top: 36px; | |
| 451 | - left: 280px; | |
| 452 | -} | |
| 453 | - | |
| 454 | -.qcld-wp-chatbot-wrap-header_inn { | |
| 455 | - position: relative; | |
| 456 | -} | |
| 457 | -.notice.is-dismissible.qcbot-str-top-notic { | |
| 458 | - width: 95%; | |
| 459 | -} | |
| 460 | - | |
| 461 | -.TextResponsesouter i { | |
| 462 | - position: relative; | |
| 463 | - top: 6px; | |
| 464 | -} | |
| 465 | - | |
| 466 | -table.form-table-str.form-table th { | |
| 467 | - text-align: left !important; | |
| 468 | - padding: 20px 10px 20px 20px !important; | |
| 469 | -} | |
| 470 | - | |
| 471 | -.qc-review-text img { | |
| 472 | - width: 100%; | |
| 473 | -} | |
| 474 | - | |
| 475 | -.TextResponsesouter input#submit { | |
| 476 | - padding: 0px 15px; | |
| 477 | - background: #ffffff; | |
| 478 | - color: var(--woobot-primary); | |
| 479 | - border: 2px solid var(--woobot-primary); | |
| 480 | - border-radius: 6px; | |
| 481 | - font-weight: bold; | |
| 482 | -} | |
| 483 | -.TextResponsesouter input#re-index { | |
| 484 | - padding: 0px 15px; | |
| 485 | - background: #ffffff; | |
| 486 | - color: var(--woobot-primary); | |
| 487 | - border: 2px solid var(--woobot-primary); | |
| 488 | - border-radius: 6px; | |
| 489 | - font-weight: bold; | |
| 490 | -} | |
| 491 | - | |
| 492 | - | |
| 493 | -#qcld-show-more-wrapper-box { | |
| 494 | - margin-top: 0; | |
| 495 | - position:relative; | |
| 496 | -} | |
| 497 | -#qcld-show-more-wrapper-box .qcld-show-more-text { | |
| 498 | -/* width: 660px; */ | |
| 499 | - margin-bottom: 5px; | |
| 500 | - padding: 0 0; | |
| 501 | - position:relative; | |
| 502 | - display: block; | |
| 503 | -} | |
| 504 | -#qcld-show-more-wrapper-box .qcld-show-more-show-more { | |
| 505 | - color: #ffffff; | |
| 506 | - position: relative; | |
| 507 | - padding: 40px 0 0 0; | |
| 508 | - height: 40px; | |
| 430 | +.tablenav-pages .current-page { | |
| 431 | + display: inline-block; | |
| 432 | + vertical-align: baseline; | |
| 433 | + min-width: 30px; | |
| 434 | + min-height: 31px; | |
| 435 | + margin: 0 0 0 0; | |
| 436 | + padding: 0 4px; | |
| 437 | + font-size: 13px; | |
| 438 | + line-height: 1.5; | |
| 509 | 439 | text-align: center; |
| 510 | - background: #f1f1f1; | |
| 511 | - cursor: pointer; | |
| 512 | - background: linear-gradient(to bottom, rgb(255 255 255 / 53%) 0%, rgb(188 174 255) 100%); | |
| 513 | - margin: -18px 0 0 0; | |
| 514 | - border-radius: 0 0 15px 15px; | |
| 515 | - z-index: 99999; | |
| 516 | - font-weight: bold; | |
| 517 | - | |
| 518 | 440 | } |
| 519 | - | |
| 520 | -#qcld-show-more-wrapper-box .qcld-show-more-show-more-height { | |
| 521 | - height: 112px; | |
| 522 | - overflow:hidden; | |
| 441 | +.tablenav-pages .current-page { | |
| 442 | + border: 1px solid | |
| 523 | 443 | } |
| 524 | - | |
| 525 | -#qcld-show-more-wrapper-box .qcld-show-more-show-more i { | |
| 526 | - display: block; | |
| 527 | - padding: 0 0 0 0; | |
| 528 | - background: var(--woobot-primary); | |
| 529 | - width: 30px; | |
| 530 | - height: 30px; | |
| 531 | - line-height: 30px; | |
| 532 | - border-radius: 50%; | |
| 533 | - margin: -15px auto 0 auto; | |
| 534 | - font-size: 18px !important; | |
| 444 | +div#poststuff { | |
| 535 | 445 | color: #fff; |
| 536 | 446 | } |
| 537 | -.TextResponsesouter input#submit:hover { | |
| 538 | - background: var(--woobot-primary); | |
| 539 | - color: #fff; | |
| 540 | - border: 2px solid var(--woobot-primary); | |
| 447 | +.str-form{ | |
| 448 | + position: relative; | |
| 541 | 449 | } |
| 542 | - | |
| 543 | -.TextResponsesouter input#re-index:hover { | |
| 544 | - background: var(--woobot-primary); | |
| 545 | - color: #fff; | |
| 546 | - border: 2px solid var(--woobot-primary); | |
| 450 | +.str-addnew{ | |
| 451 | + position: absolute !important; | |
| 452 | + left: 50%; | |
| 547 | 453 | } |
| 548 | -.TextResponsesouter table.widefat { | |
| 549 | - border: 1px solid #ebebeb; | |
| 454 | +.qcbot-str-top-notic { | |
| 455 | + max-width: 1240px; | |
| 456 | + padding: 0 !important; | |
| 457 | + margin: 20px 0 0 0; | |
| 550 | 458 | } |
| 551 | -.TextResponsesouter .tablenav { | |
| 552 | - padding: 8px; | |
| 553 | - background: var(--woobot-primary); | |
| 554 | -} | |
| 555 | -.TextResponsesouter span.displaying-num { | |
| 556 | - color: #fff; | |
| 557 | -} | |
| 558 | 459 | |
| 559 | -.TextResponsesouter .tablenav #doaction, .TextResponsesouter .tablenav #doaction2 { | |
| 560 | - border: 1px solid #ffffff !important; | |
| 561 | - color: #ffffff !important; | |
| 562 | -} | |
| 563 | - | |
| 564 | - | |
| 565 | - | |
| 566 | -.qcld-wp-chatbot-wrap-header-logo { | |
| 567 | - display: flex; | |
| 568 | - align-items: center; | |
| 569 | - gap: 10px; | |
| 570 | -} | |
| 571 | - | |
| 572 | -.qcld-wp-chatbot-wrap-header_inn a.button.page-title-action { | |
| 573 | - padding: 8px 15px; | |
| 574 | - background: #ffffff; | |
| 575 | - color: var(--woobot-primary); | |
| 576 | - border: 2px solid var(--woobot-primary); | |
| 577 | - border-radius: 6px; | |
| 578 | - font-weight: bold; | |
| 579 | - position: absolute; | |
| 580 | - top: 30px; | |
| 581 | - left: 280px; | |
| 582 | - line-height: normal; | |
| 583 | - min-height: unset; | |
| 584 | -} | |
| 585 | -.qcld-wp-chatbot-wrap-header_inn a.button.page-title-action:hover { | |
| 586 | - padding: 8px 15px; | |
| 587 | - background: var(--woobot-primary); | |
| 588 | - color: #fff; | |
| 589 | - border: 2px solid var(--woobot-primary); | |
| 590 | - border-radius: 6px; | |
| 591 | - font-weight: bold; | |
| 592 | - position: absolute; | |
| 593 | - top: 30px; | |
| 594 | - left: 280px; | |
| 595 | -} | |
| 596 | - | |
| 597 | -.Expandmore { | |
| 598 | - background: #23ab10; | |
| 599 | - display: inline-block; | |
| 600 | - padding: 4px 10px; | |
| 601 | - font-size: 14px; | |
| 602 | - border-radius: 6px; | |
| 603 | - position: relative; | |
| 604 | - top: 0; | |
| 605 | -} | |
| 606 | - | |
| 607 | -.Collapsemore { | |
| 608 | - background: #ff0000; | |
| 609 | - display: inline-block; | |
| 610 | - padding: 4px 10px; | |
| 611 | - font-size: 14px; | |
| 612 | - border-radius: 6px; | |
| 613 | - position: relative; | |
| 614 | - top: 0; | |
| 615 | - | |
| 616 | -} | |
| 617 | - | |
| 618 | -.Expandmore span { | |
| 619 | - color: #fff; | |
| 620 | - margin: 0 0 0 8px; | |
| 621 | - padding: 0 5px; | |
| 622 | - font-size: 18px; | |
| 623 | -} | |
| 624 | - </style> | |
| 625 | - | |
| 626 | -<script type="text/javascript"> | |
| 627 | -jQuery(".qcld-show-more-show-more").click(function () { | |
| 628 | - if(jQuery(".qcld-show-more-text").hasClass("qcld-show-more-show-more-height")) { | |
| 629 | - jQuery(this).html('<div class="Collapsemore">Collapse Options</div>'); | |
| 630 | - } else { | |
| 631 | - jQuery(this).html('<div class="Expandmore">Expand for More Options<span>+</span></div>'); | |
| 632 | - } | |
| 633 | - | |
| 634 | - jQuery(".qcld-show-more-text").toggleClass("qcld-show-more-show-more-height"); | |
| 635 | - }); | |
| 636 | - | |
| 637 | - | |
| 638 | -</script> | |
| 460 | +</style> | |