✨ (users): Add support for personnal page
This commit is contained in:
parent
f9bf460018
commit
db47816aeb
3 changed files with 15 additions and 0 deletions
|
@ -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>
|
||||
|
||||
|
|
|
@ -55,6 +55,11 @@ class User
|
|||
return $this->getValue('pronouns');
|
||||
}
|
||||
|
||||
public function homepage()
|
||||
{
|
||||
return $this->getValue('homepage');
|
||||
}
|
||||
|
||||
public function description()
|
||||
{
|
||||
return $this->getValue('description');
|
||||
|
|
|
@ -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!',
|
||||
|
|
Loading…
Reference in a new issue