PluginProbe
Taskbuilder – Project Management & Task Management Tool With Kanban Board / 2.0.6
Taskbuilder – Project Management & Task Management Tool With Kanban Board v2.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 1.0.6 All 57 releases
← All changes | includes/admin/licenses.php +60 -70 trunk2.0.6 View file →
@@ -1,71 +1,61 @@
1 -<?php
2 -if ( ! defined( 'ABSPATH' ) ) {
3 - exit; // Exit if accessed directly
4 -}
5 -global $wppmfunction,$wpdb,$current_user;
6 -if (!($current_user->ID || $current_user->has_cap('manage_options'))) {
7 - exit;
8 -}
9 -$is_addons = apply_filters( 'wppm_is_add_on_installed', false );
10 -$addons_url = 'https://taskbuilder.net/add-ons/';
11 -if($is_addons) {
12 - $license_message = esc_html__('Enter your add-ons license keys here to receive updates for purchased add-ons. If your license key has expired, please renew your license.','taskbuilder');
13 -} else {
14 - $license_message = sprintf(
15 - esc_html__('No add-ons installed. See available add-ons - %1$s.', 'taskbuilder'),
16 - '<a href="' . esc_url($addons_url) . '" target="_blank" rel="noopener noreferrer">'
17 - . esc_url($addons_url) .
18 - '</a>'
19 - );
20 -}
21 -$license_message = '<h4>' . $license_message . '</h4>';
22 -?>
23 -<div class="wppm_bootstrap">
24 -
25 - <h3>
26 - <?php echo esc_html_e('License','taskbuilder');?>
27 - </h3>
28 - <div class="wppm_padding_space"></div>
29 - <div class="row" style="margin-bottom:20px;"><?php echo !empty($license_message) ? wp_kses_post($license_message) : ''; ?></div>
30 - <div class="row"><?php do_action('wppm_addon_license_area')?></div>
31 -
32 - <div id="wppm_alert_success" class="alert alert-success wppm_alert" style="display:none;" role="alert">
33 - <i class="fa fa-check-circle"></i> <span class="wppm_alert_text"></span>
34 - </div>
35 -
36 - <div id="wppm_alert_error" class="alert alert-danger wppm_alert" style="display:none;" role="alert">
37 - <i class="fa fa-exclamation-triangle"></i> <span class="wppm_alert_text"></span>
38 - </div>
39 -
40 -</div>
41 -
42 -<!-- Pop-up snippet start -->
43 -<div id="wppm_popup_background" style="display:none;"></div>
44 -<div id="wppm_popup_container" style="display:none;">
45 - <div class="wppm_bootstrap">
46 - <div class="row">
47 - <div id="wppm_popup" class="col-xs-10 col-xs-offset-1 col-sm-10 col-sm-offset-1 col-md-8 col-md-offset-2 col-lg-6 col-lg-offset-3">
48 - <div id="wppm_popup_title" class="row"><h3><?php echo esc_html_e('Modal Title','taskbuilder');?></h3></h3></div>
49 - <div id="wppm_popup_body" class="row"><?php echo esc_html_e('I am body!','taskbuilder');?></div>
50 - <div id="wppm_popup_footer" class="row">
51 - <button type="button" class="btn wppm_popup_close"><?php echo esc_html_e('Close','taskbuilder');?></button>
52 - <button type="button" class="btn wppm_popup_action"><?php echo esc_html_e('Save Changes','taskbuilder');?></button>
53 - </div>
54 - </div>
55 - </div>
56 - </div>
57 -</div>
58 -<!-- Pop-up snippet end -->
59 -
60 -<?php
61 -add_action('admin_footer', 'wppm_page_inline_script');
62 -function wppm_page_inline_script(){
63 - ?>
64 - <script>
65 - jQuery(document).ready(function(){
66 - wppm_get_general_settings();
67 - });
68 - </script>
69 - <?php
70 -}
1 +<?php
2 +if ( ! defined( 'ABSPATH' ) ) {
3 + exit; // Exit if accessed directly
4 +}
5 +
6 +$is_addons = apply_filters( 'wppm_is_add_on_installed', false );
7 +if($is_addons) {
8 + $license_messege = __('Enter your add-ons license keys here to receive updates for purchased add-ons. If your license key has expired, please renew your license.','taskbuilder');
9 +} else {
10 + $license_messege = '<h4>'.sprintf(__('No add-ons installed. See available add-ons - %1$s.','taskbuilder'),'<a href="https://taskbuilder.net/add-ons/" target="_blank">https://taskbuilder.net/add-ons/</a>').'</h4>';
11 +}
12 +?>
13 +<div class="wppm_bootstrap">
14 +
15 + <h3>
16 + <?php echo esc_html_e('License','taskbuilder');?>
17 + </h3>
18 + <div class="wppm_padding_space"></div>
19 + <div class="row" style="margin-bottom:20px;"><?php echo html_entity_decode($license_messege)?></div>
20 + <div class="row"><?php do_action('wppm_addon_license_area')?></div>
21 +
22 + <div id="wppm_alert_success" class="alert alert-success wppm_alert" style="display:none;" role="alert">
23 + <i class="fa fa-check-circle"></i> <span class="wppm_alert_text"></span>
24 + </div>
25 +
26 + <div id="wppm_alert_error" class="alert alert-danger wppm_alert" style="display:none;" role="alert">
27 + <i class="fa fa-exclamation-triangle"></i> <span class="wppm_alert_text"></span>
28 + </div>
29 +
30 +</div>
31 +
32 +<!-- Pop-up snippet start -->
33 +<div id="wppm_popup_background" style="display:none;"></div>
34 +<div id="wppm_popup_container" style="display:none;">
35 + <div class="wppm_bootstrap">
36 + <div class="row">
37 + <div id="wppm_popup" class="col-xs-10 col-xs-offset-1 col-sm-10 col-sm-offset-1 col-md-8 col-md-offset-2 col-lg-6 col-lg-offset-3">
38 + <div id="wppm_popup_title" class="row"><h3><?php echo esc_html_e('Modal Title','taskbuilder');?></h3></h3></div>
39 + <div id="wppm_popup_body" class="row"><?php echo esc_html_e('I am body!','taskbuilder');?></div>
40 + <div id="wppm_popup_footer" class="row">
41 + <button type="button" class="btn wppm_popup_close"><?php echo esc_html_e('Close','taskbuilder');?></button>
42 + <button type="button" class="btn wppm_popup_action"><?php echo esc_html_e('Save Changes','taskbuilder');?></button>
43 + </div>
44 + </div>
45 + </div>
46 + </div>
47 +</div>
48 +<!-- Pop-up snippet end -->
49 +
50 +<?php
51 +add_action('admin_footer', 'wppm_page_inline_script');
52 +function wppm_page_inline_script(){
53 + ?>
54 + <script>
55 + jQuery(document).ready(function(){
56 + wppm_get_general_settings();
57 + });
58 + </script>
59 + <?php
60 +}
71 61 ?>