Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
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>
40  <?php echo $user_default_access_input; ?>
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.
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
$default_access_label
Advanced site settings, content access section.
$default_access_input
const ACCESS_FRIENDS
Definition: elgglib.php:1991
$user_default_access_input
const ACCESS_PRIVATE
Definition: elgglib.php:1988
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
Definition: views.php:342
const ACCESS_PUBLIC
Definition: elgglib.php:1990
const ACCESS_LOGGED_IN
Definition: elgglib.php:1989