| @@ -1,23 +1,23 @@ | ||
| 1 | -<?php | |
| 2 | -/** | |
| 3 | - * Template for displaying title of lesson. | |
| 4 | - * | |
| 5 | - * @author ThimPress | |
| 6 | - * @package Learnpress/Templates | |
| 7 | - * @version 4.0.0 | |
| 8 | - */ | |
| 9 | - | |
| 10 | -defined( 'ABSPATH' ) || exit(); | |
| 11 | - | |
| 12 | -if ( ! isset( $lesson ) ) { | |
| 13 | - return; | |
| 14 | -} | |
| 15 | - | |
| 16 | -$title = $lesson->get_title( 'display' ); | |
| 17 | - | |
| 18 | -if ( ! $title ) { | |
| 19 | - return; | |
| 20 | -} | |
| 21 | -?> | |
| 22 | - | |
| 23 | -<h1 class="course-item-title lesson-title"><?php echo esc_html( $title ); ?></h1> | |
| 1 | +<?php | |
| 2 | +/** | |
| 3 | + * Template for displaying title of lesson. | |
| 4 | + * | |
| 5 | + * @author ThimPress | |
| 6 | + * @package Learnpress/Templates | |
| 7 | + * @version 4.0.0 | |
| 8 | + */ | |
| 9 | + | |
| 10 | +defined( 'ABSPATH' ) || exit(); | |
| 11 | + | |
| 12 | +if ( ! isset( $lesson ) ) { | |
| 13 | + return; | |
| 14 | +} | |
| 15 | + | |
| 16 | +$title = $lesson->get_title( 'display' ); | |
| 17 | + | |
| 18 | +if ( ! $title ) { | |
| 19 | + return; | |
| 20 | +} | |
| 21 | +?> | |
| 22 | + | |
| 23 | +<h1 class="course-item-title lesson-title"><?php echo esc_html( $title ); ?></h1> | |