PluginProbe
SupportCandy – AI Customer Support Ticket System & Live Chatbot Agent / 2.3.1
SupportCandy – AI Customer Support Ticket System & Live Chatbot Agent v2.3.1
3.5.4 3.5.3 3.5.2 3.5.1 3.4.9 3.5.0 3.4.8 3.4.7 trunk 2.3.1 3.3.6 3.3.7 3.3.8 3.3.9 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.4.6
supportcandy / includes / admin / settings / get_add_priority.php

get_add_priority.php in SupportCandy – AI Customer Support Ticket System & Live Chatbot Agent 2.3.1, at includes/admin/settings/get_add_priority.php

46 lines 1.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 exit; // Exit if accessed directly
4 }
5
6 global $current_user;
7 if (!($current_user->ID && $current_user->has_cap('manage_options'))) {exit;}
8
9 ob_start();
10 ?>
11 <div class="form-group">
12 <label for="wpsc_priority_name"><?php _e('Priority Name','supportcandy');?></label>
13 <p class="help-block"><?php _e('Insert priority name. Please make sure priority name you are entering should not already exist.','supportcandy');?></p>
14 <input id="wpsc_priority_name" class="form-control" name="wpsc_priority_name" value="" />
15 </div>
16 <div class="form-group">
17 <label for="wpsc_priority_color"><?php _e('Color','supportcandy');?></label>
18 <p class="help-block"><?php _e('Text color of priority.','supportcandy');?></p>
19 <input id="wpsc_priority_color" class="wpsc_color_picker" name="wpsc_priority_color" value="#ffffff" />
20 </div>
21 <div class="form-group">
22 <label for="wpsc_priority_bg_color"><?php _e('Background Color','supportcandy');?></label>
23 <p class="help-block"><?php _e('Background color of priority.','supportcandy');?></p>
24 <input id="wpsc_priority_bg_color" class="wpsc_color_picker" name="wpsc_priority_bg_color" value="#1E90FF" />
25 </div>
26 <script>
27 jQuery(document).ready(function(){
28 jQuery('.wpsc_color_picker').wpColorPicker();
29 });
30 </script>
31 <?php
32 $body = ob_get_clean();
33 ob_start();
34 ?>
35 <button type="button" class="btn wpsc_popup_close" onclick="wpsc_modal_close();"><?php _e('Close','supportcandy');?></button>
36 <button type="button" class="btn wpsc_popup_action" onclick="wpsc_set_add_priority();"><?php _e('Submit','supportcandy');?></button>
37 <?php
38 $footer = ob_get_clean();
39
40 $output = array(
41 'body' => $body,
42 'footer' => $footer
43 );
44
45 wp_send_json($output);
46