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
content.php
27 lines
| 1 | <?php |
| 2 | /** |
| 3 | * @package TutorLMS/Templates |
| 4 | * @version 1.4.3 |
| 5 | */ |
| 6 | |
| 7 | |
| 8 | global $post; |
| 9 | $currentPost = $post; |
| 10 | $quiz_id = get_the_ID(); |
| 11 | $previous_attempts = tutor_utils()->quiz_attempts(); |
| 12 | $attempted_count = is_array($previous_attempts) ? count($previous_attempts) : 0; |
| 13 | $attempts_allowed = tutor_utils()->get_quiz_option($quiz_id, 'attempts_allowed', 0); |
| 14 | $attempt_remaining = $attempts_allowed - $attempted_count; |
| 15 | ?> |
| 16 | <?php |
| 17 | if ($attempted_count !== 0) { |
| 18 | ?> |
| 19 | <div id="tutor-quiz-content" class="tutor-quiz-content tutor-quiz-content-<?php the_ID(); ?>"> |
| 20 | <?php |
| 21 | |
| 22 | do_action('tutor_quiz/content/before', $quiz_id); |
| 23 | |
| 24 | do_action('tutor_quiz/content/after', $quiz_id); |
| 25 | ?> |
| 26 | </div> |
| 27 | <?php } ?> |