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-new-version.php

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

44 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Template for display error wrong permalink structure.
4 *
5 * @version 1.0.1
6 * @since 3.0.0
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['addons'] ) ) {
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><?php echo sprintf( '<strong>%s</strong>', __( 'New version Addons.', 'learnpress' ) ); ?></p>
28 <p style="display: flex;gap: 5px;flex-wrap: wrap">
29 <?php
30 foreach ( $data['addons'] as $addon ) {
31 echo sprintf(
32 '<a href="%s" class="button button-primary">%s</a>',
33 admin_url( 'admin.php?page=learn-press-addons&tab=update' ),
34 $addon->name
35 );
36 }
37 ?>
38 </p>
39 </div>
40 <?php
41 }
42 ?>
43 <input type="hidden" name="lp-addons-new-version-totals" value="<?php echo count( $data['addons'] ); ?>"/>
44