| @@ -2,15 +2,17 @@ | ||
| 2 | 2 | <div class="uwp-content-wrap"> |
| 3 | 3 | <div class="uwp-login"> |
| 4 | 4 | <div class="uwp-lf-icon"><i class="fas fa-sync fa-fw"></i></div> |
| 5 | 5 | <?php do_action('uwp_template_form_title_before', 'change'); ?> |
| 6 | - <h2><?php echo apply_filters('uwp_template_form_title', get_the_title(), 'change'); ?></h2> | |
| 6 | + <h2><?php | |
| 7 | + $form_title = !empty($args['form_title']) ? esc_attr__($args['form_title'], 'userswp') : __('Change', 'userswp'); | |
| 8 | + echo apply_filters('uwp_template_form_title', $form_title, 'change'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped | |
| 9 | + ?></h2> | |
| 7 | 10 | <?php do_action('uwp_template_display_notices', 'change'); ?> |
| 8 | 11 | <form class="uwp-change-form uwp_form" method="post"> |
| 9 | 12 | <?php do_action('uwp_template_fields', 'change'); ?> |
| 10 | - <input type="hidden" name="uwp_change_nonce" value="<?php echo wp_create_nonce( 'uwp-change-nonce' ); ?>" /> | |
| 11 | - <input name="uwp_change_submit" value="<?php echo __( 'Submit', 'userswp' ); ?>" type="submit"><br> | |
| 13 | + <input name="uwp_change_submit" value="<?php echo esc_attr__( 'Submit', 'userswp' ); ?>" type="submit"><br> | |
| 12 | 14 | </form> |
| 13 | - <div class="uwp-changepsw"><a href="<?php echo uwp_get_page_link('account'); ?>"><?php echo __( 'Account', 'userswp' ); ?></a> <a style="float: right" href="<?php echo uwp_get_page_link('profile'); ?>"><?php echo __( 'Profile', 'userswp' ); ?></a></div> | |
| 15 | + <div class="uwp-footer-link uwp-changepsw"><a rel="nofollow" href="<?php echo esc_url( uwp_get_page_link('account') ); ?>"><?php echo uwp_get_option("account_link_title") ? esc_html( uwp_get_option("account_link_title") ) : esc_html__( 'Account', 'userswp' ); ?></a> <a style="float: right" href="<?php echo esc_url( uwp_get_page_link('profile') ); ?>"><?php echo uwp_get_option("profile_link_title") ? esc_html( uwp_get_option("profile_link_title") ) : esc_html__( 'Profile', 'userswp' ); ?></a></div> | |
| 14 | 16 | </div> |
| 15 | 17 | </div> |
| 16 | 18 | <?php do_action('uwp_template_after', 'change'); ?> |