Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
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 ?>
21 
22 <fieldset class="elgg-fieldset" id="elgg-settings-advanced-site-access">
23  <legend><?php echo elgg_echo('admin:legend:site_access'); ?></legend>
24 
25  <div>
26  <?php echo $allow_reg_input; ?>
27  <p class="elgg-text-help"><?php echo elgg_echo('installation:registration:description'); ?></p>
28  </div>
29 
30  <div>
31  <?php echo $walled_garen_input; ?>
32  <p class="elgg-text-help"><?php echo elgg_echo('installation:walled_garden:description'); ?></p>
33  </div>
34 </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
$walled_garen_input
Definition: site_access.php:14
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
Definition: views.php:342
$allow_reg_input
Advanced site settings, site access section.
Definition: site_access.php:7