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 / email_notifications / wppm_get_templates.php

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

122 lines 6.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;
7 if (!($current_user->ID && $current_user->has_cap('wppm_admin') || $current_user->has_cap('manage_options'))) {
8 exit;
9 }
10 ob_start();
11 ?>
12 <div class="table-responsive">
13 <table id="wppm_tbl_templates" class="table table-striped table-bordered" cellspacing="5" cellpadding="5">
14 <thead>
15 <tr>
16 <th><?php echo esc_html_e('Tag','taskbuilder')?></th>
17 <th><?php echo esc_html_e('Field Name','taskbuilder')?></th>
18 </tr>
19 </thead>
20 <tbody>
21 <tr>
22 <td id="wppm_tag_project_id_td" class="wppm_tag_project_id_td" onclick="wppm_insert_editor_text('{project_id}')">{<?php echo esc_attr('project_id') ?>}</td>
23 <td><?php echo esc_html_e('Project Id','taskbuilder'); ?></td>
24 </tr>
25 <tr>
26 <td id="wppm_tag_project_name_td" class="wppm_tag_project_name_td" onclick="wppm_insert_editor_text('{project_name}')">{<?php echo esc_attr('project_name') ?>}</td>
27 <td><?php echo esc_html_e('Project Name','taskbuilder'); ?></td>
28 </tr>
29 <tr>
30 <td id="wppm_tag_project_description_td" class="wppm_tag_project_description_td" onclick="wppm_insert_editor_text('{project_description}')">{<?php echo esc_attr('project_description') ?>}</td>
31 <td><?php echo esc_html_e('Project Description','taskbuilder'); ?></td>
32 </tr>
33 <tr>
34 <td id="wppm_tag_project_status_td" class="wppm_tag_project_status_td" onclick="wppm_insert_editor_text('{project_status}')">{<?php echo esc_attr('project_status') ?>}</td>
35 <td><?php echo esc_html_e('Project Status','taskbuilder') ?></td>
36 </tr>
37 <tr>
38 <td id="wppm_tag_project_category_td" class="wppm_tag_project_category_td" onclick="wppm_insert_editor_text('{project_category}')">{<?php echo esc_attr('project_category') ?>}</td>
39 <td><?php echo esc_html_e('Project Category','taskbuilder') ?></td>
40 </tr>
41 <tr>
42 <td id="wppm_tag_project_start_date" class="wppm_tag_project_start_date" onclick="wppm_insert_editor_text('{project_start_date}')">{<?php echo esc_attr('project_start_date') ?>}</td>
43 <td><?php echo esc_html_e('Project Start Date','taskbuilder') ?></td>
44 </tr>
45 <tr>
46 <td id="wppm_tag_project_end_date" class="wppm_tag_project_end_date" onclick="wppm_insert_editor_text('{project_end_date}')">{<?php echo esc_attr('project_end_date') ?>}</td>
47 <td><?php echo esc_html_e('Project End Date','taskbuilder') ?></td>
48 </tr>
49 <tr>
50 <td id="wppm_tag_project_assign_user" class="wppm_tag_project_assign_user" onclick="wppm_insert_editor_text('{project_assigned_users}')">{<?php echo esc_attr('project_assigned_users') ?>}</td>
51 <td><?php echo esc_html_e('Project Assigned Users','taskbuilder') ?></td>
52 </tr>
53 <tr>
54 <td id="wppm_tag_project_url" class="wppm_tag_project_url" onclick="wppm_insert_editor_text('{project_url}')">{<?php echo esc_attr('project_url') ?>}</td>
55 <td><?php echo esc_html_e('Project Url','taskbuilder') ?></td>
56 </tr>
57 <tr>
58 <td id="wppm_tag_task_id" class="wppm_tag_task_id" onclick="wppm_insert_editor_text('{task_id}')">{<?php echo esc_attr('task_id') ?>}</td>
59 <td><?php echo esc_html_e('Task Id','taskbuilder'); ?></td>
60 </tr>
61 <tr>
62 <td id="wppm_tag_task_name" class="wppm_tag_task_name" onclick="wppm_insert_editor_text('{task_name}')">{<?php echo esc_attr('task_name') ?>}</td>
63 <td><?php echo esc_html_e('Task Name','taskbuilder'); ?></td>
64 </tr>
65 <tr>
66 <td id="wppm_tag_task_creator_name" class="wppm_tag_task_creator_name" onclick="wppm_insert_editor_text('{task_creator_name}')">{<?php echo esc_attr('task_creator_name') ?>}</td>
67 <td><?php echo esc_html_e('Task Creator Name','taskbuilder'); ?></td>
68 </tr>
69 <tr>
70 <td id="wppm_tag_task_description" class="wppm_tag_task_description" onclick="wppm_insert_editor_text('{task_description}')">{<?php echo esc_attr('task_description') ?>}</td>
71 <td><?php echo esc_html_e('Task Description','taskbuilder'); ?></td>
72 </tr>
73 <tr>
74 <td id="wppm_tag_task_status" class="wppm_tag_task_status" onclick="wppm_insert_editor_text('{task_status}')">{<?php echo esc_attr('task_status') ?>}</td>
75 <td><?php echo esc_html_e('Task Status','taskbuilder') ?></td>
76 </tr>
77 <tr>
78 <td id="wppm_tag_task_priority" class="wppm_tag_task_priority" onclick="wppm_insert_editor_text('{task_priority}')">{<?php echo esc_attr('task_priority') ?>}</td>
79 <td><?php echo esc_html_e('Task Priority','taskbuilder') ?></td>
80 </tr>
81 <tr>
82 <td id="wppm_tag_task_start_date" class="wppm_tag_task_start_date" onclick="wppm_insert_editor_text('{task_start_date}')">{<?php echo esc_attr('task_start_date') ?>}</td>
83 <td><?php echo esc_html_e('Task Start Date','taskbuilder') ?></td>
84 </tr>
85 <tr>
86 <td id="wppm_tag_task_end_date" class="wppm_tag_task_end_date" onclick="wppm_insert_editor_text('{task_end_date}')">{<?php echo esc_attr('task_end_date') ?>}</td>
87 <td><?php echo esc_html_e('Task End Date','taskbuilder') ?></td>
88 </tr>
89 <tr>
90 <td id="wppm_tag_assigned_user" class="wppm_tag_assigned_user" onclick="wppm_insert_editor_text('{task_assigned_users}')">{<?php echo esc_attr('task_assigned_users') ?>}</td>
91 <td><?php echo esc_html_e('Task Assigned Users','taskbuilder') ?></td>
92 </tr>
93 <tr>
94 <td id="wppm_tag_task_url" class="wppm_tag_task_url" onclick="wppm_insert_editor_text('{task_url}')">{<?php echo esc_attr('task_url') ?>}</td>
95 <td><?php echo esc_html_e('Task Url','taskbuilder') ?></td>
96 </tr>
97 <?php
98 do_action('wppm_after_macro_templates'); ?>
99 </tbody>
100 </table>
101 </div>
102 <script>
103 function wppm_insert_editor_text(element){
104 wppm_modal_close();
105 tinymce.activeEditor.execCommand('mceInsertContent', false, element);
106 }
107 </script>
108 <?php
109 $body = ob_get_clean();
110 ob_start();
111 ?>
112 <button type="button" class="btn wppm_popup_close" onclick="wppm_modal_close();"><?php echo esc_html_e('Close','taskbuilder');?></button>
113 <?php
114 $footer = ob_get_clean();
115
116 $output = array(
117 'body' => $body,
118 'footer' => $footer
119 );
120
121 echo wp_json_encode($output);
122 ?>