Ajout de nouveaux trucs pour les users #1

Merged
kazhnuz merged 6 commits from feat/new-user-stuff into koblog 2025-01-11 20:03:59 +01:00
5 changed files with 18 additions and 0 deletions
Showing only changes of commit f9bf460018 - Show all commits

View file

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

View file

@ -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;

View file

@ -6,6 +6,7 @@ class Users extends dbJSON {
'firstName'=>'',
'lastName'=>'',
'nickname'=>'',
'pronouns'=>'',
'description'=>'',
'role'=>'author', // admin, editor, author
'password'=>'',

View file

@ -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",

View file

@ -132,6 +132,7 @@
"username": "Nom dutilisateur",
"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 lheure, le statut doit être défini sur \"Publié\".",
"email": "E-mail",
"role": "Rôle",