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 / appearance_settings / get_appearance_create_ticket.php

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

91 lines 5.2 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'))) {
8 exit;
9 }
10
11 $wpsc_appearance_create_ticket = get_option('wpsc_create_ticket');
12 ?>
13 <div id="wpsc_appearance_settings">
14 <form id="wpsc_frm_appearance_create_ticket_settings" method="post" action="javascript:wpsc_set_appearance_create_ticket_settings();">
15
16 <div class="form-group">
17 <label for="wpsc_ticket_widgets_color"><?php _e('Submit Button','supportcandy');?></label></br>
18 <div class="row" >
19 <div class="col-sm-4" style="">
20 <p class="help-block"><?php _e('Background color','supportcandy');?></p>
21 <input id="wpsc_submit_button_bg_color" class="wpsc_color_picker" name="appearance_create_ticket[wpsc_submit_button_bg_color]?>" value="<?php echo esc_attr($wpsc_appearance_create_ticket['wpsc_submit_button_bg_color']) ?>"/>
22 </div>
23 <div class="col-sm-4" style="">
24 <p class="help-block"><?php _e('Color','supportcandy');?></p>
25 <input id="wpsc_submit_button_text_color" class="wpsc_color_picker" name="appearance_create_ticket[wpsc_submit_button_text_color]" value="<?php echo esc_attr($wpsc_appearance_create_ticket['wpsc_submit_button_text_color']) ?>" />
26 </div>
27 <div class="col-sm-4" style="">
28 <p class="help-block"><?php _e('Border Color','supportcandy');?></p>
29 <input id="wpsc_submit_button_border_color" class="wpsc_color_picker" name="appearance_create_ticket[wpsc_submit_button_border_color]" value="<?php echo esc_attr($wpsc_appearance_create_ticket['wpsc_submit_button_border_color']) ?>" />
30 </div>
31 </div>
32 </div>
33
34 <div class="form-group">
35 <label for="wpsc_ticket_widgets_color"><?php _e('Reset Button','supportcandy');?></label></br>
36 <div class="row" >
37 <div class="col-sm-4" style="">
38 <p class="help-block"><?php _e('Background color','supportcandy');?></p>
39 <input id="wpsc_reset_button_bg_color" class="wpsc_color_picker" name="appearance_create_ticket[wpsc_reset_button_bg_color]?>" value="<?php echo esc_attr($wpsc_appearance_create_ticket['wpsc_reset_button_bg_color']) ?>"/>
40 </div>
41 <div class="col-sm-4" style="">
42 <p class="help-block"><?php _e('Color','supportcandy');?></p>
43 <input id="wpsc_reset_button_text_color" class="wpsc_color_picker" name="appearance_create_ticket[wpsc_reset_button_text_color]" value="<?php echo esc_attr($wpsc_appearance_create_ticket['wpsc_reset_button_text_color']) ?>" />
44 </div>
45 <div class="col-sm-4" style="">
46 <p class="help-block"><?php _e('Border Color','supportcandy');?></p>
47 <input id="wpsc_reset_button_border_color" class="wpsc_color_picker" name="appearance_create_ticket[wpsc_reset_button_border_color]" value="<?php echo esc_attr($wpsc_appearance_create_ticket['wpsc_reset_button_border_color']) ?>" />
48 </div>
49 </div>
50 </div>
51
52 <div class="form-group">
53 <label for="wpsc_ticket_widgets_color"><?php _e('Captcha','supportcandy');?></label></br>
54 <div class="row" >
55 <div class="col-sm-4" style="">
56 <p class="help-block"><?php _e('Background color','supportcandy');?></p>
57 <input id="wpsc_captcha_bg_color" class="wpsc_color_picker" name="appearance_create_ticket[wpsc_captcha_bg_color]?>" value="<?php echo esc_attr($wpsc_appearance_create_ticket['wpsc_captcha_bg_color']) ?>"/>
58 </div>
59 <div class="col-sm-4" style="">
60 <p class="help-block"><?php _e('Color','supportcandy');?></p>
61 <input id="wpsc_captcha_text_color" class="wpsc_color_picker" name="appearance_create_ticket[wpsc_captcha_text_color]" value="<?php echo esc_attr($wpsc_appearance_create_ticket['wpsc_captcha_text_color']) ?>" />
62 </div>
63 </div>
64 </div>
65
66 <div class="form-group">
67 <label for="wpsc_ticket_widgets_color"><?php _e('Extra Information','supportcandy');?></label></br>
68 <div class="row" >
69 <div class="col-sm-12" style="">
70 <p class="help-block"><?php _e('Background color','supportcandy');?></p>
71 <input id="wpsc_extra_info_text_color" class="wpsc_color_picker" name="appearance_create_ticket[wpsc_extra_info_text_color]?>" value="<?php echo esc_attr($wpsc_appearance_create_ticket['wpsc_extra_info_text_color']) ?>"/>
72 </div>
73 </div>
74 </div>
75
76 <button type="submit" id="wpsc_submit_app_tic_page_btn" class="btn btn-success" style="margin-bottom:10px;"><?php _e('Save Changes','supportcandy');?></button>
77 <button type="button" id="wpsc_reset_defult_app_tic_page_btn" onclick="wpsc_reset_default_create_ticket_settings('<?php echo wp_create_nonce('reset_default_create_ticket_settings')?>')" class="btn btn-sm btn-default" style="margin-bottom:10px; font-size:15px;"><?php _e('Reset Default','supportcandy');?></button>
78 <img class="wpsc_submit_wait" style="display:none;" src="<?php echo esc_url(WPSC_PLUGIN_URL.'asset/images/[email protected]');?>">
79 <input type="hidden" name="action" value="wpsc_appearance_settings" />
80 <input type="hidden" name="setting_action" value="set_appearance_create_ticket_settings" />
81 <input type="hidden" name="_ajax_nonce" value="<?php echo wp_create_nonce('set_appearance_create_ticket_settings')?>">
82
83 </form>
84
85 </div>
86
87 <script>
88 jQuery(document).ready(function(){
89 jQuery('.wpsc_color_picker').wpColorPicker();
90 });
91 </script>