PluginProbe
Taskbuilder – Project Management & Task Management Tool With Kanban Board / 3.0.0
Taskbuilder – Project Management & Task Management Tool With Kanban Board v3.0.0
6.0.5 6.0.2 6.0.3 6.0.4 6.0.1 6.0.0 5.0.8 5.0.9 4.0.9 5.0.0 5.0.1 5.0.2 5.0.3 5.0.4 5.0.5 5.0.6 5.0.7 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 All 57 releases
taskbuilder / includes / admin / settings / wppm_get_ap_settings.php

wppm_get_ap_settings.php in Taskbuilder – Project Management & Task Management Tool With Kanban Board 3.0.0, at includes/admin/settings/wppm_get_ap_settings.php

79 lines 4.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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();