| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
exit; // Exit if accessed directly |
| 4 |
} |
| 5 |
$wpsc_appearance_login_form=get_option( 'wpsc_appearance_login_form' ); |
| 6 |
?> |
| 7 |
<form id="wpsc_frm_appearance_login_form" method="post" action="javascript:wpsc_set_appearance_login_form();"> |
| 8 |
|
| 9 |
<div class="form-group"> |
| 10 |
<label for="wpsc_login_form_bg_color"><?php _e('Sign In Button','supportcandy');?></label> |
| 11 |
<div class="row"> |
| 12 |
<div class="col-sm-4"> |
| 13 |
<p class="help-block"><?php _e('Background Color','supportCandy') ?></p> |
| 14 |
<input id="wpsc_signin_button_bg_color" class="wpsc_color_picker" name="get_login_form[wpsc_signin_button_bg_color]" value="<?php echo esc_attr($wpsc_appearance_login_form['wpsc_signin_button_bg_color']);?>" /> |
| 15 |
</div> |
| 16 |
<div class="col-sm-4"> |
| 17 |
<p class="help-block"><?php _e('Color','supportCandy') ?></p> |
| 18 |
<input id="wpsc_signin_button_text_color" class="wpsc_color_picker" name="get_login_form[wpsc_signin_button_text_color]" value="<?php echo esc_attr($wpsc_appearance_login_form['wpsc_signin_button_text_color']);?>" /> |
| 19 |
</div> |
| 20 |
<div class="col-sm-4" style=""> |
| 21 |
<p class="help-block"><?php _e('Border Color','supportcandy');?></p> |
| 22 |
<input id="wpsc_signin_button_border_color" class="wpsc_color_picker" name="get_login_form[wpsc_signin_button_border_color]" value="<?php echo esc_attr($wpsc_appearance_login_form['wpsc_signin_button_border_color']) ?>" /> |
| 23 |
</div> |
| 24 |
</div> |
| 25 |
</div> |
| 26 |
|
| 27 |
<div class="form-group"> |
| 28 |
<label for="wpsc_register_now"><?php _e('Register Button','supportcandy');?></label> |
| 29 |
<div class="row"> |
| 30 |
<div class="col-sm-4"> |
| 31 |
<p class="help-block"><?php _e('Background color','supportcandy');?></p> |
| 32 |
<input id="wpsc_register_now_button_bg_color" class="wpsc_color_picker" name="get_login_form[wpsc_register_now_button_bg_color]" value="<?php echo esc_attr($wpsc_appearance_login_form['wpsc_register_now_button_bg_color']);?>" /> |
| 33 |
</div> |
| 34 |
<div class="col-sm-4"> |
| 35 |
<p class="help-block"><?php _e('Color','supportCandy') ?></p> |
| 36 |
<input id="wpsc_register_now_button_text_color" class="wpsc_color_picker" name="get_login_form[wpsc_register_now_text_color]" value="<?php echo esc_attr($wpsc_appearance_login_form['wpsc_register_now_text_color']);?>" /> |
| 37 |
</div> |
| 38 |
<div class="col-sm-4" style=""> |
| 39 |
<p class="help-block"><?php _e('Border Color','supportcandy');?></p> |
| 40 |
<input id="wpsc_register_now_button_border_color" class="wpsc_color_picker" name="get_login_form[wpsc_register_now_button_border_color]" value="<?php echo esc_attr($wpsc_appearance_login_form['wpsc_register_now_button_border_color']) ?>" /> |
| 41 |
</div> |
| 42 |
</div> |
| 43 |
</div> |
| 44 |
|
| 45 |
<div class="form-group"> |
| 46 |
<label for="wpsc_continue_as_guest_button"><?php _e('Continue as Guest Button','supportcandy');?></label> |
| 47 |
<div class="row"> |
| 48 |
<div class="col-sm-4"> |
| 49 |
<p class="help-block"><?php _e('Background Color','supportCandy') ?></p> |
| 50 |
<input id="wpsc_continue_as_guest_button_bg_color" class="wpsc_color_picker" name="get_login_form[wpsc_continue_as_guest_button_bg_color]" value="<?php echo esc_attr($wpsc_appearance_login_form['wpsc_continue_as_guest_button_bg_color']);?>" /> |
| 51 |
</div> |
| 52 |
<div class="col-sm-4"> |
| 53 |
<p class="help-block"><?php _e('Color','supportCandy') ?></p> |
| 54 |
<input id="wpsc_continue_as_guest_button_text_color" class="wpsc_color_picker" name="get_login_form[wpsc_continue_as_guest_button_text_color]" value="<?php echo esc_attr($wpsc_appearance_login_form['wpsc_continue_as_guest_button_text_color']);?>" /> |
| 55 |
</div> |
| 56 |
<div class="col-sm-4" style=""> |
| 57 |
<p class="help-block"><?php _e('Border Color','supportcandy');?></p> |
| 58 |
<input id="wpsc_continue_as_guest_button_border_color" class="wpsc_color_picker" name="get_login_form[wpsc_continue_as_guest_button_border_color]" value="<?php echo esc_attr($wpsc_appearance_login_form['wpsc_continue_as_guest_button_border_color']) ?>" /> |
| 59 |
</div> |
| 60 |
</div> |
| 61 |
</div> |
| 62 |
|
| 63 |
|
| 64 |
|
| 65 |
<button type="submit" class="btn btn-success" style="margin-bottom:10px;"><?php _e('Save Changes','supportcandy');?></button> |
| 66 |
<button type="button" onclick="wpsc_reset_default_appperance_login_form_settings();" class="btn btn-sm btn-default" style="margin-bottom:10px; font-size:15px;"><?php _e('Reset Default','supportcandy');?></button> |
| 67 |
<img class="wpsc_submit_wait" style="display:none;" src="<?php echo esc_url(WPSC_PLUGIN_URL.'asset/images/[email protected]');?>"> |
| 68 |
<input type="hidden" name="action" value="wpsc_appearance_settings" /> |
| 69 |
<input type="hidden" name="setting_action" value="set_appearance_login_form" /> |
| 70 |
<input type="hidden" name="_ajax_nonce" value="<?php echo wp_create_nonce('set_appearance_login_form')?>"> |
| 71 |
</form> |
| 72 |
<script> |
| 73 |
jQuery(document).ready(function(){ |
| 74 |
jQuery('.wpsc_color_picker').wpColorPicker(); |
| 75 |
}); |
| 76 |
</script> |
| 77 |
<script> |
| 78 |
function wpsc_reset_default_appperance_login_form_settings() |
| 79 |
{ |
| 80 |
// jQuery('.wpsc_submit_wait').show(); |
| 81 |
|
| 82 |
var data = { |
| 83 |
action: 'wpsc_appearance_settings', |
| 84 |
setting_action : 'get_reset_default_apperance_login_form', |
| 85 |
_ajax_nonce: '<?php echo wp_create_nonce('reset_default_apperance_login_form')?>' |
| 86 |
}; |
| 87 |
|
| 88 |
jQuery.post(wpsc_admin.ajax_url, data, function(response_str) { |
| 89 |
var response = JSON.parse(response_str); |
| 90 |
if (response.sucess_status=='1') { |
| 91 |
jQuery('#wpsc_alert_success .wpsc_alert_text').text(response.messege); |
| 92 |
} |
| 93 |
jQuery('#wpsc_alert_success').slideDown('fast',function(){}); |
| 94 |
|
| 95 |
setTimeout(function(){ jQuery('#wpsc_alert_success').slideUp('fast',function(){}); }, 3000); |
| 96 |
wpsc_get_appearance_login_form(); |
| 97 |
}); |
| 98 |
} |
| 99 |
|
| 100 |
</script> |