PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.8
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.8
4.4.8 4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 4.1.7.3.1 4.1.7.3.2 4.2.0 All 139 releases
← All changes | templates/global/form-login.php +64 -64 4.3.94.4.8 View file →
@@ -1,64 +1,64 @@
1 -<?php
2 -/**
3 - * Template for displaying template of login form.
4 - *
5 - * This template can be overridden by copying it to yourtheme/learnpress/global/form-login.php.
6 - *
7 - * @author ThimPress
8 - * @package Learnpress/Templates
9 - * @version 4.0.2
10 - */
11 -
12 -defined( 'ABSPATH' ) || exit();
13 -
14 -if ( is_user_logged_in() ) {
15 - return;
16 -}
17 -?>
18 -
19 -<div class="learn-press-form-login learn-press-form">
20 -
21 - <h3><?php echo esc_html_x( 'Login', 'login-heading', 'learnpress' ); ?></h3>
22 -
23 - <?php do_action( 'learn-press/before-form-login' ); ?>
24 -
25 - <form name="learn-press-login" method="post" action="">
26 -
27 - <?php do_action( 'learn-press/before-form-login-fields' ); ?>
28 -
29 - <ul class="form-fields">
30 - <li class="form-field">
31 - <label for="username"><?php esc_html_e( 'Username or email', 'learnpress' ); ?>&nbsp;<span class="required">*</span></label>
32 - <input type="text" name="username" id="username" placeholder="<?php esc_attr_e( 'Email or username', 'learnpress' ); ?>" autocomplete="username" />
33 - </li>
34 - <li class="form-field">
35 - <label for="password"><?php esc_html_e( 'Password', 'learnpress' ); ?>&nbsp;<span class="required">*</span></label>
36 - <input type="password" name="password" id="password" placeholder="<?php esc_attr_e( 'Password', 'learnpress' ); ?>" autocomplete="current-password" />
37 - </li>
38 - </ul>
39 -
40 - <?php do_action( 'learn-press/after-form-login-fields' ); ?>
41 - <p>
42 - <label>
43 - <input type="checkbox" name="rememberme"/>
44 - <?php esc_html_e( 'Remember me', 'learnpress' ); ?>
45 - </label>
46 - </p>
47 -
48 - <?php
49 - do_action( 'login_form' );
50 - do_action( 'login_enqueue_scripts' );
51 - ?>
52 -
53 - <p>
54 - <input type="hidden" name="learn-press-login-nonce" value="<?php echo wp_create_nonce( 'learn-press-login' ); ?>">
55 - <button type="submit"><?php esc_html_e( 'Login', 'learnpress' ); ?></button>
56 - </p>
57 - <p>
58 - <a href="<?php echo wp_lostpassword_url(); ?>"><?php esc_html_e( 'Lost your password?', 'learnpress' ); ?></a>
59 - </p>
60 - </form>
61 -
62 - <?php do_action( 'learn-press/after-form-login' ); ?>
63 -
64 -</div>
1 +<?php
2 +/**
3 + * Template for displaying template of login form.
4 + *
5 + * This template can be overridden by copying it to yourtheme/learnpress/global/form-login.php.
6 + *
7 + * @author ThimPress
8 + * @package Learnpress/Templates
9 + * @version 4.0.2
10 + */
11 +
12 +defined( 'ABSPATH' ) || exit();
13 +
14 +if ( is_user_logged_in() ) {
15 + return;
16 +}
17 +?>
18 +
19 +<div class="learn-press-form-login learn-press-form">
20 +
21 + <h3><?php echo esc_html_x( 'Login', 'login-heading', 'learnpress' ); ?></h3>
22 +
23 + <?php do_action( 'learn-press/before-form-login' ); ?>
24 +
25 + <form name="learn-press-login" method="post" action="">
26 +
27 + <?php do_action( 'learn-press/before-form-login-fields' ); ?>
28 +
29 + <ul class="form-fields">
30 + <li class="form-field">
31 + <label for="username"><?php esc_html_e( 'Username or email', 'learnpress' ); ?>&nbsp;<span class="required">*</span></label>
32 + <input type="text" name="username" id="username" placeholder="<?php esc_attr_e( 'Email or username', 'learnpress' ); ?>" autocomplete="username" />
33 + </li>
34 + <li class="form-field">
35 + <label for="password"><?php esc_html_e( 'Password', 'learnpress' ); ?>&nbsp;<span class="required">*</span></label>
36 + <input type="password" name="password" id="password" placeholder="<?php esc_attr_e( 'Password', 'learnpress' ); ?>" autocomplete="current-password" />
37 + </li>
38 + </ul>
39 +
40 + <?php do_action( 'learn-press/after-form-login-fields' ); ?>
41 + <p>
42 + <label>
43 + <input type="checkbox" name="rememberme"/>
44 + <?php esc_html_e( 'Remember me', 'learnpress' ); ?>
45 + </label>
46 + </p>
47 +
48 + <?php
49 + do_action( 'login_form' );
50 + do_action( 'login_enqueue_scripts' );
51 + ?>
52 +
53 + <p>
54 + <input type="hidden" name="learn-press-login-nonce" value="<?php echo wp_create_nonce( 'learn-press-login' ); ?>">
55 + <button type="submit"><?php esc_html_e( 'Login', 'learnpress' ); ?></button>
56 + </p>
57 + <p>
58 + <a href="<?php echo wp_lostpassword_url(); ?>"><?php esc_html_e( 'Lost your password?', 'learnpress' ); ?></a>
59 + </p>
60 + </form>
61 +
62 + <?php do_action( 'learn-press/after-form-login' ); ?>
63 +
64 +</div>