Elgg  Version master
other.php
Go to the documentation of this file.
1 <?php
7  '#type' => 'switch',
8  '#label' => elgg_echo('config:color_schemes_enabled:label'),
9  '#help' => elgg_echo('config:color_schemes_enabled:help'),
10  'name' => 'color_schemes_enabled',
11  'value' => elgg_get_config('color_schemes_enabled'),
12 ]);
13 
15  '#type' => 'switch',
16  '#label' => elgg_echo('config:remove_branding:label'),
17  '#help' => elgg_echo('config:remove_branding:help'),
18  'name' => 'remove_branding',
19  'value' => elgg_get_config('remove_branding'),
20 ]);
21 
23  '#type' => 'switch',
24  '#label' => elgg_echo('config:disable_rss:label'),
25  '#help' => elgg_echo('config:disable_rss:help'),
26  'name' => 'disable_rss',
27  'value' => elgg_get_config('disable_rss'),
28 ]);
29 
31  '#type' => 'number',
32  '#label' => elgg_echo('config:friendly_time_number_of_days:label'),
33  '#help' => elgg_echo('config:friendly_time_number_of_days:help'),
34  'name' => 'friendly_time_number_of_days',
35  'value' => (int) elgg_get_config('friendly_time_number_of_days'),
36  'min' => 0,
37 ]);
38 
40  '#type' => 'number',
41  '#label' => elgg_echo('config:message_delay:label'),
42  '#help' => elgg_echo('config:message_delay:help'),
43  'name' => 'message_delay',
44  'value' => (int) elgg_get_config('message_delay'),
45  'min' => 1,
46 ]);
47 
48 echo elgg_view_module('info', elgg_echo('other'), $body, ['id' => 'elgg-settings-advanced-other']);
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
elgg_view_module(string $type, string $title, string $body, array $vars=[])
Wrapper function for the module display pattern.
Definition: views.php:930
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
Definition: views.php:1116
$body
Advanced site settings, other section.
Definition: other.php:6