Ajout de nouveaux trucs pour les users #1
5 changed files with 18 additions and 0 deletions
|
@ -96,6 +96,15 @@ echo Bootstrap::formInputHidden(array(
|
||||||
'tip' => ''
|
'tip' => ''
|
||||||
));
|
));
|
||||||
|
|
||||||
|
echo Bootstrap::formInputText(array(
|
||||||
|
'name' => 'pronouns',
|
||||||
|
'label' => $L->g(string: 'Pronouns'),
|
||||||
|
'value' => $user->pronouns(),
|
||||||
|
'class' => '',
|
||||||
|
'placeholder' => '',
|
||||||
|
'tip' => ''
|
||||||
|
));
|
||||||
|
|
||||||
echo Bootstrap::formTextarea(array(
|
echo Bootstrap::formTextarea(array(
|
||||||
'name' => 'description',
|
'name' => 'description',
|
||||||
'label' => $L->g('Description'),
|
'label' => $L->g('Description'),
|
||||||
|
|
|
@ -50,6 +50,11 @@ class User
|
||||||
return $this->getValue('username');
|
return $this->getValue('username');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function pronouns()
|
||||||
|
{
|
||||||
|
return $this->getValue('pronouns');
|
||||||
|
}
|
||||||
|
|
||||||
public function description()
|
public function description()
|
||||||
{
|
{
|
||||||
return $this->getValue('description');
|
return $this->getValue('description');
|
||||||
|
@ -189,6 +194,7 @@ class User
|
||||||
$tmp['mastodon'] = $this->mastodon();
|
$tmp['mastodon'] = $this->mastodon();
|
||||||
$tmp['vk'] = $this->vk();
|
$tmp['vk'] = $this->vk();
|
||||||
$tmp['profilePicture'] = $this->profilePicture();
|
$tmp['profilePicture'] = $this->profilePicture();
|
||||||
|
$tmp['pronouns'] = $this->pronouns();
|
||||||
|
|
||||||
if ($returnsArray) {
|
if ($returnsArray) {
|
||||||
return $tmp;
|
return $tmp;
|
||||||
|
|
|
@ -6,6 +6,7 @@ class Users extends dbJSON {
|
||||||
'firstName'=>'',
|
'firstName'=>'',
|
||||||
'lastName'=>'',
|
'lastName'=>'',
|
||||||
'nickname'=>'',
|
'nickname'=>'',
|
||||||
|
'pronouns'=>'',
|
||||||
'description'=>'',
|
'description'=>'',
|
||||||
'role'=>'author', // admin, editor, author
|
'role'=>'author', // admin, editor, author
|
||||||
'password'=>'',
|
'password'=>'',
|
||||||
|
|
|
@ -132,6 +132,7 @@
|
||||||
"username": "Username",
|
"username": "Username",
|
||||||
"first-name": "First name",
|
"first-name": "First name",
|
||||||
"last-name": "Last name",
|
"last-name": "Last name",
|
||||||
|
"pronouns": "Pronouns",
|
||||||
"to-schedule-the-content-select-the-date-and-time": "To schedule the content select the date and time, the status has to be set to \"Published\".",
|
"to-schedule-the-content-select-the-date-and-time": "To schedule the content select the date and time, the status has to be set to \"Published\".",
|
||||||
"email": "Email",
|
"email": "Email",
|
||||||
"role": "Role",
|
"role": "Role",
|
||||||
|
|
|
@ -132,6 +132,7 @@
|
||||||
"username": "Nom d’utilisateur",
|
"username": "Nom d’utilisateur",
|
||||||
"first-name": "Prénom",
|
"first-name": "Prénom",
|
||||||
"last-name": "Nom",
|
"last-name": "Nom",
|
||||||
|
"pronouns": "Pronoms",
|
||||||
"to-schedule-the-content-select-the-date-and-time": "Pour planifier votre contenu, sélectionnez la date et l’heure, le statut doit être défini sur \"Publié\".",
|
"to-schedule-the-content-select-the-date-and-time": "Pour planifier votre contenu, sélectionnez la date et l’heure, le statut doit être défini sur \"Publié\".",
|
||||||
"email": "E-mail",
|
"email": "E-mail",
|
||||||
"role": "Rôle",
|
"role": "Rôle",
|
||||||
|
|
Loading…
Reference in a new issue