✨ (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' => '',
|
'placeholder' => '',
|
||||||
'tip' => ''
|
'tip' => ''
|
||||||
));
|
));
|
||||||
|
|
||||||
|
echo Bootstrap::formInputText(array(
|
||||||
|
'name' => 'homepage',
|
||||||
|
'label' => $L->g(string: 'Website'),
|
||||||
|
'value' => $user->homepage(),
|
||||||
|
'class' => '',
|
||||||
|
'placeholder' => '',
|
||||||
|
'tip' => ''
|
||||||
|
));
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -55,6 +55,11 @@ class User
|
||||||
return $this->getValue('pronouns');
|
return $this->getValue('pronouns');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function homepage()
|
||||||
|
{
|
||||||
|
return $this->getValue('homepage');
|
||||||
|
}
|
||||||
|
|
||||||
public function description()
|
public function description()
|
||||||
{
|
{
|
||||||
return $this->getValue('description');
|
return $this->getValue('description');
|
||||||
|
|
|
@ -8,6 +8,7 @@ class Users extends dbJSON {
|
||||||
'nickname'=>'',
|
'nickname'=>'',
|
||||||
'pronouns'=>'',
|
'pronouns'=>'',
|
||||||
'description'=>'',
|
'description'=>'',
|
||||||
|
'homepage'=>'',
|
||||||
'role'=>'author', // admin, editor, author
|
'role'=>'author', // admin, editor, author
|
||||||
'password'=>'',
|
'password'=>'',
|
||||||
'salt'=>'!Pink Floyd!Welcome to the machine!',
|
'salt'=>'!Pink Floyd!Welcome to the machine!',
|
||||||
|
|
Loading…
Reference in a new issue