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_general_settings.php

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

104 lines 5.9 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_general_settings = get_option('wpsc_appearance_general_settings');
12 ?>
13 <div id="wpsc_appearance_settings">
14 <form id="wpsc_frm_appearance_general_settings" method="post" action="javascript:wpsc_set_appearance_general_settings();">
15
16 <div class="form-group">
17 <label for="wpsc_status_bg_color"><?php _e('Background Color','supportcandy');?></label>
18 <div class="row">
19 <div class="col-sm-12" style="">
20 <p class="help-block"><?php _e('Background color of container for all screens including ticket list, open ticket, create ticket, etc.','supportcandy');?></p>
21 <input id="wpsc_bg_color" class="wpsc_color_picker" name="general_settings[wpsc_bg_color]" value="<?php echo esc_attr($wpsc_appearance_general_settings['wpsc_bg_color'])?>" />
22 </div>
23 </div>
24 </div>
25
26 <div class="form-group">
27 <label for="wpsc_status_color"><?php _e('Color','supportcandy');?></label>
28 <div class="row">
29 <div class="col-sm-12" style="">
30 <p class="help-block"><?php _e('Text color of container for all screens including ticket list, open ticket, create ticket, etc.','supportcandy');?></p>
31 <input id="wpsc_text_color" class="wpsc_color_picker" name="general_settings[wpsc_text_color]" value="<?php echo esc_attr($wpsc_appearance_general_settings['wpsc_text_color'])?>" />
32 </div>
33 </div>
34 </div>
35
36 <div class="form-group">
37 <label for="wpsc_action_bar_color"><?php _e('Action Bar Color','supportcandy');?></label>
38 <div class="row">
39 <div class="col-sm-12">
40 <p class="help-block"><?php _e('Color of action bar for all screens. This color also gets applied to container border','supportcandy');?></p>
41 <input id="wpsc_action_bar_color" class="wpsc_color_picker" name="general_settings[wpsc_action_bar_color]" value="<?php echo esc_attr($wpsc_appearance_general_settings['wpsc_action_bar_color'])?>" />
42 </div>
43 </div>
44 </div>
45
46 <div class="form-group">
47 <label for="wpsc_crt_ticket_action_bar_color"><?php _e('Create Ticket Button (Action Bar)','supportcandy');?></label></br>
48 <div class="row">
49 <div class="col-sm-4" id="wpsc_crt_ticket_btn_action_bar_bg_color">
50 <p class="help-block"><?php _e('Background color','supportcandy');?></p>
51 <input id="wpsc_crt_ticket_btn_action_bar_bg_color" class="wpsc_color_picker" name="general_settings[wpsc_crt_ticket_btn_action_bar_bg_color]" value="<?php echo esc_attr($wpsc_appearance_general_settings['wpsc_crt_ticket_btn_action_bar_bg_color'])?>"/>
52 </div>
53 <div class="col-sm-4" id="wpsc_crt_ticket_btn_action_bar_text_color">
54 <p class="help-block"><?php _e('Color','supportcandy');?></p>
55 <input id="wpsc_crt_ticket_btn_action_bar_text_color" class="wpsc_color_picker" name="general_settings[wpsc_crt_ticket_btn_action_bar_text_color]" value="<?php echo esc_attr($wpsc_appearance_general_settings['wpsc_crt_ticket_btn_action_bar_text_color'])?>" />
56 </div>
57 </div>
58 </div>
59
60 <div class="form-group">
61 <label for="wpsc_default_buttons_action_bar_color"><?php _e('Default Buttons (Action Bar)','supportcandy');?></label></br>
62 <div class="row">
63 <div class="col-sm-4" id="wpsc_default_btn_action_bar_bg_color">
64 <p class="help-block"><?php _e('Background color','supportcandy');?></p>
65 <input id="wpsc_default_btn_action_bar_bg_color" class="wpsc_color_picker" name="general_settings[wpsc_default_btn_action_bar_bg_color]" value="<?php echo esc_attr($wpsc_appearance_general_settings['wpsc_default_btn_action_bar_bg_color'])?>" />
66 </div>
67
68 <div class="col-sm-4" id="wpsc_crt_ticket_btn_action_bar_text_color">
69 <p class="help-block"><?php _e('Color','supportcandy');?></p>
70 <input id="wpsc_default_btn_action_bar_text_color" class="wpsc_color_picker" name="general_settings[wpsc_default_btn_action_bar_text_color]" value="<?php echo esc_attr($wpsc_appearance_general_settings['wpsc_default_btn_action_bar_text_color'])?>" />
71 </div>
72 </div>
73 </div>
74
75 <div class="form-group">
76 <label for="wpsc_default_buttons_action_bar_color"><?php _e('Sign Out Button','supportcandy');?></label></br>
77 <div class="row">
78 <div class="col-sm-4" id="wpsc_sign_out_bg_color">
79 <p class="help-block"><?php _e('Background color','supportcandy');?></p>
80 <input id="wpsc_default_btn_action_bar_bg_color" class="wpsc_color_picker" name="general_settings[wpsc_sign_out_bg_color]" value="<?php echo esc_attr($wpsc_appearance_general_settings['wpsc_sign_out_bg_color'])?>" />
81 </div>
82
83 <div class="col-sm-4" id="wpsc_crt_ticket_btn_action_bar_text_color">
84 <p class="help-block"><?php _e('Color','supportcandy');?></p>
85 <input id="wpsc_sign_out_text_color" class="wpsc_color_picker" name="general_settings[wpsc_sign_out_text_color]" value="<?php echo esc_attr($wpsc_appearance_general_settings['wpsc_sign_out_text_color'])?>" />
86 </div>
87 </div>
88 </div>
89
90 <button type="submit" id="wpsc_submit_app_gen_btn" class="btn btn-success" style="margin-bottom:10px;"><?php _e('Save Changes','supportcandy');?></button>
91 <button type="button" id="wpsc_reset_defult_app_general_btn" onclick="wpsc_reset_default_general_settings('<?php echo wp_create_nonce('reset_default_general_settings')?>')" class="btn btn-sm btn-default" style="margin-bottom:10px; font-size:15px;"><?php _e('Reset Default','supportcandy');?></button>
92 <img class="wpsc_submit_wait" style="display:none;" src="<?php echo esc_url(WPSC_PLUGIN_URL.'asset/images/[email protected]');?>">
93 <input type="hidden" name="action" value="wpsc_appearance_settings" />
94 <input type="hidden" name="setting_action" value="set_appearance_general_settings" />
95 <input type="hidden" name="_ajax_nonce" value="<?php echo wp_create_nonce('set_appearance_general_settings')?>">
96 </form>
97
98 </div>
99
100 <script>
101 jQuery(document).ready(function(){
102 jQuery('.wpsc_color_picker').wpColorPicker();
103 });
104 </script>