| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
exit; // Exit if accessed directly |
| 4 |
} |
| 5 |
|
| 6 |
global $current_user,$wpdb,$wppmfunction; |
| 7 |
$wppm_print_settings = get_option('wppm_print_settings'); |
| 8 |
$wppm_font_size = isset($wppm_print_settings['wppm_print_body_font_size']) ? $wppm_print_settings['wppm_print_body_font_size'] : '10'; |
| 9 |
?> |
| 10 |
<form id="wppm_print_task_settings" method="post" action="javascript:wppm_set_print_task_settings();"> |
| 11 |
<h4 style="margin-bottom:20px;"><?php echo esc_html_e('Print Task Settings','taskbuilder');?></h4> |
| 12 |
<div class="form-group"> |
| 13 |
<label for="wppm_print_body_font_size"><?php echo esc_html_e('Body Font Size(px)','taskbuilder');?></label> |
| 14 |
<p class="help-block"><?php echo esc_html_e('Set the body font size for the print view.','taskbuilder');?></p> |
| 15 |
<input type="text" class="form-control" name="wppm_print_body_font_size" id="wppm_print_body_font_size" value="<?php echo esc_attr($wppm_font_size);?>" /> |
| 16 |
</div> |
| 17 |
<hr> |
| 18 |
<?php do_action('wppm_get_print_general_settings');?> |
| 19 |
<button type="submit" class="wppm-submit-btn"><?php echo esc_html_e('Save Changes','taskbuilder');?></button> |
| 20 |
<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> |
| 21 |
<input type="hidden" name="action" value="wppm_set_print_task_settings" /> |
| 22 |
<input type="hidden" name="_ajax_nonce" value="<?php echo esc_attr( wp_create_nonce( 'wppm_set_print_task_settings' ) ); ?>"> |
| 23 |
</form> |