Elgg  Version 6.1
comments.php
Go to the documentation of this file.
1 <?php
2 
4  '#type' => 'select',
5  '#label' => elgg_echo('config:content:comments_max_depth'),
6  '#help' => elgg_echo('config:content:comments_max_depth:help'),
7  'name' => 'comments_max_depth',
8  'value' => elgg_get_config('comments_max_depth'),
9  'options_values' => [
10  0 => elgg_echo('config:content:comments_max_depth:none'),
11  2 => 2,
12  3 => 3,
13  4 => 4,
14  ],
15 ]);
16 
18  '#type' => 'switch',
19  '#label' => elgg_echo('config:content:comment_box_collapses'),
20  '#help' => elgg_echo('config:content:comment_box_collapses:help'),
21  'name' => 'comment_box_collapses',
22  'value' => elgg_get_config('comment_box_collapses'),
23 ]);
24 
26  '#type' => 'switch',
27  '#label' => elgg_echo('config:content:comments_latest_first'),
28  '#help' => elgg_echo('config:content:comments_latest_first:help'),
29  'name' => 'comments_latest_first',
30  'value' => elgg_get_config('comments_latest_first'),
31 ]);
32 
34  '#type' => 'number',
35  '#label' => elgg_echo('config:content:comments_per_page'),
36  'name' => 'comments_per_page',
37  'value' => elgg_get_config('comments_per_page'),
38  'min' => 1,
39  'step' => 1,
40 ]);
41 
43  '#type' => 'switch',
44  '#label' => elgg_echo('config:content:comments_group_only'),
45  'name' => 'comments_group_only',
46  'value' => elgg_get_config('comments_group_only'),
47 ]);
48 
49 echo elgg_view_module('info', elgg_echo('admin:legend:comments'), $body);
elgg_view_module(string $type, string $title, string $body, array $vars=[])
Wrapper function for the module display pattern.
Definition: views.php:919
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
Definition: views.php:1112
elgg_get_config(string $name, $default=null)
Get an Elgg configuration value.
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17
$body
Definition: comments.php:3