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.1 3.6.2 3.6.3 3.6.4 3.7.0 3.7.1 3.7.2 3.7.3 3.7.4 3.8.0 3.8.1 3.8.2 3.8.3 3.9.0 3.9.1 3.9.10 3.9.2 3.9.3 3.9.4 3.9.5 3.9.6 3.9.7 3.9.8 3.9.9
tutor / templates / global / login.php
tutor / templates / global Last commit date
attachments.php 5 years ago course-archive-filter-bar.php 5 years ago login.php 5 years ago
login.php
123 lines
1 <?php
2
3 /**
4 * Display global 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
15 if ( ! defined( 'ABSPATH' ) )
16 exit;
17 ?>
18
19 <div class="tutor-login-form-wrap">
20 <?php do_action("tutor_before_login_form");?>
21
22 <?php
23 $current_url = tutils()->get_current_url();
24 $register_page = tutor_utils()->student_register_url();
25 $register_url = add_query_arg ('redirect_to', $current_url, $register_page);
26
27 //redirect_to
28 $args = array(
29 'echo' => true,
30 // Default 'redirect' value takes the user back to the request URI.
31 'redirect' => ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'],
32 'form_id' => 'loginform',
33 'label_username' => __( 'Username or Email Address', 'tutor' ),
34 'label_password' => __( 'Password', 'tutor' ),
35 'label_remember' => __( 'Remember Me', 'tutor' ),
36 'label_log_in' => __( 'Log In', 'tutor' ),
37 'label_create_new_account' => __( 'Create a new account', 'tutor' ),
38 'id_username' => 'user_login',
39 'id_password' => 'user_pass',
40 'id_remember' => 'rememberme',
41 'id_submit' => 'wp-submit',
42 'remember' => true,
43 'value_username' => tutils()->input_old('log'),
44 // Set 'value_remember' to true to default the "Remember me" checkbox to checked.
45 'value_remember' => false,
46 'wp_lostpassword_url' => apply_filters('tutor_lostpassword_url', wp_lostpassword_url()),
47 'wp_lostpassword_label' => __('Forgot Password?', 'tutor'),
48 );
49
50 //action="' . esc_url( site_url( 'wp-login.php', 'login_post' ) ) . '"
51
52 // tutor_alert(null, 'warning');
53
54 ob_start();
55 tutor_nonce_field();
56 $nonce_field = ob_get_clean();
57 ?>
58
59 <form name="<?php echo $args['form_id']?>" id="<?php echo $args['form_id']?>" method="post">
60
61 <?php do_action("tutor_login_form_start");?>
62
63 <?php echo $nonce_field;?>
64
65 <input type="hidden" name="tutor_action" value="tutor_user_login" />
66 <p class="login-username">
67 <input type="text" placeholder="<?php echo esc_html( $args['label_username'] )?>" name="log" id="<?php echo esc_attr( $args['id_username'] )?>" class="input" value="<?php echo esc_attr( $args['value_username'] )?>" size="20" />
68 </p>
69
70 <p class="login-password">
71 <input type="password" placeholder="<?php echo esc_html( $args['label_password'] )?>" name="pwd" id="<?php echo esc_attr( $args['id_password'] )?>" class="input" value="" size="20"/>
72 </p>
73
74 <?php
75 do_action("tutor_login_form_middle");
76 do_action("login_form");
77 apply_filters("login_form_middle",'','');
78 ?>
79
80
81 <div class="tutor-login-rememeber-wrap">
82 <?php if($args['remember']):?>
83 <p class="login-remember">
84 <label>
85 <input name="rememberme" type="checkbox" id="<?php echo esc_attr( $args['id_remember'] )?>"
86 value="forever"
87 <?php $args['value_remember'] ? 'checked' : '';?>
88 >
89 <?php echo esc_html($args['label_remember']);?>
90 </label>
91 </p>
92 <?php endif;?>
93 <a href="<?php echo esc_url($args['wp_lostpassword_url'])?>">
94 <?php echo esc_html($args['wp_lostpassword_label']);?>
95 </a>
96 </div>
97
98 <?php do_action("tutor_login_form_end");?>
99
100 <p class="login-submit">
101 <input type="submit" name="wp-submit" id="<?php echo esc_attr( $args['id_submit'] )?>" class="tutor-button" value="<?php echo esc_attr( $args['label_log_in'] )?>" />
102 <input type="hidden" name="redirect_to" value="<?php echo esc_url( $args['redirect'] )?>" />
103 </p>
104
105 <?php
106 if(get_option( 'users_can_register', false )) {
107 ?>
108 <p class="tutor-form-register-wrap">
109 <a href="<?php echo esc_url($register_url)?>">
110 <?php echo esc_html($args['label_create_new_account']);?>
111 </a>
112 </p>
113 <?php
114 }
115 ?>
116 </form>
117
118 <?php
119 //#@TODO: student_register_url() return false, it must be an valid url.
120 do_action("tutor_after_login_form");
121 ?>
122 </div>
123