PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.2
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.2
4.4.8 4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 4.1.7.3.1 4.1.7.3.2 4.2.0 All 139 releases
learnpress / inc / admin / views / admin-notices / addons-purchased-extend.php

addons-purchased-extend.php in LearnPress – WordPress LMS Plugin for Create and Sell Online Courses 4.4.2, at inc/admin/views/admin-notices/addons-purchased-extend.php

44 lines 939 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Template for display message notification addons purchased need extend.
4 *
5 * @version 1.0.1
6 * @since 4.2.5.9
7 */
8
9 use LearnPress\Helpers\Template;
10
11 if ( ! defined( 'ABSPATH' ) ) {
12 exit; // Exit if accessed directly
13 }
14
15 if ( ! isset( $data ) || empty( $data['need-extend'] ) ) {
16 return;
17 }
18
19 if ( empty( $data['dismiss'] ) ) {
20 ?>
21 <div class="lp-notice notice notice-info">
22 <?php
23 if ( isset( $data['allow_dismiss'] ) ) {
24 Template::instance()->get_admin_template( 'admin-notices/button-dismiss.php', array( 'key' => 'lp-addons-new-version' ) );
25 }
26 ?>
27 <p>
28 <?php
29 echo sprintf(
30 '<strong>%s %s</strong>',
31 __( 'You have LearnPress Add-on licenses that need to be extended.', 'learnpress' ),
32 sprintf(
33 '<a style="color: #E64B50" href="%s">%s</a>',
34 admin_url( 'admin.php?page=learn-press-addons&tab=license' ),
35 __( 'Check now!', 'learnpress' )
36 )
37 );
38 ?>
39 </p>
40 </div>
41 <?php
42 }
43 ?>
44