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
product-selection.php
4 years ago
settings-tabs.php
4 years ago
user-profile-fields.php
4 years ago
video-metabox.php
4 years ago
product-selection.php
45 lines
| 1 | <?php |
| 2 | $_tutor_course_price_type = tutils()->price_type(); |
| 3 | ?> |
| 4 | |
| 5 | <div class="tutor-row tutor-mt-16 tutor-mb-16"> |
| 6 | <div class="tutor-col-12 tutor-col-md-5 tutor-col-lg-4"> |
| 7 | <label class="tutor-fs-6 tutor-fw-medium"> |
| 8 | <?php _e( 'Select product', 'tutor' ); ?> <br /> |
| 9 | <p class="tutor-color-muted">(<?php _e( 'When selling the course', 'tutor' ); ?>)</p> |
| 10 | </label> |
| 11 | </div> |
| 12 | <div class="tutor-col-12 tutor-col-md-7 tutor-col-lg-8"> |
| 13 | <select name="_tutor_course_product_id" class="tutor-form-select" required> |
| 14 | <option value="-1"><?php _e( 'Select a Product' ); ?></option> |
| 15 | <?php |
| 16 | foreach ( $products as $product ) { |
| 17 | echo "<option value='{$product->ID}' " . selected( $product->ID, $product_id ) . " >{$product->post_title}</option>"; |
| 18 | } |
| 19 | ?> |
| 20 | </select> |
| 21 | <div class="tutor-form-feedback"> |
| 22 | <i class="tutor-icon-circle-info-o tutor-form-feedback-icon" area-hidden="true"></i> |
| 23 | <div><?php echo $info_text; ?></div> |
| 24 | </div> |
| 25 | </div> |
| 26 | </div> |
| 27 | |
| 28 | <div class="tutor-row tutor-mt-16 tutor-mb-16"> |
| 29 | <div class="tutor-col-12 tutor-col-sm-5 tutor-col-lg-4"> |
| 30 | <label for=""> |
| 31 | <?php _e( 'Course Type', 'tutor' ); ?> <br /> |
| 32 | </label> |
| 33 | </div> |
| 34 | <div class="tutor-col-12 tutor-col-sm-7 tutor-col-lg-8 tutor-d-flex"> |
| 35 | <div class="tutor-form-check tutor-mr-16"> |
| 36 | <input type="radio" id="tutor_coursePrice_paid" class="tutor-form-check-input" name="tutor_course_price_type" value="paid" <?php checked( $_tutor_course_price_type, 'paid' ); ?>/> |
| 37 | <label for="tutor_coursePrice_paid"><?php _e( 'Paid', 'tutor' ); ?></label> |
| 38 | </div> |
| 39 | <div class="tutor-form-check tutor-mr-16"> |
| 40 | <input type="radio" id="tutor_coursePrice_free" class="tutor-form-check-input" name="tutor_course_price_type" value="free" <?php $_tutor_course_price_type ? checked( $_tutor_course_price_type, 'free' ) : checked( 'true', 'true' ); ?>/> |
| 41 | <label for="tutor_coursePrice_free"><?php _e( 'Free', 'tutor' ); ?></label> |
| 42 | </div> |
| 43 | </div> |
| 44 | </div> |
| 45 |