| 1 |
<?php |
| 2 |
/** |
| 3 |
* Template for displaying extra info as toggle |
| 4 |
* |
| 5 |
* @author ThimPress |
| 6 |
* @package LearnPress/Templates |
| 7 |
* @version 4.0.0 |
| 8 |
*/ |
| 9 |
|
| 10 |
defined( 'ABSPATH' ) || exit; |
| 11 |
|
| 12 |
if ( ! isset( $title ) || ! isset( $items ) ) { |
| 13 |
return; |
| 14 |
} |
| 15 |
?> |
| 16 |
|
| 17 |
<div class="course-extra-box"> |
| 18 |
<h3 class="course-extra-box__title"> |
| 19 |
<?php echo esc_html( $title ); ?> |
| 20 |
</h3> |
| 21 |
|
| 22 |
<div class="course-extra-box__content"> |
| 23 |
<div class="course-extra-box__content-inner"> |
| 24 |
<ul> |
| 25 |
|
| 26 |
<?php |
| 27 |
if ( ! is_array( $items ) ) { |
| 28 |
$items = array(); |
| 29 |
} |
| 30 |
|
| 31 |
foreach ( $items as $item ) : |
| 32 |
?> |
| 33 |
<li><?php echo wp_kses_post( $item ); ?></li> |
| 34 |
<?php endforeach; ?> |
| 35 |
</ul> |
| 36 |
</div> |
| 37 |
</div> |
| 38 |
</div> |
| 39 |
|