enrolled
5 years ago
add-to-cart-edd.php
5 years ago
add-to-cart-woocommerce.php
5 years ago
add-to-cart.php
5 years ago
closed-enrollment.php
5 years ago
complete_form.php
5 years ago
continue-lesson.php
5 years ago
course-benefits.php
5 years ago
course-content.php
5 years ago
course-enroll-box.php
5 years ago
course-enrolled-box.php
5 years ago
course-requirements.php
5 years ago
course-target-audience.php
5 years ago
course-topics.php
5 years ago
instructors.php
5 years ago
lead-info.php
5 years ago
login.php
5 years ago
material-includes.php
5 years ago
q_and_a_turned_off.php
5 years ago
review-form.php
5 years ago
reviews.php
5 years ago
social_share.php
5 years ago
tags.php
5 years ago
wc-price-html.php
5 years ago
complete_form.php
35 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Display attachments |
| 4 | * |
| 5 | * @since v.1.0.0 |
| 6 | * @author themeum |
| 7 | * @url https://themeum.com |
| 8 | * |
| 9 | * @package TutorLMS/Templates |
| 10 | * @version 1.4.3 |
| 11 | */ |
| 12 | |
| 13 | if ( ! defined( 'ABSPATH' ) ) |
| 14 | exit; |
| 15 | |
| 16 | |
| 17 | do_action('tutor_course/single/before/complete_form'); |
| 18 | |
| 19 | $is_completed_course = tutor_utils()->is_completed_course(); |
| 20 | if ( ! $is_completed_course) { |
| 21 | ?> |
| 22 | <div class="tutor-course-compelte-form-wrap"> |
| 23 | |
| 24 | <form method="post"> |
| 25 | <?php wp_nonce_field( tutor()->nonce_action, tutor()->nonce ); ?> |
| 26 | |
| 27 | <input type="hidden" value="<?php echo get_the_ID(); ?>" name="course_id"/> |
| 28 | <input type="hidden" value="tutor_complete_course" name="tutor_action"/> |
| 29 | |
| 30 | <button type="submit" class="course-complete-button" name="complete_course_btn" value="complete_course"><?php _e( 'Complete Course', 'tutor' ); ?></button> |
| 31 | </form> |
| 32 | </div> |
| 33 | <?php |
| 34 | } |
| 35 | do_action('tutor_course/single/after/complete_form'); ?> |