PluginProbe
WCPOS – Point of Sale (POS) plugin for WooCommerce / 1.10.17
WCPOS – Point of Sale (POS) plugin for WooCommerce v1.10.17
1.10.18 1.10.17 1.10.16 1.10.15 1.10.13 1.10.14 1.10.12 1.10.11 1.10.10 1.10.9 1.10.8 untagged-3d9b7ccddc54df87c672 1.10.7 1.10.6 1.10.5 1.10.3 1.10.4 1.10.2 1.10.1 1.10.0 1.9.17 1.9.15 1.9.16 1.9.14 1.9.13 All 162 releases
woocommerce-pos / templates / login.php

login.php in WCPOS – Point of Sale (POS) plugin for WooCommerce 1.10.17, at templates/login.php

77 lines 2.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * POS Login template. This replicates the WP Login, but for JWT rather than relying on cookies.
4 *
5 * This template can be overridden by copying it to yourtheme/woocommerce-pos/login.php.
6 * HOWEVER, this is not recommended , don't be surprised if your POS breaks
7 */
8 ?>
9 <!DOCTYPE html>
10 <html <?php language_attributes(); ?>>
11 <head>
12 <title>WCPOS Login</title>
13 <meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php bloginfo( 'charset' ); ?>" />
14 <?php
15 wp_enqueue_style( 'login' );
16 do_action( 'login_enqueue_scripts' );
17 do_action( 'login_head' );
18 $login_header_url = apply_filters( 'login_headerurl', __( 'https://wordpress.org/', 'login' ) );
19 $login_header_title = apply_filters( 'login_headertitle', __( 'Powered by WordPress', 'login' ) );
20 $classes = array( 'login-action-login', 'wp-core-ui' );
21 if ( is_rtl() ) {
22 $classes[] = 'rtl';
23 }
24 $classes[] = ' locale-' . sanitize_html_class( strtolower( str_replace( '_', '-', get_locale() ) ) );
25 $classes = apply_filters( 'login_body_class', $classes, 'login' );
26 ?>
27 </head>
28 <body class="login no-js <?php echo esc_attr( implode( ' ', $classes ) ); ?>">
29 <script type="text/javascript">
30 document.body.className = document.body.className.replace('no-js','js');
31 </script>
32 <?php do_action( 'login_header' ); ?>
33 <div id="login">
34 <h1><a href="<?php echo esc_url( $login_header_url ); ?>" title="<?php echo esc_attr( $login_header_title ); ?>" tabindex="-1"><?php bloginfo( 'name' ); ?></a></h1>
35
36 <?php
37 // Login message filter.
38 $message = apply_filters( 'login_messages', '' );
39
40 if ( ! empty( $message ) ) {
41 echo '<p class="message">' . $message . '</p>' . "\n";
42 }
43
44 if ( ! empty( $error_string ) ) {
45 echo '<div id="login_error">' . $error_string . '</div>';
46 }
47 ?>
48 <form name="loginform" id="loginform" action="" method="post">
49 <p>
50 <label for="user_login"><?php _e( 'Username or Email Address' ); ?></label>
51 <input type="text" name="log" id="user_login" class="input" value="" size="20" autocapitalize="off" autocomplete="username" required="required" />
52 </p>
53
54 <div class="user-pass-wrap">
55 <label for="user_pass"><?php _e( 'Password' ); ?></label>
56 <div class="wp-pwd">
57 <input type="password" name="pwd" id="user_pass" class="input password-input" value="" size="20" autocomplete="current-password" spellcheck="false" required="required" />
58 <button type="button" class="button button-secondary wp-hide-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Show password' ); ?>">
59 <span class="dashicons dashicons-visibility" aria-hidden="true"></span>
60 </button>
61 </div>
62 </div>
63 <?php do_action( 'login_form' ); ?>
64 <?php wp_nonce_field( 'woocommerce_pos_login' ); ?>
65 <p class="submit">
66 <input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="Log In">
67 </p>
68 </form>
69
70 <?php do_action( 'login_footer' ); ?>
71 </div>
72
73 <div class="clear"></div>
74 </body>
75
76 </html>
77