| 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 |
$wpsc_appearance_modal_window = get_option('wpsc_modal_window'); |
| 11 |
|
| 12 |
?> |
| 13 |
<div id="wpsc_appearance_settings"> |
| 14 |
<form id="wpsc_frm_appearance_modal_window_settings" method="post" action="javascript:wpsc_set_appearance_modal_window_settings();"> |
| 15 |
|
| 16 |
<div class="form-group"> |
| 17 |
<label for="wpsc_ticket_widgets_color"><?php _e('Header','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_header_bg_color" class="wpsc_color_picker" name="appearance_modal_window[wpsc_header_bg_color]?>" value="<?php echo esc_attr($wpsc_appearance_modal_window['wpsc_header_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_header_text_color" class="wpsc_color_picker" name="appearance_modal_window[wpsc_header_text_color]" value="<?php echo esc_attr($wpsc_appearance_modal_window['wpsc_header_text_color']) ?>" /> |
| 26 |
</div> |
| 27 |
</div> |
| 28 |
</div> |
| 29 |
|
| 30 |
<div class="form-group"> |
| 31 |
<label for="wpsc_ticket_widgets_color"><?php _e('Footer','supportcandy');?></label></br> |
| 32 |
<div class="row" > |
| 33 |
<div class="col-sm-4" style=""> |
| 34 |
<p class="help-block"><?php _e('Background color','supportcandy');?></p> |
| 35 |
<input id="wpsc_footer_bg_color" class="wpsc_color_picker" name="appearance_modal_window[wpsc_footer_bg_color]?>" value="<?php echo esc_attr($wpsc_appearance_modal_window['wpsc_footer_bg_color']) ?>"/> |
| 36 |
</div> |
| 37 |
</div> |
| 38 |
</div> |
| 39 |
|
| 40 |
<div class="form-group"> |
| 41 |
<label for="wpsc_ticket_widgets_color"><?php _e('Close Button','supportcandy');?></label></br> |
| 42 |
<div class="row" > |
| 43 |
<div class="col-sm-4" style=""> |
| 44 |
<p class="help-block"><?php _e('Background color','supportcandy');?></p> |
| 45 |
<input id="wpsc_close_button_bg_color" class="wpsc_color_picker" name="appearance_modal_window[wpsc_close_button_bg_color]?>" value="<?php echo esc_attr($wpsc_appearance_modal_window['wpsc_close_button_bg_color']) ?>"/> |
| 46 |
</div> |
| 47 |
<div class="col-sm-4" style=""> |
| 48 |
<p class="help-block"><?php _e('Color','supportcandy');?></p> |
| 49 |
<input id="wpsc_close_button_text_color" class="wpsc_color_picker" name="appearance_modal_window[wpsc_close_button_text_color]" value="<?php echo esc_attr($wpsc_appearance_modal_window['wpsc_close_button_text_color']) ?>" /> |
| 50 |
</div> |
| 51 |
</div> |
| 52 |
</div> |
| 53 |
|
| 54 |
<div class="form-group"> |
| 55 |
<label for="wpsc_ticket_widgets_color"><?php _e('Action Button','supportcandy');?></label></br> |
| 56 |
<div class="row" > |
| 57 |
<div class="col-sm-4" style=""> |
| 58 |
<p class="help-block"><?php _e('Background color','supportcandy');?></p> |
| 59 |
<input id="wpsc_action_button_bg_color" class="wpsc_color_picker" name="appearance_modal_window[wpsc_action_button_bg_color]?>" value="<?php echo esc_attr($wpsc_appearance_modal_window['wpsc_action_button_bg_color']) ?>"/> |
| 60 |
</div> |
| 61 |
<div class="col-sm-4" style=""> |
| 62 |
<p class="help-block"><?php _e('Color','supportcandy');?></p> |
| 63 |
<input id="wpsc_action_button_text_color" class="wpsc_color_picker" name="appearance_modal_window[wpsc_action_button_text_color]" value="<?php echo esc_attr($wpsc_appearance_modal_window['wpsc_action_button_text_color']) ?>" /> |
| 64 |
</div> |
| 65 |
</div> |
| 66 |
</div> |
| 67 |
|
| 68 |
<button type="submit" class="btn btn-success" id="wpsc_submit_app_modal_window_btn" style="margin-bottom:10px;"><?php _e('Save Changes','supportcandy');?></button> |
| 69 |
<button type="button" id="wpsc_reset_defult_app_modal_window_btn" onclick="wpsc_reset_default_modal_window_settings('<?php echo wp_create_nonce('reset_default_modal_window_settings')?>')" class="btn btn-sm btn-default" style="margin-bottom:10px; font-size:15px;"><?php _e('Reset Default','supportcandy');?></button> |
| 70 |
<img class="wpsc_submit_wait" style="display:none;" src="<?php echo esc_url(WPSC_PLUGIN_URL.'asset/images/[email protected]');?>"> |
| 71 |
<input type="hidden" name="action" value="wpsc_appearance_settings" /> |
| 72 |
<input type="hidden" name="setting_action" value="set_appearance_modal_window_settings" /> |
| 73 |
<input type="hidden" name="_ajax_nonce" value="<?php echo wp_create_nonce('set_appearance_modal_window_settings')?>"> |
| 74 |
|
| 75 |
</form> |
| 76 |
|
| 77 |
</div> |
| 78 |
|
| 79 |
<script> |
| 80 |
jQuery(document).ready(function(){ |
| 81 |
jQuery('.wpsc_color_picker').wpColorPicker(); |
| 82 |
}); |
| 83 |
</script> |