course
5 years ago
course-add-edd-product-metabox.php
5 years ago
course-add-product-metabox.php
5 years ago
course-additional-data.php
4 years ago
course-contents.php
4 years ago
course-level-metabox.php
5 years ago
course-topics.php
4 years ago
instructors-metabox.php
4 years ago
lesson-attachments-metabox.php
4 years ago
lesson-metabox.php
4 years ago
user-profile-fields.php
4 years ago
video-metabox.php
4 years ago
course-additional-data.php
110 lines
| 1 | <?php |
| 2 | $course_id = get_the_ID(); |
| 3 | |
| 4 | // Extract: $duration, $durationHours, $durationMinutes, $durationSeconds |
| 5 | extract(tutor_utils()->get_course_duration($course_id, true)); |
| 6 | |
| 7 | $benefits = get_post_meta($course_id, '_tutor_course_benefits', true); |
| 8 | $requirements = get_post_meta($course_id, '_tutor_course_requirements', true); |
| 9 | $target_audience = get_post_meta($course_id, '_tutor_course_target_audience', true); |
| 10 | $material_includes = get_post_meta($course_id, '_tutor_course_material_includes', true); |
| 11 | ?> |
| 12 | |
| 13 | |
| 14 | <?php do_action('tutor_course_metabox_before_additional_data'); ?> |
| 15 | |
| 16 | <div class="tutor-option-field-row"> |
| 17 | <div class="tutor-option-field-label"> |
| 18 | <label for=""><?php _e('Total Course Duration', 'tutor'); ?></label> |
| 19 | </div> |
| 20 | <div class="tutor-option-field"> |
| 21 | <div class="tutor-option-gorup-fields-wrap"> |
| 22 | <div class="tutor-lesson-video-runtime"> |
| 23 | |
| 24 | <div class="tutor-option-group-field"> |
| 25 | <input type="number" value="<?php echo $durationHours ? $durationHours : '00'; ?>" name="course_duration[hours]"> |
| 26 | <p class="desc"><?php _e('HH', 'tutor'); ?></p> |
| 27 | </div> |
| 28 | <div class="tutor-option-group-field"> |
| 29 | <input type="number" class="tutor-number-validation" data-min="0" data-max="59" value="<?php echo $durationMinutes ? $durationMinutes : '00'; ?>" name="course_duration[minutes]"> |
| 30 | <p class="desc"><?php _e('MM', 'tutor'); ?></p> |
| 31 | </div> |
| 32 | |
| 33 | <div class="tutor-option-group-field"> |
| 34 | <input type="number" class="tutor-number-validation" data-min="0" data-max="59" value="<?php echo $durationSeconds ? $durationSeconds : '00'; ?>" name="course_duration[seconds]"> |
| 35 | <p class="desc"><?php _e('SS', 'tutor'); ?></p> |
| 36 | </div> |
| 37 | |
| 38 | </div> |
| 39 | </div> |
| 40 | |
| 41 | </div> |
| 42 | </div> |
| 43 | |
| 44 | |
| 45 | |
| 46 | <div class="tutor-option-field-row"> |
| 47 | <div class="tutor-option-field-label"> |
| 48 | <label for=""> |
| 49 | <?php _e('Benefits of the course', 'tutor'); ?> |
| 50 | </label> |
| 51 | </div> |
| 52 | <div class="tutor-option-field tutor-option-tooltip"> |
| 53 | <textarea name="course_benefits" rows="2"><?php echo $benefits; ?></textarea> |
| 54 | <p class="desc"> |
| 55 | <?php _e('List the knowledge and skills that students will learn after completing this course. (One per line) |
| 56 | ', 'tutor'); ?> |
| 57 | </p> |
| 58 | </div> |
| 59 | </div> |
| 60 | |
| 61 | <div class="tutor-option-field-row"> |
| 62 | <div class="tutor-option-field-label"> |
| 63 | <label for=""> |
| 64 | <?php _e('Requirements/Instructions', 'tutor'); ?> <br /> |
| 65 | </label> |
| 66 | </div> |
| 67 | <div class="tutor-option-field tutor-option-tooltip"> |
| 68 | <textarea name="course_requirements" rows="2"><?php echo $requirements; ?></textarea> |
| 69 | |
| 70 | <p class="desc"> |
| 71 | <?php _e('Additional requirements or special instructions for the students (One per line)', 'tutor'); ?> |
| 72 | </p> |
| 73 | </div> |
| 74 | </div> |
| 75 | |
| 76 | <div class="tutor-option-field-row"> |
| 77 | <div class="tutor-option-field-label"> |
| 78 | <label for=""> |
| 79 | <?php _e('Targeted Audience', 'tutor'); ?> <br /> |
| 80 | </label> |
| 81 | </div> |
| 82 | <div class="tutor-option-field tutor-option-tooltip"> |
| 83 | <textarea name="course_target_audience" rows="2"><?php echo $target_audience; ?></textarea> |
| 84 | |
| 85 | <p class="desc"> |
| 86 | <?php _e('Specify the target audience that will benefit the most from the course. (One line per target audience.)', 'tutor'); ?> |
| 87 | </p> |
| 88 | </div> |
| 89 | </div> |
| 90 | |
| 91 | |
| 92 | <div class="tutor-option-field-row"> |
| 93 | <div class="tutor-option-field-label"> |
| 94 | <label for=""> |
| 95 | <?php _e('Materials Included', 'tutor'); ?> <br /> |
| 96 | </label> |
| 97 | </div> |
| 98 | <div class="tutor-option-field tutor-option-tooltip"> |
| 99 | <textarea name="course_material_includes" rows="2"><?php echo $material_includes; ?></textarea> |
| 100 | |
| 101 | <p class="desc"> |
| 102 | <?php _e('A list of assets you will be providing for the students in this course (One per line)', 'tutor'); ?> |
| 103 | </p> |
| 104 | </div> |
| 105 | </div> |
| 106 | |
| 107 | <input type="hidden" name="_tutor_course_additional_data_edit" value="true" /> |
| 108 | |
| 109 | <?php do_action('tutor_course_metabox_after_additional_data'); ?> |
| 110 |