/** * Show the title modules on the single course template. * * Function is hooked into sensei_single_course_modules_before. * * @since 1.8.0 * @return void */ public function course_modules_title() { if (sensei_module_has_lessons()) { echo '<header><h2>' . __('Modules', 'woothemes-sensei') . '</h2></header>'; } }
<section class="module-lessons"> <header> <h3><?php _e('Lessons', 'woothemes-sensei'); ?> </h3> </header> <ul class="lessons-list" > <?php while (sensei_module_has_lessons()) { the_post(); ?> <li class="<?php sensei_the_lesson_status_class(); ?> "> <a href="<?php the_permalink(); ?> " title="<?php the_title_attribute(); ?> " >