Elgg  Version 1.11
system.php
Go to the documentation of this file.
1 <?php
5 ?>
6 <fieldset class="elgg-fieldset" id="elgg-settings-advanced-system">
7  <legend><?php echo elgg_echo('admin:legend:system');?></legend>
8  <?php foreach (['wwwroot', 'path', 'dataroot'] as $field) {
9  $warning = false;
10  $label = elgg_echo('installation:' . $field);
11 
12  $params = [
13  'name' => $field,
14  'value' => elgg_get_config($field)
15  ];
16  if ($field == 'dataroot' && elgg_get_config('dataroot_in_settings')) {
17  $params['readonly'] = true;
18  $params['class'] = 'elgg-state-disabled';
19  $warning = elgg_echo('admin:settings:in_settings_file');
20  }
21 
22  $input = elgg_view("input/text", $params);
23  if ($warning) {
24  $input = "<span class=\"elgg-text-help\">$warning</span>";
25  }
26 
27  ?>
28  <div>
29  <label>
30  <?php
31  echo $label;
32  echo $input;
33  ?>
34  </label>
35  </div>
36  <?php } ?>
37 </fieldset>
elgg_get_config($name, $site_guid=0)
Get an Elgg configuration value.
if(!$owner||!($owner instanceof ElggUser)||!$owner->canEdit()) $input
Definition: edit.php:19
fieldset div
Definition: admin.php:470
$params
Definition: login.php:72
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
$label
Elgg profile plugin edit default profile action.
Definition: add.php:7
label
Definition: admin.php:460
elgg fieldset legend
Definition: admin.php:520
elgg fieldset
Definition: admin.php:513