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
← All changes | includes/admin/settings.php +72 -1 1.0.56.0.6 View file →
@@ -1,9 +1,14 @@
1 1 <?php
2 2 if ( ! defined( 'ABSPATH' ) ) {
3 3 exit; // Exit if accessed directly
4 4 }
5 -global $wpdb, $wppmfunction;
5 +global $wpdb, $wppmfunction,$current_user;
6 +$popup_settings = get_option("wppm-ap-modal");
7 +$wppm_ap_settings = get_option("wppm-ap-settings");
8 +if (!($current_user->ID && $current_user->has_cap('wppm_admin') || $current_user->has_cap('manage_options'))) {
9 + exit;
10 +}
6 11 ?>
7 12 <div class="wppm_bootstrap">
8 13 <span class="wppm-heading-inline wppm_email_notification_header">
9 14 <?php echo esc_html_e('Settings','taskbuilder');?>
@@ -12,13 +17,26 @@
12 17 <div class="row">
13 18 <div class="col-sm-4 wppm_setting_col1">
14 19 <ul class="nav nav-pills nav-stacked wppm_setting_pills">
15 20 <li id="wppm_settings_general" role="presentation" class="active"><a href="javascript:wppm_get_general_settings();"><?php echo esc_html_e('General','taskbuilder');?></a></li>
21 + <li id="wppm_settings_page" role="presentation" class="active"><a href="javascript:wppm_get_page_settings();"><?php echo esc_html_e('Page Setting','taskbuilder');?></a></li>
16 22 <li id="wppm_settings_category" role="presentation"><a href="javascript:wppm_get_category_settings();"><?php echo esc_html_e('Project Categories','taskbuilder');?></a></li>
17 23 <li id="wppm_settings_proj_status" role="presentation"><a href="javascript:wppm_get_proj_status_settings();"><?php echo esc_html_e('Project Statuses','taskbuilder');?></a></li>
18 24 <li id="wppm_settings_task_priorities" role="presentation"><a href="javascript:wppm_get_task_prioriy_settings();"><?php echo esc_html_e('Tasks Priorities','taskbuilder');?></a></li>
19 25 <li id="wppm_settings_task_status" role="presentation"><a href="javascript:wppm_get_task_status_settings();"><?php echo esc_html_e('Task Statuses','taskbuilder');?></a></li>
26 + <li id="wppm_settings_miscellaneous" role="presentation"><a href="javascript:wppm_get_miscellaneous_settings();"><?php echo esc_html_e('Miscellaneous','taskbuilder');?></a></li>
27 + <li id="wppm_settings_appearance" role="presentation"><a href="javascript:wppm_get_appearance_settings();"><?php echo esc_html_e('Appearance','taskbuilder');?></a></li>
28 + <li id="wppm_settings_coworker" role="presentation"><a href="javascript:wppm_get_coworker_permission_settings();"><?php echo esc_html_e('Co-workers Permission','taskbuilder');?></a></li>
29 + <li id="wppm_settings_rich_text_editor" role="presentation"><a href="javascript:wppm_get_rich_text_editor_settings();"><?php echo esc_html_e('Rich Text Editor','taskbuilder');?></a></li>
30 + <li id="wppm_settings_print_task" role="presentation"><a href="javascript:wppm_get_print_task_settings();"><?php echo esc_html_e('Print Task','taskbuilder');?></a></li>
20 31 <?php do_action('wppm_after_setting_pills');?>
32 + <?php foreach ( wppm_get_locked_pro_addons_by_placement('settings') as $wppm_addon_key => $wppm_addon ) : ?>
33 + <li id="wppm_settings_pro_<?php echo esc_attr( $wppm_addon_key ); ?>" role="presentation" class="wppm-locked-pill">
34 + <a href="javascript:void(0);" onclick="wppm_show_pro_addon_upsell('wppm_settings_pro_<?php echo esc_js( $wppm_addon_key ); ?>', '<?php echo esc_js( $wppm_addon['label'] ); ?>', '<?php echo esc_js( $wppm_addon['description'] ); ?>', '<?php echo esc_js( wppm_pro_upgrade_url() ); ?>', '<?php echo esc_js( $wppm_addon['details_url'] ); ?>');">
35 + <span class="wppm-pro-pill-lock"><?php echo wppm_pro_lock_svg( 12, '#999' ); ?></span> <?php echo esc_html( $wppm_addon['label'] ); ?> <span class="wppm-pro-badge" title="<?php esc_attr_e( 'Pro feature', 'taskbuilder' ); ?>"><?php echo wppm_pro_badge_svg(); ?></span>
36 + </a>
37 + </li>
38 + <?php endforeach; ?>
21 39 </ul>
22 40 </div>
23 41 <div class="col-sm-8 wppm_setting_col2"></div>
24 42 <div id="wppm_alert_success" class="alert alert-success wppm_alert" style="display:none;" role="alert">
@@ -46,10 +64,63 @@
46 64 </div>
47 65 </div>
48 66 </div>
49 67 </div>
68 +<style>
69 + #wppm_popup_title{
70 + background-color: <?php echo esc_attr($popup_settings['header-bg-color'])?>;
71 + }
72 + #wppm_popup_title h3{
73 + color:<?php echo esc_attr( $popup_settings['header-text-color'])?>;
74 + }
75 + #wppm_popup_body{
76 + background-color: <?php echo esc_attr($popup_settings['body-bg-color'])?>!important;
77 + }
78 + #wppm_popup_body label{
79 + color:<?php echo esc_attr( $popup_settings['body-label-color'])?>;
80 + }
81 + #wppm_popup_body input{
82 + color:<?php echo esc_attr( $popup_settings['body-text-color'])?>;
83 + }
84 + #wppm_popup_body select{
85 + color:<?php echo esc_attr( $popup_settings['body-text-color'])?>;
86 + }
87 + #wppm_popup_body span {
88 + color:<?php echo esc_attr( $popup_settings['body-text-color'])?>;
89 + }
90 + #wppm_popup_body .select2-results__options {
91 + color:<?php echo esc_attr( $popup_settings['body-text-color'])?>;
92 + }
93 + #wppm_popup_footer{
94 + background-color: <?php echo esc_attr($popup_settings['footer-bg-color'])?>!important;
95 + }
96 + .wppm_popup_action{
97 + background-color: <?php echo esc_attr($popup_settings['action-btn-bg-color'])?>!important;
98 + color:<?php echo esc_attr( $popup_settings['action-btn-text-color'])?>!important;
99 + }
100 + .wppm_bootstrap .nav-pills > li.active > a,
101 + .wppm_bootstrap .nav-pills > li.active > a:hover,
102 + .wppm_bootstrap .nav-pills > li.active > a:focus {
103 + color: <?php echo esc_attr( $wppm_ap_settings['tab-text-color'])?>!important;
104 + background-color:<?php echo esc_attr($wppm_ap_settings['tab-background-color'])?>!important;
105 + }
106 +</style>
50 107 <!-- Pop-up snippet end -->
51 108 <script>
52 109 jQuery(document).ready(function(){
53 110 wppm_get_general_settings();
54 111 });
112 +
113 + function wppm_show_pro_addon_upsell(pillId, label, description, upgradeUrl, detailsUrl) {
114 + jQuery('.wppm_setting_pills li').removeClass('active');
115 + jQuery('#' + pillId).addClass('active');
116 + var html = '<div class="wppm-pro-teaser wppm-pro-teaser-inline">'
117 + + '<div class="wppm-pro-teaser-icon"><span class="wppm-pro-teaser-lock"><?php echo wppm_pro_lock_svg( 12 ); ?></span></div>'
118 + + '<h2>' + label + ' <span class="wppm-pro-badge" title="<?php echo esc_js( __( 'Pro feature', 'taskbuilder' ) ); ?>"><?php echo wppm_pro_badge_svg( 18 ); ?></span></h2>'
119 + + '<p>' + description + '</p>'
120 + + '<div class="wppm-pro-teaser-actions">'
121 + + '<a href="' + upgradeUrl + '" target="_blank" rel="noopener noreferrer" class="btn btn-success"><?php echo esc_js( __( 'Upgrade to Pro', 'taskbuilder' ) ); ?></a>'
122 + + '<a href="' + detailsUrl + '" target="_blank" rel="noopener noreferrer" class="btn btn-default"><?php echo esc_js( __( 'View Details', 'taskbuilder' ) ); ?></a>'
123 + + '</div></div>';
124 + jQuery('.wppm_setting_col2').html(html);
125 + }
55 126 </script>