parts
3 years ago
body.php
4 years ago
content.php
4 years ago
no_course_belongs.php
5 years ago
previous-attempts.php
4 years ago
single_quiz_contents.php
4 years ago
top.php
3 years ago
single_quiz_contents.php
25 lines
| 1 | <?php |
| 2 | /** |
| 3 | * @package TutorLMS/Templates |
| 4 | * @version 1.4.3 |
| 5 | */ |
| 6 | |
| 7 | $course = tutor_utils()->get_course_by_quiz( get_the_ID() ); |
| 8 | $course_id = tutor_utils()->get_course_id_by('lesson', get_the_ID()); |
| 9 | ?> |
| 10 | |
| 11 | <?php tutor_load_template( 'single.common.header', array( 'course_id' => $course_id ) ); ?> |
| 12 | |
| 13 | <?php ob_start(); ?> |
| 14 | <div class="tutor-quiz-single-wrap "> |
| 15 | <input type="hidden" name="tutor_quiz_id" id="tutor_quiz_id" value="<?php the_ID(); ?>"> |
| 16 | <?php |
| 17 | if ( $course ) { |
| 18 | tutor_single_quiz_top(); |
| 19 | tutor_single_quiz_body(); |
| 20 | } else { |
| 21 | tutor_single_quiz_no_course_belongs(); |
| 22 | } |
| 23 | ?> |
| 24 | </div> |
| 25 | <?php echo apply_filters( 'tutor_quiz/single/wrapper', ob_get_clean() ); ?> |