| 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 |
|