| 1 |
<?php |
| 2 |
/** |
| 3 |
* Template for displaying global message. |
| 4 |
* |
| 5 |
* This template can be overridden by copying it to yourtheme/learnpress/global/lp-message.php. |
| 6 |
* |
| 7 |
* @author ThimPress |
| 8 |
* @package Learnpress/Templates |
| 9 |
* @version 1.0.1 |
| 10 |
* @since 4.2.0 |
| 11 |
*/ |
| 12 |
|
| 13 |
defined( 'ABSPATH' ) || exit(); |
| 14 |
|
| 15 |
if ( ! isset( $customer_message ) || ! isset( $customer_message['content'] ) || ! isset( $customer_message['status'] ) ) { |
| 16 |
return; |
| 17 |
} |
| 18 |
|
| 19 |
$classes = array( 'learn-press-message', $customer_message['status'], 'lp-content-area' ); |
| 20 |
?> |
| 21 |
<div |
| 22 |
class="<?php echo esc_attr( join( ' ', $classes ) ); ?>"><?php echo wp_kses_post( $customer_message['content'] ); ?> |
| 23 |
</div> |
| 24 |
|