complete_form.php
7 years ago
content.php
7 years ago
lesson_sidebar.php
7 years ago
required-enroll.php
7 years ago
sidebar_question_and_answer.php
7 years ago
required-enroll.php
38 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Display single login |
| 5 | * |
| 6 | * @since v.1.0.0 |
| 7 | * @author themeum |
| 8 | * @url https://themeum.com |
| 9 | */ |
| 10 | |
| 11 | if ( ! defined( 'ABSPATH' ) ) |
| 12 | exit; |
| 13 | |
| 14 | get_header(); |
| 15 | |
| 16 | ?> |
| 17 | |
| 18 | <?php do_action('tutor_lesson/single/before/wrap'); ?> |
| 19 | <div <?php tutor_post_class(); ?>> |
| 20 | |
| 21 | <div class="tutor-single-lesson-segment tutor-lessonrequired-enroll-wrap"> |
| 22 | <div class="tutor-notice-warning"> |
| 23 | <?php |
| 24 | $course_id = tutor_utils()->get_course_id_by_lesson(); |
| 25 | ?> |
| 26 | |
| 27 | <h2><?php _e('Please enroll This course first', 'tutor'); ?></h2> |
| 28 | <h3> <?php _e(sprintf('Course name : %s', get_the_title($course_id)), 'tutor'); ?> </h3> |
| 29 | <a href="<?php echo get_permalink($course_id); ?>" class="tutor-button"><?php _e('View Course', 'tutor'); ?></a> |
| 30 | </div> |
| 31 | </div> |
| 32 | </div><!-- .wrap --> |
| 33 | |
| 34 | <?php do_action('tutor_lesson/single/after/wrap'); ?> |
| 35 | |
| 36 | <?php |
| 37 | get_footer(); |
| 38 |