course
4 years ago
course-add-edd-product-metabox.php
4 years ago
course-add-product-metabox.php
4 years ago
course-additional-data.php
4 years ago
course-contents.php
4 years ago
course-level-metabox.php
4 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
115 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 ? esc_attr( $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 ? esc_attr( $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 ? esc_attr( $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 esc_textarea( $benefits ); ?></textarea> |
| 54 | <p class="desc"> |
| 55 | <?php |
| 56 | _e( |
| 57 | 'List the knowledge and skills that students will learn after completing this course. (One per line) |
| 58 | ', |
| 59 | 'tutor' |
| 60 | ); |
| 61 | ?> |
| 62 | </p> |
| 63 | </div> |
| 64 | </div> |
| 65 | |
| 66 | <div class="tutor-option-field-row"> |
| 67 | <div class="tutor-option-field-label"> |
| 68 | <label for=""> |
| 69 | <?php _e( 'Requirements/Instructions', 'tutor' ); ?> <br /> |
| 70 | </label> |
| 71 | </div> |
| 72 | <div class="tutor-option-field tutor-option-tooltip"> |
| 73 | <textarea name="course_requirements" rows="2"><?php echo esc_textarea( $requirements ); ?></textarea> |
| 74 | |
| 75 | <p class="desc"> |
| 76 | <?php _e( 'Additional requirements or special instructions for the students (One per line)', 'tutor' ); ?> |
| 77 | </p> |
| 78 | </div> |
| 79 | </div> |
| 80 | |
| 81 | <div class="tutor-option-field-row"> |
| 82 | <div class="tutor-option-field-label"> |
| 83 | <label for=""> |
| 84 | <?php _e( 'Targeted Audience', 'tutor' ); ?> <br /> |
| 85 | </label> |
| 86 | </div> |
| 87 | <div class="tutor-option-field tutor-option-tooltip"> |
| 88 | <textarea name="course_target_audience" rows="2"><?php echo esc_textarea( $target_audience ); ?></textarea> |
| 89 | |
| 90 | <p class="desc"> |
| 91 | <?php _e( 'Specify the target audience that will benefit the most from the course. (One line per target audience.)', 'tutor' ); ?> |
| 92 | </p> |
| 93 | </div> |
| 94 | </div> |
| 95 | |
| 96 | |
| 97 | <div class="tutor-option-field-row"> |
| 98 | <div class="tutor-option-field-label"> |
| 99 | <label for=""> |
| 100 | <?php _e( 'Materials Included', 'tutor' ); ?> <br /> |
| 101 | </label> |
| 102 | </div> |
| 103 | <div class="tutor-option-field tutor-option-tooltip"> |
| 104 | <textarea name="course_material_includes" rows="2"><?php echo esc_textarea( $material_includes ); ?></textarea> |
| 105 | |
| 106 | <p class="desc"> |
| 107 | <?php _e( 'A list of assets you will be providing for the students in this course (One per line)', 'tutor' ); ?> |
| 108 | </p> |
| 109 | </div> |
| 110 | </div> |
| 111 | |
| 112 | <input type="hidden" name="_tutor_course_additional_data_edit" value="true" /> |
| 113 | |
| 114 | <?php do_action( 'tutor_course_metabox_after_additional_data' ); ?> |
| 115 |