← All changes
|
includes/admin/settings/wppm_get_ap_individual_task.php
+111
-111
6.0.2
→
6.0.6
View file →
| @@ -1,112 +1,112 @@ | ||
| 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-individual-task"); | |
| 11 | -$wppm_ap_settings = get_option("wppm-ap-settings"); | |
| 12 | -?> | |
| 13 | -<form action="#" onsubmit="return false;" class="wppm-frm-ap-individual_tl"> | |
| 14 | - <div class="wppm-input-group"> | |
| 15 | - <div class="label-container"> | |
| 16 | - <label for=""><?php esc_attr_e( 'Comment thread', 'taskbuilder' ); ?></label> | |
| 17 | - </div> | |
| 18 | - <table class="wppm-ap-table"> | |
| 19 | - <tr> | |
| 20 | - <td><?php esc_attr_e( 'Primary color', 'taskbuilder' ); ?></td> | |
| 21 | - <td><?php esc_attr_e( 'Secondary color', 'taskbuilder' ); ?></td> | |
| 22 | - </tr> | |
| 23 | - <tr> | |
| 24 | - <td><input class="wppm-color-picker" type="text" name="comment-primary-color" value="<?php echo esc_attr( $settings['comment-primary-color'] ); ?>"></td> | |
| 25 | - <td><input class="wppm-color-picker" type="text" name="comment-secondary-color" value="<?php echo esc_attr( $settings['comment-secondary-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( 'Comment Date', 'taskbuilder' ); ?></label> | |
| 32 | - </div> | |
| 33 | - <table class="wppm-ap-table"> | |
| 34 | - <tr> | |
| 35 | - <td><?php esc_attr_e( 'Color', 'taskbuilder' ); ?></td> | |
| 36 | - <td><?php esc_attr_e( 'Hover color', 'taskbuilder' ); ?></td> | |
| 37 | - </tr> | |
| 38 | - <tr> | |
| 39 | - <td><input class="wppm-color-picker" type="text" name="comment-date-color" value="<?php echo esc_attr( $settings['comment-date-color'] ); ?>"></td> | |
| 40 | - <td><input class="wppm-color-picker" type="text" name="comment-date-hover-color" value="<?php echo esc_attr( $settings['comment-date-hover-color'] ); ?>"></td> | |
| 41 | - </tr> | |
| 42 | - </table> | |
| 43 | - </div> | |
| 44 | - <div class="wppm-input-group"> | |
| 45 | - <div class="label-container"> | |
| 46 | - <label for=""><?php esc_attr_e( 'Comment send button', 'taskbuilder' ); ?></label> | |
| 47 | - </div> | |
| 48 | - <table class="wppm-ap-table"> | |
| 49 | - <tr> | |
| 50 | - <td><?php esc_attr_e( 'Background color', 'taskbuilder' ); ?></td> | |
| 51 | - <td><?php esc_attr_e( 'Text color', 'taskbuilder' ); ?></td> | |
| 52 | - </tr> | |
| 53 | - <tr> | |
| 54 | - <td><input class="wppm-color-picker" type="text" name="comment-send-btn-bg-color" value="<?php echo esc_attr( $settings['comment-send-btn-bg-color'] ); ?>"></td> | |
| 55 | - <td><input class="wppm-color-picker" type="text" name="comment-send-btn-color" value="<?php echo esc_attr( $settings['comment-send-btn-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( 'Widget Header', '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="widget-header-bg-color" value="<?php echo esc_attr( $settings['widget-header-bg-color'] ); ?>"></td> | |
| 70 | - <td><input class="wppm-color-picker" type="text" name="widget-header-text-color" value="<?php echo esc_attr( $settings['widget-header-text-color'] ); ?>"></td> | |
| 71 | - </tr> | |
| 72 | - </table> | |
| 73 | - </div> | |
| 74 | - <div class="wppm-input-group"> | |
| 75 | - <div class="label-container"> | |
| 76 | - <label for=""><?php esc_attr_e( 'Widget Body', 'taskbuilder' ); ?></label> | |
| 77 | - </div> | |
| 78 | - <table class="wppm-ap-table"> | |
| 79 | - <tr> | |
| 80 | - <td><?php esc_attr_e( 'Background color', 'taskbuilder' ); ?></td> | |
| 81 | - <td><?php esc_attr_e( 'Label color', 'taskbuilder' ); ?></td> | |
| 82 | - <td><?php esc_attr_e( 'Text color', 'taskbuilder' ); ?></td> | |
| 83 | - </tr> | |
| 84 | - <tr> | |
| 85 | - <td><input class="wppm-color-picker" type="text" name="widget-body-bg-color" value="<?php echo esc_attr( $settings['widget-body-bg-color'] ); ?>"></td> | |
| 86 | - <td><input class="wppm-color-picker" type="text" name="widget-body-label-color" value="<?php echo esc_attr( $settings['widget-body-label-color'] ); ?>"></td> | |
| 87 | - <td><input class="wppm-color-picker" type="text" name="widget-body-text-color" value="<?php echo esc_attr( $settings['widget-body-text-color'] ); ?>"></td> | |
| 88 | - </tr> | |
| 89 | - </table> | |
| 90 | - </div> | |
| 91 | - <input type="hidden" name="action" value="wppm_set_ap_individual_task"> | |
| 92 | - <input type="hidden" name="_ajax_nonce" value="<?php echo esc_attr( wp_create_nonce( 'wppm_set_ap_individual_task' ) ); ?>"> | |
| 93 | - <script>jQuery('.wppm-color-picker').wpColorPicker();</script> | |
| 94 | - <style> | |
| 95 | - .wppm-ap-table td {padding: 5px;} | |
| 96 | - .wppm-ap-table table, .wppm-ap-table td {border: 1px solid #c3c3c3;} | |
| 97 | - </style> | |
| 98 | -</form> | |
| 99 | -<div class="setting-footer-actions"> | |
| 100 | - <button | |
| 101 | - class="wppm-submit-btn" | |
| 102 | - onclick="wppm_set_ap_individual_task();" 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;"> | |
| 103 | - <?php esc_attr_e( 'Save Changes', 'taskbuilder' ); ?></button> | |
| 104 | - <button | |
| 105 | - class="wppm_reset_btn" id="wppm_reset_ap_individual_task_btn" | |
| 106 | - onclick="wppm_reset_ap_individual_task(this);"> | |
| 107 | - <?php esc_attr_e( 'Reset default', 'taskbuilder' ); ?></button> | |
| 108 | - <input type="hidden" name="wppm_reset_ap_individual_task_ajax_nonce" id="wppm_reset_ap_individual_task_ajax_nonce" value="<?php echo esc_attr( wp_create_nonce( 'wppm_reset_ap_individual_task' ) ); ?>"> | |
| 109 | - <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> | |
| 110 | -</div> | |
| 111 | -<?php | |
| 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-individual-task"); | |
| 11 | +$wppm_ap_settings = get_option("wppm-ap-settings"); | |
| 12 | +?> | |
| 13 | +<form action="#" onsubmit="return false;" class="wppm-frm-ap-individual_tl"> | |
| 14 | + <div class="wppm-input-group"> | |
| 15 | + <div class="label-container"> | |
| 16 | + <label for=""><?php esc_attr_e( 'Comment thread', 'taskbuilder' ); ?></label> | |
| 17 | + </div> | |
| 18 | + <table class="wppm-ap-table"> | |
| 19 | + <tr> | |
| 20 | + <td><?php esc_attr_e( 'Primary color', 'taskbuilder' ); ?></td> | |
| 21 | + <td><?php esc_attr_e( 'Secondary color', 'taskbuilder' ); ?></td> | |
| 22 | + </tr> | |
| 23 | + <tr> | |
| 24 | + <td><input class="wppm-color-picker" type="text" name="comment-primary-color" value="<?php echo esc_attr( $settings['comment-primary-color'] ); ?>"></td> | |
| 25 | + <td><input class="wppm-color-picker" type="text" name="comment-secondary-color" value="<?php echo esc_attr( $settings['comment-secondary-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( 'Comment Date', 'taskbuilder' ); ?></label> | |
| 32 | + </div> | |
| 33 | + <table class="wppm-ap-table"> | |
| 34 | + <tr> | |
| 35 | + <td><?php esc_attr_e( 'Color', 'taskbuilder' ); ?></td> | |
| 36 | + <td><?php esc_attr_e( 'Hover color', 'taskbuilder' ); ?></td> | |
| 37 | + </tr> | |
| 38 | + <tr> | |
| 39 | + <td><input class="wppm-color-picker" type="text" name="comment-date-color" value="<?php echo esc_attr( $settings['comment-date-color'] ); ?>"></td> | |
| 40 | + <td><input class="wppm-color-picker" type="text" name="comment-date-hover-color" value="<?php echo esc_attr( $settings['comment-date-hover-color'] ); ?>"></td> | |
| 41 | + </tr> | |
| 42 | + </table> | |
| 43 | + </div> | |
| 44 | + <div class="wppm-input-group"> | |
| 45 | + <div class="label-container"> | |
| 46 | + <label for=""><?php esc_attr_e( 'Comment send button', 'taskbuilder' ); ?></label> | |
| 47 | + </div> | |
| 48 | + <table class="wppm-ap-table"> | |
| 49 | + <tr> | |
| 50 | + <td><?php esc_attr_e( 'Background color', 'taskbuilder' ); ?></td> | |
| 51 | + <td><?php esc_attr_e( 'Text color', 'taskbuilder' ); ?></td> | |
| 52 | + </tr> | |
| 53 | + <tr> | |
| 54 | + <td><input class="wppm-color-picker" type="text" name="comment-send-btn-bg-color" value="<?php echo esc_attr( $settings['comment-send-btn-bg-color'] ); ?>"></td> | |
| 55 | + <td><input class="wppm-color-picker" type="text" name="comment-send-btn-color" value="<?php echo esc_attr( $settings['comment-send-btn-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( 'Widget Header', '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="widget-header-bg-color" value="<?php echo esc_attr( $settings['widget-header-bg-color'] ); ?>"></td> | |
| 70 | + <td><input class="wppm-color-picker" type="text" name="widget-header-text-color" value="<?php echo esc_attr( $settings['widget-header-text-color'] ); ?>"></td> | |
| 71 | + </tr> | |
| 72 | + </table> | |
| 73 | + </div> | |
| 74 | + <div class="wppm-input-group"> | |
| 75 | + <div class="label-container"> | |
| 76 | + <label for=""><?php esc_attr_e( 'Widget Body', 'taskbuilder' ); ?></label> | |
| 77 | + </div> | |
| 78 | + <table class="wppm-ap-table"> | |
| 79 | + <tr> | |
| 80 | + <td><?php esc_attr_e( 'Background color', 'taskbuilder' ); ?></td> | |
| 81 | + <td><?php esc_attr_e( 'Label color', 'taskbuilder' ); ?></td> | |
| 82 | + <td><?php esc_attr_e( 'Text color', 'taskbuilder' ); ?></td> | |
| 83 | + </tr> | |
| 84 | + <tr> | |
| 85 | + <td><input class="wppm-color-picker" type="text" name="widget-body-bg-color" value="<?php echo esc_attr( $settings['widget-body-bg-color'] ); ?>"></td> | |
| 86 | + <td><input class="wppm-color-picker" type="text" name="widget-body-label-color" value="<?php echo esc_attr( $settings['widget-body-label-color'] ); ?>"></td> | |
| 87 | + <td><input class="wppm-color-picker" type="text" name="widget-body-text-color" value="<?php echo esc_attr( $settings['widget-body-text-color'] ); ?>"></td> | |
| 88 | + </tr> | |
| 89 | + </table> | |
| 90 | + </div> | |
| 91 | + <input type="hidden" name="action" value="wppm_set_ap_individual_task"> | |
| 92 | + <input type="hidden" name="_ajax_nonce" value="<?php echo esc_attr( wp_create_nonce( 'wppm_set_ap_individual_task' ) ); ?>"> | |
| 93 | + <script>jQuery('.wppm-color-picker').wpColorPicker();</script> | |
| 94 | + <style> | |
| 95 | + .wppm-ap-table td {padding: 5px;} | |
| 96 | + .wppm-ap-table table, .wppm-ap-table td {border: 1px solid #c3c3c3;} | |
| 97 | + </style> | |
| 98 | +</form> | |
| 99 | +<div class="setting-footer-actions"> | |
| 100 | + <button | |
| 101 | + class="wppm-submit-btn" | |
| 102 | + onclick="wppm_set_ap_individual_task();" 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;"> | |
| 103 | + <?php esc_attr_e( 'Save Changes', 'taskbuilder' ); ?></button> | |
| 104 | + <button | |
| 105 | + class="wppm_reset_btn" id="wppm_reset_ap_individual_task_btn" | |
| 106 | + onclick="wppm_reset_ap_individual_task(this);"> | |
| 107 | + <?php esc_attr_e( 'Reset default', 'taskbuilder' ); ?></button> | |
| 108 | + <input type="hidden" name="wppm_reset_ap_individual_task_ajax_nonce" id="wppm_reset_ap_individual_task_ajax_nonce" value="<?php echo esc_attr( wp_create_nonce( 'wppm_reset_ap_individual_task' ) ); ?>"> | |
| 109 | + <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> | |
| 110 | +</div> | |
| 111 | +<?php | |
| 112 | 112 | wp_die(); |