PluginProbe
Taskbuilder – Project Management & Task Management Tool With Kanban Board / trunk
Taskbuilder – Project Management & Task Management Tool With Kanban Board vtrunk
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
taskbuilder / includes / admin / licenses.php

licenses.php in Taskbuilder – Project Management & Task Management Tool With Kanban Board trunk, at includes/admin/licenses.php

71 lines 2.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 $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 }
71 ?>