Elgg
Version 1.11
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
widgets
online_users
edit.php
Go to the documentation of this file.
1
<?php
6
$num_display
=
sanitize_int
(
$vars
[
'entity'
]->num_display,
false
);
7
// set default value for display number
8
if
(!
$num_display
) {
9
$num_display
= 8;
10
}
11
12
$params
= array(
13
'name'
=>
'params[num_display]'
,
14
'value'
=>
$num_display
,
15
'options'
=> array(5, 8, 10, 12, 15, 20),
16
);
17
$dropdown
=
elgg_view
(
'input/select'
,
$params
);
18
19
?>
20
<
p
>
21
<?php
echo
elgg_echo
(
'widget:numbertodisplay'
); ?>:
22
<?php
echo
$dropdown
; ?>
23
</
p
>
$num_display
$num_display
Banned users widget edit view.
Definition:
edit.php:6
p
p
Definition:
admin.php:118
elgg_echo
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition:
languages.php:21
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
$dropdown
$dropdown
Definition:
edit.php:17
$params
if(isset($entity->icontime)) $params
Definition:
edit.php:27
sanitize_int
sanitize_int($int, $signed=true)
Sanitizes an integer for database use.
Definition:
database.php:161
$vars
if(file_exists($welcome)) $vars
Definition:
upgrade.php:93
Generated on Sat Dec 21 2024 00:00:48 for Elgg by
1.8.11