parts
9 months ago
body.php
3 years ago
content.php
3 years ago
no_course_belongs.php
3 years ago
previous-attempts.php
9 months ago
single_quiz_contents.php
3 years ago
top.php
1 year ago
single_quiz_contents.php
33 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Single quiz content |
| 4 | * |
| 5 | * @package Tutor\Templates |
| 6 | * @subpackage Single\Quiz |
| 7 | * @author Themeum <support@themeum.com> |
| 8 | * @link https://themeum.com |
| 9 | * @version 1.4.3 |
| 10 | */ |
| 11 | |
| 12 | use Tutor\Models\CourseModel; |
| 13 | |
| 14 | $course = CourseModel::get_course_by_quiz( get_the_ID() ); |
| 15 | $course_id = tutor_utils()->get_course_id_by( 'lesson', get_the_ID() ); |
| 16 | ?> |
| 17 | |
| 18 | <?php tutor_load_template( 'single.common.header', array( 'course_id' => $course_id ) ); ?> |
| 19 | |
| 20 | <?php ob_start(); ?> |
| 21 | <div class="tutor-quiz-single-wrap "> |
| 22 | <input type="hidden" name="tutor_quiz_id" id="tutor_quiz_id" value="<?php the_ID(); ?>"> |
| 23 | <?php |
| 24 | if ( $course ) { |
| 25 | tutor_single_quiz_top(); |
| 26 | tutor_single_quiz_body(); |
| 27 | } else { |
| 28 | tutor_single_quiz_no_course_belongs(); |
| 29 | } |
| 30 | ?> |
| 31 | </div> |
| 32 | <?php echo apply_filters( 'tutor_quiz/single/wrapper', ob_get_clean() );//phpcs:ignore ?> |
| 33 |