| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
exit; // Exit if accessed directly |
| 4 |
} |
| 5 |
|
| 6 |
?> |
| 7 |
|
| 8 |
<div class="wpsc-iso"> |
| 9 |
|
| 10 |
<h3> |
| 11 |
<?php _e('Custom Fields','supportcandy');?> |
| 12 |
<a href="https://supportcandy.net/support-ticket/" class="btn btn-info wpsc-help-site-link" style="float:right;margin-right:1% !important;margin-top:-9px !important;"><?php _e('Need Help? Click Here!','supportcandy');?></a> |
| 13 |
</h3> |
| 14 |
|
| 15 |
<div class="wpsc_padding_space"></div> |
| 16 |
<div class="row" style="margin-bottom:20px;"> |
| 17 |
<ul class="nav nav-pills wpsc_setting_pills"> |
| 18 |
<li id="wpsc_ticket_custom_fields" role="presentation" class="active"><a href="javascript:wpsc_get_ticket_form_fields();"><?php _e('Ticket Form Fields','supportcandy');?></a></li> |
| 19 |
<li id="wpsc_agentonly_fields" role="presentation"><a href="javascript:wpsc_get_agentonly_fields();"><?php _e('Agent Only Fields','supportcandy');?></a></li> |
| 20 |
<?php do_action('wpsc_after_form_setting_pills');?> |
| 21 |
</ul> |
| 22 |
</div> |
| 23 |
<div style="width:95% !important;" class="row wpsc_setting_col2"></div> |
| 24 |
|
| 25 |
<div id="wpsc_alert_success" class="alert alert-success wpsc_alert" style="display:none;" role="alert"> |
| 26 |
<i class="fa fa-check-circle"></i> <span class="wpsc_alert_text"></span> |
| 27 |
</div> |
| 28 |
|
| 29 |
<div id="wpsc_alert_error" class="alert alert-danger wpsc_alert" style="display:none;" role="alert"> |
| 30 |
<i class="fa fa-exclamation-triangle"></i> <span class="wpsc_alert_text"></span> |
| 31 |
</div> |
| 32 |
|
| 33 |
</div> |
| 34 |
|
| 35 |
<!-- Pop-up snippet start --> |
| 36 |
<div id="wpsc_popup_background" style="display:none;"></div> |
| 37 |
<div id="wpsc_popup_container" style="display:none;"> |
| 38 |
<div class="wpsc-iso"> |
| 39 |
<div class="row"> |
| 40 |
<div id="wpsc_popup" class="col-xs-10 col-xs-offset-1 col-sm-10 col-sm-offset-1 col-md-8 col-md-offset-2 col-lg-6 col-lg-offset-3"> |
| 41 |
<div id="wpsc_popup_title" class="row"><h3><?php _e('Modal Title','supportcandy');?></h3></div> |
| 42 |
<div id="wpsc_popup_body" class="row"><?php _e('I am body!','supportcandy');?></div> |
| 43 |
<div id="wpsc_popup_footer" class="row"> |
| 44 |
<button type="button" class="btn wpsc_popup_close"><?php _e('Close','supportcandy');?></button> |
| 45 |
<button type="button" class="btn wpsc_popup_action"><?php _e('Save Changes','supportcandy');?></button> |
| 46 |
</div> |
| 47 |
</div> |
| 48 |
</div> |
| 49 |
</div> |
| 50 |
</div> |
| 51 |
<!-- Pop-up snippet end --> |
| 52 |
|
| 53 |
<?php |
| 54 |
add_action('admin_footer', 'wpsc_page_inline_script'); |
| 55 |
function wpsc_page_inline_script(){ |
| 56 |
?> |
| 57 |
<script> |
| 58 |
jQuery(document).ready(function(){ |
| 59 |
wpsc_get_ticket_form_fields(); |
| 60 |
}); |
| 61 |
</script> |
| 62 |
<?php |
| 63 |
} |
| 64 |
?> |