| @@ -17,13 +17,13 @@ | ||
| 17 | 17 | elseif(isset($_GET['page']) && $_GET['page']=='simple-text-response' && isset($_GET['action']) && $_GET['action']=='import'): |
| 18 | 18 | |
| 19 | 19 | do_action('qcld_str_import'); |
| 20 | 20 | |
| 21 | - elseif(isset($_GET['action']) && wp_unslash($_GET['action'])=='manage-categories'): | |
| 21 | + elseif(isset($_GET['action']) && $_GET['action']=='manage-categories'): | |
| 22 | 22 | |
| 23 | 23 | include_once(QCLD_wpCHATBOT_PLUGIN_DIR_PATH.'/includes/templates/manage-categories.php'); |
| 24 | 24 | |
| 25 | - elseif(isset($_GET['action']) && wp_unslash($_GET['action'])=='edit'): | |
| 25 | + elseif(isset($_GET['action']) && $_GET['action']=='edit'): | |
| 26 | 26 | |
| 27 | 27 | if(class_exists('Qcld_str_pro')): |
| 28 | 28 | do_action('qcld_str_pro_stredit'); |
| 29 | 29 | else: |
| @@ -28,20 +28,24 @@ | ||
| 28 | 28 | do_action('qcld_str_pro_stredit'); |
| 29 | 29 | else: |
| 30 | 30 | |
| 31 | 31 | $hasEdit = false; |
| 32 | - if(isset($_GET['query']) && wp_unslash($_GET['query'])!=''){ | |
| 32 | + if(isset($_GET['query']) && $_GET['query']!=''){ | |
| 33 | 33 | $hasEdit = true; |
| 34 | - $id = sanitize_text_field(wp_unslash($_GET['query'])); | |
| 34 | + $id = sanitize_text_field($_GET['query']); | |
| 35 | 35 | $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 | |
| 36 | + $data = $wpdb->get_row($wpdb->prepare("select * from $table where id = %d", $id)); //DB Call OK, No Caching OK | |
| 37 | + | |
| 37 | 38 | } |
| 39 | + | |
| 40 | + | |
| 38 | 41 | ?> |
| 42 | + | |
| 43 | + | |
| 39 | 44 | <div class="qcld-wp-chatbot-wrap-header"> |
| 40 | 45 | |
| 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> | |
| 46 | + <a href="#" class="qcld-wp-chatbot-wrap-site__logo"><img style="width:100%" src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/chatbot.png' ); ?>" alt="Dialogflow CX"> WPBot Control Panel </a> | |
| 47 | + <p><strong>Core Version:</strong> v<?php echo QCLD_wpCHATBOT_VERSION; ?></p> | |
| 44 | 48 | <ul class="qcld-wp-chatbot-wrap-version-wrapper"> |
| 45 | 49 | <li> |
| 46 | 50 | <a class="wpchatbot-Upgrade" href="https://www.wpbot.pro/" target="_blank">Upgrade To Pro</a> |
| 47 | 51 | |
| @@ -47,33 +51,40 @@ | ||
| 47 | 51 | |
| 48 | 52 | </li> |
| 49 | 53 | </ul> |
| 50 | 54 | </div> |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 51 | 60 | <div class="TextResponsesoutside"> |
| 61 | + | |
| 52 | 62 | <div class="qcwrap TextResponses"> |
| 63 | + | |
| 53 | 64 | <div class="wp-chatbot-wrap"> |
| 54 | 65 | <div class="wpbot_dashboard_header "><h1><?php echo ($hasEdit?'Edit':'Add') ?> Response</h1></div> |
| 55 | 66 | <form method="post" action=""> |
| 56 | 67 | <div class="wpbot_addons_section "> |
| 57 | 68 | <div class="wpbot_single_addon_wrapper2"> |
| 58 | - <p><b><?php esc_html_e('Please note the following ', 'chatbot'); ?></b></p> | |
| 69 | + <p><b><?php esc_html_e('Please note the following ', 'wpbot'); ?></b></p> | |
| 59 | 70 | <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> | |
| 71 | + <li> <?php esc_html_e('1. The Query, Response and Keywords fields will be searched. Add Keywords for best matches', 'wpbot'); ?></li> | |
| 72 | + <li> <?php esc_html_e('2. Please clear browser Cache and Cookies both before testing new responses', 'wpbot'); ?></li> | |
| 62 | 73 | </ul> |
| 63 | 74 | <table class="form-table-str form-table"> |
| 64 | 75 | <tbody> |
| 65 | 76 | <tr valign="top"> |
| 66 | - <th scope="row"><?php esc_html_e('Query', 'chatbot'); ?></th> | |
| 77 | + <th scope="row"><?php esc_html_e('Query', 'wpbot'); ?></th> | |
| 67 | 78 | <td> |
| 68 | 79 | <input name="str_nonce" type="hidden" value="<?php echo sanitize_key( wp_create_nonce('str-nonce') ); ?>" /> |
| 69 | 80 | <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> | |
| 81 | + <br><i><?php esc_html_e('*Required. Add the query here. ', 'wpbot'); ?></i> | |
| 71 | 82 | </td> |
| 72 | 83 | </tr> |
| 73 | 84 | |
| 74 | 85 | <tr valign="top"> |
| 75 | - <th scope="row"> <?php esc_html_e('Response', 'chatbot'); ?></th> | |
| 86 | + <th scope="row"> <?php esc_html_e('Response', 'wpbot'); ?></th> | |
| 76 | 87 | <td> |
| 77 | 88 | <?php |
| 78 | 89 | |
| 79 | 90 | $content = ($hasEdit?$data->response:''); |
| @@ -82,9 +93,9 @@ | ||
| 82 | 93 | |
| 83 | 94 | wp_editor( $content, $editor_id, $settings ); |
| 84 | 95 | |
| 85 | 96 | ?> |
| 86 | - <br><i><?php esc_html_e('*Required. Add the response here. ', 'chatbot'); ?></i> | |
| 97 | + <br><i><?php esc_html_e('*Required. Add the response here. ', 'wpbot'); ?></i> | |
| 87 | 98 | </td> |
| 88 | 99 | </tr> |
| 89 | 100 | <tr valign="top"> |
| 90 | 101 | <th scope="row">Keyword</th> |
| @@ -89,9 +100,9 @@ | ||
| 89 | 100 | <tr valign="top"> |
| 90 | 101 | <th scope="row">Keyword</th> |
| 91 | 102 | <td> |
| 92 | 103 | <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> | |
| 104 | + <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 | 105 | </td> |
| 95 | 106 | </tr> |
| 96 | 107 | |
| 97 | 108 | |
| @@ -99,11 +110,14 @@ | ||
| 99 | 110 | |
| 100 | 111 | <input type="hidden" name="qc_bot_str_id" value="<?php echo esc_attr($data->id); ?>" /> |
| 101 | 112 | |
| 102 | 113 | <?php endif; ?> |
| 114 | + | |
| 115 | + | |
| 103 | 116 | </tbody> |
| 104 | 117 | </table> |
| 105 | 118 | </div> |
| 119 | + | |
| 106 | 120 | <footer class="wp-chatbot-admin-footer"> |
| 107 | 121 | <div class="row"> |
| 108 | 122 | <div class="text-left col-sm-3 col-sm-offset-3"> |
| 109 | 123 | |
| @@ -113,8 +127,10 @@ | ||
| 113 | 127 | </div> |
| 114 | 128 | </div> |
| 115 | 129 | <!-- row--> |
| 116 | 130 | </footer> |
| 131 | + | |
| 132 | + | |
| 117 | 133 | </div></form> |
| 118 | 134 | </div> |
| 119 | 135 | </div> |
| 120 | 136 | </div> |
| @@ -122,12 +138,14 @@ | ||
| 122 | 138 | |
| 123 | 139 | |
| 124 | 140 | <?php else: ?> |
| 125 | 141 | |
| 142 | + | |
| 143 | + | |
| 126 | 144 | <div class="qcld-wp-chatbot-wrap-header"> |
| 127 | 145 | |
| 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> | |
| 146 | + <a href="#" class="qcld-wp-chatbot-wrap-site__logo"><img style="width:100%" src="<?php echo esc_url( QCLD_wpCHATBOT_IMG_URL . '/chatbot.png' ); ?>" alt="Dialogflow CX"> WPBot Control Panel </a> | |
| 147 | + <p><strong>Core Version:</strong> v<?php echo QCLD_wpCHATBOT_VERSION; ?></p> | |
| 130 | 148 | <ul class="qcld-wp-chatbot-wrap-version-wrapper"> |
| 131 | 149 | <li> |
| 132 | 150 | <a class="wpchatbot-Upgrade" href="https://www.wpbot.pro/" target="_blank">Upgrade To Pro</a> |
| 133 | 151 | |
| @@ -136,70 +154,67 @@ | ||
| 136 | 154 | </div> |
| 137 | 155 | |
| 138 | 156 | <div class="qcld-wp-chatbot-wrap-header_inn"> |
| 139 | 157 | <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> | |
| 158 | + <h1 class="wp-heading-inline"><?php esc_html_e('Simple Text Responses', 'wpbot'); ?></h1> | |
| 159 | + <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> | |
| 142 | 160 | </div> |
| 143 | 161 | <?php if(class_exists('Qcld_str_pro')): ?> |
| 144 | 162 | |
| 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> | |
| 163 | + <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> | |
| 164 | + <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> | |
| 165 | + <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> | |
| 148 | 166 | </div> |
| 167 | + | |
| 168 | + | |
| 149 | 169 | <?php endif; ?> |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 150 | 176 | <div class="TextResponsesouter"> |
| 177 | + | |
| 151 | 178 | <div class="wrap TextResponses"> |
| 179 | + | |
| 152 | 180 | |
| 153 | -<div id="qcld-show-more-wrapper-box"> | |
| 154 | -<div class="qcld-show-more-text qcld-show-more-show-more-height"> | |
| 155 | 181 | |
| 156 | 182 | <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> | |
| 183 | + | |
| 184 | + <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'); ?><br> | |
| 185 | + <b><?php esc_html_e('NB: Simple Text Responses require mySQL Client version 5.6+', 'wpbot'); ?></b></p> | |
| 159 | 186 | </div> |
| 160 | 187 | <form method="post" action=""> |
| 161 | 188 | <table class="form-table-str form-table"> |
| 162 | 189 | <tbody> |
| 163 | 190 | <tr valign="top"> |
| 164 | - <th scope="row"><?php esc_html_e('Phrase matching accuracy', 'chatbot'); ?></th> | |
| 191 | + <th scope="row"><?php esc_html_e('Phrase matching accuracy', 'wpbot'); ?></th> | |
| 165 | 192 | <td> |
| 166 | 193 | <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> | |
| 194 | + <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: 100%;" required /> | |
| 195 | + <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 | 196 | </td> |
| 170 | 197 | </tr> |
| 171 | 198 | <tr valign="top"> |
| 172 | - <th scope="row"><?php esc_html_e('Search Fields', 'chatbot'); ?></th> | |
| 199 | + <th scope="row"><?php esc_html_e('Search Fields', 'wpbot'); ?></th> | |
| 173 | 200 | <td> |
| 174 | 201 | <?php |
| 175 | 202 | $fields = get_option('qc_bot_str_fields'); |
| 176 | 203 | ?> |
| 177 | 204 | |
| 178 | - <label for="qc_bot_str_field_title"><?php esc_html_e('Title', 'chatbot'); ?></label> | |
| 205 | + <label for="qc_bot_str_field_title"><?php esc_html_e('Title', 'wpbot'); ?></label> | |
| 179 | 206 | <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 | 207 | |
| 181 | - <label for="qc_bot_str_field_keyword"><?php esc_html_e('Keyword', 'chatbot'); ?></label> | |
| 208 | + <label for="qc_bot_str_field_keyword"><?php esc_html_e('Keyword', 'wpbot'); ?></label> | |
| 182 | 209 | <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 | 210 | |
| 184 | - <label for="qc_bot_str_field_response"><?php esc_html_e('Response', 'chatbot'); ?></label> | |
| 211 | + <label for="qc_bot_str_field_response"><?php esc_html_e('Response', 'wpbot'); ?></label> | |
| 185 | 212 | <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> | |
| 213 | + <br><i><?php esc_html_e('Please check/uncheck to allow/disallow searching in that fields', 'wpbot'); ?></i> | |
| 187 | 214 | </td> |
| 188 | 215 | </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 } ?> | |
| 216 | + | |
| 202 | 217 | <tr valign="top"> |
| 203 | 218 | <th scope="row"></th> |
| 204 | 219 | <td> |
| 205 | 220 | <input type="submit" class="button button-primary" name="submit" id="submit" value="Save Settings"> |
| @@ -207,30 +222,24 @@ | ||
| 207 | 222 | </tr> |
| 208 | 223 | </tbody> |
| 209 | 224 | </table> |
| 210 | 225 | </form> |
| 226 | + | |
| 211 | 227 | <form method="post" action=""> |
| 212 | 228 | <table class="form-table-str form-table"> |
| 213 | 229 | <tbody> |
| 214 | 230 | <tr valign="top"> |
| 215 | - <th scope="row"><?php esc_html_e('Re-Index STR', 'chatbot'); ?></th> | |
| 231 | + <th scope="row"><?php esc_html_e('Re-Index STR', 'wpbot'); ?></th> | |
| 216 | 232 | <td> |
| 217 | 233 | <input name="str_nonce" type="hidden" value="<?php echo sanitize_key( wp_create_nonce('str-nonce') ); ?>" /> |
| 218 | 234 | <input type="submit" class="button button-primary" name="qc-re-index" id="re-index" value="Re Index"> |
| 219 | 235 | |
| 220 | - <i><?php esc_html_e('Re-Index if results are not as expected.', 'chatbot'); ?></i> | |
| 236 | + <i><?php esc_html_e('Re-Index if results are not as expected.', 'wpbot'); ?></i> | |
| 221 | 237 | </td> |
| 222 | 238 | </tr> |
| 223 | 239 | </tbody> |
| 224 | 240 | </table> |
| 225 | 241 | </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 | 242 | <div id="poststuff"> |
| 234 | 243 | <div id="post-body" class="metabox-holder"> |
| 235 | 244 | <div id="post-body-content-edit" class="str-form"> |
| 236 | 245 | <div class="meta-box-sortables ui-sortable"> |
| @@ -235,9 +244,9 @@ | ||
| 235 | 244 | <div id="post-body-content-edit" class="str-form"> |
| 236 | 245 | <div class="meta-box-sortables ui-sortable"> |
| 237 | 246 | <form method="post"> |
| 238 | 247 | |
| 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> | |
| 248 | + <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 | 249 | <?php |
| 241 | 250 | $this->response_list->prepare_items(); |
| 242 | 251 | $this->response_list->display(); ?> |
| 243 | 252 | </form> |
| @@ -250,9 +259,8 @@ | ||
| 250 | 259 | </div> |
| 251 | 260 | <?php endif; ?> |
| 252 | 261 | |
| 253 | 262 | |
| 254 | - | |
| 255 | 263 | <style> |
| 256 | 264 | body { |
| 257 | 265 | background-color: #F5F7FD; |
| 258 | 266 | font-family: "DM Sans", sans-serif !important; |
| @@ -438,9 +446,9 @@ | ||
| 438 | 446 | .qcld-wp-chatbot-wrap-header_inn { |
| 439 | 447 | position: relative; |
| 440 | 448 | } |
| 441 | 449 | .notice.is-dismissible.qcbot-str-top-notic { |
| 442 | - width: 95%; | |
| 450 | + width: 96%; | |
| 443 | 451 | } |
| 444 | 452 | |
| 445 | 453 | .TextResponsesouter i { |
| 446 | 454 | position: relative; |
| @@ -472,151 +480,5 @@ | ||
| 472 | 480 | border-radius: 6px; |
| 473 | 481 | font-weight: bold; |
| 474 | 482 | } |
| 475 | 483 | |
| 476 | - | |
| 477 | -#qcld-show-more-wrapper-box { | |
| 478 | - margin-top: 0; | |
| 479 | - position:relative; | |
| 480 | -} | |
| 481 | -#qcld-show-more-wrapper-box .qcld-show-more-text { | |
| 482 | -/* width: 660px; */ | |
| 483 | - margin-bottom: 5px; | |
| 484 | - padding: 0 0; | |
| 485 | - position:relative; | |
| 486 | - display: block; | |
| 487 | -} | |
| 488 | -#qcld-show-more-wrapper-box .qcld-show-more-show-more { | |
| 489 | - color: #ffffff; | |
| 490 | - position: relative; | |
| 491 | - padding: 40px 0 0 0; | |
| 492 | - height: 40px; | |
| 493 | - text-align: center; | |
| 494 | - background: #f1f1f1; | |
| 495 | - cursor: pointer; | |
| 496 | - background: linear-gradient(to bottom, rgb(255 255 255 / 53%) 0%, rgb(188 174 255) 100%); | |
| 497 | - margin: -18px 0 0 0; | |
| 498 | - border-radius: 0 0 15px 15px; | |
| 499 | - z-index: 99999; | |
| 500 | - font-weight: bold; | |
| 501 | - | |
| 502 | -} | |
| 503 | - | |
| 504 | -#qcld-show-more-wrapper-box .qcld-show-more-show-more-height { | |
| 505 | - height: 112px; | |
| 506 | - overflow:hidden; | |
| 507 | -} | |
| 508 | - | |
| 509 | -#qcld-show-more-wrapper-box .qcld-show-more-show-more i { | |
| 510 | - display: block; | |
| 511 | - padding: 0 0 0 0; | |
| 512 | - background: #5b4e96; | |
| 513 | - width: 30px; | |
| 514 | - height: 30px; | |
| 515 | - line-height: 30px; | |
| 516 | - border-radius: 50%; | |
| 517 | - margin: -15px auto 0 auto; | |
| 518 | - font-size: 18px !important; | |
| 519 | - color: #fff; | |
| 520 | -} | |
| 521 | -.TextResponsesouter input#submit:hover { | |
| 522 | - background: #5B4E96; | |
| 523 | - color: #fff; | |
| 524 | - border: 2px solid #5B4E96; | |
| 525 | -} | |
| 526 | - | |
| 527 | -.TextResponsesouter input#re-index:hover { | |
| 528 | - background: #5B4E96; | |
| 529 | - color: #fff; | |
| 530 | - border: 2px solid #5B4E96; | |
| 531 | -} | |
| 532 | -.TextResponsesouter table.widefat { | |
| 533 | - border: 1px solid #ebebeb; | |
| 534 | -} | |
| 535 | -.TextResponsesouter .tablenav { | |
| 536 | - padding: 8px; | |
| 537 | - background: #5B4E96; | |
| 538 | -} | |
| 539 | -.TextResponsesouter span.displaying-num { | |
| 540 | - color: #fff; | |
| 541 | -} | |
| 542 | - | |
| 543 | -.TextResponsesouter .tablenav #doaction, .TextResponsesouter .tablenav #doaction2 { | |
| 544 | - border: 1px solid #ffffff !important; | |
| 545 | - color: #ffffff !important; | |
| 546 | -} | |
| 547 | - | |
| 548 | - | |
| 549 | - | |
| 550 | -.qcld-wp-chatbot-wrap-header-logo { | |
| 551 | - display: flex; | |
| 552 | - align-items: center; | |
| 553 | - gap: 10px; | |
| 554 | -} | |
| 555 | - | |
| 556 | -.qcld-wp-chatbot-wrap-header_inn a.button.page-title-action { | |
| 557 | - padding: 8px 15px; | |
| 558 | - background: #ffffff; | |
| 559 | - color: #5B4E96; | |
| 560 | - border: 2px solid #5B4E96; | |
| 561 | - border-radius: 6px; | |
| 562 | - font-weight: bold; | |
| 563 | - position: absolute; | |
| 564 | - top: 30px; | |
| 565 | - left: 280px; | |
| 566 | - line-height: normal; | |
| 567 | - min-height: unset; | |
| 568 | -} | |
| 569 | -.qcld-wp-chatbot-wrap-header_inn a.button.page-title-action:hover { | |
| 570 | - padding: 8px 15px; | |
| 571 | - background: #5B4E96; | |
| 572 | - color: #fff; | |
| 573 | - border: 2px solid #5B4E96; | |
| 574 | - border-radius: 6px; | |
| 575 | - font-weight: bold; | |
| 576 | - position: absolute; | |
| 577 | - top: 30px; | |
| 578 | - left: 280px; | |
| 579 | -} | |
| 580 | - | |
| 581 | -.Expandmore { | |
| 582 | - background: #23ab10; | |
| 583 | - display: inline-block; | |
| 584 | - padding: 4px 10px; | |
| 585 | - font-size: 14px; | |
| 586 | - border-radius: 6px; | |
| 587 | - position: relative; | |
| 588 | - top: 0; | |
| 589 | -} | |
| 590 | - | |
| 591 | -.Collapsemore { | |
| 592 | - background: #ff0000; | |
| 593 | - display: inline-block; | |
| 594 | - padding: 4px 10px; | |
| 595 | - font-size: 14px; | |
| 596 | - border-radius: 6px; | |
| 597 | - position: relative; | |
| 598 | - top: 0; | |
| 599 | - | |
| 600 | -} | |
| 601 | - | |
| 602 | -.Expandmore span { | |
| 603 | - color: #fff; | |
| 604 | - margin: 0 0 0 8px; | |
| 605 | - padding: 0 5px; | |
| 606 | - font-size: 18px; | |
| 607 | -} | |
| 608 | - </style> | |
| 609 | - | |
| 610 | -<script type="text/javascript"> | |
| 611 | -jQuery(".qcld-show-more-show-more").click(function () { | |
| 612 | - if(jQuery(".qcld-show-more-text").hasClass("qcld-show-more-show-more-height")) { | |
| 613 | - jQuery(this).html('<div class="Collapsemore">Collapse Options</div>'); | |
| 614 | - } else { | |
| 615 | - jQuery(this).html('<div class="Expandmore">Expand for More Options<span>+</span></div>'); | |
| 616 | - } | |
| 617 | - | |
| 618 | - jQuery(".qcld-show-more-text").toggleClass("qcld-show-more-show-more-height"); | |
| 619 | - }); | |
| 620 | - | |
| 621 | - | |
| 622 | -</script> | |
| 484 | + </style> | |