(users): Add support for personnal page

This commit is contained in:
Kazhnuz 2025-01-09 19:28:48 +01:00
parent f9bf460018
commit db47816aeb
3 changed files with 15 additions and 0 deletions

View file

@ -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' => ''
));
?>
</div>

View file

@ -55,6 +55,11 @@ class User
return $this->getValue('pronouns');
}
public function homepage()
{
return $this->getValue('homepage');
}
public function description()
{
return $this->getValue('description');

View file

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