course-filter
5 years ago
dashboard
5 years ago
email
5 years ago
global
5 years ago
loop
5 years ago
profile
5 years ago
shortcode
5 years ago
single
5 years ago
template-part
5 years ago
widget
5 years ago
archive-course-init.php
5 years ago
archive-course.php
5 years ago
course-none.php
5 years ago
dashboard.php
5 years ago
instructor-setting.php
5 years ago
login.php
5 years ago
public-profile-setting.php
5 years ago
single-assignment.php
5 years ago
single-course-enrolled-announcements.php
5 years ago
single-course-enrolled-overview.php
5 years ago
single-course-enrolled-questions.php
5 years ago
single-course-enrolled-subpage.php
5 years ago
single-course-enrolled.php
5 years ago
single-course-instructor.php
5 years ago
single-course.php
5 years ago
single-lesson.php
5 years ago
single-preview-lesson.php
5 years ago
single-quiz.php
5 years ago
student-public-profile.php
5 years ago
template.php
5 years ago
single-quiz.php
65 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Template for displaying single quiz |
| 4 | * |
| 5 | * @since v.1.0.0 |
| 6 | * |
| 7 | * @author Themeum |
| 8 | * @url https://themeum.com |
| 9 | * |
| 10 | * @package TutorLMS/Templates |
| 11 | * @version 1.4.3 |
| 12 | */ |
| 13 | |
| 14 | get_tutor_header(); |
| 15 | |
| 16 | $course = tutor_utils()->get_course_by_quiz(get_the_ID()); |
| 17 | |
| 18 | $enable_spotlight_mode = tutor_utils()->get_option('enable_spotlight_mode'); |
| 19 | ?> |
| 20 | |
| 21 | <?php do_action('tutor_quiz/single/before/wrap'); ?> |
| 22 | |
| 23 | |
| 24 | <div class="tutor-single-lesson-wrap <?php echo $enable_spotlight_mode ? "tutor-spotlight-mode" : ""; ?>"> |
| 25 | |
| 26 | <div class="tutor-lesson-sidebar"> |
| 27 | <?php tutor_lessons_sidebar(); ?> |
| 28 | </div> |
| 29 | <div id="tutor-single-entry-content" class="tutor-quiz-single-entry-wrap tutor-single-entry-content"> |
| 30 | <input type="hidden" name="tutor_quiz_id" id="tutor_quiz_id" value="<?php the_ID(); ?>"> |
| 31 | <div class="tutor-single-page-top-bar"> |
| 32 | <div class="tutor-topbar-item tutor-hide-sidebar-bar"> |
| 33 | <a href="javascript:;" class="tutor-lesson-sidebar-hide-bar"><i class="tutor-icon-angle-left"></i> </a> |
| 34 | <a href="<?php echo get_the_permalink($course->ID); ?>" class="tutor-topbar-home-btn"> |
| 35 | <i class="tutor-icon-home"></i> <?php echo __('Go to Course Home', 'tutor') ; ?> |
| 36 | </a> |
| 37 | </div> |
| 38 | <div class="tutor-topbar-item tutor-topbar-content-title-wrap"> |
| 39 | <?php |
| 40 | tutor_utils()->get_lesson_type_icon(get_the_ID(), true, true); |
| 41 | the_title(); ?> |
| 42 | </div> |
| 43 | |
| 44 | <div class="tutor-topbar-item tutor-topbar-mark-to-done" style="width: 150px;"></div> |
| 45 | </div> |
| 46 | <div class="tutor-quiz-single-wrap "> |
| 47 | <input type="hidden" name="tutor_quiz_id" id="tutor_quiz_id" value="<?php the_ID(); ?>"> |
| 48 | |
| 49 | <?php |
| 50 | if ($course){ |
| 51 | tutor_single_quiz_top(); |
| 52 | tutor_single_quiz_content(); |
| 53 | tutor_single_quiz_body(); |
| 54 | }else{ |
| 55 | tutor_single_quiz_no_course_belongs(); |
| 56 | } |
| 57 | ?> |
| 58 | </div> |
| 59 | |
| 60 | </div> |
| 61 | </div><!-- .wrap --> |
| 62 | |
| 63 | <?php |
| 64 | |
| 65 | get_tutor_footer(); |