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