diff --git a/includes/helpers/misc.php b/includes/helpers/misc.php index 64888a86..c22e1835 100644 --- a/includes/helpers/misc.php +++ b/includes/helpers/misc.php @@ -568,8 +568,13 @@ function uwp_always_nav_menu_visibility( $result, $option, $user ) * @return string Title. */ function uwp_account_privacy_page_title($title, $type) { + if ($type == 'privacy') { $title = __( 'Privacy', 'userswp' ); + } elseif ($type == 'notifications') { + $title = __( 'E-Mail Notifications', 'userswp' ); + } elseif ($type == 'delete-account') { + $title = __( 'Delete Account', 'userswp' ); } return $title; diff --git a/templates/bootstrap/account.php b/templates/bootstrap/account.php index df6cf5f5..0d1f3e39 100644 --- a/templates/bootstrap/account.php +++ b/templates/bootstrap/account.php @@ -18,9 +18,20 @@
- @ - + + do_action( 'uwp_template_form_title_before', 'account' ); + + echo aui()->button( array( + 'type' => 'a', + 'href' => uwp_build_profile_tab_url($user_id), + 'class' => 'mt-0 text-decoration-none font-weight-bold', + 'icon' => '', + 'title' => $display_name, + 'content' => '@'.$display_name, + )); + + do_action( 'uwp_template_form_title_after', 'account' ); + ?>