PluginProbe
Taskbuilder – Project Management & Task Management Tool With Kanban Board / 6.0.6
Taskbuilder – Project Management & Task Management Tool With Kanban Board v6.0.6
6.0.6 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 All 58 releases
taskbuilder / includes / admin / settings / wppm_get_ap_modal_popup.php

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

95 lines 4.9 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 if (!($current_user->ID && $current_user->has_cap('wppm_admin') || $current_user->has_cap('manage_options'))) {
8 exit;
9 }
10 $settings = get_option("wppm-ap-modal");
11 $wppm_ap_settings = get_option("wppm-ap-settings");
12 ?>
13 <form action="#" onsubmit="return false;" class="wppm-frm-ap-modal_popup">
14 <div class="wppm-input-group">
15 <div class="label-container">
16 <label for=""><?php esc_attr_e( 'Popup header', 'taskbuilder' ); ?></label>
17 </div>
18 <table class="wppm-ap-table">
19 <tr>
20 <td><?php esc_attr_e( 'Background color', 'taskbuilder' ); ?></td>
21 <td><?php esc_attr_e( 'Text color', 'taskbuilder' ); ?></td>
22 </tr>
23 <tr>
24 <td><input class="wppm-color-picker" type="text" name="header-bg-color" value="<?php echo esc_attr( $settings['header-bg-color'] ); ?>"></td>
25 <td><input class="wppm-color-picker" type="text" name="header-text-color" value="<?php echo esc_attr( $settings['header-text-color'] ); ?>"></td>
26 </tr>
27 </table>
28 </div>
29 <div class="wppm-input-group">
30 <div class="label-container">
31 <label for=""><?php esc_attr_e( 'Popup body', 'taskbuilder' ); ?></label>
32 </div>
33 <table class="wppm-ap-table">
34 <tr>
35 <td><?php esc_attr_e( 'Background color', 'taskbuilder' ); ?></td>
36 <td><?php esc_attr_e( 'Label color', 'taskbuilder' ); ?></td>
37 <td><?php esc_attr_e( 'Text color', 'taskbuilder' ); ?></td>
38 </tr>
39 <tr>
40 <td><input class="wppm-color-picker" type="text" name="body-bg-color" value="<?php echo esc_attr( $settings['body-bg-color'] ); ?>"></td>
41 <td><input class="wppm-color-picker" type="text" name="body-label-color" value="<?php echo esc_attr( $settings['body-label-color'] ); ?>"></td>
42 <td><input class="wppm-color-picker" type="text" name="body-text-color" value="<?php echo esc_attr( $settings['body-text-color'] ); ?>"></td>
43 </tr>
44 </table>
45 </div>
46 <div class="wppm-input-group">
47 <div class="label-container">
48 <label for=""><?php esc_attr_e( 'Popup footer', 'taskbuilder' ); ?></label>
49 </div>
50 <table class="wppm-ap-table">
51 <tr>
52 <td><?php esc_attr_e( 'Background color', 'taskbuilder' ); ?></td>
53 </tr>
54 <tr>
55 <td><input class="wppm-color-picker" type="text" name="footer-bg-color" value="<?php echo esc_attr( $settings['footer-bg-color'] ); ?>"></td>
56 </tr>
57 </table>
58 </div>
59 <div class="wppm-input-group">
60 <div class="label-container">
61 <label for=""><?php esc_attr_e( 'Action button', 'taskbuilder' ); ?></label>
62 </div>
63 <table class="wppm-ap-table">
64 <tr>
65 <td><?php esc_attr_e( 'Background color', 'taskbuilder' ); ?></td>
66 <td><?php esc_attr_e( 'Text color', 'taskbuilder' ); ?></td>
67 </tr>
68 <tr>
69 <td><input class="wppm-color-picker" type="text" name="action-btn-bg-color" value="<?php echo esc_attr( $settings['action-btn-bg-color'] ); ?>"></td>
70 <td><input class="wppm-color-picker" type="text" name="action-btn-text-color" value="<?php echo esc_attr( $settings['action-btn-text-color'] ); ?>"></td>
71 </tr>
72 </table>
73 </div>
74 <input type="hidden" name="action" value="wppm_set_ap_modal_popup">
75 <input type="hidden" name="_ajax_nonce" value="<?php echo esc_attr( wp_create_nonce( 'wppm_set_ap_modal_popup' ) ); ?>">
76 <script>jQuery('.wppm-color-picker').wpColorPicker();</script>
77 <style>
78 .wppm-ap-table td {padding: 5px;}
79 .wppm-ap-table table, .wppm-ap-table td {border: 1px solid #c3c3c3;}
80 </style>
81 </form>
82 <div class="setting-footer-actions">
83 <button
84 class="wppm-submit-btn"
85 onclick="wppm_set_ap_modal_popup();" 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;">
86 <?php esc_attr_e( 'Save Changes', 'taskbuilder' ); ?></button>
87 <button
88 class="wppm_reset_btn" id="wppm_reset_ap_modal_popup_btn"
89 onclick="wppm_reset_ap_modal_popup(this);">
90 <?php esc_attr_e( 'Reset default', 'taskbuilder' ); ?></button>
91 <input type="hidden" name="wppm_reset_ap_modal_popup_nonce" id="wppm_reset_ap_modal_popup_nonce" value="<?php echo esc_attr( wp_create_nonce( 'wppm_reset_ap_modal_popup' ) ); ?>">
92 <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>
93 </div>
94 <?php
95 wp_die();