From db47816aebd198f4c29f9df6b224bf281273ccfc Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Thu, 9 Jan 2025 19:28:48 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20(users):=20Add=20support=20for=20pe?= =?UTF-8?q?rsonnal=20page?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bl-kernel/admin/views/edit-user.php | 9 +++++++++ bl-kernel/user.class.php | 5 +++++ bl-kernel/users.class.php | 1 + 3 files changed, 15 insertions(+) diff --git a/bl-kernel/admin/views/edit-user.php b/bl-kernel/admin/views/edit-user.php index 1d4763cf..b64eedbb 100644 --- a/bl-kernel/admin/views/edit-user.php +++ b/bl-kernel/admin/views/edit-user.php @@ -113,6 +113,15 @@ echo Bootstrap::formInputHidden(array( 'placeholder' => '', 'tip' => '' )); + + echo Bootstrap::formInputText(array( + 'name' => 'homepage', + 'label' => $L->g(string: 'Website'), + 'value' => $user->homepage(), + 'class' => '', + 'placeholder' => '', + 'tip' => '' + )); ?> diff --git a/bl-kernel/user.class.php b/bl-kernel/user.class.php index 2a0934fe..244920e3 100644 --- a/bl-kernel/user.class.php +++ b/bl-kernel/user.class.php @@ -55,6 +55,11 @@ class User return $this->getValue('pronouns'); } + public function homepage() + { + return $this->getValue('homepage'); + } + public function description() { return $this->getValue('description'); diff --git a/bl-kernel/users.class.php b/bl-kernel/users.class.php index 95e6af05..9dd834b8 100644 --- a/bl-kernel/users.class.php +++ b/bl-kernel/users.class.php @@ -8,6 +8,7 @@ class Users extends dbJSON { 'nickname'=>'', 'pronouns'=>'', 'description'=>'', + 'homepage'=>'', 'role'=>'author', // admin, editor, author 'password'=>'', 'salt'=>'!Pink Floyd!Welcome to the machine!',