Elgg  Version 1.11
site_access.php
Go to the documentation of this file.
1 <?php
6 // new user registration
7 $allow_reg_input = elgg_view('input/checkbox', array(
8  'label' => elgg_echo('installation:registration:label'),
9  'name' => 'allow_registration',
10  'checked' => (bool)elgg_get_config('allow_registration'),
11 ));
12 
13 // walled garden
14 $walled_garen_input = elgg_view('input/checkbox', array(
15  'label' => elgg_echo('installation:walled_garden:label'),
16  'name' => 'walled_garden',
17  'checked' => (bool)elgg_get_config('walled_garden'),
18 ));
19 
20 // https login
21 $https_input = elgg_view("input/checkbox", array(
22  'label' => elgg_echo('installation:httpslogin:label'),
23  'name' => 'https_login',
24  'checked' => (bool)elgg_get_config('https_login'),
25 ));
26 
27 ?>
28 
29 <fieldset class="elgg-fieldset" id="elgg-settings-advanced-site-access">
30  <legend><?php echo elgg_echo('admin:legend:site_access'); ?></legend>
31 
32  <div>
33  <?php echo $allow_reg_input; ?>
34  <p class="elgg-text-help"><?php echo elgg_echo('installation:registration:description'); ?></p>
35  </div>
36 
37  <div>
38  <?php echo $walled_garen_input; ?>
39  <p class="elgg-text-help"><?php echo elgg_echo('installation:walled_garden:description'); ?></p>
40  </div>
41 
42 
43  <div>
44  <?php echo $https_input; ?>
45  <p class="elgg-text-help"><?php echo elgg_echo('installation:httpslogin'); ?></p>
46  </div>
47 </fieldset>
elgg_get_config($name, $site_guid=0)
Get an Elgg configuration value.
p
Definition: admin.php:118
$walled_garen_input
Definition: site_access.php:14
fieldset div
Definition: admin.php:470
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
$https_input
Definition: site_access.php:21
$allow_reg_input
Advanced site settings, site access section.
Definition: site_access.php:7
elgg fieldset legend
Definition: admin.php:520
elgg fieldset
Definition: admin.php:513