add_quiz.php
7 years ago
edit-lesson.php
7 years ago
edit_quiz.php
7 years ago
question_answer_edit_form.php
7 years ago
question_answer_form.php
7 years ago
question_form.php
7 years ago
edit-lesson.php
64 lines
| 1 | |
| 2 | <form class="tutor_lesson_modal_form"> |
| 3 | <input type="hidden" name="action" value="tutor_modal_create_or_update_lesson"> |
| 4 | <input type="hidden" name="lesson_id" value="<?php echo $post->ID; ?>"> |
| 5 | <input type="hidden" name="current_topic_id" value="<?php echo $topic_id; ?>"> |
| 6 | |
| 7 | <div class="lesson-modal-form-wrap"> |
| 8 | |
| 9 | <?php do_action('tutor_lesson_edit_modal_form_before', $post); ?> |
| 10 | |
| 11 | |
| 12 | <div class="lesson-modal-field-row"> |
| 13 | <div class="lesson-modal-field tutor-lesson-modal-title-wrap"> |
| 14 | <input type="text" name="lesson_title" value="<?php echo $post->post_title; ?>" placeholder="<?php _e('Lesson title', 'tutor'); ?>"> |
| 15 | </div> |
| 16 | </div> |
| 17 | |
| 18 | <div class="lesson-modal-field-row"> |
| 19 | <div class="lesson-modal-field"> |
| 20 | <?php |
| 21 | wp_editor($post->post_content, 'tutor_lesson_modal_editor', array( 'editor_height' => 150)); |
| 22 | ?> |
| 23 | </div> |
| 24 | </div> |
| 25 | |
| 26 | |
| 27 | <div class="tutor-option-field-row"> |
| 28 | <div class="tutor-option-field-label"> |
| 29 | <label for=""><?php _e('Feature Image'); ?></label> |
| 30 | </div> |
| 31 | <div class="tutor-option-field"> |
| 32 | <div class="tutor-option-gorup-fields-wrap"> |
| 33 | <div class="tutor-thumbnail-wrap"> |
| 34 | <p class="thumbnail-img"> |
| 35 | <?php |
| 36 | $thumbnail_upload_text = __('Upload Feature Image', 'tutor'); |
| 37 | if (has_post_thumbnail($post->ID)){ |
| 38 | echo get_the_post_thumbnail($post->ID); |
| 39 | $thumbnail_upload_text = __('Update Feature Image', 'tutor'); |
| 40 | } |
| 41 | |
| 42 | ?> |
| 43 | </p> |
| 44 | <input type="hidden" class="_lesson_thumbnail_id" name="_lesson_thumbnail_id" value=""> |
| 45 | <button type="button" class="lesson_thumbnail_upload_btn button button-link"><?php echo $thumbnail_upload_text; ?></button> |
| 46 | </div> |
| 47 | </div> |
| 48 | </div> |
| 49 | </div> |
| 50 | |
| 51 | <?php |
| 52 | include tutor()->path.'views/metabox/video-metabox.php'; |
| 53 | include tutor()->path.'views/metabox/lesson-attachments-metabox.php'; |
| 54 | ?> |
| 55 | |
| 56 | |
| 57 | <?php do_action('tutor_lesson_edit_modal_form_after', $post); ?> |
| 58 | |
| 59 | </div> |
| 60 | |
| 61 | <div class="modal-footer"> |
| 62 | <button type="button" class="button button-primary update_lesson_modal_btn"><?php _e('Update Lesson', 'tutor'); ?></button> |
| 63 | </div> |
| 64 | </form> |