Elgg  Version 3.0
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),
30  'min' => 0,
31 ]);
32 
33 echo elgg_view_module('info', elgg_echo('other'), $body, ['id' => 'elgg-settings-advanced-other']);
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
Definition: views.php:1395
$body
Advanced site settings, other section.
Definition: other.php:6
elgg_echo($message_key, array $args=[], $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
elgg_view_module($type, $title, $body, array $vars=[])
Wrapper function for the module display pattern.
Definition: views.php:1198
elgg echo
Translates a string.
Definition: languages.js:43
elgg_get_config($name, $default=null)
Get an Elgg configuration value.