Update content of arrays for creating forms
This commit is contained in:
parent
fd84958f0b
commit
ae13880c6b
33 changed files with 334 additions and 334 deletions
|
@ -144,25 +144,25 @@ class Bans extends Admin
|
|||
$fields['username'] = [
|
||||
'type' => 'text',
|
||||
'maxlength' => '25',
|
||||
'caption' => __('Username label'),
|
||||
'caption' => 'Username label',
|
||||
'value' => $data['username'] ?? null,
|
||||
];
|
||||
$fields['ip'] = [
|
||||
'type' => 'text',
|
||||
'maxlength' => '40',
|
||||
'caption' => __('IP label'),
|
||||
'caption' => 'IP label',
|
||||
'value' => $data['ip'] ?? null,
|
||||
];
|
||||
$fields['email'] = [
|
||||
'type' => 'text',
|
||||
'maxlength' => '80',
|
||||
'caption' => __('E-mail label'),
|
||||
'caption' => 'E-mail label',
|
||||
'value' => $data['email'] ?? null,
|
||||
];
|
||||
$fields['message'] = [
|
||||
'type' => 'text',
|
||||
'maxlength' => '255',
|
||||
'caption' => __('Message label'),
|
||||
'caption' => 'Message label',
|
||||
'value' => $data['message'] ?? null,
|
||||
];
|
||||
$fields['between1'] = [
|
||||
|
@ -174,7 +174,7 @@ class Bans extends Admin
|
|||
'type' => 'text',
|
||||
'maxlength' => '100',
|
||||
'value' => $data['expire_1'] ?? null,
|
||||
'caption' => __('Expire date label'),
|
||||
'caption' => 'Expire date label',
|
||||
];
|
||||
$fields['expire_2'] = [
|
||||
'class' => 'bend',
|
||||
|
@ -206,7 +206,7 @@ class Bans extends Admin
|
|||
'expire' => __('Order by expire'),
|
||||
],
|
||||
'value' => $data['order_by'] ?? 'id',
|
||||
'caption' => __('Order by label'),
|
||||
'caption' => 'Order by label',
|
||||
];
|
||||
$fields['direction'] = [
|
||||
'class' => 'bend',
|
||||
|
@ -252,21 +252,21 @@ class Bans extends Admin
|
|||
$fields['username'] = [
|
||||
'type' => $this->banCount < 1 ? 'text' : 'str',
|
||||
'maxlength' => '25',
|
||||
'caption' => __('Username label'),
|
||||
'caption' => 'Username label',
|
||||
'help' => $this->banCount < 1 ? 'Username help' : null,
|
||||
'value' => $data['username'] ?? null,
|
||||
];
|
||||
$fields['ip'] = [
|
||||
'type' => 'text',
|
||||
'maxlength' => '255',
|
||||
'caption' => __('IP label'),
|
||||
'caption' => 'IP label',
|
||||
'help' => 'IP help',
|
||||
'value' => $data['ip'] ?? null,
|
||||
];
|
||||
$fields['email'] = [
|
||||
'type' => 'text',
|
||||
'maxlength' => '80',
|
||||
'caption' => __('E-mail label'),
|
||||
'caption' => 'E-mail label',
|
||||
'help' => 'E-mail help',
|
||||
'value' => $data['email'] ?? null,
|
||||
];
|
||||
|
@ -280,14 +280,14 @@ class Bans extends Admin
|
|||
$fields['message'] = [
|
||||
'type' => 'text',
|
||||
'maxlength' => '255',
|
||||
'caption' => __('Ban message label'),
|
||||
'caption' => 'Ban message label',
|
||||
'help' => 'Ban message help',
|
||||
'value' => $data['message'] ?? null,
|
||||
];
|
||||
$fields['expire'] = [
|
||||
'type' => 'text',
|
||||
'maxlength' => '100',
|
||||
'caption' => __('Expire date label'),
|
||||
'caption' => 'Expire date label',
|
||||
'help' => 'Expire date help',
|
||||
'value' => $data['expire'] ?? null,
|
||||
];
|
||||
|
@ -431,13 +431,13 @@ class Bans extends Admin
|
|||
$fields["l{$number}-username"] = [
|
||||
'class' => '' == $ban['username'] ? ['result', 'username', 'no-data'] : ['result', 'username'],
|
||||
'type' => 'str',
|
||||
'caption' => __('Results username head'),
|
||||
'caption' => 'Results username head',
|
||||
'value' => $ban['username'],
|
||||
];
|
||||
$fields["l{$number}-email"] = [
|
||||
'class' => '' == $ban['email'] ? ['result', 'email', 'no-data'] : ['result', 'email'],
|
||||
'type' => 'str',
|
||||
'caption' => __('Results e-mail head'),
|
||||
'caption' => 'Results e-mail head',
|
||||
'value' => $ban['email'],
|
||||
];
|
||||
$fields[] = [
|
||||
|
@ -446,25 +446,25 @@ class Bans extends Admin
|
|||
$fields["l{$number}-ips"] = [
|
||||
'class' => '' == $ban['ip'] ? ['result', 'ips', 'no-data'] : ['result', 'ips'],
|
||||
'type' => 'str',
|
||||
'caption' => __('Results IP address head'),
|
||||
'caption' => 'Results IP address head',
|
||||
'value' => $ban['ip'],
|
||||
];
|
||||
$fields["l{$number}-expire"] = [
|
||||
'class' => empty($ban['expire']) ? ['result', 'expire', 'no-data'] : ['result', 'expire'],
|
||||
'type' => 'str',
|
||||
'caption' => __('Results expire head'),
|
||||
'caption' => 'Results expire head',
|
||||
'value' => empty($ban['expire']) ? '' : \ForkBB\dt($ban['expire'], true),
|
||||
];
|
||||
$fields["l{$number}-message"] = [
|
||||
'class' => '' == $ban['message'] ? ['result', 'message', 'no-data'] : ['result', 'message'],
|
||||
'type' => 'str',
|
||||
'caption' => __('Results message head'),
|
||||
'caption' => 'Results message head',
|
||||
'value' => $ban['message'],
|
||||
];
|
||||
$fields["l{$number}-creator"] = [
|
||||
'class' => ['result', 'creator'],
|
||||
'type' => '1' == $this->user->g_view_users && $ban['id_creator'] > 1 ? 'link' : 'str',
|
||||
'caption' => __('Results banned by head'),
|
||||
'caption' => 'Results banned by head',
|
||||
'value' => $ban['name_creator'],
|
||||
'href' => $this->c->Router->link(
|
||||
'User',
|
||||
|
@ -489,7 +489,7 @@ class Bans extends Admin
|
|||
'class' => ['result', 'btn-edit'],
|
||||
'type' => $ban['id'] > 0 ? 'btn' : 'str',
|
||||
'value' => '✎',
|
||||
'caption' => __('Results actions head'),
|
||||
'caption' => 'Results actions head',
|
||||
'title' => __('Edit'),
|
||||
'link' => $this->c->Router->link(
|
||||
'AdminBansEdit',
|
||||
|
@ -500,7 +500,7 @@ class Bans extends Admin
|
|||
'class' => ['result', 'btn-delete'],
|
||||
'type' => $ban['id'] > 0 ? 'btn' : 'str',
|
||||
'value' => '❌',
|
||||
'caption' => __('Results actions head'),
|
||||
'caption' => 'Results actions head',
|
||||
'title' => __('Delete'),
|
||||
'link' => $this->c->Router->link(
|
||||
'AdminBansDelete',
|
||||
|
|
|
@ -91,7 +91,7 @@ class Categories extends Admin
|
|||
'type' => 'text',
|
||||
'maxlength' => '80',
|
||||
'value' => $row['cat_name'],
|
||||
'caption' => __('Category name label'),
|
||||
'caption' => 'Category name label',
|
||||
'required' => true,
|
||||
];
|
||||
$fields["form[{$key}][disp_position]"] = [
|
||||
|
@ -100,13 +100,13 @@ class Categories extends Admin
|
|||
'min' => '0',
|
||||
'max' => '9999999999',
|
||||
'value' => $row['disp_position'],
|
||||
'caption' => __('Category position label'),
|
||||
'caption' => 'Category position label',
|
||||
];
|
||||
$fields["delete-btn{$key}"] = [
|
||||
'class' => ['delete', 'category'],
|
||||
'type' => 'btn',
|
||||
'value' => '❌',
|
||||
'caption' => __('Delete'),
|
||||
'caption' => 'Delete',
|
||||
'title' => __('Delete'),
|
||||
'link' => $this->c->Router->link(
|
||||
'AdminCategoriesDelete',
|
||||
|
@ -128,7 +128,7 @@ class Categories extends Admin
|
|||
'class' => 'new',
|
||||
'type' => 'text',
|
||||
'maxlength' => '80',
|
||||
'caption' => __('Add category label'),
|
||||
'caption' => 'Add category label',
|
||||
'help' => ['Add category help', $this->c->Router->link('AdminForums'), __('Forums')],
|
||||
],
|
||||
],
|
||||
|
@ -204,7 +204,7 @@ class Categories extends Admin
|
|||
'del' => [
|
||||
'fields' => [
|
||||
'confirm' => [
|
||||
'caption' => __('Confirm delete'),
|
||||
'caption' => 'Confirm delete',
|
||||
'type' => 'checkbox',
|
||||
'label' => __(['I want to delete the category %s', $category['cat_name']]),
|
||||
'value' => '1',
|
||||
|
|
|
@ -74,7 +74,7 @@ class Censoring extends Admin
|
|||
'type' => 'radio',
|
||||
'value' => $this->c->config->o_censoring,
|
||||
'values' => [1 => __('Yes'), 0 => __('No')],
|
||||
'caption' => __('Censor words label'),
|
||||
'caption' => 'Censor words label',
|
||||
'help' => 'Censor words help',
|
||||
],
|
||||
],
|
||||
|
@ -103,14 +103,14 @@ class Censoring extends Admin
|
|||
'type' => 'text',
|
||||
'maxlength' => '60',
|
||||
'value' => $row['search_for'],
|
||||
'caption' => __('Censored word label'),
|
||||
'caption' => 'Censored word label',
|
||||
];
|
||||
$fieldset["form[{$id}][replace_with]"] = [
|
||||
'class' => ['censor'],
|
||||
'type' => 'text',
|
||||
'maxlength' => '60',
|
||||
'value' => $row['replace_with'],
|
||||
'caption' => __('Replacement label'),
|
||||
'caption' => 'Replacement label',
|
||||
];
|
||||
}
|
||||
$fieldset["form[0][search_for]"] = [
|
||||
|
@ -118,14 +118,14 @@ class Censoring extends Admin
|
|||
'type' => 'text',
|
||||
'maxlength' => '60',
|
||||
'value' => '',
|
||||
'caption' => __('Censored word label'),
|
||||
'caption' => 'Censored word label',
|
||||
];
|
||||
$fieldset["form[0][replace_with]"] = [
|
||||
'class' => ['censor'],
|
||||
'type' => 'text',
|
||||
'maxlength' => '60',
|
||||
'value' => '',
|
||||
'caption' => __('Replacement label'),
|
||||
'caption' => 'Replacement label',
|
||||
];
|
||||
|
||||
$form['sets']['censtable'] = [
|
||||
|
|
|
@ -175,7 +175,7 @@ class Forums extends Admin
|
|||
'class' => ['name', 'forum', 'depth' . $forum->depth],
|
||||
'type' => 'btn',
|
||||
'value' => $forum->forum_name,
|
||||
'caption' => __('Forum label'),
|
||||
'caption' => 'Forum label',
|
||||
'link' => $this->c->Router->link(
|
||||
'AdminForumsEdit',
|
||||
[
|
||||
|
@ -189,14 +189,14 @@ class Forums extends Admin
|
|||
'min' => '0',
|
||||
'max' => '9999999999',
|
||||
'value' => $forum->disp_position,
|
||||
'caption' => __('Position label'),
|
||||
'caption' => 'Position label',
|
||||
];
|
||||
$disabled = (bool) $forum->subforums;
|
||||
$fields["delete-btn{$forum->id}"] = [
|
||||
'class' => ['delete', 'forum'],
|
||||
'type' => 'btn',
|
||||
'value' => '❌',
|
||||
'caption' => __('Delete'),
|
||||
'caption' => 'Delete',
|
||||
'title' => __('Delete'),
|
||||
'link' => $disabled
|
||||
? '#'
|
||||
|
@ -293,7 +293,7 @@ class Forums extends Admin
|
|||
'confirm' => [
|
||||
'fields' => [
|
||||
'confirm' => [
|
||||
'caption' => __('Confirm delete'),
|
||||
'caption' => 'Confirm delete',
|
||||
'type' => 'checkbox',
|
||||
'label' => __(['I want to delete forum %s', $forum->forum_name]),
|
||||
'value' => '1',
|
||||
|
@ -462,19 +462,19 @@ class Forums extends Admin
|
|||
'type' => 'text',
|
||||
'maxlength' => '80',
|
||||
'value' => $forum->forum_name,
|
||||
'caption' => __('Forum name label'),
|
||||
'caption' => 'Forum name label',
|
||||
'required' => true,
|
||||
],
|
||||
'forum_desc' => [
|
||||
'type' => 'textarea',
|
||||
'value' => $forum->forum_desc,
|
||||
'caption' => __('Forum description label'),
|
||||
'caption' => 'Forum description label',
|
||||
],
|
||||
'parent' => [
|
||||
'type' => 'select',
|
||||
'options' => $this->listForOptions,
|
||||
'value' => $forum->parent_forum_id ? $forum->parent_forum_id : -$forum->cat_id,
|
||||
'caption' => __('Parent label'),
|
||||
'caption' => 'Parent label',
|
||||
'help' => 'Parent help',
|
||||
'required' => true,
|
||||
],
|
||||
|
@ -486,13 +486,13 @@ class Forums extends Admin
|
|||
2 => __('Subject option'),
|
||||
],
|
||||
'value' => $forum->sort_by,
|
||||
'caption' => __('Sort by label'),
|
||||
'caption' => 'Sort by label',
|
||||
],
|
||||
'redirect_url' => [
|
||||
'type' => 'text',
|
||||
'maxlength' => '255',
|
||||
'value' => $forum->redirect_url,
|
||||
'caption' => __('Redirect label'),
|
||||
'caption' => 'Redirect label',
|
||||
'help' => 'Redirect help',
|
||||
'disabled' => $forum->num_topics || $forum->subforums ? true : null,
|
||||
],
|
||||
|
@ -500,7 +500,7 @@ class Forums extends Admin
|
|||
'type' => 'radio',
|
||||
'value' => $forum->no_sum_mess,
|
||||
'values' => [0 => __('Yes'), 1 => __('No')],
|
||||
'caption' => __('Count messages label'),
|
||||
'caption' => 'Count messages label',
|
||||
'help' => ['Count messages help', $this->c->Router->link('AdminUsers'), __('Users')],
|
||||
],
|
||||
],
|
||||
|
@ -523,7 +523,7 @@ class Forums extends Admin
|
|||
'class' => $group->def_read_forum ? $aOn : $aOff,
|
||||
'type' => 'checkbox',
|
||||
'value' => '1',
|
||||
'caption' => __('Read forum label'),
|
||||
'caption' => 'Read forum label',
|
||||
'label' => __('<span></span>'),
|
||||
'checked' => $group->set_read_forum,
|
||||
'disabled' => $group->dis_read_forum,
|
||||
|
@ -532,7 +532,7 @@ class Forums extends Admin
|
|||
'class' => $group->def_post_replies ? $aOn : $aOff,
|
||||
'type' => 'checkbox',
|
||||
'value' => '1',
|
||||
'caption' => __('Post replies label'),
|
||||
'caption' => 'Post replies label',
|
||||
'label' => __('<span></span>'),
|
||||
'checked' => $group->set_post_replies,
|
||||
'disabled' => $group->dis_post_replies,
|
||||
|
@ -541,7 +541,7 @@ class Forums extends Admin
|
|||
'class' => $group->def_post_topics ? $aOn : $aOff,
|
||||
'type' => 'checkbox',
|
||||
'value' => '1',
|
||||
'caption' => __('Post topics label'),
|
||||
'caption' => 'Post topics label',
|
||||
'label' => __('<span></span>'),
|
||||
'checked' => $group->set_post_topics,
|
||||
'disabled' => $group->dis_post_topics,
|
||||
|
|
|
@ -81,7 +81,7 @@ class Groups extends Admin
|
|||
'type' => 'select',
|
||||
'options' => $this->groupsNew,
|
||||
'value' => $this->c->config->i_default_user_group,
|
||||
'caption' => __('New group label'),
|
||||
'caption' => 'New group label',
|
||||
'help' => 'New group help',
|
||||
# 'autofocus' => true,
|
||||
],
|
||||
|
@ -115,7 +115,7 @@ class Groups extends Admin
|
|||
'type' => 'select',
|
||||
'options' => $this->groupsDefault,
|
||||
'value' => $this->c->config->i_default_user_group,
|
||||
'caption' => __('Default group label'),
|
||||
'caption' => 'Default group label',
|
||||
'help' => 'Default group help',
|
||||
],
|
||||
],
|
||||
|
@ -376,7 +376,7 @@ class Groups extends Admin
|
|||
'type' => 'text',
|
||||
'maxlength' => '50',
|
||||
'value' => $group->g_title,
|
||||
'caption' => __('Group title label'),
|
||||
'caption' => 'Group title label',
|
||||
'required' => true,
|
||||
# 'autofocus' => true,
|
||||
];
|
||||
|
@ -384,7 +384,7 @@ class Groups extends Admin
|
|||
'type' => 'text',
|
||||
'maxlength' => '50',
|
||||
'value' => $group->g_user_title,
|
||||
'caption' => __('User title label'),
|
||||
'caption' => 'User title label',
|
||||
'help' => ['User title help', $group->groupGuest ? __('Guest') : __('Member')],
|
||||
];
|
||||
$form['sets']['group-titles'] = [
|
||||
|
@ -413,7 +413,7 @@ class Groups extends Admin
|
|||
'type' => 'select',
|
||||
'options' => $options,
|
||||
'value' => $group->g_promote_next_group,
|
||||
'caption' => __('Promote users label'),
|
||||
'caption' => 'Promote users label',
|
||||
'help' => ['Promote users help', __('Disable promotion')],
|
||||
];
|
||||
$fieldset['g_promote_min_posts'] = [
|
||||
|
@ -421,7 +421,7 @@ class Groups extends Admin
|
|||
'min' => '0',
|
||||
'max' => '9999999999',
|
||||
'value' => $group->g_promote_min_posts,
|
||||
'caption' => __('Number for promotion label'),
|
||||
'caption' => 'Number for promotion label',
|
||||
'help' => 'Number for promotion help',
|
||||
];
|
||||
$form['sets']['group-promote'] = [
|
||||
|
@ -443,42 +443,42 @@ class Groups extends Admin
|
|||
'type' => 'radio',
|
||||
'value' => $group->g_moderator,
|
||||
'values' => $yn,
|
||||
'caption' => __('Mod privileges label'),
|
||||
'caption' => 'Mod privileges label',
|
||||
'help' => 'Mod privileges help',
|
||||
];
|
||||
$fieldset['g_mod_edit_users'] = [
|
||||
'type' => 'radio',
|
||||
'value' => $group->g_mod_edit_users,
|
||||
'values' => $yn,
|
||||
'caption' => __('Edit profile label'),
|
||||
'caption' => 'Edit profile label',
|
||||
'help' => 'Edit profile help',
|
||||
];
|
||||
$fieldset['g_mod_rename_users'] = [
|
||||
'type' => 'radio',
|
||||
'value' => $group->g_mod_rename_users,
|
||||
'values' => $yn,
|
||||
'caption' => __('Rename users label'),
|
||||
'caption' => 'Rename users label',
|
||||
'help' => 'Rename users help',
|
||||
];
|
||||
$fieldset['g_mod_change_passwords'] = [
|
||||
'type' => 'radio',
|
||||
'value' => $group->g_mod_change_passwords,
|
||||
'values' => $yn,
|
||||
'caption' => __('Change passwords label'),
|
||||
'caption' => 'Change passwords label',
|
||||
'help' => 'Change passwords help',
|
||||
];
|
||||
$fieldset['g_mod_promote_users'] = [
|
||||
'type' => 'radio',
|
||||
'value' => $group->g_mod_promote_users,
|
||||
'values' => $yn,
|
||||
'caption' => __('Mod promote users label'),
|
||||
'caption' => 'Mod promote users label',
|
||||
'help' => 'Mod promote users help',
|
||||
];
|
||||
$fieldset['g_mod_ban_users'] = [
|
||||
'type' => 'radio',
|
||||
'value' => $group->g_mod_ban_users,
|
||||
'values' => $yn,
|
||||
'caption' => __('Ban users label'),
|
||||
'caption' => 'Ban users label',
|
||||
'help' => 'Ban users help',
|
||||
];
|
||||
$form['sets']['group-mod'] = [
|
||||
|
@ -499,28 +499,28 @@ class Groups extends Admin
|
|||
'type' => 'radio',
|
||||
'value' => $group->g_read_board,
|
||||
'values' => $yn,
|
||||
'caption' => __('Read board label'),
|
||||
'caption' => 'Read board label',
|
||||
'help' => 'Read board help',
|
||||
];
|
||||
$fieldset['g_view_users'] = [
|
||||
'type' => 'radio',
|
||||
'value' => $group->g_view_users,
|
||||
'values' => $yn,
|
||||
'caption' => __('View user info label'),
|
||||
'caption' => 'View user info label',
|
||||
'help' => 'View user info help',
|
||||
];
|
||||
$fieldset['g_post_replies'] = [
|
||||
'type' => 'radio',
|
||||
'value' => $group->g_post_replies,
|
||||
'values' => $yn,
|
||||
'caption' => __('Post replies label'),
|
||||
'caption' => 'Post replies label',
|
||||
'help' => 'Post replies help',
|
||||
];
|
||||
$fieldset['g_post_topics'] = [
|
||||
'type' => 'radio',
|
||||
'value' => $group->g_post_topics,
|
||||
'values' => $yn,
|
||||
'caption' => __('Post topics label'),
|
||||
'caption' => 'Post topics label',
|
||||
'help' => 'Post topics help',
|
||||
];
|
||||
|
||||
|
@ -529,28 +529,28 @@ class Groups extends Admin
|
|||
'type' => 'radio',
|
||||
'value' => $group->g_edit_posts,
|
||||
'values' => $yn,
|
||||
'caption' => __('Edit posts label'),
|
||||
'caption' => 'Edit posts label',
|
||||
'help' => 'Edit posts help',
|
||||
];
|
||||
$fieldset['g_delete_posts'] = [
|
||||
'type' => 'radio',
|
||||
'value' => $group->g_delete_posts,
|
||||
'values' => $yn,
|
||||
'caption' => __('Delete posts label'),
|
||||
'caption' => 'Delete posts label',
|
||||
'help' => 'Delete posts help',
|
||||
];
|
||||
$fieldset['g_delete_topics'] = [
|
||||
'type' => 'radio',
|
||||
'value' => $group->g_delete_topics,
|
||||
'values' => $yn,
|
||||
'caption' => __('Delete topics label'),
|
||||
'caption' => 'Delete topics label',
|
||||
'help' => 'Delete topics help',
|
||||
];
|
||||
$fieldset['g_set_title'] = [
|
||||
'type' => 'radio',
|
||||
'value' => $group->g_set_title,
|
||||
'values' => $yn,
|
||||
'caption' => __('Set own title label'),
|
||||
'caption' => 'Set own title label',
|
||||
'help' => 'Set own title help',
|
||||
];
|
||||
}
|
||||
|
@ -559,21 +559,21 @@ class Groups extends Admin
|
|||
'type' => 'radio',
|
||||
'value' => $group->g_post_links,
|
||||
'values' => $yn,
|
||||
'caption' => __('Post links label'),
|
||||
'caption' => 'Post links label',
|
||||
'help' => 'Post links help',
|
||||
];
|
||||
$fieldset['g_search'] = [
|
||||
'type' => 'radio',
|
||||
'value' => $group->g_search,
|
||||
'values' => $yn,
|
||||
'caption' => __('User search label'),
|
||||
'caption' => 'User search label',
|
||||
'help' => 'User search help',
|
||||
];
|
||||
$fieldset['g_search_users'] = [
|
||||
'type' => 'radio',
|
||||
'value' => $group->g_search_users,
|
||||
'values' => $yn,
|
||||
'caption' => __('User list search label'),
|
||||
'caption' => 'User list search label',
|
||||
'help' => 'User list search help',
|
||||
];
|
||||
|
||||
|
@ -582,7 +582,7 @@ class Groups extends Admin
|
|||
'type' => 'radio',
|
||||
'value' => $group->g_send_email,
|
||||
'values' => $yn,
|
||||
'caption' => __('Send e-mails label'),
|
||||
'caption' => 'Send e-mails label',
|
||||
'help' => 'Send e-mails help',
|
||||
];
|
||||
}
|
||||
|
@ -605,7 +605,7 @@ class Groups extends Admin
|
|||
'min' => '0',
|
||||
'max' => '999999',
|
||||
'value' => $group->g_post_flood,
|
||||
'caption' => __('Post flood label'),
|
||||
'caption' => 'Post flood label',
|
||||
'help' => 'Post flood help',
|
||||
];
|
||||
$fieldset['g_search_flood'] = [
|
||||
|
@ -613,7 +613,7 @@ class Groups extends Admin
|
|||
'min' => '0',
|
||||
'max' => '999999',
|
||||
'value' => $group->g_search_flood,
|
||||
'caption' => __('Search flood label'),
|
||||
'caption' => 'Search flood label',
|
||||
'help' => 'Search flood help',
|
||||
];
|
||||
|
||||
|
@ -623,7 +623,7 @@ class Groups extends Admin
|
|||
'min' => '0',
|
||||
'max' => '999999',
|
||||
'value' => $group->g_deledit_interval,
|
||||
'caption' => __('Delete-edit interval label'),
|
||||
'caption' => 'Delete-edit interval label',
|
||||
'help' => 'Delete-edit interval help',
|
||||
];
|
||||
$fieldset['g_email_flood'] = [
|
||||
|
@ -631,7 +631,7 @@ class Groups extends Admin
|
|||
'min' => '0',
|
||||
'max' => '999999',
|
||||
'value' => $group->g_email_flood,
|
||||
'caption' => __('E-mail flood label'),
|
||||
'caption' => 'E-mail flood label',
|
||||
'help' => 'E-mail flood help',
|
||||
];
|
||||
$fieldset['g_report_flood'] = [
|
||||
|
@ -639,7 +639,7 @@ class Groups extends Admin
|
|||
'min' => '0',
|
||||
'max' => '999999',
|
||||
'value' => $group->g_report_flood,
|
||||
'caption' => __('Report flood label'),
|
||||
'caption' => 'Report flood label',
|
||||
'help' => 'Report flood help',
|
||||
];
|
||||
|
||||
|
@ -657,7 +657,7 @@ class Groups extends Admin
|
|||
'min' => '0',
|
||||
'max' => '16000',
|
||||
'value' => $group->g_sig_length,
|
||||
'caption' => __('Max sig length label'),
|
||||
'caption' => 'Max sig length label',
|
||||
'help' => 'Max sig length help',
|
||||
];
|
||||
$fieldset['g_sig_lines'] = [
|
||||
|
@ -665,7 +665,7 @@ class Groups extends Admin
|
|||
'min' => '0',
|
||||
'max' => '100',
|
||||
'value' => $group->g_sig_lines,
|
||||
'caption' => __('Max sig lines label'),
|
||||
'caption' => 'Max sig lines label',
|
||||
'help' => 'Max sig lines help',
|
||||
];
|
||||
$form['sets']['group-signature'] = [
|
||||
|
@ -679,14 +679,14 @@ class Groups extends Admin
|
|||
'type' => 'radio',
|
||||
'value' => $group->g_pm,
|
||||
'values' => $yn,
|
||||
'caption' => __('Allow PM label'),
|
||||
'caption' => 'Allow PM label',
|
||||
];
|
||||
$fieldset['g_pm_limit'] = [
|
||||
'type' => 'number',
|
||||
'min' => '0',
|
||||
'max' => '999999',
|
||||
'value' => $group->g_pm_limit,
|
||||
'caption' => __('PM limit label'),
|
||||
'caption' => 'PM limit label',
|
||||
'help' => 'PM limit help',
|
||||
];
|
||||
$form['sets']['group-pm'] = [
|
||||
|
@ -803,7 +803,7 @@ class Groups extends Admin
|
|||
'type' => 'select',
|
||||
'options' => $groups,
|
||||
'value' => $this->c->config->i_default_user_group,
|
||||
'caption' => __('Move users label'),
|
||||
'caption' => 'Move users label',
|
||||
'help' => ['Move users info', $group->g_title, $count],
|
||||
],
|
||||
],
|
||||
|
@ -813,7 +813,7 @@ class Groups extends Admin
|
|||
$form['sets']['conf'] = [
|
||||
'fields' => [
|
||||
'confirm' => [
|
||||
'caption' => __('Confirm delete'),
|
||||
'caption' => 'Confirm delete',
|
||||
'type' => 'checkbox',
|
||||
'label' => __(['I want to delete this group', $group->g_title]),
|
||||
'value' => '1',
|
||||
|
|
|
@ -212,7 +212,7 @@ class Install extends Admin
|
|||
'type' => 'select',
|
||||
'options' => $langs,
|
||||
'value' => $this->user->language,
|
||||
'caption' => __('Install language'),
|
||||
'caption' => 'Install language',
|
||||
'help' => 'Choose install language info',
|
||||
],
|
||||
],
|
||||
|
@ -251,39 +251,39 @@ class Install extends Admin
|
|||
'type' => 'select',
|
||||
'options' => $this->dbTypes,
|
||||
'value' => $v ? $v->dbtype : 'mysql_innodb',
|
||||
'caption' => __('Database type'),
|
||||
'caption' => 'Database type',
|
||||
'help' => 'Info 2',
|
||||
],
|
||||
'dbhost' => [
|
||||
'type' => 'text',
|
||||
'value' => $v ? $v->dbhost : 'localhost',
|
||||
'caption' => __('Database server hostname'),
|
||||
'caption' => 'Database server hostname',
|
||||
'help' => 'Info 3',
|
||||
'required' => true,
|
||||
],
|
||||
'dbname' => [
|
||||
'type' => 'text',
|
||||
'value' => $v ? $v->dbname : '',
|
||||
'caption' => __('Database name'),
|
||||
'caption' => 'Database name',
|
||||
'help' => 'Info 4',
|
||||
'required' => true,
|
||||
],
|
||||
'dbuser' => [
|
||||
'type' => 'text',
|
||||
'value' => $v ? $v->dbuser : '',
|
||||
'caption' => __('Database username'),
|
||||
'caption' => 'Database username',
|
||||
],
|
||||
'dbpass' => [
|
||||
'type' => 'password',
|
||||
'value' => '',
|
||||
'caption' => __('Database password'),
|
||||
'caption' => 'Database password',
|
||||
'help' => 'Info 5',
|
||||
],
|
||||
'dbprefix' => [
|
||||
'type' => 'text',
|
||||
'maxlength' => '40',
|
||||
'value' => $v ? $v->dbprefix : '',
|
||||
'caption' => __('Table prefix'),
|
||||
'caption' => 'Table prefix',
|
||||
'help' => 'Info 6',
|
||||
'required' => true,
|
||||
],
|
||||
|
@ -307,7 +307,7 @@ class Install extends Admin
|
|||
'maxlength' => '25',
|
||||
'pattern' => '^.{2,25}$',
|
||||
'value' => $v ? $v->username : '',
|
||||
'caption' => __('Administrator username'),
|
||||
'caption' => 'Administrator username',
|
||||
'help' => 'Info 8',
|
||||
'required' => true,
|
||||
],
|
||||
|
@ -315,7 +315,7 @@ class Install extends Admin
|
|||
'type' => 'password',
|
||||
'pattern' => '^.{16,}$',
|
||||
'value' => '',
|
||||
'caption' => __('Administrator passphrase'),
|
||||
'caption' => 'Administrator passphrase',
|
||||
'help' => 'Info 9',
|
||||
'required' => true,
|
||||
],
|
||||
|
@ -324,7 +324,7 @@ class Install extends Admin
|
|||
'maxlength' => '80',
|
||||
'pattern' => '.+@.+',
|
||||
'value' => $v ? $v->email : '',
|
||||
'caption' => __('Administrator email'),
|
||||
'caption' => 'Administrator email',
|
||||
'help' => 'Info 10',
|
||||
'required' => true,
|
||||
],
|
||||
|
@ -348,33 +348,33 @@ class Install extends Admin
|
|||
'type' => 'text',
|
||||
'maxlength' => '255',
|
||||
'value' => $v ? $v->title : __('My ForkBB Forum'),
|
||||
'caption' => __('Board title'),
|
||||
'caption' => 'Board title',
|
||||
'required' => true,
|
||||
],
|
||||
'descr' => [
|
||||
'type' => 'text',
|
||||
'maxlength' => '16000',
|
||||
'value' => $v ? $v->descr : __('Description'),
|
||||
'caption' => __('Board description'),
|
||||
'caption' => 'Board description',
|
||||
],
|
||||
'baseurl' => [
|
||||
'type' => 'text',
|
||||
'maxlength' => '128',
|
||||
'value' => $v ? $v->baseurl : $this->c->BASE_URL,
|
||||
'caption' => __('Base URL'),
|
||||
'caption' => 'Base URL',
|
||||
'required' => true,
|
||||
],
|
||||
'defaultlang' => [
|
||||
'type' => 'select',
|
||||
'options' => $langs,
|
||||
'value' => $v ? $v->defaultlang : $this->user->language,
|
||||
'caption' => __('Default language'),
|
||||
'caption' => 'Default language',
|
||||
],
|
||||
'defaultstyle' => [
|
||||
'type' => 'select',
|
||||
'options' => $styles,
|
||||
'value' => $v ? $v->defaultstyle : $this->user->style,
|
||||
'caption' => __('Default style'),
|
||||
'caption' => 'Default style',
|
||||
],
|
||||
],
|
||||
],
|
||||
|
@ -395,7 +395,7 @@ class Install extends Admin
|
|||
'type' => 'text',
|
||||
'maxlength' => '128',
|
||||
'value' => $v ? $v->cookie_domain : '',
|
||||
'caption' => __('Cookie Domain'),
|
||||
'caption' => 'Cookie Domain',
|
||||
'help' => 'Cookie Domain info',
|
||||
],
|
||||
'cookie_path' => [
|
||||
|
@ -404,7 +404,7 @@ class Install extends Admin
|
|||
'value' => $v
|
||||
? $v->cookie_path
|
||||
: \rtrim((string) \parse_url($this->c->BASE_URL, \PHP_URL_PATH), '/') . '/',
|
||||
'caption' => __('Cookie Path'),
|
||||
'caption' => 'Cookie Path',
|
||||
'help' => 'Cookie Path info',
|
||||
'required' => true,
|
||||
],
|
||||
|
@ -418,7 +418,7 @@ class Install extends Admin
|
|||
: 0
|
||||
),
|
||||
'values' => [1 => __('Yes '), 0 => __('No ')],
|
||||
'caption' => __('Cookie Secure'),
|
||||
'caption' => 'Cookie Secure',
|
||||
'help' => 'Cookie Secure info',
|
||||
],
|
||||
|
||||
|
|
|
@ -78,13 +78,13 @@ class Maintenance extends Admin
|
|||
'type' => 'radio',
|
||||
'value' => $config->o_maintenance,
|
||||
'values' => [1 => __('Yes'), 0 => __('No')],
|
||||
'caption' => __('Maintenance mode label'),
|
||||
'caption' => 'Maintenance mode label',
|
||||
'help' => 'Maintenance mode help',
|
||||
],
|
||||
'o_maintenance_message' => [
|
||||
'type' => 'textarea',
|
||||
'value' => $config->o_maintenance_message,
|
||||
'caption' => __('Maintenance message label'),
|
||||
'caption' => 'Maintenance message label',
|
||||
'help' => 'Maintenance message help',
|
||||
],
|
||||
],
|
||||
|
@ -126,7 +126,7 @@ class Maintenance extends Admin
|
|||
'min' => '1',
|
||||
'max' => '9999',
|
||||
'value' => '100',
|
||||
'caption' => __('Posts per cycle label'),
|
||||
'caption' => 'Posts per cycle label',
|
||||
'help' => 'Posts per cycle help',
|
||||
],
|
||||
'start' => [
|
||||
|
@ -134,14 +134,14 @@ class Maintenance extends Admin
|
|||
'min' => '1',
|
||||
'max' => '9999999999',
|
||||
'value' => '1',
|
||||
'caption' => __('Starting post label'),
|
||||
'caption' => 'Starting post label',
|
||||
'help' => 'Starting post help',
|
||||
],
|
||||
'clear' => [
|
||||
'type' => 'checkbox',
|
||||
'value' => '1',
|
||||
'checked' => true,
|
||||
'caption' => __('Empty index label'),
|
||||
'caption' => 'Empty index label',
|
||||
'label' => __('Empty index help'),
|
||||
],
|
||||
],
|
||||
|
|
|
@ -208,7 +208,7 @@ class Options extends Admin
|
|||
'type' => 'text',
|
||||
'maxlength' => '255',
|
||||
'value' => $config->o_board_title,
|
||||
'caption' => __('Board title label'),
|
||||
'caption' => 'Board title label',
|
||||
'help' => 'Board title help',
|
||||
'required' => true,
|
||||
# 'autofocus' => true,
|
||||
|
@ -216,7 +216,7 @@ class Options extends Admin
|
|||
'o_board_desc' => [
|
||||
'type' => 'textarea',
|
||||
'value' => $config->o_board_desc,
|
||||
'caption' => __('Board desc label'),
|
||||
'caption' => 'Board desc label',
|
||||
'help' => 'Board desc help',
|
||||
],
|
||||
'o_default_timezone' => [
|
||||
|
@ -264,28 +264,28 @@ class Options extends Admin
|
|||
'14' => __('UTC+14:00'),
|
||||
],
|
||||
'value' => $config->o_default_timezone,
|
||||
'caption' => __('Timezone label'),
|
||||
'caption' => 'Timezone label',
|
||||
'help' => 'Timezone help',
|
||||
],
|
||||
'o_default_dst' => [
|
||||
'type' => 'radio',
|
||||
'value' => $config->o_default_dst,
|
||||
'values' => $yn,
|
||||
'caption' => __('DST label'),
|
||||
'caption' => 'DST label',
|
||||
'help' => 'DST help',
|
||||
],
|
||||
'o_default_lang' => [
|
||||
'type' => 'select',
|
||||
'options' => $langs,
|
||||
'value' => $config->o_default_lang,
|
||||
'caption' => __('Language label'),
|
||||
'caption' => 'Language label',
|
||||
'help' => 'Language help',
|
||||
],
|
||||
'o_default_style' => [
|
||||
'type' => 'select',
|
||||
'options' => $styles,
|
||||
'value' => $config->o_default_style,
|
||||
'caption' => __('Default style label'),
|
||||
'caption' => 'Default style label',
|
||||
'help' => 'Default style help',
|
||||
],
|
||||
],
|
||||
|
@ -301,7 +301,7 @@ class Options extends Admin
|
|||
'min' => '0',
|
||||
'max' => '99999',
|
||||
'value' => $config->o_timeout_visit,
|
||||
'caption' => __('Visit timeout label'),
|
||||
'caption' => 'Visit timeout label',
|
||||
'help' => 'Visit timeout help',
|
||||
],
|
||||
'o_timeout_online' => [
|
||||
|
@ -309,7 +309,7 @@ class Options extends Admin
|
|||
'min' => '0',
|
||||
'max' => '99999',
|
||||
'value' => $config->o_timeout_online,
|
||||
'caption' => __('Online timeout label'),
|
||||
'caption' => 'Online timeout label',
|
||||
'help' => 'Online timeout help',
|
||||
],
|
||||
'o_redirect_delay' => [
|
||||
|
@ -317,7 +317,7 @@ class Options extends Admin
|
|||
'min' => '0',
|
||||
'max' => '99999',
|
||||
'value' => $config->o_redirect_delay,
|
||||
'caption' => __('Redirect time label'),
|
||||
'caption' => 'Redirect time label',
|
||||
'help' => 'Redirect time help',
|
||||
],
|
||||
],
|
||||
|
@ -330,14 +330,14 @@ class Options extends Admin
|
|||
'type' => 'radio',
|
||||
'value' => $config->o_show_user_info,
|
||||
'values' => $yn,
|
||||
'caption' => __('Info in posts label'),
|
||||
'caption' => 'Info in posts label',
|
||||
'help' => 'Info in posts help',
|
||||
],
|
||||
'o_show_post_count' => [
|
||||
'type' => 'radio',
|
||||
'value' => $config->o_show_post_count,
|
||||
'values' => $yn,
|
||||
'caption' => __('Post count label'),
|
||||
'caption' => 'Post count label',
|
||||
'help' => 'Post count help',
|
||||
],
|
||||
'i_disp_topics_default' => [
|
||||
|
@ -345,7 +345,7 @@ class Options extends Admin
|
|||
'min' => '10',
|
||||
'max' => '50',
|
||||
'value' => $config->i_disp_topics_default,
|
||||
'caption' => __('Topics per page label'),
|
||||
'caption' => 'Topics per page label',
|
||||
'help' => 'Topics per page help',
|
||||
],
|
||||
'i_disp_posts_default' => [
|
||||
|
@ -353,7 +353,7 @@ class Options extends Admin
|
|||
'min' => '10',
|
||||
'max' => '50',
|
||||
'value' => $config->i_disp_posts_default,
|
||||
'caption' => __('Posts per page label'),
|
||||
'caption' => 'Posts per page label',
|
||||
'help' => 'Posts per page help',
|
||||
],
|
||||
'i_disp_users' => [
|
||||
|
@ -361,7 +361,7 @@ class Options extends Admin
|
|||
'min' => '10',
|
||||
'max' => '50',
|
||||
'value' => $config->i_disp_users,
|
||||
'caption' => __('Users per page label'),
|
||||
'caption' => 'Users per page label',
|
||||
'help' => 'Users per page help',
|
||||
],
|
||||
'i_topic_review' => [
|
||||
|
@ -369,35 +369,35 @@ class Options extends Admin
|
|||
'min' => '0',
|
||||
'max' => '50',
|
||||
'value' => $config->i_topic_review,
|
||||
'caption' => __('Topic review label'),
|
||||
'caption' => 'Topic review label',
|
||||
'help' => 'Topic review help',
|
||||
],
|
||||
'p_message_all_caps' => [
|
||||
'type' => 'radio',
|
||||
'value' => $config->p_message_all_caps,
|
||||
'values' => $yn,
|
||||
'caption' => __('All caps message label'),
|
||||
'caption' => 'All caps message label',
|
||||
'help' => 'All caps message help',
|
||||
],
|
||||
'p_subject_all_caps' => [
|
||||
'type' => 'radio',
|
||||
'value' => $config->p_subject_all_caps,
|
||||
'values' => $yn,
|
||||
'caption' => __('All caps subject label'),
|
||||
'caption' => 'All caps subject label',
|
||||
'help' => 'All caps subject help',
|
||||
],
|
||||
'p_sig_all_caps' => [
|
||||
'type' => 'radio',
|
||||
'value' => $config->p_sig_all_caps,
|
||||
'values' => $yn,
|
||||
'caption' => __('All caps sigs label'),
|
||||
'caption' => 'All caps sigs label',
|
||||
'help' => 'All caps sigs help',
|
||||
],
|
||||
'p_force_guest_email' => [
|
||||
'type' => 'radio',
|
||||
'value' => $config->p_force_guest_email,
|
||||
'values' => $yn,
|
||||
'caption' => __('Require e-mail label'),
|
||||
'caption' => 'Require e-mail label',
|
||||
'help' => 'Require e-mail help',
|
||||
],
|
||||
],
|
||||
|
@ -410,48 +410,48 @@ class Options extends Admin
|
|||
'type' => 'radio',
|
||||
'value' => $config->o_quickpost,
|
||||
'values' => $yn,
|
||||
'caption' => __('Quick post label'),
|
||||
'caption' => 'Quick post label',
|
||||
'help' => 'Quick post help',
|
||||
],
|
||||
'o_users_online' => [
|
||||
'type' => 'radio',
|
||||
'value' => $config->o_users_online,
|
||||
'values' => $yn,
|
||||
'caption' => __('Users online label'),
|
||||
'caption' => 'Users online label',
|
||||
'help' => 'Users online help',
|
||||
],
|
||||
'o_show_dot' => [
|
||||
'type' => 'radio',
|
||||
'value' => $config->o_show_dot,
|
||||
'values' => $yn,
|
||||
'caption' => __('User has posted label'),
|
||||
'caption' => 'User has posted label',
|
||||
'help' => 'User has posted help',
|
||||
],
|
||||
'o_topic_views' => [
|
||||
'type' => 'radio',
|
||||
'value' => $config->o_topic_views,
|
||||
'values' => $yn,
|
||||
'caption' => __('Topic views label'),
|
||||
'caption' => 'Topic views label',
|
||||
'help' => 'Topic views help',
|
||||
],
|
||||
'o_quickjump' => [
|
||||
'type' => 'radio',
|
||||
'value' => $config->o_quickjump,
|
||||
'values' => $yn,
|
||||
'caption' => __('Quick jump label'),
|
||||
'caption' => 'Quick jump label',
|
||||
'help' => 'Quick jump help',
|
||||
],
|
||||
'o_search_all_forums' => [ //????
|
||||
'type' => 'radio',
|
||||
'value' => $config->o_search_all_forums,
|
||||
'values' => $yn,
|
||||
'caption' => __('Search all label'),
|
||||
'caption' => 'Search all label',
|
||||
'help' => 'Search all help',
|
||||
],
|
||||
'o_additional_navlinks' => [
|
||||
'type' => 'textarea',
|
||||
'value' => $config->o_additional_navlinks,
|
||||
'caption' => __('Menu items label'),
|
||||
'caption' => 'Menu items label',
|
||||
'help' => 'Menu items help',
|
||||
],
|
||||
|
||||
|
@ -469,7 +469,7 @@ class Options extends Admin
|
|||
1 => __('RSS'),
|
||||
2 => __('Atom'),
|
||||
],
|
||||
'caption' => __('Default feed label'),
|
||||
'caption' => 'Default feed label',
|
||||
'help' => 'Default feed help',
|
||||
],
|
||||
'i_feed_ttl' => [
|
||||
|
@ -482,7 +482,7 @@ class Options extends Admin
|
|||
60 => __(['%d Minutes', 60]),
|
||||
],
|
||||
'value' => $config->i_feed_ttl,
|
||||
'caption' => __('Feed TTL label'),
|
||||
'caption' => 'Feed TTL label',
|
||||
'help' => 'Feed TTL help',
|
||||
],
|
||||
|
||||
|
@ -500,13 +500,13 @@ class Options extends Admin
|
|||
1 => __('By e-mail'),
|
||||
2 => __('Both'),
|
||||
],
|
||||
'caption' => __('Reporting method label'),
|
||||
'caption' => 'Reporting method label',
|
||||
'help' => 'Reporting method help',
|
||||
],
|
||||
'o_mailing_list' => [
|
||||
'type' => 'textarea',
|
||||
'value' => $config->o_mailing_list,
|
||||
'caption' => __('Mailing list label'),
|
||||
'caption' => 'Mailing list label',
|
||||
'help' => 'Mailing list help',
|
||||
],
|
||||
],
|
||||
|
@ -519,14 +519,14 @@ class Options extends Admin
|
|||
'type' => 'radio',
|
||||
'value' => $config->o_avatars,
|
||||
'values' => $yn,
|
||||
'caption' => __('Use avatars label'),
|
||||
'caption' => 'Use avatars label',
|
||||
'help' => 'Use avatars help',
|
||||
],
|
||||
'o_avatars_dir' => [ //????
|
||||
'type' => 'text',
|
||||
'maxlength' => '255',
|
||||
'value' => $config->o_avatars_dir,
|
||||
'caption' => __('Upload directory label'),
|
||||
'caption' => 'Upload directory label',
|
||||
'help' => ['Upload directory help', $this->c->PUBLIC_URL],
|
||||
'required' => true,
|
||||
],
|
||||
|
@ -535,7 +535,7 @@ class Options extends Admin
|
|||
'min' => '50',
|
||||
'max' => '999',
|
||||
'value' => $config->i_avatars_width,
|
||||
'caption' => __('Max width label'),
|
||||
'caption' => 'Max width label',
|
||||
'help' => 'Max width help',
|
||||
],
|
||||
'i_avatars_height' => [
|
||||
|
@ -543,7 +543,7 @@ class Options extends Admin
|
|||
'min' => '50',
|
||||
'max' => '999',
|
||||
'value' => $config->i_avatars_height,
|
||||
'caption' => __('Max height label'),
|
||||
'caption' => 'Max height label',
|
||||
'help' => 'Max height help',
|
||||
],
|
||||
'i_avatars_size' => [
|
||||
|
@ -551,7 +551,7 @@ class Options extends Admin
|
|||
'min' => '0',
|
||||
'max' => '9999999',
|
||||
'value' => $config->i_avatars_size,
|
||||
'caption' => __('Max size label'),
|
||||
'caption' => 'Max size label',
|
||||
'help' => 'Max size help',
|
||||
],
|
||||
],
|
||||
|
@ -564,7 +564,7 @@ class Options extends Admin
|
|||
'type' => 'text',
|
||||
'maxlength' => '80',
|
||||
'value' => $config->o_admin_email,
|
||||
'caption' => __('Admin e-mail label'),
|
||||
'caption' => 'Admin e-mail label',
|
||||
'help' => 'Admin e-mail help',
|
||||
'required' => true,
|
||||
'pattern' => '.+@.+',
|
||||
|
@ -573,7 +573,7 @@ class Options extends Admin
|
|||
'type' => 'text',
|
||||
'maxlength' => '80',
|
||||
'value' => $config->o_webmaster_email,
|
||||
'caption' => __('Webmaster e-mail label'),
|
||||
'caption' => 'Webmaster e-mail label',
|
||||
'help' => 'Webmaster e-mail help',
|
||||
'required' => true,
|
||||
'pattern' => '.+@.+',
|
||||
|
@ -582,14 +582,14 @@ class Options extends Admin
|
|||
'type' => 'radio',
|
||||
'value' => $config->o_forum_subscriptions,
|
||||
'values' => $yn,
|
||||
'caption' => __('Forum subscriptions label'),
|
||||
'caption' => 'Forum subscriptions label',
|
||||
'help' => 'Forum subscriptions help',
|
||||
],
|
||||
'o_topic_subscriptions' => [
|
||||
'type' => 'radio',
|
||||
'value' => $config->o_topic_subscriptions,
|
||||
'values' => $yn,
|
||||
'caption' => __('Topic subscriptions label'),
|
||||
'caption' => 'Topic subscriptions label',
|
||||
'help' => 'Topic subscriptions help',
|
||||
],
|
||||
'i_email_max_recipients' => [
|
||||
|
@ -597,28 +597,28 @@ class Options extends Admin
|
|||
'min' => '1',
|
||||
'max' => '99999',
|
||||
'value' => $config->i_email_max_recipients,
|
||||
'caption' => __('Email max recipients label'),
|
||||
'caption' => 'Email max recipients label',
|
||||
'help' => 'Email max recipients help',
|
||||
],
|
||||
'o_smtp_host' => [
|
||||
'type' => 'text',
|
||||
'maxlength' => '255',
|
||||
'value' => $config->o_smtp_host,
|
||||
'caption' => __('SMTP address label'),
|
||||
'caption' => 'SMTP address label',
|
||||
'help' => 'SMTP address help',
|
||||
],
|
||||
'o_smtp_user' => [
|
||||
'type' => 'text',
|
||||
'maxlength' => '255',
|
||||
'value' => $config->o_smtp_user,
|
||||
'caption' => __('SMTP username label'),
|
||||
'caption' => 'SMTP username label',
|
||||
'help' => 'SMTP username help',
|
||||
],
|
||||
'o_smtp_pass' => [
|
||||
'type' => 'password',
|
||||
'maxlength' => '255',
|
||||
'value' => $config->o_smtp_pass ? ' ' : null,
|
||||
'caption' => __('SMTP password label'),
|
||||
'caption' => 'SMTP password label',
|
||||
'help' => 'SMTP password help',
|
||||
],
|
||||
'changeSmtpPassword' => [
|
||||
|
@ -631,7 +631,7 @@ class Options extends Admin
|
|||
'type' => 'radio',
|
||||
'value' => $config->o_smtp_ssl,
|
||||
'values' => $yn,
|
||||
'caption' => __('SMTP SSL label'),
|
||||
'caption' => 'SMTP SSL label',
|
||||
'help' => 'SMTP SSL help',
|
||||
],
|
||||
],
|
||||
|
@ -644,34 +644,34 @@ class Options extends Admin
|
|||
'type' => 'radio',
|
||||
'value' => $config->o_regs_allow,
|
||||
'values' => $yn,
|
||||
'caption' => __('Allow new label'),
|
||||
'caption' => 'Allow new label',
|
||||
'help' => 'Allow new help',
|
||||
],
|
||||
'o_regs_verify' => [
|
||||
'type' => 'radio',
|
||||
'value' => $config->o_regs_verify,
|
||||
'values' => $yn,
|
||||
'caption' => __('Verify label'),
|
||||
'caption' => 'Verify label',
|
||||
'help' => 'Verify help',
|
||||
],
|
||||
'o_regs_report' => [
|
||||
'type' => 'radio',
|
||||
'value' => $config->o_regs_report,
|
||||
'values' => $yn,
|
||||
'caption' => __('Report new label'),
|
||||
'caption' => 'Report new label',
|
||||
'help' => 'Report new help',
|
||||
],
|
||||
'o_rules' => [
|
||||
'type' => 'radio',
|
||||
'value' => $config->o_rules,
|
||||
'values' => $yn,
|
||||
'caption' => __('Use rules label'),
|
||||
'caption' => 'Use rules label',
|
||||
'help' => 'Use rules help',
|
||||
],
|
||||
'o_rules_message' => [
|
||||
'type' => 'textarea',
|
||||
'value' => $config->o_rules_message,
|
||||
'caption' => __('Rules label'),
|
||||
'caption' => 'Rules label',
|
||||
'help' => 'Rules help',
|
||||
],
|
||||
'i_default_email_setting' => [
|
||||
|
@ -683,7 +683,7 @@ class Options extends Admin
|
|||
1 => __('Hide allow form label'),
|
||||
2 => __('Hide both label'),
|
||||
],
|
||||
'caption' => __('E-mail default label'),
|
||||
'caption' => 'E-mail default label',
|
||||
'help' => 'E-mail default help',
|
||||
],
|
||||
],
|
||||
|
@ -696,13 +696,13 @@ class Options extends Admin
|
|||
'type' => 'radio',
|
||||
'value' => $config->o_announcement,
|
||||
'values' => $yn,
|
||||
'caption' => __('Display announcement label'),
|
||||
'caption' => 'Display announcement label',
|
||||
'help' => 'Display announcement help',
|
||||
],
|
||||
'o_announcement_message' => [
|
||||
'type' => 'textarea',
|
||||
'value' => $config->o_announcement_message,
|
||||
'caption' => __('Announcement message label'),
|
||||
'caption' => 'Announcement message label',
|
||||
'help' => 'Announcement message help',
|
||||
],
|
||||
|
||||
|
@ -716,14 +716,14 @@ class Options extends Admin
|
|||
'type' => 'radio',
|
||||
'value' => $config->b_poll_enabled,
|
||||
'values' => $yn,
|
||||
'caption' => __('Allow polls label'),
|
||||
'caption' => 'Allow polls label',
|
||||
],
|
||||
'i_poll_max_questions' => [
|
||||
'type' => 'number',
|
||||
'min' => '1',
|
||||
'max' => '99',
|
||||
'value' => $config->i_poll_max_questions,
|
||||
'caption' => __('Max questions label'),
|
||||
'caption' => 'Max questions label',
|
||||
'help' => 'Max questions help',
|
||||
],
|
||||
'i_poll_max_fields' => [
|
||||
|
@ -731,7 +731,7 @@ class Options extends Admin
|
|||
'min' => '2',
|
||||
'max' => '99',
|
||||
'value' => $config->i_poll_max_fields,
|
||||
'caption' => __('Max options label'),
|
||||
'caption' => 'Max options label',
|
||||
'help' => 'Max options help',
|
||||
],
|
||||
'i_poll_time' => [
|
||||
|
@ -739,7 +739,7 @@ class Options extends Admin
|
|||
'min' => '0',
|
||||
'max' => '999999',
|
||||
'value' => $config->i_poll_time,
|
||||
'caption' => __('Poll edit time label'),
|
||||
'caption' => 'Poll edit time label',
|
||||
'help' => 'Poll edit time help',
|
||||
],
|
||||
'i_poll_term' => [
|
||||
|
@ -747,14 +747,14 @@ class Options extends Admin
|
|||
'min' => '0',
|
||||
'max' => '99',
|
||||
'value' => $config->i_poll_term,
|
||||
'caption' => __('Hidden voices label'),
|
||||
'caption' => 'Hidden voices label',
|
||||
'help' => 'Hidden voices help',
|
||||
],
|
||||
'b_poll_guest' => [
|
||||
'type' => 'radio',
|
||||
'value' => $config->b_poll_guest,
|
||||
'values' => $yn,
|
||||
'caption' => __('Result for guest label'),
|
||||
'caption' => 'Result for guest label',
|
||||
'help' => 'Result for guest help',
|
||||
],
|
||||
],
|
||||
|
@ -767,7 +767,7 @@ class Options extends Admin
|
|||
'type' => 'radio',
|
||||
'value' => $config->b_pm,
|
||||
'values' => $yn,
|
||||
'caption' => __('Allow PM label'),
|
||||
'caption' => 'Allow PM label',
|
||||
'help' => ['Allow PM help', __('User groups'), $this->c->Router->link('AdminGroups')],
|
||||
],
|
||||
],
|
||||
|
|
|
@ -151,7 +151,7 @@ class BBCode extends Parser
|
|||
'class' => ['bbcode', 'tag'],
|
||||
'type' => $tagData['bb_edit'] > 0 ? 'link' : 'str',
|
||||
'value' => $tag,
|
||||
'caption' => __('BBCode tag label'),
|
||||
'caption' => 'BBCode tag label',
|
||||
'title' => __('BBCode tag title'),
|
||||
'href' => 1 === $tagData['bb_edit']
|
||||
? $this->c->Router->link('AdminBBCodeEdit', ['id' => $id])
|
||||
|
@ -162,7 +162,7 @@ class BBCode extends Parser
|
|||
'type' => 'select',
|
||||
'options' => $selectList,
|
||||
'value' => $this->getValue($tag, $this->c->config->a_bb_white_mes, $this->c->config->a_bb_black_mes),
|
||||
'caption' => __('BBCode mes label'),
|
||||
'caption' => 'BBCode mes label',
|
||||
'disabled' => 'ROOT' === $tag,
|
||||
];
|
||||
$fields["bbcode[{$tag}][in_sig]"] = [
|
||||
|
@ -170,14 +170,14 @@ class BBCode extends Parser
|
|||
'type' => 'select',
|
||||
'options' => $selectList,
|
||||
'value' => $this->getValue($tag, $this->c->config->a_bb_white_sig, $this->c->config->a_bb_black_sig),
|
||||
'caption' => __('BBCode sig label'),
|
||||
'caption' => 'BBCode sig label',
|
||||
'disabled' => 'ROOT' === $tag,
|
||||
];
|
||||
$fields["bbcode{$id}-del"] = [
|
||||
'class' => ['bbcode', 'delete'],
|
||||
'type' => 'btn',
|
||||
'value' => '❌',
|
||||
'caption' => __('Delete'),
|
||||
'caption' => 'Delete',
|
||||
'title' => __('Delete'),
|
||||
'link' => $this->c->Router->link(
|
||||
'AdminBBCodeDelete',
|
||||
|
@ -438,7 +438,7 @@ class BBCode extends Parser
|
|||
'tag' => [
|
||||
'type' => $id > 0 ? 'str' : 'text',
|
||||
'value' => $structure->tag,
|
||||
'caption' => __('Tag label'),
|
||||
'caption' => 'Tag label',
|
||||
'help' => 'Tag info',
|
||||
'maxlength' => '11',
|
||||
'pattern' => '^[a-z\*][a-z\d-]{0,10}$',
|
||||
|
@ -448,13 +448,13 @@ class BBCode extends Parser
|
|||
'type' => 'select',
|
||||
'options' => $this->bbTypes,
|
||||
'value' => $structure->type,
|
||||
'caption' => __('Type label'),
|
||||
'caption' => 'Type label',
|
||||
'help' => 'Type info',
|
||||
],
|
||||
'type_new' => [
|
||||
'type' => 'text',
|
||||
'value' => isset($this->bbTypes[$structure->type]) ? '' : $structure->type,
|
||||
'caption' => __('Type label'),
|
||||
'caption' => 'Type label',
|
||||
'help' => 'New type info',
|
||||
'maxlength' => '20',
|
||||
'pattern' => '^[a-z][a-z\d-]{0,19}$',
|
||||
|
@ -463,7 +463,7 @@ class BBCode extends Parser
|
|||
'type' => 'multiselect',
|
||||
'options' => $this->bbTypes,
|
||||
'value' => $structure->parents,
|
||||
'caption' => __('Parents label'),
|
||||
'caption' => 'Parents label',
|
||||
'help' => 'Parents info',
|
||||
'size' => \min(15, \count($this->bbTypes)),
|
||||
'required' => true,
|
||||
|
@ -472,56 +472,56 @@ class BBCode extends Parser
|
|||
'class' => 'handler',
|
||||
'type' => 'textarea',
|
||||
'value' => $structure->handler,
|
||||
'caption' => __('Handler label'),
|
||||
'caption' => 'Handler label',
|
||||
'help' => 'Handler info',
|
||||
],
|
||||
'text_handler' => [
|
||||
'class' => 'handler',
|
||||
'type' => 'textarea',
|
||||
'value' => $structure->text_handler,
|
||||
'caption' => __('Text handler label'),
|
||||
'caption' => 'Text handler label',
|
||||
'help' => 'Text handler info',
|
||||
],
|
||||
'recursive' => [
|
||||
'type' => 'radio',
|
||||
'value' => true === $structure->recursive ? 1 : 0,
|
||||
'values' => $yn,
|
||||
'caption' => __('Recursive label'),
|
||||
'caption' => 'Recursive label',
|
||||
'help' => 'Recursive info',
|
||||
],
|
||||
'text_only' => [
|
||||
'type' => 'radio',
|
||||
'value' => true === $structure->text_only ? 1 : 0,
|
||||
'values' => $yn,
|
||||
'caption' => __('Text only label'),
|
||||
'caption' => 'Text only label',
|
||||
'help' => 'Text only info',
|
||||
],
|
||||
'tags_only' => [
|
||||
'type' => 'radio',
|
||||
'value' => true === $structure->tags_only ? 1 : 0,
|
||||
'values' => $yn,
|
||||
'caption' => __('Tags only label'),
|
||||
'caption' => 'Tags only label',
|
||||
'help' => 'Tags only info',
|
||||
],
|
||||
'pre' => [
|
||||
'type' => 'radio',
|
||||
'value' => true === $structure->pre ? 1 : 0,
|
||||
'values' => $yn,
|
||||
'caption' => __('Pre label'),
|
||||
'caption' => 'Pre label',
|
||||
'help' => 'Pre info',
|
||||
],
|
||||
'single' => [
|
||||
'type' => 'radio',
|
||||
'value' => true === $structure->single ? 1 : 0,
|
||||
'values' => $yn,
|
||||
'caption' => __('Single label'),
|
||||
'caption' => 'Single label',
|
||||
'help' => 'Single info',
|
||||
],
|
||||
'auto' => [
|
||||
'type' => 'radio',
|
||||
'value' => true === $structure->auto ? 1 : 0,
|
||||
'values' => $yn,
|
||||
'caption' => __('Auto label'),
|
||||
'caption' => 'Auto label',
|
||||
'help' => 'Auto info',
|
||||
],
|
||||
'self_nesting' => [
|
||||
|
@ -529,7 +529,7 @@ class BBCode extends Parser
|
|||
'value' => $structure->self_nesting > 0 ? $structure->self_nesting : 0,
|
||||
'min' => '0',
|
||||
'max' => '10',
|
||||
'caption' => __('Self nesting label'),
|
||||
'caption' => 'Self nesting label',
|
||||
'help' => 'Self nesting info',
|
||||
],
|
||||
],
|
||||
|
@ -588,7 +588,7 @@ class BBCode extends Parser
|
|||
$fields["{$key}[name]"] = [
|
||||
'type' => 'text',
|
||||
'value' => $data['name'] ?? '',
|
||||
'caption' => __('Attribute name label'),
|
||||
'caption' => 'Attribute name label',
|
||||
'help' => 'Attribute name info',
|
||||
'maxlength' => '15',
|
||||
'pattern' => '^[a-z-]{2,15}$',
|
||||
|
@ -599,7 +599,7 @@ class BBCode extends Parser
|
|||
'type' => 'radio',
|
||||
'value' => null === $data ? 0 : 1,
|
||||
'values' => $yn,
|
||||
'caption' => __('Allowed label'),
|
||||
'caption' => 'Allowed label',
|
||||
'help' => $info,
|
||||
];
|
||||
if ('no_attr' !== $name) {
|
||||
|
@ -607,14 +607,14 @@ class BBCode extends Parser
|
|||
'type' => 'radio',
|
||||
'value' => empty($data['required']) ? 0 : 1,
|
||||
'values' => $yn,
|
||||
'caption' => __('Required label'),
|
||||
'caption' => 'Required label',
|
||||
'help' => 'Required info',
|
||||
];
|
||||
$fields["{$key}[format]"] = [
|
||||
'class' => 'format',
|
||||
'type' => 'text',
|
||||
'value' => $data['format'] ?? '',
|
||||
'caption' => __('Format label'),
|
||||
'caption' => 'Format label',
|
||||
'help' => 'Format info',
|
||||
];
|
||||
}
|
||||
|
@ -622,14 +622,14 @@ class BBCode extends Parser
|
|||
'class' => 'format',
|
||||
'type' => 'text',
|
||||
'value' => $data['body_format'] ?? '',
|
||||
'caption' => __('Body format label'),
|
||||
'caption' => 'Body format label',
|
||||
'help' => 'Body format info',
|
||||
];
|
||||
$fields["{$key}[text_only]"] = [
|
||||
'type' => 'radio',
|
||||
'value' => empty($data['text_only']) ? 0 : 1,
|
||||
'values' => $yn,
|
||||
'caption' => __('Text only label'),
|
||||
'caption' => 'Text only label',
|
||||
'help' => 'Text only info',
|
||||
];
|
||||
|
||||
|
|
|
@ -94,21 +94,21 @@ class Edit extends Parser
|
|||
'type' => 'radio',
|
||||
'value' => $config->p_message_bbcode,
|
||||
'values' => $yn,
|
||||
'caption' => __('BBCode label'),
|
||||
'caption' => 'BBCode label',
|
||||
'help' => 'BBCode help',
|
||||
],
|
||||
'p_sig_bbcode' => [
|
||||
'type' => 'radio',
|
||||
'value' => $config->p_sig_bbcode,
|
||||
'values' => $yn,
|
||||
'caption' => __('BBCode sigs label'),
|
||||
'caption' => 'BBCode sigs label',
|
||||
'help' => 'BBCode sigs help',
|
||||
],
|
||||
'o_make_links' => [
|
||||
'type' => 'radio',
|
||||
'value' => $config->o_make_links,
|
||||
'values' => $yn,
|
||||
'caption' => __('Clickable links label'),
|
||||
'caption' => 'Clickable links label',
|
||||
'help' => 'Clickable links help',
|
||||
],
|
||||
'bbcode_management' => [
|
||||
|
@ -128,14 +128,14 @@ class Edit extends Parser
|
|||
'type' => 'radio',
|
||||
'value' => $config->o_smilies,
|
||||
'values' => $yn,
|
||||
'caption' => __('Smilies mess label'),
|
||||
'caption' => 'Smilies mess label',
|
||||
'help' => 'Smilies mess help',
|
||||
],
|
||||
'o_smilies_sig' => [
|
||||
'type' => 'radio',
|
||||
'value' => $config->o_smilies_sig,
|
||||
'values' => $yn,
|
||||
'caption' => __('Smilies sigs label'),
|
||||
'caption' => 'Smilies sigs label',
|
||||
'help' => 'Smilies sigs help',
|
||||
],
|
||||
'smilies_management' => [
|
||||
|
|
|
@ -169,7 +169,7 @@ class Smilies extends Parser
|
|||
'type' => 'text',
|
||||
'maxlength' => '20',
|
||||
'value' => $data['smilies'][$id]['sm_code'] ?? $cur['sm_code'],
|
||||
'caption' => __('Smiley code label'),
|
||||
'caption' => 'Smiley code label',
|
||||
'required' => true,
|
||||
];
|
||||
$fields["smilies[{$id}][sm_position]"] = [
|
||||
|
@ -178,7 +178,7 @@ class Smilies extends Parser
|
|||
'min' => '0',
|
||||
'max' => '9999',
|
||||
'value' => $data['smilies'][$id]['sm_position'] ?? $cur['sm_position'],
|
||||
'caption' => __('Position label'),
|
||||
'caption' => 'Position label',
|
||||
'required' => true,
|
||||
];
|
||||
$fields["smilies[{$id}][sm_image]"] = [
|
||||
|
@ -186,20 +186,20 @@ class Smilies extends Parser
|
|||
'type' => 'select',
|
||||
'options' => $imageList,
|
||||
'value' => $data['smilies'][$id]['sm_image'] ?? $cur['sm_image'],
|
||||
'caption' => __('Name label'),
|
||||
'caption' => 'Name label',
|
||||
];
|
||||
$fields["smile{$id}-pic"] = [
|
||||
'class' => ['pic', 'smile'],
|
||||
'type' => 'str',
|
||||
'value' => __(['<img src="%1$s" alt="%2$s">', $this->c->PUBLIC_URL . '/img/sm/' . $cur['sm_image'], $cur['sm_image']]),
|
||||
'caption' => __('Picture label'),
|
||||
'caption' => 'Picture label',
|
||||
'html' => true,
|
||||
];
|
||||
$fields["smile{$id}-del"] = [
|
||||
'class' => ['delete', 'smile'],
|
||||
'type' => 'btn',
|
||||
'value' => '❌',
|
||||
'caption' => __('Delete'),
|
||||
'caption' => 'Delete',
|
||||
'title' => __('Delete'),
|
||||
'link' => $this->c->Router->link(
|
||||
'AdminSmiliesDelete',
|
||||
|
@ -227,7 +227,7 @@ class Smilies extends Parser
|
|||
'type' => 'text',
|
||||
'maxlength' => '20',
|
||||
'value' => $data['new_sm_code'] ?? '',
|
||||
'caption' => __('Smiley code label'),
|
||||
'caption' => 'Smiley code label',
|
||||
],
|
||||
'new_sm_position' => [
|
||||
'class' => ['position', 'new-smile'],
|
||||
|
@ -235,14 +235,14 @@ class Smilies extends Parser
|
|||
'min' => '0',
|
||||
'max' => '9999',
|
||||
'value' => $data['new_sm_position'] ?? $max + 1,
|
||||
'caption' => __('Position label'),
|
||||
'caption' => 'Position label',
|
||||
],
|
||||
'new_sm_image' => [
|
||||
'class' => ['image', 'new-smile'],
|
||||
'type' => 'select',
|
||||
'options' => $imageList,
|
||||
'value' => $data['new_image'] ?? null,
|
||||
'caption' => __('Name label'),
|
||||
'caption' => 'Name label',
|
||||
],
|
||||
],
|
||||
];
|
||||
|
@ -272,20 +272,20 @@ class Smilies extends Parser
|
|||
'class' => ['pic', 'image'],
|
||||
'type' => 'str',
|
||||
'value' => __(['<img src="%1$s" alt="%2$s">', $this->c->PUBLIC_URL . '/img/sm/' . $name, $name]),
|
||||
'caption' => __('Picture label'),
|
||||
'caption' => 'Picture label',
|
||||
'html' => true,
|
||||
];
|
||||
$fields["image{$key}-name"] = [
|
||||
'class' => ['name', 'image'],
|
||||
'type' => 'str',
|
||||
'value' => $name,
|
||||
'caption' => __('Name label'),
|
||||
'caption' => 'Name label',
|
||||
];
|
||||
$fields["image{$key}-del"] = [
|
||||
'class' => ['delete', 'image'],
|
||||
'type' => 'link',
|
||||
'value' => '❌',
|
||||
'caption' => __('Delete'),
|
||||
'caption' => 'Delete',
|
||||
'title' => __('Delete'),
|
||||
'href' => $this->c->Router->link(
|
||||
'AdminSmiliesDelete',
|
||||
|
@ -324,7 +324,7 @@ class Smilies extends Parser
|
|||
'fields' => [
|
||||
'upload_image' => [
|
||||
'type' => 'file',
|
||||
'caption' => __('Upload image label'),
|
||||
'caption' => 'Upload image label',
|
||||
'help' => 'Upload image info',
|
||||
'accept' => $this->accept,
|
||||
],
|
||||
|
|
|
@ -90,7 +90,7 @@ class Reports extends Admin
|
|||
'type' => $author->isGuest ? 'str' : 'link',
|
||||
'value' => $author->username,
|
||||
'title' => $author->username,
|
||||
'caption' => __('Reported by'),
|
||||
'caption' => 'Reported by',
|
||||
'href' => $author->link,
|
||||
];
|
||||
$post = $report->post;
|
||||
|
@ -112,7 +112,7 @@ class Reports extends Admin
|
|||
'class' => 'reason',
|
||||
'type' => 'str',
|
||||
'value' => $report->message,
|
||||
'caption' => __('Reason'),
|
||||
'caption' => 'Reason',
|
||||
];
|
||||
if ($noZapped) {
|
||||
$cur['fields']['zap' . $report->id] = [
|
||||
|
|
|
@ -300,14 +300,14 @@ class Update extends Admin
|
|||
'dbpass' => [
|
||||
'type' => 'password',
|
||||
'value' => '',
|
||||
'caption' => __('Database password'),
|
||||
'caption' => 'Database password',
|
||||
'help' => 'Database password note',
|
||||
'required' => true,
|
||||
],
|
||||
'o_maintenance_message' => [
|
||||
'type' => 'textarea',
|
||||
'value' => $v ? $v->o_maintenance_message : $this->c->config->o_maintenance_message,
|
||||
'caption' => __('Maintenance message'),
|
||||
'caption' => 'Maintenance message',
|
||||
'help' => 'Maintenance message info',
|
||||
'required' => true,
|
||||
],
|
||||
|
|
|
@ -172,14 +172,14 @@ class Action extends Users
|
|||
'type' => 'radio',
|
||||
'value' => 0,
|
||||
'values' => $yn,
|
||||
'caption' => __('Delete users'),
|
||||
'caption' => 'Delete users',
|
||||
'help' => ['Confirm delete info', $names],
|
||||
],
|
||||
'delete_posts' => [
|
||||
'type' => 'radio',
|
||||
'value' => 0,
|
||||
'values' => $yn,
|
||||
'caption' => __('Delete posts'),
|
||||
'caption' => 'Delete posts',
|
||||
],
|
||||
],
|
||||
],
|
||||
|
@ -339,14 +339,14 @@ class Action extends Users
|
|||
'type' => 'select',
|
||||
'options' => $this->groupListForChange($profile),
|
||||
'value' => $this->c->config->i_default_user_group,
|
||||
'caption' => __('New group label'),
|
||||
'caption' => 'New group label',
|
||||
'help' => ['New group help', $names],
|
||||
],
|
||||
'confirm' => [
|
||||
'type' => 'radio',
|
||||
'value' => 0,
|
||||
'values' => $yn,
|
||||
'caption' => __('Move users'),
|
||||
'caption' => 'Move users',
|
||||
],
|
||||
],
|
||||
],
|
||||
|
@ -367,7 +367,7 @@ class Action extends Users
|
|||
if ($checkPass) {
|
||||
$form['sets']['options']['fields']['password'] = [
|
||||
'type' => 'password',
|
||||
'caption' => __('Your passphrase'),
|
||||
'caption' => 'Your passphrase',
|
||||
'required' => true,
|
||||
];
|
||||
}
|
||||
|
|
|
@ -102,7 +102,7 @@ class NewUser extends Users
|
|||
'type' => 'text',
|
||||
'maxlength' => '25',
|
||||
'value' => $data['username'] ?? null,
|
||||
'caption' => __('Username'),
|
||||
'caption' => 'Username',
|
||||
'help' => 'Login format',
|
||||
'required' => true,
|
||||
'pattern' => '^.{2,25}$',
|
||||
|
@ -111,14 +111,14 @@ class NewUser extends Users
|
|||
'type' => 'text',
|
||||
'maxlength' => '80',
|
||||
'value' => $data['email'] ?? null,
|
||||
'caption' => __('Email'),
|
||||
'caption' => 'Email',
|
||||
'help' => 'Email info',
|
||||
'required' => true,
|
||||
'pattern' => '.+@.+',
|
||||
],
|
||||
'password' => [
|
||||
'type' => 'text',
|
||||
'caption' => __('Passphrase'),
|
||||
'caption' => 'Passphrase',
|
||||
'help' => 'Passphrase help',
|
||||
'required' => true,
|
||||
'pattern' => '^.{16,}$',
|
||||
|
|
|
@ -277,14 +277,14 @@ class Result extends Users
|
|||
$fields["l{$number}-username"] = [
|
||||
'class' => ['result', 'username'],
|
||||
'type' => $user->isGuest ? 'str' : 'link',
|
||||
'caption' => __('Results username head'),
|
||||
'caption' => 'Results username head',
|
||||
'value' => $user->username,
|
||||
'href' => $user->link,
|
||||
];
|
||||
$fields["l{$number}-email"] = [
|
||||
'class' => $user->isGuest ? ['result', 'email', 'no-data'] : ['result', 'email'],
|
||||
'type' => $user->isGuest ? 'str' : 'link',
|
||||
'caption' => __('Results e-mail head'),
|
||||
'caption' => 'Results e-mail head',
|
||||
'value' => $user->isGuest ? '' : $user->email,
|
||||
'href' => $user->isGuest ? '' : 'mailto:' . $user->email,
|
||||
];
|
||||
|
@ -294,13 +294,13 @@ class Result extends Users
|
|||
$fields["l{$number}-title"] = [
|
||||
'class' => ['result', 'title'],
|
||||
'type' => 'str',
|
||||
'caption' => __('Results title head'),
|
||||
'caption' => 'Results title head',
|
||||
'value' => -1 === $user->id ? null : $user->title(),
|
||||
];
|
||||
$fields["l{$number}-posts"] = [
|
||||
'class' => $user->isGuest ? ['result', 'posts', 'no-data'] : ['result', 'posts'],
|
||||
'type' => $user->num_posts ? 'link' : 'str',
|
||||
'caption' => __('Results posts head'),
|
||||
'caption' => 'Results posts head',
|
||||
'value' => $user->num_posts ? \ForkBB\num($user->num_posts) : null,
|
||||
'href' => $this->c->Router->link(
|
||||
'SearchAction',
|
||||
|
@ -314,7 +314,7 @@ class Result extends Users
|
|||
$fields["l{$number}-note"] = [
|
||||
'class' => '' === \trim($user->admin_note ?? '') ? ['result', 'note', 'no-data'] : ['result', 'note'],
|
||||
'type' => 'str',
|
||||
'caption' => __('Примечание админа'),
|
||||
'caption' => 'Примечание админа',
|
||||
'value' => $user->admin_note,
|
||||
];
|
||||
|
||||
|
@ -322,7 +322,7 @@ class Result extends Users
|
|||
$fields["l{$number}-view-ip"] = [
|
||||
'class' => $user->isGuest ? ['result', 'view-ip', 'no-data'] : ['result', 'view-ip'],
|
||||
'type' => $user->isGuest || ! $user->num_posts ? 'str' : 'link',
|
||||
'caption' => __('Results action head'),
|
||||
'caption' => 'Results action head',
|
||||
'value' => $user->isGuest ? null : __('Results view IP link'),
|
||||
'href' => $this->c->Router->link(
|
||||
'AdminUserStat',
|
||||
|
@ -339,7 +339,7 @@ class Result extends Users
|
|||
$key = $user->isGuest ? "guest{$number}" : "users[{$user->id}]";
|
||||
$fields[$key] = [
|
||||
'class' => ['check'],
|
||||
'caption' => __('Select'),
|
||||
'caption' => 'Select',
|
||||
'type' => $user->isGuest ? 'str' : 'checkbox',
|
||||
'value' => $user->isGuest ? null : $user->id,
|
||||
'checked' => false,
|
||||
|
|
|
@ -86,7 +86,7 @@ class Stat extends Users
|
|||
$fields["l{$number}-ip"] = [
|
||||
'class' => ['result', 'ip'],
|
||||
'type' => $flag ? 'link' : 'str',
|
||||
'caption' => __('Results IP address head'),
|
||||
'caption' => 'Results IP address head',
|
||||
'value' => $flag ? $ip : null,
|
||||
'href' => $flag
|
||||
? $this->c->Router->link(
|
||||
|
@ -100,19 +100,19 @@ class Stat extends Users
|
|||
$fields["l{$number}-last-used"] = [
|
||||
'class' => ['result', 'last-used'],
|
||||
'type' => 'str',
|
||||
'caption' => __('Results last used head'),
|
||||
'caption' => 'Results last used head',
|
||||
'value' => $flag ? \ForkBB\dt($data['last_used']) : null,
|
||||
];
|
||||
$fields["l{$number}-used-times"] = [
|
||||
'class' => ['result', 'used-times'],
|
||||
'type' => 'str',
|
||||
'caption' => __('Results times found head'),
|
||||
'caption' => 'Results times found head',
|
||||
'value' => $flag ? \ForkBB\num($data['used_times']) : null,
|
||||
];
|
||||
$fields["l{$number}-action"] = [
|
||||
'class' => ['result', 'action'],
|
||||
'type' => $flag ? 'link' : 'str',
|
||||
'caption' => __('Results action head'),
|
||||
'caption' => 'Results action head',
|
||||
'value' => $flag ? __('Results find more link') : null,
|
||||
'href' => $flag
|
||||
? $this->c->Router->link(
|
||||
|
|
|
@ -186,25 +186,25 @@ class View extends Users
|
|||
$fields['username'] = [
|
||||
'type' => 'text',
|
||||
'maxlength' => '25',
|
||||
'caption' => __('Username label'),
|
||||
'caption' => 'Username label',
|
||||
'value' => $data['username'] ?? null,
|
||||
];
|
||||
$fields['email'] = [
|
||||
'type' => 'text',
|
||||
'maxlength' => '80',
|
||||
'caption' => __('E-mail address label'),
|
||||
'caption' => 'E-mail address label',
|
||||
'value' => $data['email'] ?? null,
|
||||
];
|
||||
$fields['title'] = [
|
||||
'type' => 'text',
|
||||
'maxlength' => '50',
|
||||
'caption' => __('Title label'),
|
||||
'caption' => 'Title label',
|
||||
'value' => $data['title'] ?? null,
|
||||
];
|
||||
$fields['realname'] = [
|
||||
'type' => 'text',
|
||||
'maxlength' => '40',
|
||||
'caption' => __('Real name label'),
|
||||
'caption' => 'Real name label',
|
||||
'value' => $data['realname'] ?? null,
|
||||
];
|
||||
$genders = [
|
||||
|
@ -217,31 +217,31 @@ class View extends Users
|
|||
'type' => 'radio',
|
||||
'value' => $data['gender'] ?? -1,
|
||||
'values' => $genders,
|
||||
'caption' => __('Gender label'),
|
||||
'caption' => 'Gender label',
|
||||
];
|
||||
$fields['url'] = [
|
||||
'id' => 'website',
|
||||
'type' => 'text',
|
||||
'maxlength' => '100',
|
||||
'caption' => __('Website label'),
|
||||
'caption' => 'Website label',
|
||||
'value' => $data['url'] ?? null,
|
||||
];
|
||||
$fields['location'] = [
|
||||
'type' => 'text',
|
||||
'maxlength' => '30',
|
||||
'caption' => __('Location label'),
|
||||
'caption' => 'Location label',
|
||||
'value' => $data['location'] ?? null,
|
||||
];
|
||||
$fields['signature'] = [
|
||||
'type' => 'text',
|
||||
'maxlength' => '512',
|
||||
'caption' => __('Signature label'),
|
||||
'caption' => 'Signature label',
|
||||
'value' => $data['signature'] ?? null,
|
||||
];
|
||||
$fields['admin_note'] = [
|
||||
'type' => 'text',
|
||||
'maxlength' => '30',
|
||||
'caption' => __('Admin note label'),
|
||||
'caption' => 'Admin note label',
|
||||
'value' => $data['admin_note'] ?? null,
|
||||
];
|
||||
$fields['between1'] = [
|
||||
|
@ -254,7 +254,7 @@ class View extends Users
|
|||
'min' => '0',
|
||||
'max' => '9999999999',
|
||||
'value' => $data['num_posts_1'] ?? null,
|
||||
'caption' => __('Posts label'),
|
||||
'caption' => 'Posts label',
|
||||
];
|
||||
$fields['num_posts_2'] = [
|
||||
'type' => 'number',
|
||||
|
@ -275,7 +275,7 @@ class View extends Users
|
|||
'type' => 'text',
|
||||
'maxlength' => '100',
|
||||
'value' => $data['last_post_1'] ?? null,
|
||||
'caption' => __('Last post label'),
|
||||
'caption' => 'Last post label',
|
||||
];
|
||||
$fields['last_post_2'] = [
|
||||
'class' => 'bend',
|
||||
|
@ -295,7 +295,7 @@ class View extends Users
|
|||
'type' => 'text',
|
||||
'maxlength' => '100',
|
||||
'value' => $data['last_visit_1'] ?? null,
|
||||
'caption' => __('Last visit label'),
|
||||
'caption' => 'Last visit label',
|
||||
];
|
||||
$fields['last_visit_2'] = [
|
||||
'class' => 'bend',
|
||||
|
@ -315,7 +315,7 @@ class View extends Users
|
|||
'type' => 'text',
|
||||
'maxlength' => '100',
|
||||
'value' => $data['registered_1'] ?? null,
|
||||
'caption' => __('Registered label'),
|
||||
'caption' => 'Registered label',
|
||||
];
|
||||
$fields['registered_2'] = [
|
||||
'class' => 'bend',
|
||||
|
@ -348,7 +348,7 @@ class View extends Users
|
|||
'registered' => __('Order by registered'),
|
||||
],
|
||||
'value' => $data['order_by'] ?? 'registered',
|
||||
'caption' => __('Order by label'),
|
||||
'caption' => 'Order by label',
|
||||
];
|
||||
$fields['direction'] = [
|
||||
'class' => 'bend',
|
||||
|
@ -366,7 +366,7 @@ class View extends Users
|
|||
'type' => 'select',
|
||||
'options' => $this->groups(),
|
||||
'value' => $data['user_group'] ?? -1,
|
||||
'caption' => __('User group label'),
|
||||
'caption' => 'User group label',
|
||||
];
|
||||
|
||||
$form['sets']['sorting'] = [
|
||||
|
@ -399,7 +399,7 @@ class View extends Users
|
|||
$fields['ip'] = [
|
||||
'type' => 'text',
|
||||
'maxlength' => '49',
|
||||
'caption' => __('IP address label'),
|
||||
'caption' => 'IP address label',
|
||||
'value' => $data['ip'] ?? null,
|
||||
'required' => true,
|
||||
];
|
||||
|
|
|
@ -148,13 +148,13 @@ class Auth extends Page
|
|||
'autofocus' => true,
|
||||
'type' => 'text',
|
||||
'value' => $username,
|
||||
'caption' => __('Username'),
|
||||
'caption' => 'Username',
|
||||
'required' => true,
|
||||
],
|
||||
'password' => [
|
||||
'id' => 'passinlogin',
|
||||
'type' => 'password',
|
||||
'caption' => __('Passphrase'),
|
||||
'caption' => 'Passphrase',
|
||||
'help' => ['<a href="%s">Forgotten?</a>', $this->c->Router->link('Forget')],
|
||||
'required' => true,
|
||||
],
|
||||
|
@ -339,7 +339,7 @@ class Auth extends Page
|
|||
'type' => 'text',
|
||||
'maxlength' => '80',
|
||||
'value' => $email,
|
||||
'caption' => __('Email'),
|
||||
'caption' => 'Email',
|
||||
'help' => 'Passphrase reset info',
|
||||
'required' => true,
|
||||
'pattern' => '.+@.+',
|
||||
|
@ -464,13 +464,13 @@ class Auth extends Page
|
|||
'password' => [
|
||||
'autofocus' => true,
|
||||
'type' => 'password',
|
||||
'caption' => __('New pass'),
|
||||
'caption' => 'New pass',
|
||||
'required' => true,
|
||||
'pattern' => '^.{16,}$',
|
||||
],
|
||||
'password2' => [
|
||||
'type' => 'password',
|
||||
'caption' => __('Confirm new pass'),
|
||||
'caption' => 'Confirm new pass',
|
||||
'help' => 'Passphrase help',
|
||||
'required' => true,
|
||||
'pattern' => '^.{16,}$',
|
||||
|
|
|
@ -150,14 +150,14 @@ class Email extends Page
|
|||
'subject' => [
|
||||
'type' => 'text',
|
||||
'maxlength' => '70',
|
||||
'caption' => __('Email subject'),
|
||||
'caption' => 'Email subject',
|
||||
'required' => true,
|
||||
'value' => $vars['subject'] ?? null,
|
||||
'autofocus' => true,
|
||||
],
|
||||
'message' => [
|
||||
'type' => 'textarea',
|
||||
'caption' => __('Email message'),
|
||||
'caption' => 'Email message',
|
||||
'required' => true,
|
||||
'value' => $data['message'] ?? null,
|
||||
],
|
||||
|
|
|
@ -577,7 +577,7 @@ class Moderate extends Page
|
|||
$fields['subject'] = [
|
||||
'type' => 'text',
|
||||
'maxlength' => '70',
|
||||
'caption' => __('New subject'),
|
||||
'caption' => 'New subject',
|
||||
'required' => true,
|
||||
'value' => '' == $v->subject ? $this->curTopic->subject : $v->subject,
|
||||
'autofocus' => $autofocus,
|
||||
|
@ -590,7 +590,7 @@ class Moderate extends Page
|
|||
'type' => 'select',
|
||||
'options' => $this->listForOptions,
|
||||
'value' => null,
|
||||
'caption' => __('Move to'),
|
||||
'caption' => 'Move to',
|
||||
'autofocus' => $autofocus,
|
||||
];
|
||||
$autofocus = null;
|
||||
|
|
|
@ -49,7 +49,7 @@ trait PostFormTrait
|
|||
'class' => 'w1',
|
||||
'type' => 'text',
|
||||
'maxlength' => '25',
|
||||
'caption' => __('Username'),
|
||||
'caption' => 'Username',
|
||||
'required' => true,
|
||||
'pattern' => '^.{2,25}$',
|
||||
'value' => $vars['username'] ?? null,
|
||||
|
@ -59,7 +59,7 @@ trait PostFormTrait
|
|||
'class' => 'w2',
|
||||
'type' => 'text',
|
||||
'maxlength' => '80',
|
||||
'caption' => __('Email'),
|
||||
'caption' => 'Email',
|
||||
'required' => '1' == $this->c->config->p_force_guest_email,
|
||||
'pattern' => '.+@.+',
|
||||
'value' => $vars['email'] ?? null,
|
||||
|
@ -72,7 +72,7 @@ trait PostFormTrait
|
|||
'class' => 'w0',
|
||||
'type' => 'text',
|
||||
'maxlength' => '70',
|
||||
'caption' => __('Subject'),
|
||||
'caption' => 'Subject',
|
||||
'required' => true,
|
||||
'value' => $vars['subject'] ?? null,
|
||||
'autofocus' => $autofocus,
|
||||
|
@ -83,7 +83,7 @@ trait PostFormTrait
|
|||
$fieldset['message'] = [
|
||||
'class' => 'w0',
|
||||
'type' => 'textarea',
|
||||
'caption' => __('Message'),
|
||||
'caption' => 'Message',
|
||||
'required' => true,
|
||||
'value' => $vars['message'] ?? null,
|
||||
/* ????
|
||||
|
@ -207,7 +207,7 @@ trait PostFormTrait
|
|||
'min' => '0',
|
||||
'max' => '366',
|
||||
'value' => $vars['poll']['duration'] ?? 0,
|
||||
'caption' => __('Poll duration label'),
|
||||
'caption' => 'Poll duration label',
|
||||
'help' => 'Poll duration help',
|
||||
'disabled' => $vars['pollNoEdit'] ?? null,
|
||||
];
|
||||
|
@ -230,7 +230,7 @@ trait PostFormTrait
|
|||
$fieldset["poll[question][{$qid}]"] = [
|
||||
'type' => 'text',
|
||||
'maxlength' => '240',
|
||||
'caption' => __('Question text label'),
|
||||
'caption' => 'Question text label',
|
||||
'value' => $vars['poll']['question'][$qid] ?? null,
|
||||
'disabled' => $vars['pollNoEdit'] ?? null,
|
||||
];
|
||||
|
@ -239,7 +239,7 @@ trait PostFormTrait
|
|||
'min' => '1',
|
||||
'max' => (string) $this->c->config->i_poll_max_fields,
|
||||
'value' => $vars['poll']['type'][$qid] ?? 1,
|
||||
'caption' => __('Answer type label'),
|
||||
'caption' => 'Answer type label',
|
||||
'help' => 'Answer type help',
|
||||
'disabled' => $vars['pollNoEdit'] ?? null,
|
||||
];
|
||||
|
@ -248,7 +248,7 @@ trait PostFormTrait
|
|||
$fieldset["poll[answer][{$qid}][{$fid}]"] = [
|
||||
'type' => 'text',
|
||||
'maxlength' => '240',
|
||||
'caption' => __(['Answer %s label', $fid]),
|
||||
'caption' => ['Answer %s label', $fid],
|
||||
'value' => $vars['poll']['answer'][$qid][$fid] ?? null,
|
||||
'disabled' => $vars['pollNoEdit'] ?? null,
|
||||
];
|
||||
|
|
|
@ -175,13 +175,13 @@ class Config extends Profile
|
|||
'type' => 'select',
|
||||
'options' => $langs,
|
||||
'value' => $this->curUser->language,
|
||||
'caption' => __('Language'),
|
||||
'caption' => 'Language',
|
||||
],
|
||||
'style' => [
|
||||
'type' => 'select',
|
||||
'options' => $styles,
|
||||
'value' => $this->curUser->style,
|
||||
'caption' => __('Style'),
|
||||
'caption' => 'Style',
|
||||
],
|
||||
'timezone' => [
|
||||
'type' => 'select',
|
||||
|
@ -228,26 +228,26 @@ class Config extends Profile
|
|||
'14' => __('UTC+14:00'),
|
||||
],
|
||||
'value' => $this->curUser->timezone,
|
||||
'caption' => __('Time zone'),
|
||||
'caption' => 'Time zone',
|
||||
],
|
||||
'dst' => [
|
||||
'type' => 'radio',
|
||||
'value' => $this->curUser->dst,
|
||||
'values' => $yn,
|
||||
'caption' => __('DST label'),
|
||||
'caption' => 'DST label',
|
||||
'help' => 'DST help',
|
||||
],
|
||||
'time_format' => [
|
||||
'type' => 'select',
|
||||
'options' => $timeFormat,
|
||||
'value' => $this->curUser->time_format,
|
||||
'caption' => __('Time format'),
|
||||
'caption' => 'Time format',
|
||||
],
|
||||
'date_format' => [
|
||||
'type' => 'select',
|
||||
'options' => $dateFormat,
|
||||
'value' => $this->curUser->date_format,
|
||||
'caption' => __('Date format'),
|
||||
'caption' => 'Date format',
|
||||
],
|
||||
|
||||
],
|
||||
|
@ -260,35 +260,35 @@ class Config extends Profile
|
|||
'type' => 'radio',
|
||||
'value' => $this->curUser->show_smilies,
|
||||
'values' => $yn,
|
||||
'caption' => __('Smilies label'),
|
||||
'caption' => 'Smilies label',
|
||||
'help' => 'Smilies info',
|
||||
],
|
||||
'show_sig' => [
|
||||
'type' => 'radio',
|
||||
'value' => $this->curUser->show_sig,
|
||||
'values' => $yn,
|
||||
'caption' => __('Sigs label'),
|
||||
'caption' => 'Sigs label',
|
||||
'help' => 'Sigs info',
|
||||
],
|
||||
'show_avatars' => [
|
||||
'type' => 'radio',
|
||||
'value' => $this->curUser->show_avatars,
|
||||
'values' => $yn,
|
||||
'caption' => __('Avatars label'),
|
||||
'caption' => 'Avatars label',
|
||||
'help' => 'Avatars info',
|
||||
],
|
||||
'show_img' => [
|
||||
'type' => 'radio',
|
||||
'value' => $this->curUser->show_img,
|
||||
'values' => $yn,
|
||||
'caption' => __('Images label'),
|
||||
'caption' => 'Images label',
|
||||
'help' => 'Images info',
|
||||
],
|
||||
'show_img_sig' => [
|
||||
'type' => 'radio',
|
||||
'value' => $this->curUser->show_img_sig,
|
||||
'values' => $yn,
|
||||
'caption' => __('Images sigs label'),
|
||||
'caption' => 'Images sigs label',
|
||||
'help' => 'Images sigs info',
|
||||
],
|
||||
],
|
||||
|
@ -302,7 +302,7 @@ class Config extends Profile
|
|||
'min' => '0',
|
||||
'max' => '50',
|
||||
'value' => $this->curUser->__disp_topics,
|
||||
'caption' => __('Topics per page label'),
|
||||
'caption' => 'Topics per page label',
|
||||
'help' => 'For default',
|
||||
],
|
||||
'disp_posts' => [
|
||||
|
@ -310,7 +310,7 @@ class Config extends Profile
|
|||
'min' => '0',
|
||||
'max' => '50',
|
||||
'value' => $this->curUser->__disp_posts,
|
||||
'caption' => __('Posts per page label'),
|
||||
'caption' => 'Posts per page label',
|
||||
'help' => 'For default',
|
||||
],
|
||||
],
|
||||
|
@ -327,7 +327,7 @@ class Config extends Profile
|
|||
'2' => __('Strict check'),
|
||||
],
|
||||
'value' => $this->curUser->ip_check_type,
|
||||
'caption' => __('IP check'),
|
||||
'caption' => 'IP check',
|
||||
'help' => 'IP check info',
|
||||
'disabled' => $this->rules->editIpCheckType ? null : true,
|
||||
],
|
||||
|
@ -343,14 +343,14 @@ class Config extends Profile
|
|||
'type' => 'radio',
|
||||
'value' => $this->curUser->notify_with_post,
|
||||
'values' => $yn,
|
||||
'caption' => __('Notify label'),
|
||||
'caption' => 'Notify label',
|
||||
'help' => 'Notify info',
|
||||
],
|
||||
'auto_notify' => [
|
||||
'type' => 'radio',
|
||||
'value' => $this->curUser->auto_notify,
|
||||
'values' => $yn,
|
||||
'caption' => __('Auto notify label'),
|
||||
'caption' => 'Auto notify label',
|
||||
'help' => 'Auto notify info',
|
||||
],
|
||||
],
|
||||
|
|
|
@ -235,7 +235,7 @@ class Edit extends Profile
|
|||
$fields['username'] = [
|
||||
'type' => 'text',
|
||||
'maxlength' => '25',
|
||||
'caption' => __('Username'),
|
||||
'caption' => 'Username',
|
||||
'required' => true,
|
||||
'pattern' => '^.{2,25}$',
|
||||
'value' => $this->curUser->username,
|
||||
|
@ -244,14 +244,14 @@ class Edit extends Profile
|
|||
$fields['username'] = [
|
||||
'class' => 'pline',
|
||||
'type' => 'str',
|
||||
'caption' => __('Username'),
|
||||
'caption' => 'Username',
|
||||
'value' => $this->curUser->username,
|
||||
];
|
||||
}
|
||||
if ($this->rules->changeGroup) {
|
||||
$fields['group'] = [
|
||||
'type' => 'link',
|
||||
'caption' => __('Group'),
|
||||
'caption' => 'Group',
|
||||
'value' => $this->curUser->group_id ? $this->curUser->g_title : __('Change user group'),
|
||||
'title' => __('Change user group'),
|
||||
'href' => $this->linkChangeGroup(),
|
||||
|
@ -260,7 +260,7 @@ class Edit extends Profile
|
|||
$fields['group'] = [
|
||||
'class' => 'pline',
|
||||
'type' => 'str',
|
||||
'caption' => __('Group'),
|
||||
'caption' => 'Group',
|
||||
'value' => $this->curUser->group_id ? $this->curUser->g_title : '-',
|
||||
];
|
||||
}
|
||||
|
@ -276,7 +276,7 @@ class Edit extends Profile
|
|||
$fields['title'] = [
|
||||
'type' => 'text',
|
||||
'maxlength' => '50',
|
||||
'caption' => __('Title'),
|
||||
'caption' => 'Title',
|
||||
'value' => $this->curUser->title,
|
||||
'help' => 'Leave blank',
|
||||
];
|
||||
|
@ -284,7 +284,7 @@ class Edit extends Profile
|
|||
$fields['title'] = [
|
||||
'class' => 'pline',
|
||||
'type' => 'str',
|
||||
'caption' => __('Title'),
|
||||
'caption' => 'Title',
|
||||
'value' => $this->curUser->title(),
|
||||
];
|
||||
}
|
||||
|
@ -300,13 +300,13 @@ class Edit extends Profile
|
|||
$fields['avatar'] = [
|
||||
'class' => 'pline',
|
||||
'type' => 'str',
|
||||
'caption' => __('Avatar'),
|
||||
'caption' => 'Avatar',
|
||||
'value' => __('Not uploaded'),
|
||||
];
|
||||
} elseif ($this->curUser->avatar) {
|
||||
$fields['avatar'] = [
|
||||
'type' => 'yield',
|
||||
'caption' => __('Avatar'),
|
||||
'caption' => 'Avatar',
|
||||
'value' => 'avatar',
|
||||
];
|
||||
}
|
||||
|
@ -325,7 +325,7 @@ class Edit extends Profile
|
|||
|
||||
$fields['upload_avatar'] = [
|
||||
'type' => 'file',
|
||||
'caption' => __('New avatar'),
|
||||
'caption' => 'New avatar',
|
||||
'help' => ['New avatar info',
|
||||
\ForkBB\num($this->c->config->i_avatars_width),
|
||||
\ForkBB\num($this->c->config->i_avatars_height),
|
||||
|
@ -350,7 +350,7 @@ class Edit extends Profile
|
|||
'admin_note' => [
|
||||
'type' => 'text',
|
||||
'maxlength' => '30',
|
||||
'caption' => __('Admin note'),
|
||||
'caption' => 'Admin note',
|
||||
'value' => $this->curUser->admin_note,
|
||||
],
|
||||
],
|
||||
|
@ -362,7 +362,7 @@ class Edit extends Profile
|
|||
$fields['realname'] = [
|
||||
'type' => 'text',
|
||||
'maxlength' => '40',
|
||||
'caption' => __('Realname'),
|
||||
'caption' => 'Realname',
|
||||
'value' => $this->curUser->realname,
|
||||
];
|
||||
$genders = [
|
||||
|
@ -375,12 +375,12 @@ class Edit extends Profile
|
|||
'type' => 'radio',
|
||||
'value' => $this->curUser->gender,
|
||||
'values' => $genders,
|
||||
'caption' => __('Gender'),
|
||||
'caption' => 'Gender',
|
||||
];
|
||||
$fields['location'] = [
|
||||
'type' => 'text',
|
||||
'maxlength' => 30,
|
||||
'caption' => __('Location'),
|
||||
'caption' => 'Location',
|
||||
'value' => $this->curUser->location,
|
||||
];
|
||||
$form['sets']['personal'] = [
|
||||
|
@ -395,7 +395,7 @@ class Edit extends Profile
|
|||
$fields['open-email'] = [
|
||||
'class' => 'pline',
|
||||
'type' => 'str',
|
||||
'caption' => __('Email info'),
|
||||
'caption' => 'Email info',
|
||||
'value' => $this->curUser->censorEmail,
|
||||
];
|
||||
}
|
||||
|
@ -415,7 +415,7 @@ class Edit extends Profile
|
|||
1 => __('Hide allow form label'),
|
||||
2 => __('Hide both label'),
|
||||
],
|
||||
'caption' => __('Email settings label'),
|
||||
'caption' => 'Email settings label',
|
||||
];
|
||||
|
||||
if ($this->rules->editWebsite) {
|
||||
|
@ -423,7 +423,7 @@ class Edit extends Profile
|
|||
'id' => 'website',
|
||||
'type' => 'text',
|
||||
'maxlength' => '100',
|
||||
'caption' => __('Website'),
|
||||
'caption' => 'Website',
|
||||
'value' => $this->curUser->url,
|
||||
];
|
||||
} elseif (
|
||||
|
@ -434,7 +434,7 @@ class Edit extends Profile
|
|||
'id' => 'website',
|
||||
'class' => 'pline',
|
||||
'type' => 'link',
|
||||
'caption' => __('Website'),
|
||||
'caption' => 'Website',
|
||||
'value' => $this->curUser->censorUrl,
|
||||
'href' => $this->curUser->censorUrl,
|
||||
];
|
||||
|
@ -451,7 +451,7 @@ class Edit extends Profile
|
|||
$fields['signature'] = [
|
||||
'type' => 'textarea',
|
||||
'value' => $this->curUser->signature,
|
||||
'caption' => __('Signature'),
|
||||
'caption' => 'Signature',
|
||||
'help' => ['Sig max size', \ForkBB\num($this->curUser->g_sig_length), \ForkBB\num($this->curUser->g_sig_lines)],
|
||||
];
|
||||
$form['sets']['signature'] = [
|
||||
|
|
|
@ -230,7 +230,7 @@ class Email extends Profile
|
|||
'autofocus' => true,
|
||||
'type' => 'text',
|
||||
'maxlength' => '80',
|
||||
'caption' => __($this->rules->confirmEmail ? 'New or old email' : 'New email'),
|
||||
'caption' => $this->rules->confirmEmail ? 'New or old email' : 'New email',
|
||||
'required' => true,
|
||||
'pattern' => '.+@.+',
|
||||
'value' => $this->curUser->email,
|
||||
|
@ -238,7 +238,7 @@ class Email extends Profile
|
|||
],
|
||||
'password' => [
|
||||
'type' => 'password',
|
||||
'caption' => __('Your passphrase'),
|
||||
'caption' => 'Your passphrase',
|
||||
'required' => true,
|
||||
],
|
||||
],
|
||||
|
|
|
@ -136,7 +136,7 @@ class Mod extends Profile
|
|||
'class' => ['modforum', 'name', 'depth' . $forum->depth],
|
||||
'type' => 'str',
|
||||
'value' => $forum->forum_name,
|
||||
'caption' => __('Forum label'),
|
||||
'caption' => 'Forum label',
|
||||
];
|
||||
$fields["moderator[{$forum->id}]"] = [
|
||||
'class' => ['modforum', 'moderator'],
|
||||
|
@ -144,7 +144,7 @@ class Mod extends Profile
|
|||
'value' => $forum->id,
|
||||
'checked' => isset($this->curForums[$forum->id]) && $this->curUser->isModerator($forum),
|
||||
'disabled' => ! isset($this->curForums[$forum->id]) || '' != $this->curForums[$forum->id]->redirect_url,
|
||||
'caption' => __('Moderator label'),
|
||||
'caption' => 'Moderator label',
|
||||
];
|
||||
$form['sets']["forum{$forum->id}"] = [
|
||||
'class' => 'modforum',
|
||||
|
|
|
@ -105,14 +105,14 @@ class Pass extends Profile
|
|||
'new_pass' => [
|
||||
'autofocus' => true,
|
||||
'type' => 'password',
|
||||
'caption' => __('New pass'),
|
||||
'caption' => 'New pass',
|
||||
'required' => true,
|
||||
'pattern' => '^.{16,}$',
|
||||
'help' => 'Passphrase help',
|
||||
],
|
||||
'password' => [
|
||||
'type' => 'password',
|
||||
'caption' => __('Your passphrase'),
|
||||
'caption' => 'Your passphrase',
|
||||
'required' => true,
|
||||
],
|
||||
],
|
||||
|
|
|
@ -56,13 +56,13 @@ class View extends Profile
|
|||
$fields['username'] = [
|
||||
'class' => 'pline',
|
||||
'type' => 'str',
|
||||
'caption' => __('Username'),
|
||||
'caption' => 'Username',
|
||||
'value' => $this->curUser->username,
|
||||
];
|
||||
$fields['title'] = [
|
||||
'class' => 'pline',
|
||||
'type' => 'str',
|
||||
'caption' => __('Title'),
|
||||
'caption' => 'Title',
|
||||
'value' => $this->curUser->title(),
|
||||
];
|
||||
$fields[] = [
|
||||
|
@ -74,7 +74,7 @@ class View extends Profile
|
|||
) {
|
||||
$fields['avatar'] = [
|
||||
'type' => 'yield',
|
||||
'caption' => __('Avatar'),
|
||||
'caption' => 'Avatar',
|
||||
'value' => 'avatar',
|
||||
];
|
||||
}
|
||||
|
@ -96,7 +96,7 @@ class View extends Profile
|
|||
'admin_note' => [
|
||||
'class' => 'pline',
|
||||
'type' => 'str',
|
||||
'caption' => __('Admin note'),
|
||||
'caption' => 'Admin note',
|
||||
'value' => $this->curUser->admin_note,
|
||||
],
|
||||
],
|
||||
|
@ -109,7 +109,7 @@ class View extends Profile
|
|||
$fields['realname'] = [
|
||||
'class' => 'pline',
|
||||
'type' => 'str',
|
||||
'caption' => __('Realname'),
|
||||
'caption' => 'Realname',
|
||||
'value' => $this->curUser->censorRealname,
|
||||
];
|
||||
}
|
||||
|
@ -122,14 +122,14 @@ class View extends Profile
|
|||
'class' => 'pline',
|
||||
'type' => 'str',
|
||||
'value' => $genders[$this->curUser->gender],
|
||||
'caption' => __('Gender'),
|
||||
'caption' => 'Gender',
|
||||
];
|
||||
}
|
||||
if ('' != $this->curUser->location) {
|
||||
$fields['location'] = [
|
||||
'class' => 'pline',
|
||||
'type' => 'str',
|
||||
'caption' => __('Location'),
|
||||
'caption' => 'Location',
|
||||
'value' => $this->curUser->censorLocation,
|
||||
];
|
||||
}
|
||||
|
@ -148,7 +148,7 @@ class View extends Profile
|
|||
$fields['email'] = [
|
||||
'class' => 'pline',
|
||||
'type' => 'link',
|
||||
'caption' => __('Email info'),
|
||||
'caption' => 'Email info',
|
||||
'value' => $this->curUser->censorEmail,
|
||||
'href' => 'mailto:' . $this->curUser->censorEmail,
|
||||
];
|
||||
|
@ -158,7 +158,7 @@ class View extends Profile
|
|||
$fields['email'] = [
|
||||
'class' => 'pline',
|
||||
'type' => 'link',
|
||||
'caption' => __('Email info'),
|
||||
'caption' => 'Email info',
|
||||
'value' => __('Send email'),
|
||||
'href' => $this->c->Router->link('SendEmail', ['id' => $this->curUser->id]),
|
||||
];
|
||||
|
@ -172,7 +172,7 @@ class View extends Profile
|
|||
'id' => 'website',
|
||||
'class' => 'pline',
|
||||
'type' => 'link',
|
||||
'caption' => __('Website'),
|
||||
'caption' => 'Website',
|
||||
'value' => $this->curUser->censorUrl,
|
||||
'href' => $this->curUser->censorUrl,
|
||||
'rel' => 'ugc',
|
||||
|
@ -192,7 +192,7 @@ class View extends Profile
|
|||
if ($this->curUser->isSignature) {
|
||||
$fields['signature'] = [
|
||||
'type' => 'yield',
|
||||
'caption' => __('Signature'),
|
||||
'caption' => 'Signature',
|
||||
'value' => 'signature',
|
||||
];
|
||||
|
||||
|
@ -213,20 +213,20 @@ class View extends Profile
|
|||
'class' => 'pline',
|
||||
'type' => 'str',
|
||||
'value' => \ForkBB\dt($this->curUser->registered, true),
|
||||
'caption' => __('Registered info'),
|
||||
'caption' => 'Registered info',
|
||||
];
|
||||
$fields['lastpost'] = [
|
||||
'class' => 'pline',
|
||||
'type' => 'str',
|
||||
'value' => \ForkBB\dt($this->curUser->last_post, true),
|
||||
'caption' => __('Last post info'),
|
||||
'caption' => 'Last post info',
|
||||
];
|
||||
if ($this->curUser->last_post > 0) {
|
||||
if ('1' == $this->user->g_search) {
|
||||
$fields['posts'] = [
|
||||
'class' => 'pline',
|
||||
'type' => 'link',
|
||||
'caption' => __('Posts info'),
|
||||
'caption' => 'Posts info',
|
||||
'value' => $this->user->showPostCount ? \ForkBB\num($this->curUser->num_posts) : __('Show posts'),
|
||||
'href' => $this->c->Router->link(
|
||||
'SearchAction',
|
||||
|
@ -240,7 +240,7 @@ class View extends Profile
|
|||
$fields['topics'] = [
|
||||
'class' => 'pline',
|
||||
'type' => 'link',
|
||||
'caption' => __('Topics info'),
|
||||
'caption' => 'Topics info',
|
||||
'value' => $this->user->showPostCount ? \ForkBB\num($this->curUser->num_topics) : __('Show topics'),
|
||||
'href' => $this->c->Router->link(
|
||||
'SearchAction',
|
||||
|
@ -255,13 +255,13 @@ class View extends Profile
|
|||
$fields['posts'] = [
|
||||
'class' => 'pline',
|
||||
'type' => 'str',
|
||||
'caption' => __('Posts info'),
|
||||
'caption' => 'Posts info',
|
||||
'value' => \ForkBB\num($this->curUser->num_posts),
|
||||
];
|
||||
$fields['topics'] = [
|
||||
'class' => 'pline',
|
||||
'type' => 'str',
|
||||
'caption' => __('Topics info'),
|
||||
'caption' => 'Topics info',
|
||||
'value' => \ForkBB\num($this->curUser->num_topics),
|
||||
];
|
||||
}
|
||||
|
@ -274,7 +274,7 @@ class View extends Profile
|
|||
$fields['forums_subscr'] = [
|
||||
'class' => 'pline',
|
||||
'type' => $isLink ? 'link' : 'str',
|
||||
'caption' => __('Total forums subscriptions'),
|
||||
'caption' => 'Total forums subscriptions',
|
||||
'value' => \ForkBB\num(\count($subscrInfo[$subscr::FORUMS_DATA])),
|
||||
'href' => $this->c->Router->link(
|
||||
'SearchAction',
|
||||
|
@ -290,7 +290,7 @@ class View extends Profile
|
|||
$fields['topics_subscr'] = [
|
||||
'class' => 'pline',
|
||||
'type' => $isLink ? 'link' : 'str',
|
||||
'caption' => __('Total topics subscriptions'),
|
||||
'caption' => 'Total topics subscriptions',
|
||||
'value' => \ForkBB\num(\count($subscrInfo[$subscr::TOPICS_DATA])),
|
||||
'href' => $this->c->Router->link(
|
||||
'SearchAction',
|
||||
|
@ -318,14 +318,14 @@ class View extends Profile
|
|||
'value' => $this->rules->my
|
||||
? \ForkBB\dt($this->curUser->last_visit)
|
||||
: \ForkBB\dt($this->curUser->currentVisit, true),
|
||||
'caption' => __('Last visit info'),
|
||||
'caption' => 'Last visit info',
|
||||
];
|
||||
}
|
||||
if ($this->rules->viewOEmail) {
|
||||
$fields['open-email'] = [
|
||||
'class' => 'pline',
|
||||
'type' => 2 === $this->curUser->email_setting ? 'str' : 'link',
|
||||
'caption' => __('Email info'),
|
||||
'caption' => 'Email info',
|
||||
'value' => $this->curUser->censorEmail,
|
||||
'href' => 'mailto:' . $this->curUser->censorEmail,
|
||||
];
|
||||
|
@ -337,7 +337,7 @@ class View extends Profile
|
|||
$fields['ip'] = [
|
||||
'class' => 'pline',
|
||||
'type' => 'link',
|
||||
'caption' => __('IP'),
|
||||
'caption' => 'IP',
|
||||
'value' => $this->curUser->registration_ip,
|
||||
'href' => $this->c->Router->link(
|
||||
'AdminHost',
|
||||
|
|
|
@ -109,7 +109,7 @@ class Register extends Page
|
|||
'type' => 'text',
|
||||
'maxlength' => '80',
|
||||
'value' => $v->email,
|
||||
'caption' => __('Email'),
|
||||
'caption' => 'Email',
|
||||
'help' => 'Email info',
|
||||
'required' => true,
|
||||
'pattern' => '.+@.+',
|
||||
|
@ -119,7 +119,7 @@ class Register extends Page
|
|||
'type' => 'text',
|
||||
'maxlength' => '25',
|
||||
'value' => $v->username,
|
||||
'caption' => __('Username'),
|
||||
'caption' => 'Username',
|
||||
'help' => 'Login format',
|
||||
'required' => true,
|
||||
'pattern' => '^.{2,25}$',
|
||||
|
@ -127,7 +127,7 @@ class Register extends Page
|
|||
'password' => [
|
||||
'class' => 'hint',
|
||||
'type' => 'password',
|
||||
'caption' => __('Passphrase'),
|
||||
'caption' => 'Passphrase',
|
||||
'help' => 'Passphrase help',
|
||||
'required' => true,
|
||||
'pattern' => '^.{16,}$',
|
||||
|
|
|
@ -132,7 +132,7 @@ class Report extends Page
|
|||
'fields' => [
|
||||
'reason' => [
|
||||
'type' => 'textarea',
|
||||
'caption' => __('Reason'),
|
||||
'caption' => 'Reason',
|
||||
'required' => true,
|
||||
'value' => $data['reason'] ?? null,
|
||||
'autofocus' => true,
|
||||
|
|
|
@ -166,7 +166,7 @@ class Search extends Page
|
|||
'class' => 'w0',
|
||||
'type' => 'text',
|
||||
'maxlength' => '100',
|
||||
'caption' => __('Keyword search'),
|
||||
'caption' => 'Keyword search',
|
||||
'value' => $v ? $v->keywords : '',
|
||||
'required' => true,
|
||||
'autofocus' => true,
|
||||
|
@ -205,7 +205,7 @@ class Search extends Page
|
|||
'class' => 'w2',
|
||||
'type' => 'text',
|
||||
'maxlength' => '100',
|
||||
'caption' => __('Keyword search'),
|
||||
'caption' => 'Keyword search',
|
||||
'value' => $v ? $v->keywords : '',
|
||||
'required' => true,
|
||||
'autofocus' => true,
|
||||
|
@ -214,7 +214,7 @@ class Search extends Page
|
|||
'class' => 'w1',
|
||||
'type' => 'text',
|
||||
'maxlength' => '25',
|
||||
'caption' => __('Author search'),
|
||||
'caption' => 'Author search',
|
||||
'value' => $v ? $v->author : '*',
|
||||
'required' => true,
|
||||
],
|
||||
|
@ -232,7 +232,7 @@ class Search extends Page
|
|||
'type' => 'multiselect',
|
||||
'options' => $this->listForOptions,
|
||||
'value' => $v ? \explode('.', $v->forums) : null,
|
||||
'caption' => __('Forum search'),
|
||||
'caption' => 'Forum search',
|
||||
'size' => \min(\count($this->listForOptions), 10),
|
||||
],
|
||||
'serch_in' => [
|
||||
|
@ -244,7 +244,7 @@ class Search extends Page
|
|||
2 => __('Topic only'),
|
||||
],
|
||||
'value' => $v ? $v->serch_in : 0,
|
||||
'caption' => __('Search in'),
|
||||
'caption' => 'Search in',
|
||||
],
|
||||
[
|
||||
'type' => 'info',
|
||||
|
@ -270,7 +270,7 @@ class Search extends Page
|
|||
3 => __('Sort by forum'),
|
||||
],
|
||||
'value' => $v ? $v->sort_by : 0,
|
||||
'caption' => __('Sort by'),
|
||||
'caption' => 'Sort by',
|
||||
],
|
||||
'sort_dir' => [
|
||||
'class' => 'w4',
|
||||
|
@ -280,7 +280,7 @@ class Search extends Page
|
|||
1 => __('Ascending'),
|
||||
],
|
||||
'value' => $v ? $v->sort_dir : 0,
|
||||
'caption' => __('Sort order'),
|
||||
'caption' => 'Sort order',
|
||||
],
|
||||
'show_as' => [
|
||||
'class' => 'w4',
|
||||
|
@ -290,7 +290,7 @@ class Search extends Page
|
|||
1 => __('Show as topics'),
|
||||
],
|
||||
'value' => $v ? $v->show_as : 0,
|
||||
'caption' => __('Show as'),
|
||||
'caption' => 'Show as',
|
||||
],
|
||||
[
|
||||
'type' => 'info',
|
||||
|
|
|
@ -179,7 +179,7 @@ class Userlist extends Page
|
|||
'type' => 'text',
|
||||
'maxlength' => '25',
|
||||
'value' => $v->name ?: '*',
|
||||
'caption' => __('Username'),
|
||||
'caption' => 'Username',
|
||||
'help' => 'User search info',
|
||||
'required' => true,
|
||||
# 'autofocus' => true,
|
||||
|
@ -192,7 +192,7 @@ class Userlist extends Page
|
|||
'type' => 'select',
|
||||
'options' => $this->groupList,
|
||||
'value' => $v->group,
|
||||
'caption' => __('User group'),
|
||||
'caption' => 'User group',
|
||||
];
|
||||
$fields['sort'] = [
|
||||
'class' => 'w4',
|
||||
|
@ -203,7 +203,7 @@ class Userlist extends Page
|
|||
['registered', __('Sort by date')],
|
||||
],
|
||||
'value' => $v->sort,
|
||||
'caption' => __('Sort users by'),
|
||||
'caption' => 'Sort users by',
|
||||
];
|
||||
$fields['dir'] = [
|
||||
'class' => 'w4',
|
||||
|
@ -213,7 +213,7 @@ class Userlist extends Page
|
|||
'ASC' => __('Ascending'),
|
||||
'DESC' => __('Descending'),
|
||||
],
|
||||
'caption' => __('User sort order'),
|
||||
'caption' => 'User sort order',
|
||||
];
|
||||
$form['sets']['users'] = ['fields' => $fields];
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
</div>
|
||||
@else
|
||||
<dl id="id-dl-{{ $cur['id'] or $key }}" @if ($cur['class']) class="f-field-{{ \implode(' f-field-', (array) $cur['class']) }}" @endif>
|
||||
<dt> @if ($cur['caption'])<label class="f-ycaption @if ($cur['required']) f-req @endif" @if (false === \strpos('.radio.yield.str.btn.link.', ".{$cur['type']}.")) for="id-{{ $key }}" @endif>{!! $cur['caption'] !!}</label> @endif</dt>
|
||||
<dt> @if ($cur['caption'])<label class="f-ycaption @if ($cur['required']) f-req @endif" @if (false === \strpos('.radio.yield.str.btn.link.', ".{$cur['type']}.")) for="id-{{ $key }}" @endif>{!! __($cur['caption']) !!}</label> @endif</dt>
|
||||
<dd>
|
||||
@if ('text' === $cur['type'])
|
||||
<input @if ($cur['required']) required @endif @if ($cur['disabled']) disabled @endif @if ($cur['autofocus']) autofocus @endif class="f-ctrl f-ytxt" id="id-{{ $key }}" name="{{ $key }}" type="text" @if ($cur['maxlength']) maxlength="{{ $cur['maxlength'] }}" @endif @if ($cur['pattern']) pattern="{{ $cur['pattern'] }}" @endif @isset ($cur['value']) value="{{ $cur['value'] }}" @endisset>
|
||||
|
|
Loading…
Add table
Reference in a new issue