PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.8
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.8
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 / beta-version.php

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

34 lines 818 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 beta version of LP.
4 */
5
6 use LearnPress\Helpers\Template;
7
8 if ( ! defined( 'ABSPATH' ) ) {
9 exit; // Exit if accessed directly
10 }
11
12 if ( ! isset( $data ) || ! isset( $data['check'] ) || ! $data['check'] ) {
13 return;
14 }
15
16 $info = is_array( $data['info'] ) ? $data['info'] : [];
17 if ( empty( $info ) ) {
18 echo '<p>No beta version</p>';
19 return;
20 }
21
22 $data_info = LP_Admin_Notice::get_data_lp_beta( $info );
23 ?>
24
25 <div class="lp-admin-notice lp-mes-beta-version notice notice-info">
26 <h3><?php echo wp_kses_post( $data_info['title'] ?? '' ); ?></h3>
27 <?php echo wp_kses_post( $data_info['description'] ?? '' ); ?>
28 <?php
29 if ( isset( $data['allow_dismiss'] ) ) {
30 Template::instance()->get_admin_template( 'admin-notices/button-dismiss.php', array( 'key' => 'lp-beta-version' ) );
31 }
32 ?>
33 </div>
34