Elgg  Version master
other.php
Go to the documentation of this file.
1 <?php
7  '#type' => 'checkbox',
8  '#label' => elgg_echo('config:remove_branding:label'),
9  '#help' => elgg_echo('config:remove_branding:help'),
10  'name' => 'remove_branding',
11  'checked' => (bool) elgg_get_config('remove_branding'),
12  'switch' => true,
13 ]);
14 
16  '#type' => 'checkbox',
17  '#label' => elgg_echo('config:disable_rss:label'),
18  '#help' => elgg_echo('config:disable_rss:help'),
19  'name' => 'disable_rss',
20  'checked' => (bool) elgg_get_config('disable_rss'),
21  'switch' => true,
22 ]);
23 
25  '#type' => 'number',
26  '#label' => elgg_echo('config:friendly_time_number_of_days:label'),
27  '#help' => elgg_echo('config:friendly_time_number_of_days:help'),
28  'name' => 'friendly_time_number_of_days',
29  'value' => (int) elgg_get_config('friendly_time_number_of_days'),
30  'min' => 0,
31 ]);
32 
34  '#type' => 'number',
35  '#label' => elgg_echo('config:message_delay:label'),
36  '#help' => elgg_echo('config:message_delay:help'),
37  'name' => 'message_delay',
38  'value' => (int) elgg_get_config('message_delay'),
39  'min' => 1,
40 ]);
41 
42 echo elgg_view_module('info', elgg_echo('other'), $body, ['id' => 'elgg-settings-advanced-other']);
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.
$body
Advanced site settings, other section.
Definition: other.php:6
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17