Elgg  Version 1.11
content_access.php
Go to the documentation of this file.
1 <?php
6 $default_access_label = elgg_echo('installation:sitepermissions');
7 $default_access_input = elgg_view('input/access', array(
8  'options_values' => array(
9  ACCESS_PRIVATE => elgg_echo("PRIVATE"),
10  ACCESS_FRIENDS => elgg_echo("access:friends:label"),
11  ACCESS_LOGGED_IN => elgg_echo("LOGGED_IN"),
12  ACCESS_PUBLIC => elgg_echo("PUBLIC"),
13  ),
14  'name' => 'default_access',
15  'value' => elgg_get_config('default_access'),
16 ));
17 
18 $user_default_access_input = elgg_view('input/checkbox', array(
19  'label' => elgg_echo('installation:allow_user_default_access:label'),
20  'name' => 'allow_user_default_access',
21  'checked' => (bool)elgg_get_config('allow_user_default_access'),
22 ));
23 
24 ?>
25 
26 <fieldset class="elgg-fieldset" id="elgg-settings-advanced-content-access">
27  <legend><?php echo elgg_echo('admin:legend:content_access'); ?></legend>
28 
29  <div>
30  <label>
31  <?php
34  ?>
35  </label>
36  <p class="elgg-text-help"><?php echo elgg_echo('admin:site:access:warning'); ?></p>
37  </div>
38 
39  <div>
41  <p class="elgg-text-help">
42  <?php echo elgg_echo('installation:allow_user_default_access:description'); ?>
43  </p>
44  </div>
45 
46 </fieldset>
elgg_get_config($name, $site_guid=0)
Get an Elgg configuration value.
p
Definition: admin.php:118
$default_access_label
Advanced site settings, content access section.
$default_access_input
const ACCESS_FRIENDS
Definition: elgglib.php:1957
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
$user_default_access_input
const ACCESS_PRIVATE
Definition: elgglib.php:1954
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
const ACCESS_PUBLIC
Definition: elgglib.php:1956
label
Definition: admin.php:460
const ACCESS_LOGGED_IN
Definition: elgglib.php:1955
elgg fieldset legend
Definition: admin.php:520
elgg fieldset
Definition: admin.php:513