course-filter
3 years ago
dashboard
3 years ago
email
4 years ago
global
4 years ago
instructor
4 years ago
loop
4 years ago
modal
4 years ago
profile
4 years ago
shortcode
4 years ago
single
3 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
3 years ago
feature_disabled.php
4 years ago
instructor-setting.php
4 years ago
login-form.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
3 years ago
template.php
4 years ago
login.php
53 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 | |
| 32 | <div class="tutor-login-form-wrapper"> |
| 33 | <div class="tutor-fs-5 tutor-color-black tutor-mb-32"> |
| 34 | <?php esc_html_e( 'Hi, Welcome back!', 'tutor' ); ?> |
| 35 | </div> |
| 36 | <?php |
| 37 | // load form template. |
| 38 | $login_form = trailingslashit( tutor()->path ) . 'templates/login-form.php'; |
| 39 | tutor_load_template_from_custom_path( |
| 40 | $login_form, |
| 41 | false |
| 42 | ); |
| 43 | ?> |
| 44 | <?php do_action("tutor_after_login_form"); ?> |
| 45 | </div> |
| 46 | </div> |
| 47 | </div> |
| 48 | <?php |
| 49 | do_action('tutor/template/login/after/wrap'); |
| 50 | //tutor_load_template_from_custom_path(tutor()->path . '/views/modal/login.php'); |
| 51 | tutor_utils()->tutor_custom_footer(); |
| 52 | ?> |
| 53 |