From fe0f414dc0211a4014581dc03fcfd514ed7ed02d Mon Sep 17 00:00:00 2001 From: Jonas Kohl Date: Thu, 17 Oct 2024 10:56:01 +0200 Subject: Transition templating to Twig --- src/application/views/view_user.php | 209 ------------------------------------ 1 file changed, 209 deletions(-) delete mode 100644 src/application/views/view_user.php (limited to 'src/application/views/view_user.php') diff --git a/src/application/views/view_user.php b/src/application/views/view_user.php deleted file mode 100644 index e7c9753..0000000 --- a/src/application/views/view_user.php +++ /dev/null @@ -1,209 +0,0 @@ -id === $GLOBALS["currentUser"]?->id && $user->hasPermission(UserPermissions::EDIT_OWN_USER)) - || $GLOBALS["currentUser"]?->hasPermission(UserPermissions::EDIT_OTHER_USER); - -$isOwnProfile = $user->id === $GLOBALS["currentUser"]?->id; - -$sUserPossessive = ""; -if ($isOwnProfile) - $sUserPossessive = "Your posts"; -else - $sUserPossessive = "%display_name%'s posts"; - -$dateJoined = DateTime::createFromImmutable($user->created); -$dateJoined->setTime(0, 0, 0, 0); - -$emailPending = $isOwnProfile && $user->pendingEmail !== null; -?> - -