PluginProbe
Taskbuilder – Project Management & Task Management Tool With Kanban Board / 2.0.5
Taskbuilder – Project Management & Task Management Tool With Kanban Board v2.0.5
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 / projects / open_project / wppm_get_project_visibility.php

wppm_get_project_visibility.php in Taskbuilder – Project Management & Task Management Tool With Kanban Board 2.0.5, at includes/admin/projects/open_project/wppm_get_project_visibility.php

43 lines 1.8 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 global $current_user,$wpdb,$wppmfunction;
6 $project_id = isset($_POST['id']) ? sanitize_text_field($_POST['id']) : '' ;
7 $public_project=$wppmfunction->get_project_meta($project_id,'public_project',true);
8 if (!(($current_user->ID && $current_user->has_cap('manage_options')))) {exit;}
9 ?>
10 <div class="row">
11 <div class="col-sm-12">
12 <span>
13 <label><?php echo esc_html_e('Change Project visibility','taskbuilder');?></label>
14 </span><br>
15 <input type="checkbox" name="wppm_project_visibility_option" style="margin-top: 0px;" value="0" <?php echo ((esc_attr($public_project))==0 || (esc_attr($public_project)=="")) ?'checked="checked"':'';?> onchange="wppm_select_project_visibility(<?php echo esc_attr($project_id) ?>)">
16 <span style="padding-left: 10px;"><?php echo esc_html_e('Private','taskbuilder');?></span>
17 <br>
18 <input type="checkbox" name="wppm_project_visibility_option" style="margin-top: 0px;" value="1" <?php echo ((esc_attr($public_project))==1) ?'checked="checked"':'';?> onchange="wppm_select_project_visibility(<?php echo esc_attr($project_id) ?>)">
19 <span style="padding-left: 10px;"><?php echo esc_html_e('Public','taskbuilder');?></span>
20 <br>
21 </div>
22 </div>
23 <script>
24 jQuery(document).ready(function(){
25 jQuery('input:checkbox').click(function() {
26 jQuery('input:checkbox').not(this).prop('checked', false);
27 });
28 });
29 <?php
30 $body = ob_get_clean();
31 ob_start();
32 ?>
33 <button type="button" class="btn wppm_popup_close" onclick="wppm_modal_close();"><?php echo esc_html_e('Close','taskbuilder');?></button>
34 <?php
35
36 $footer = ob_get_clean();
37
38 $response = array(
39 'body' => $body,
40 'footer' => $footer
41 );
42
43 echo json_encode($response);