| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
exit; // Exit if accessed directly |
| 4 |
} |
| 5 |
|
| 6 |
global $current_user,$wpdb,$wppmfunction; |
| 7 |
$settings = get_option("wppm-ap-settings"); |
| 8 |
$wppm_ap_settings = get_option("wppm-ap-settings"); |
| 9 |
?> |
| 10 |
<form action="#" onsubmit="return false;" class="wppm-frm-ap-settings"> |
| 11 |
<div class="wppm-input-group"> |
| 12 |
<div class="label-container"> |
| 13 |
<label for=""><?php esc_attr_e( 'Tab', 'taskbuilder' ); ?></label> |
| 14 |
</div> |
| 15 |
<table class="wppm-ap-table"> |
| 16 |
<tr> |
| 17 |
<td><?php esc_attr_e( 'background color', 'taskbuilder' ); ?></td> |
| 18 |
<td><?php esc_attr_e( 'text color', 'taskbuilder' ); ?></td> |
| 19 |
</tr> |
| 20 |
<tr> |
| 21 |
<td><input class="wppm-color-picker" type="text" name="tab-background-color" value="<?php echo esc_attr( $settings['tab-background-color'] ); ?>"></td> |
| 22 |
<td><input class="wppm-color-picker" type="text" name="tab-text-color" value="<?php echo esc_attr( $settings['tab-text-color'] ); ?>"></td> |
| 23 |
</tr> |
| 24 |
</table> |
| 25 |
</div> |
| 26 |
<div class="wppm-input-group"> |
| 27 |
<div class="label-container"> |
| 28 |
<label for=""><?php esc_attr_e( 'Add new button', 'taskbuilder' ); ?></label> |
| 29 |
</div> |
| 30 |
<table class="wppm-ap-table"> |
| 31 |
<tr> |
| 32 |
<td><?php esc_attr_e( 'background color', 'taskbuilder' ); ?></td> |
| 33 |
<td><?php esc_attr_e( 'text color', 'taskbuilder' ); ?></td> |
| 34 |
<td><?php esc_attr_e( 'hover color', 'taskbuilder' ); ?></td> |
| 35 |
</tr> |
| 36 |
<tr> |
| 37 |
<td><input class="wppm-color-picker" type="text" name="add-new-button-bg-color" value="<?php echo esc_attr( $settings['add-new-button-bg-color'] ); ?>"></td> |
| 38 |
<td><input class="wppm-color-picker" type="text" name="add-new-button-text-color" value="<?php echo esc_attr( $settings['add-new-button-text-color'] ); ?>"></td> |
| 39 |
<td><input class="wppm-color-picker" type="text" name="add-new-button-hover-color" value="<?php echo esc_attr( $settings['add-new-button-hover-color'] ); ?>"></td> |
| 40 |
</tr> |
| 41 |
</table> |
| 42 |
</div> |
| 43 |
<div class="wppm-input-group"> |
| 44 |
<div class="label-container"> |
| 45 |
<label for=""><?php esc_attr_e( 'Save changes button', 'taskbuilder' ); ?></label> |
| 46 |
</div> |
| 47 |
<table class="wppm-ap-table"> |
| 48 |
<tr> |
| 49 |
<td><?php esc_attr_e( 'background color', 'taskbuilder' ); ?></td> |
| 50 |
<td><?php esc_attr_e( 'text color', 'taskbuilder' ); ?></td> |
| 51 |
</tr> |
| 52 |
<tr> |
| 53 |
<td><input class="wppm-color-picker" type="text" name="save-changes-button-bg-color" value="<?php echo esc_attr( $settings['save-changes-button-bg-color'] ); ?>"></td> |
| 54 |
<td><input class="wppm-color-picker" type="text" name="save-changes-button-text-color" value="<?php echo esc_attr( $settings['save-changes-button-text-color'] ); ?>"></td> |
| 55 |
</tr> |
| 56 |
</table> |
| 57 |
</div> |
| 58 |
<input type="hidden" name="action" value="wppm_set_ap_settings"> |
| 59 |
<input type="hidden" name="_ajax_nonce" value="<?php echo esc_attr( wp_create_nonce( 'wppm_set_ap_settings' ) ); ?>"> |
| 60 |
<script>jQuery('.wppm-color-picker').wpColorPicker();</script> |
| 61 |
<style> |
| 62 |
.wppm-ap-table td {padding: 5px;} |
| 63 |
.wppm-ap-table table, .wppm-ap-table td {border: 1px solid #c3c3c3;} |
| 64 |
</style> |
| 65 |
</form> |
| 66 |
<div class="setting-footer-actions"> |
| 67 |
<button |
| 68 |
class="wppm-submit-btn" |
| 69 |
onclick="wppm_set_ap_settings();" style="background-color:<?php echo esc_attr($wppm_ap_settings['save-changes-button-bg-color'])?>!important;color:<?php echo esc_attr($wppm_ap_settings['save-changes-button-text-color'])?>!important;"> |
| 70 |
<?php esc_attr_e( 'Save Changes', 'taskbuilder' ); ?></button> |
| 71 |
<button |
| 72 |
class="wppm_reset_btn" id="wppm_reset_ap_settings_btn" |
| 73 |
onclick="wppm_reset_ap_settings();"> |
| 74 |
<?php esc_attr_e( 'Reset default', 'taskbuilder' ); ?></button> |
| 75 |
<input type="hidden" name="wppm_reset_ap_settings_nonce" id="wppm_reset_ap_settings_nonce" value="<?php echo esc_attr( wp_create_nonce( 'wppm_reset_ap_settings' ) ); ?>"> |
| 76 |
<span class="wppm_submit_wait" style="display:none;"><img src="<?php echo esc_url( WPPM_PLUGIN_URL . 'asset/images/loading_buffer.svg'); ?>" alt="edit"></span> |
| 77 |
</div> |
| 78 |
<?php |
| 79 |
wp_die(); |