quiz
7 years ago
announcements-metabox.php
7 years ago
course-add-product-metabox.php
7 years ago
course-additional-data.php
7 years ago
course-attachments-metabox.php
7 years ago
course-contents.php
7 years ago
course-topics.php
7 years ago
instructors-metabox.php
7 years ago
lesson-attachments-metabox.php
7 years ago
lesson-metabox.php
7 years ago
quiz_questions.php
7 years ago
quizzes.php
7 years ago
user-profile-fields.php
7 years ago
video-metabox.php
7 years ago
quiz_questions.php
30 lines
| 1 | <?php |
| 2 | $quiz_id = get_the_ID(); |
| 3 | |
| 4 | $questions = tutor_utils()->get_questions_by_quiz($quiz_id) |
| 5 | ?> |
| 6 | |
| 7 | <div class="tutor-quiz-questions-wrap"> |
| 8 | <?php |
| 9 | if ($questions){ |
| 10 | foreach ($questions as $question){ |
| 11 | include tutor()->path."views/metabox/quiz/single-question-item.php"; |
| 12 | } |
| 13 | } |
| 14 | ?> |
| 15 | </div> |
| 16 | |
| 17 | <!-- add new question --> |
| 18 | <div class="tutor-add-question-wrap"> |
| 19 | <input type="text" name="new_question_title" value="" placeholder="<?php _e('Write your question here', 'tutor'); ?>"> |
| 20 | |
| 21 | <select name="new_question_type"> |
| 22 | <option value="true_false"><?php _e('True/False'); ?></option> |
| 23 | <option value="multiple_choice"><?php _e('Multiple Choice'); ?></option> |
| 24 | <option value="single_choice"><?php _e('Single Choice'); ?></option> |
| 25 | </select> |
| 26 | |
| 27 | <button type="button" class="button add_question_btn"> <?php _e('Add Question', 'tutor'); ?></button> |
| 28 | |
| 29 | </div> |
| 30 | <!-- #End add new question --> |