Elgg
Version 1.9
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
input
file.php
Go to the documentation of this file.
1
<?php
13
if
(!empty(
$vars
[
'value'
])) {
14
echo
elgg_echo
(
'fileexists'
) .
"<br />"
;
15
}
16
17
if
(isset(
$vars
[
'class'
])) {
18
$vars
[
'class'
] =
"elgg-input-file {$vars['class']}"
;
19
}
else
{
20
$vars
[
'class'
] =
"elgg-input-file"
;
21
}
22
23
$defaults
= array(
24
'disabled'
=>
false
,
25
);
26
27
$attrs
= array_merge(
$defaults
,
$vars
);
28
29
?>
30
<
input
type
=
"file"
<?php
echo
elgg_format_attributes
(
$attrs
); ?> />
$defaults
$defaults
Definition:
file.php:23
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_format_attributes
elgg_format_attributes(array $attrs=array())
Converts an associative array into a string of well-formed attributes.
Definition:
output.php:118
type
list style type
Definition:
admin.php:724
input
elgg table input[type=checkbox]
Definition:
admin.php:392
$vars
if(file_exists($welcome)) $vars
Definition:
upgrade.php:93
$attrs
$attrs
Definition:
file.php:27
Generated on Sat Dec 21 2024 00:00:36 for Elgg by
1.8.11