PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.1.7
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.1.7
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 4.2.1 All 138 releases
learnpress / inc / admin / views / admin-notice.php

admin-notice.php in LearnPress – WordPress LMS Plugin for Create and Sell Online Courses 4.1.7, at inc/admin/views/admin-notice.php

34 lines 677 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 a notice in admin
4 */
5
6 defined( 'ABSPATH' ) || exit;
7
8 if ( ! isset( $message ) ) {
9 return;
10 }
11
12 if ( ! isset( $type ) ) {
13 $type = 'success';
14 }
15
16 if ( ! isset( $dismissible ) ) {
17 $dismissible = true;
18 }
19
20 if ( strpos( $type, 'notice-' ) === false ) {
21 $type = "notice-{$type}";
22 }
23
24 $classes = array( 'lp-notice', 'notice', $type );
25 ?>
26
27 <div id="<?php echo esc_attr( $id ?? '' ); ?>" class="<?php echo esc_attr( implode( ' ', $classes ) ); ?>">
28 <p><?php echo esc_html( $message ); ?></p>
29
30 <?php if ( $dismissible ) : ?>
31 <button class="notice-dismiss" data-dismiss-notice="<?php echo esc_attr( $id ?? '' ); ?>"></button>
32 <?php endif; ?>
33 </div>
34