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' => ''
|
||||
));
|
||||
|
||||
echo Bootstrap::formInputText(array(
|
||||
'name' => 'pronouns',
|
||||
'label' => $L->g(string: 'Pronouns'),
|
||||
'value' => $user->pronouns(),
|
||||
'class' => '',
|
||||
'placeholder' => '',
|
||||
'tip' => ''
|
||||
));
|
||||
|
||||
echo Bootstrap::formTextarea(array(
|
||||
'name' => 'description',
|
||||
'label' => $L->g('Description'),
|
||||
|
|
|
@ -50,6 +50,11 @@ class User
|
|||
return $this->getValue('username');
|
||||
}
|
||||
|
||||
public function pronouns()
|
||||
{
|
||||
return $this->getValue('pronouns');
|
||||
}
|
||||
|
||||
public function description()
|
||||
{
|
||||
return $this->getValue('description');
|
||||
|
@ -189,6 +194,7 @@ class User
|
|||
$tmp['mastodon'] = $this->mastodon();
|
||||
$tmp['vk'] = $this->vk();
|
||||
$tmp['profilePicture'] = $this->profilePicture();
|
||||
$tmp['pronouns'] = $this->pronouns();
|
||||
|
||||
if ($returnsArray) {
|
||||
return $tmp;
|
||||
|
|
|
@ -6,6 +6,7 @@ class Users extends dbJSON {
|
|||
'firstName'=>'',
|
||||
'lastName'=>'',
|
||||
'nickname'=>'',
|
||||
'pronouns'=>'',
|
||||
'description'=>'',
|
||||
'role'=>'author', // admin, editor, author
|
||||
'password'=>'',
|
||||
|
|
|
@ -132,6 +132,7 @@
|
|||
"username": "Username",
|
||||
"first-name": "First 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\".",
|
||||
"email": "Email",
|
||||
"role": "Role",
|
||||
|
|
|
@ -132,6 +132,7 @@
|
|||
"username": "Nom d’utilisateur",
|
||||
"first-name": "Pré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é\".",
|
||||
"email": "E-mail",
|
||||
"role": "Rôle",
|
||||
|
|
Loading…
Reference in a new issue