| @@ -1,34 +1,34 @@ | ||
| 1 | -<?php | |
| 2 | -/** | |
| 3 | - * Template for displaying course graduation. | |
| 4 | - * | |
| 5 | - * @author ThimPress | |
| 6 | - * @package LearnPress/Templates | |
| 7 | - * @version 4.0.0 | |
| 8 | - */ | |
| 9 | - | |
| 10 | -defined( 'ABSPATH' ) or die; | |
| 11 | - | |
| 12 | -if ( ! isset( $graduation ) ) { | |
| 13 | - $graduation = _x( 'un-graduated', 'course graduation', 'learnpress' ); | |
| 14 | -} | |
| 15 | - | |
| 16 | -$classes = array( | |
| 17 | - 'course-graduation', | |
| 18 | - 'learn-press-message', | |
| 19 | - $graduation, | |
| 20 | - $graduation === 'passed' ? 'success' : ( $graduation === 'failed' ? 'error' : '' ), | |
| 21 | -); | |
| 22 | -?> | |
| 23 | - | |
| 24 | -<div class="<?php echo implode( ' ', $classes ); ?>"> | |
| 25 | - <?php | |
| 26 | - if ( $graduation === 'passed' ) { | |
| 27 | - echo '<i class="lp-icon-check-circle"></i>'; | |
| 28 | - } else { | |
| 29 | - echo '<i class="lp-icon-times"></i>'; | |
| 30 | - } | |
| 31 | - ?> | |
| 32 | - | |
| 33 | - <span><?php learn_press_course_grade_html( $graduation ); ?></span> | |
| 34 | -</div> | |
| 1 | +<?php | |
| 2 | +/** | |
| 3 | + * Template for displaying course graduation. | |
| 4 | + * | |
| 5 | + * @author ThimPress | |
| 6 | + * @package LearnPress/Templates | |
| 7 | + * @version 4.0.0 | |
| 8 | + */ | |
| 9 | + | |
| 10 | +defined( 'ABSPATH' ) or die; | |
| 11 | + | |
| 12 | +if ( ! isset( $graduation ) ) { | |
| 13 | + $graduation = _x( 'un-graduated', 'course graduation', 'learnpress' ); | |
| 14 | +} | |
| 15 | + | |
| 16 | +$classes = array( | |
| 17 | + 'course-graduation', | |
| 18 | + 'learn-press-message', | |
| 19 | + $graduation, | |
| 20 | + $graduation === 'passed' ? 'success' : ( $graduation === 'failed' ? 'error' : '' ), | |
| 21 | +); | |
| 22 | +?> | |
| 23 | + | |
| 24 | +<div class="<?php echo implode( ' ', $classes ); ?>"> | |
| 25 | + <?php | |
| 26 | + if ( $graduation === 'passed' ) { | |
| 27 | + echo '<i class="lp-icon-check-circle"></i>'; | |
| 28 | + } else { | |
| 29 | + echo '<i class="lp-icon-times"></i>'; | |
| 30 | + } | |
| 31 | + ?> | |
| 32 | + | |
| 33 | + <span><?php learn_press_course_grade_html( $graduation ); ?></span> | |
| 34 | +</div> | |