course-filter
4 years ago
dashboard
4 years ago
email
4 years ago
global
4 years ago
loop
4 years ago
profile
4 years ago
shortcode
4 years ago
single
4 years ago
template-part
4 years ago
widget
4 years ago
archive-course-init.php
4 years ago
archive-course.php
4 years ago
course-none.php
4 years ago
dashboard.php
4 years ago
feature_disabled.php
4 years ago
instructor-setting.php
4 years ago
login.php
4 years ago
permission-denied.php
4 years ago
public-profile.php
4 years ago
single-assignment.php
4 years ago
single-content-loader.php
4 years ago
single-course.php
4 years ago
single-lesson.php
4 years ago
single-preview-lesson.php
4 years ago
single-quiz.php
4 years ago
template.php
4 years ago
login.php
43 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 | * @package TutorLMS/Templates |
| 11 | * @version 1.4.3 |
| 12 | */ |
| 13 | |
| 14 | if ( ! defined( 'ABSPATH' ) ) |
| 15 | exit; |
| 16 | |
| 17 | |
| 18 | if(!tutor_utils()->get_option('enable_tutor_native_login', null, true, true)) { |
| 19 | // Refer to login oage |
| 20 | header('Location: '.wp_login_url($_SERVER['REQUEST_SCHEME'].'://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'])); |
| 21 | exit; |
| 22 | } |
| 23 | |
| 24 | tutor_utils()->tutor_custom_header(); |
| 25 | $login_url = tutor_utils()->get_option('enable_tutor_native_login', null, true, true) ? '' : wp_login_url(tutor()->current_url); |
| 26 | ?> |
| 27 | |
| 28 | <?php do_action('tutor/template/login/before/wrap'); ?> |
| 29 | <div <?php tutor_post_class('tutor-page-wrap'); ?>> |
| 30 | <div class="tutor-template-segment tutor-login-wrap"> |
| 31 | <div class="tutor-login-title"> |
| 32 | <h4> |
| 33 | <?php echo sprintf( __('Please %sSign-In%s to view this section', 'tutor'), '<a data-login_url="'.$login_url.'" href="" class="tutor-open-login-modal">', '</a>'); ?> |
| 34 | </h4> |
| 35 | </div> |
| 36 | </div> |
| 37 | </div> |
| 38 | <?php |
| 39 | do_action('tutor/template/login/after/wrap'); |
| 40 | tutor_load_template_from_custom_path(tutor()->path . '/views/modal/login.php'); |
| 41 | tutor_utils()->tutor_custom_footer(); |
| 42 | ?> |
| 43 |