login-frontend.php
22 lines
| 1 | <?php /** @version 7.0.0 **/ |
| 2 | |
| 3 | if (defined('AAM_KEY')) { |
| 4 | echo $this->args['before_widget']; |
| 5 | |
| 6 | if (!is_user_logged_in()) { |
| 7 | echo $this->args['before_title']; |
| 8 | echo apply_filters('widget_title', esc_js($this->args['login-title']), $this->args, $this->id_base); |
| 9 | echo $this->args['after_title']; |
| 10 | } elseif (is_user_logged_in()) { |
| 11 | echo $this->args['before_title']; |
| 12 | echo str_replace('%username%', AAM::current_user()->display_name, esc_js($this->args['user-title'])); |
| 13 | echo $this->args['after_title']; |
| 14 | } |
| 15 | |
| 16 | echo AAM_Backend_View::loadPartial('login-form', array( |
| 17 | 'id' => $this->get_field_id('loginform'), |
| 18 | 'redirect' => $this->args['redirect'] |
| 19 | )); |
| 20 | |
| 21 | echo $this->args['after_widget']; |
| 22 | } |