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_grid_view.php

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

68 lines 3.7 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-grid-view");
11 $wppm_ap_settings = get_option("wppm-ap-settings");
12 ?>
13 <form action="#" onsubmit="return false;" class="wppm-frm-ap-grid_view">
14 <div class="wppm-input-group">
15 <div class="label-container">
16 <label for=""><?php esc_attr_e( 'Menu button', '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( 'Hover color', 'taskbuilder' ); ?></td>
22 <td><?php esc_attr_e( 'Text color', 'taskbuilder' ); ?></td>
23 </tr>
24 <tr>
25 <td><input class="wppm-color-picker" type="text" name="menu-button-bg-color" value="<?php echo esc_attr( $settings['menu-button-bg-color'] ); ?>"></td>
26 <td><input class="wppm-color-picker" type="text" name="menu-button-hover-color" value="<?php echo esc_attr( $settings['menu-button-hover-color'] ); ?>"></td>
27 <td><input class="wppm-color-picker" type="text" name="menu-button-text-color" value="<?php echo esc_attr( $settings['menu-button-text-color'] ); ?>"></td>
28 </tr>
29 </table>
30 </div>
31 <div class="wppm-input-group">
32 <div class="label-container">
33 <label for=""><?php esc_attr_e( 'Kanban card', 'taskbuilder' ); ?></label>
34 </div>
35 <table class="wppm-ap-table">
36 <tr>
37 <td><?php esc_attr_e( 'background color', 'taskbuilder' ); ?></td>
38 <td><?php esc_attr_e( 'text color', 'taskbuilder' ); ?></td>
39 </tr>
40 <tr>
41 <td><input class="wppm-color-picker" type="text" name="grid-background-color" value="<?php echo esc_attr( $settings['grid-background-color'] ); ?>"></td>
42 <td><input class="wppm-color-picker" type="text" name="grid-header-text-color" value="<?php echo esc_attr( $settings['grid-header-text-color'] ); ?>"></td>
43 </tr>
44 </table>
45 </div>
46
47 <input type="hidden" name="action" value="wppm_set_ap_grid_view">
48 <input type="hidden" name="_ajax_nonce" value="<?php echo esc_attr( wp_create_nonce( 'wppm_set_ap_grid_view' ) ); ?>">
49 <div class="setting-footer-actions">
50 <button
51 class="wppm-submit-btn"
52 onclick="wppm_set_ap_grid_view();" 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;">
53 <?php esc_attr_e( 'Save Changes', 'taskbuilder' ); ?></button>
54 <button
55 class="wppm_reset_btn" id="wppm_reset_ap_grid_view_btn"
56 onclick="wppm_reset_ap_grid_view(this);">
57 <?php esc_attr_e( 'Reset default', 'taskbuilder' ); ?></button>
58 <input type="hidden" name="wppm_reset_ap_grid_view_ajax_nonce" id="wppm_reset_ap_grid_view_ajax_nonce" value="<?php echo esc_attr( wp_create_nonce( 'wppm_reset_ap_grid_view' ) ); ?>">
59 <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>
60 </div>
61 </form>
62 <script>jQuery('.wppm-color-picker').wpColorPicker();</script>
63 <style>
64 .wppm-ap-table td {padding: 5px;}
65 .wppm-ap-table table, .wppm-ap-table td {border: 1px solid #c3c3c3;}
66 </style>
67 <?php
68 wp_die();