login.phtml
46 lines
| 1 | <?php if (defined('AAM_KEY')) { ?> |
| 2 | <?php if(!is_user_logged_in()) { ?> |
| 3 | <div id="<?php echo $this->args['id'] . '-error'; ?>" style="display: none; margin-bottom: 15px; border-left: 4px solid #dc3232; padding: 12px;"></div> |
| 4 | |
| 5 | <div id="<?php echo $this->args['id'] . '-loginform'; ?>"> |
| 6 | <p> |
| 7 | <label for="user_login">Username or Email Address<br> |
| 8 | <input id="<?php echo $this->args['id'] . '-log'; ?>" class="input login-input" value="" size="20" type="text" /> |
| 9 | </label> |
| 10 | </p> |
| 11 | |
| 12 | <p> |
| 13 | <label for="user_pass">Password<br> |
| 14 | <input id="<?php echo $this->args['id'] . '-pwd'; ?>" class="input login-input" value="" size="20" type="password" /> |
| 15 | </label> |
| 16 | </p> |
| 17 | |
| 18 | <p class="forgetmenot"> |
| 19 | <label for="rememberme"> |
| 20 | <input id="<?php echo $this->args['id'] . '-rememberme'; ?>" value="forever" type="checkbox"/> Remember Me |
| 21 | </label> |
| 22 | </p> |
| 23 | |
| 24 | <p class="submit"> |
| 25 | <button class="button button-primary button-large aam-login-submit" data-prefix="<?php echo $this->args['id'] . '-'; ?>">Login</button> |
| 26 | <input id="<?php echo $this->args['id'] . '-redirect'; ?>" value="<?php echo $this->args['redirect']; ?>" type="hidden" /> |
| 27 | </p> |
| 28 | </div> |
| 29 | |
| 30 | <p id="<?php echo $this->args['id'] . '-nav'; ?>"> |
| 31 | <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>">Lost your password?</a> |
| 32 | </p> |
| 33 | <?php } else { ?> |
| 34 | <div style="text-align: center;"> |
| 35 | <div style="padding: 30px;"> |
| 36 | <h3><?php echo str_replace('%username%', AAM::getUser()->display_name, $this->args['user-title']); ?></h3> |
| 37 | <?php echo get_avatar(AAM::getUser()->ID, "200"); ?> |
| 38 | </div> |
| 39 | <div> |
| 40 | <a href="<?php echo esc_url(get_admin_url()); ?>"><?php echo __('Dashboard'); ?></a> | |
| 41 | <a href="<?php echo esc_url(get_admin_url(null, 'profile.php')); ?>"><?php echo __('Edit My Profile'); ?></a> | |
| 42 | <a href="<?php echo esc_url(wp_logout_url()); ?>"><?php echo __('Log Out'); ?></a> |
| 43 | </div> |
| 44 | </div> |
| 45 | <?php } |
| 46 | } |