Elgg
Version 2.3
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
installation
input
button.php
Go to the documentation of this file.
1
<?php
10
if
(isset(
$vars
[
'class'
])) {
11
$class
=
$vars
[
'class'
];
12
}
else
{
13
$class
=
"elgg-button-submit"
;
14
}
15
16
if
(isset(
$vars
[
'name'
])) {
17
$name
=
$vars
[
'name'
];
18
}
else
{
19
$name
=
''
;
20
}
21
22
if
(isset(
$vars
[
'type'
])) {
23
$type
= strtolower(
$vars
[
'type'
]);
24
}
else
{
25
$type
=
'submit'
;
26
}
27
28
switch
(
$type
) {
29
case
'button'
:
30
$type
=
'button'
;
31
break
;
32
case
'submit'
:
33
default
:
34
$type
=
'submit'
;
35
}
36
37
$value
= htmlentities(
$vars
[
'value'
], ENT_QUOTES,
'UTF-8'
);
38
39
?>
40
<
input
type
=
"<?php echo $type; ?>"
value=
"<?php echo $value; ?>"
class
=
"<?php echo $class; ?>"
/>
$vars
$vars['class']
Definition:
button.php:12
$name
if($guid==elgg_get_logged_in_user_guid()) $name
Definition:
delete.php:21
$class
$class
Definition:
field.php:20
type
list style type
Definition:
admin.css.php:808
input
elgg table input[type=checkbox]
Definition:
admin.css.php:404
$value
switch($type) $value
Definition:
button.php:37
$type
if(!$display_name) $type
Definition:
delete.php:27
Generated on Mon Dec 2 2024 00:01:32 for Elgg by
1.8.11