Elgg
Version 1.11
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
forms
admin
site
advanced
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
32
echo
$default_access_label
;
33
echo
$default_access_input
;
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
elgg_get_config($name, $site_guid=0)
Get an Elgg configuration value.
Definition:
configuration.php:71
p
p
Definition:
admin.php:118
$default_access_label
$default_access_label
Advanced site settings, content access section.
Definition:
content_access.php:6
$default_access_input
$default_access_input
Definition:
content_access.php:7
ACCESS_FRIENDS
const ACCESS_FRIENDS
Definition:
elgglib.php:1957
div
fieldset div
Definition:
admin.php:470
elgg_echo
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
$user_default_access_input
Definition:
content_access.php:18
ACCESS_PRIVATE
const ACCESS_PRIVATE
Definition:
elgglib.php:1954
echo
elgg echo
Translates a string.
Definition:
languages.js:43
elgg_view
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype= '')
Return a parsed view.
Definition:
views.php:354
ACCESS_PUBLIC
const ACCESS_PUBLIC
Definition:
elgglib.php:1956
label
label
Definition:
admin.php:460
ACCESS_LOGGED_IN
const ACCESS_LOGGED_IN
Definition:
elgglib.php:1955
legend
elgg fieldset legend
Definition:
admin.php:520
fieldset
elgg fieldset
Definition:
admin.php:513
Generated on Sat Dec 21 2024 00:00:50 for Elgg by
1.8.11