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!',