Elgg  Version 1.11
update_basic.php
Go to the documentation of this file.
1 <?php
5 $form_body = "";
6 
7 foreach (array('sitename','sitedescription', 'siteemail', 'default_limit') as $field) {
8  $form_body .= "<div>";
9  $form_body .= elgg_echo('installation:' . $field) . "<br />";
10  $warning = elgg_echo('installation:warning:' . $field);
11  if ($warning != 'installation:warning:' . $field) {
12  echo "<b>" . $warning . "</b><br />";
13  }
14  $value = elgg_get_config($field);
15  $form_body .= elgg_view("input/text",array('name' => $field, 'value' => $value));
16  $form_body .= "</div>";
17 }
18 
20 $form_body .= "<div>" . elgg_echo('installation:language');
21 $form_body .= elgg_view("input/select", array(
22  'name' => 'language',
23  'value' => elgg_get_config('language'),
24  'options_values' => $languages,
25 )) . "</div>";
26 
27 $form_body .= '<div class="elgg-foot">';
28 $form_body .= elgg_view('input/submit', array('value' => elgg_echo("save")));
29 $form_body .= '</div>';
30 
elgg_get_config($name, $site_guid=0)
Get an Elgg configuration value.
$value
Definition: longtext.php:26
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
elgg echo
Translates a string.
Definition: languages.js:43
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype= '')
Return a parsed view.
Definition: views.php:354
$form_body
Definition: update_basic.php:5
get_installed_translations()
Return an array of installed translations as an associative array "two letter code" => "native langua...
Definition: languages.php:213
foreach(array('sitename','sitedescription', 'siteemail', 'default_limit') as $field) $languages