@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) exit; |
|
| 2 | +if ( ! defined('ABSPATH')) exit; |
|
| 3 | 3 | /** |
| 4 | 4 | * List the Course Modules and Lesson in these modules |
| 5 | 5 | * |
@@ -30,10 +30,10 @@ discard block |
||
| 30 | 30 | |
| 31 | 31 | ?> |
| 32 | 32 | |
| 33 | -<?php if( sensei_have_modules() ): ?> |
|
| 33 | +<?php if (sensei_have_modules()): ?> |
|
| 34 | 34 | |
| 35 | - <?php while ( sensei_have_modules() ): sensei_setup_module(); ?> |
|
| 36 | - <?php if( sensei_module_has_lessons() ): ?> |
|
| 35 | + <?php while (sensei_have_modules()): sensei_setup_module(); ?> |
|
| 36 | + <?php if (sensei_module_has_lessons()): ?> |
|
| 37 | 37 | |
| 38 | 38 | <article class="module"> |
| 39 | 39 | |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | |
| 58 | 58 | <h2> |
| 59 | 59 | |
| 60 | - <a href="<?php sensei_the_module_permalink(); ?>" title="<?php sensei_the_module_title_attribute();?>"> |
|
| 60 | + <a href="<?php sensei_the_module_permalink(); ?>" title="<?php sensei_the_module_title_attribute(); ?>"> |
|
| 61 | 61 | |
| 62 | 62 | <?php sensei_the_module_title(); ?> |
| 63 | 63 | |
@@ -81,15 +81,15 @@ discard block |
||
| 81 | 81 | |
| 82 | 82 | <ul class="lessons-list" > |
| 83 | 83 | |
| 84 | - <?php while( sensei_module_has_lessons() ): the_post(); ?> |
|
| 84 | + <?php while (sensei_module_has_lessons()): the_post(); ?> |
|
| 85 | 85 | |
| 86 | - <li class="<?php sensei_the_lesson_status_class();?>"> |
|
| 86 | + <li class="<?php sensei_the_lesson_status_class(); ?>"> |
|
| 87 | 87 | |
| 88 | 88 | <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute() ?>" > |
| 89 | 89 | |
| 90 | 90 | <?php the_title(); ?> |
| 91 | 91 | |
| 92 | - <?php if ( Sensei_Utils::is_preview_lesson( get_the_ID() ) ) { ?> |
|
| 92 | + <?php if (Sensei_Utils::is_preview_lesson(get_the_ID())) { ?> |
|
| 93 | 93 | |
| 94 | 94 | <span class="preview-label"> Free Preview</span> |
| 95 | 95 | |