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

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

72 lines 4.1 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_signup = get_option('wpsc_appearance_signup');
12 ?>
13
14 <div id="wpsc_appearance_settings">
15 <form id="wpsc_frm_appearnce_signup_settings" method="post" action="javascript:wpsc_set_appearance_sign_up();">
16
17 <div class="form-group">
18 <label for="wpsc_appearance_signup_button"><?php _e('Register Button ','supportcandy');?></label></br>
19 <div class="row">
20 <div class="col-sm-4" style="" id="wpsc_appearance_signup_button_bg_color">
21 <p class="help-block"><?php _e('Background color','supportcandy');?></p>
22 <input id="wpsc_appearance_signup_button_bg_color" class="wpsc_color_picker" name="wpsc_appearance_signup[wpsc_appearance_signup_button_bg_color]" value="<?php echo esc_attr($wpsc_appearance_signup['wpsc_appearance_signup_button_bg_color'])?>" />
23 </div>
24
25 <div class="col-sm-4" style="" id="wpsc_appearance_signup_button_text_color">
26 <p class="help-block"><?php _e('Color','supportcandy');?></p>
27 <input id="wpsc_appearance_signup_button_text_color" class="wpsc_color_picker" name="wpsc_appearance_signup[wpsc_appearance_signup_button_text_color]" value="<?php echo esc_attr($wpsc_appearance_signup['wpsc_appearance_signup_button_text_color'])?>" />
28 </div>
29
30 <div class="col-sm-4" style="">
31 <p class="help-block"><?php _e('Border Color','supportcandy');?></p>
32 <input id="wpsc_appearance_signup_button_border_color" class="wpsc_color_picker" name="wpsc_appearance_signup[wpsc_appearance_signup_button_border_color]" value="<?php echo esc_attr($wpsc_appearance_signup['wpsc_appearance_signup_button_border_color']) ?>" />
33 </div>
34 </div>
35 </div>
36
37 <div class="form-group">
38 <label for="wpsc_appearance_cancel_button"><?php _e('Cancel Button','supportcandy');?></label></br>
39 <div class="row">
40 <div class="col-sm-4" id="wpsc_appearance_cancel_button_bg_color">
41 <p class="help-block"><?php _e('Background color','supportcandy');?></p>
42 <input id="wpsc_appearance_cancel_button_bg_color" class="wpsc_color_picker" name="wpsc_appearance_signup[wpsc_appearance_cancel_button_bg_color]" value="<?php echo esc_attr($wpsc_appearance_signup['wpsc_appearance_cancel_button_bg_color'])?>" />
43 </div>
44
45 <div class="col-sm-4" id="wpsc_appearance_cancel_button_text_color">
46 <p class="help-block"><?php _e('Color','supportcandy');?></p>
47 <input id="wpsc_appearance_cancel_button_text_color" class="wpsc_color_picker" name="wpsc_appearance_signup[wpsc_appearance_cancel_button_text_color]" value="<?php echo esc_attr($wpsc_appearance_signup['wpsc_appearance_cancel_button_text_color'])?>" />
48 </div>
49
50 <div class="col-sm-4" style="">
51 <p class="help-block"><?php _e('Border Color','supportcandy');?></p>
52 <input id="wpsc_appearance_cancel_button_border_color" class="wpsc_color_picker" name="wpsc_appearance_signup[wpsc_appearance_cancel_button_border_color]" value="<?php echo esc_attr($wpsc_appearance_signup['wpsc_appearance_cancel_button_border_color']) ?>" />
53 </div>
54 </div>
55 </div>
56
57 <button type="submit" class="btn btn-success" style="margin-bottom:10px;"><?php _e('Save Changes','supportcandy');?></button>
58 <button type="button" onclick="wpsc_reset_appearance_signup_form('<?php echo wp_create_nonce('reset_appearance_signup_form')?>')" class="btn btn-sm btn-default" style="margin-bottom:10px; font-size:15px;"><?php _e('Reset Default','supportcandy');?></button>
59 <img class="wpsc_submit_wait" style="display:none;" src="<?php echo esc_url(WPSC_PLUGIN_URL.'asset/images/[email protected]');?>">
60 <input type="hidden" name="action" value="wpsc_appearance_settings" />
61 <input type="hidden" name="setting_action" value="set_appearance_signup" />
62 <input type="hidden" name="_ajax_nonce" value="<?php echo wp_create_nonce('set_appearance_signup')?>">
63 </form>
64
65 </div>
66
67 <script>
68 jQuery(document).ready(function(){
69 jQuery('.wpsc_color_picker').wpColorPicker();
70 });
71 </script>
72