complete_form.php
6 years ago
content.php
6 years ago
lesson_sidebar.php
6 years ago
required-enroll.php
6 years ago
sidebar_question_and_answer.php
6 years ago
complete_form.php
34 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 | do_action('tutor_lesson/single/before/complete_form'); |
| 17 | |
| 18 | $is_completed_lesson = tutor_utils()->is_completed_lesson(); |
| 19 | if ( ! $is_completed_lesson) { |
| 20 | ?> |
| 21 | <div class="tutor-single-lesson-segment tutor-lesson-compelte-form-wrap"> |
| 22 | |
| 23 | <form method="post"> |
| 24 | <?php wp_nonce_field( tutor()->nonce_action, tutor()->nonce ); ?> |
| 25 | |
| 26 | <input type="hidden" value="<?php echo get_the_ID(); ?>" name="lesson_id"/> |
| 27 | <input type="hidden" value="tutor_complete_lesson" name="tutor_action"/> |
| 28 | |
| 29 | <button type="submit" class="course-complete-button tutor-button" name="complete_lesson_btn" value="complete_lesson"><i class="tutor-icon-mark"></i><?php _e( 'Complete Lesson', 'tutor' ); ?></button> |
| 30 | </form> |
| 31 | </div> |
| 32 | <?php |
| 33 | } |
| 34 | do_action('tutor_lesson/single/after/complete_form'); ?> |