Elgg  Version 3.0
update_basic.php
Go to the documentation of this file.
1 <?php
2 
4  '#type' => 'text',
5  'name' => 'sitename',
6  '#label' => elgg_echo('installation:sitename'),
7  'value' => elgg_get_config('sitename'),
8 ]);
9 
11  '#type' => 'text',
12  'name' => 'sitedescription',
13  '#label' => elgg_echo('installation:sitedescription'),
14  '#help' => elgg_echo('installation:sitedescription:help'),
15  'value' => elgg_get_config('sitedescription'),
16 ]);
17 
19  '#type' => 'select',
20  'name' => 'language',
21  '#label' => elgg_echo('installation:language'),
22  'value' => elgg_get_config('language'),
23  'options_values' => get_installed_translations(true),
24 ]);
25 
27  '#type' => 'checkbox',
28  'label' => elgg_echo('installation:registration:label'),
29  '#help' => elgg_echo('installation:registration:description'),
30  'name' => 'allow_registration',
31  'checked' => (bool) elgg_get_config('allow_registration'),
32  'switch' => true,
33 ]);
34 
36  '#type' => 'checkbox',
37  'label' => elgg_echo('installation:walled_garden:label'),
38  '#help' => elgg_echo('installation:walled_garden:description'),
39  'name' => 'walled_garden',
40  'checked' => (bool) elgg_get_config('walled_garden'),
41  'switch' => true,
42 ]);
43 
45  '#type' => 'email',
46  'name' => 'siteemail',
47  '#label' => elgg_echo('installation:siteemail'),
48  '#help' => elgg_echo('installation:siteemail:help'),
49  'value' => elgg_get_site_entity()->email,
50  'class' => 'elgg-input-text',
51 ]);
52 
54  '#type' => 'number',
55  'name' => 'default_limit',
56  '#label' => elgg_echo('installation:default_limit'),
57  'value' => elgg_get_config('default_limit'),
58  'min' => 1,
59  'step' => 1,
60 ]);
61 
62 $save = elgg_view('input/submit', [
63  'value' => elgg_echo('save'),
64 ]);
65 
66 $save_go = elgg_view('input/submit', [
67  'text' => elgg_echo('save_go', [elgg_echo('admin:settings:advanced')]),
68  'name' => 'after_save',
69  'value' => 'admin/settings/advanced',
70 ]);
71 
72 $footer = "$save $save_go";
$save_go
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
Definition: views.php:1395
elgg_echo($message_key, array $args=[], $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
elgg_set_form_footer($footer= '')
Sets form footer and defers its rendering until the form view and extensions have been rendered...
Definition: views.php:1331
elgg echo
Translates a string.
Definition: languages.js:43
elgg_get_site_entity()
Get the current site entity.
Definition: entities.php:130
$footer
get_installed_translations($calculate_completeness=false)
Return an array of installed translations as an associative array "two letter code" => "native langua...
Definition: languages.php:68
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:246
$site email
elgg_get_config($name, $default=null)
Get an Elgg configuration value.
$save