Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
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' && $GLOBALS['_ELGG']->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.
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
if(!$owner||!($owner instanceof ElggUser)||!$owner->canEdit()) $input
Definition: edit.php:19
$params
Definition: login.php:72
if(elgg_extract('required', $vars)) $field
Definition: field.php:26
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
Definition: views.php:342
$label
Elgg profile plugin edit default profile action.
Definition: add.php:7