| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
exit; // Exit if accessed directly |
| 4 |
} |
| 5 |
|
| 6 |
global $current_user,$wpdb,$wppmfunction; |
| 7 |
if (!($current_user->ID && $current_user->has_cap('manage_options'))) { |
| 8 |
exit; |
| 9 |
} |
| 10 |
?> |
| 11 |
<form id="wppm_en_frm_general_settings" method="post" action="javascript:wppm_set_en_general_settings();"> |
| 12 |
<div class="form-group"> |
| 13 |
<label for="wppm_en_from_name"><?php echo esc_html_e('From Name','taskbuilder');?></label> |
| 14 |
<p class="help-block"><?php echo esc_html_e('Emails to send by this name.','taskbuilder');?></p> |
| 15 |
<input type="text" class="form-control" name="wppm_en_from_name" id="wppm_en_from_name" value="<?php echo esc_attr(get_option('wppm_en_from_name',''));?>" /> |
| 16 |
</div> |
| 17 |
<div class="form-group"> |
| 18 |
<label for="wppm_en_from_email"><?php echo esc_html_e('From Email','taskbuilder');?></label> |
| 19 |
<p class="help-block"><?php echo esc_html_e('Emails to send from this email.','taskbuilder');?></p> |
| 20 |
<input type="text" class="form-control" name="wppm_en_from_email" id="wppm_en_from_email" value="<?php echo esc_attr(get_option('wppm_en_from_email',''));?>" /> |
| 21 |
</div> |
| 22 |
<div class="form-group"> |
| 23 |
<label for="wppm_en_ignore_emails"><?php echo esc_html_e('Block Emails','taskbuilder');?></label> |
| 24 |
<p class="help-block"><?php echo esc_html_e('Emails will not be sent to these email addresses. New email should begin on new line.','taskbuilder');?></p> |
| 25 |
<?php |
| 26 |
$ignore_emails = get_option('wppm_en_ignore_emails',array()); |
| 27 |
$ignore_emails = $wppmfunction->sanitize_array($ignore_emails); |
| 28 |
?> |
| 29 |
<textarea class="form-control" style="height:100px !important;" name="wppm_en_ignore_emails" id="wppm_en_ignore_emails"><?php echo stripcslashes(implode('\n', $ignore_emails))?></textarea> |
| 30 |
</div> |
| 31 |
<?php do_action('wppm_get_en_gerneral_settings');?> |
| 32 |
<button type="submit" class="wppm-submit-btn"><?php echo esc_html_e('Save Changes','taskbuilder');?></button> |
| 33 |
<span class="wppm_submit_wait" style="display:none;"><img src="<?php echo esc_url( WPPM_PLUGIN_URL . 'asset/images/loading_buffer.svg'); ?>" alt="loading_icon"></span> |
| 34 |
<input type="hidden" name="action" value="wppm_set_en_general_settings" /> |
| 35 |
</form> |
| 36 |
|