aboutsummaryrefslogtreecommitdiff
path: root/views/default/input/file.php
blob: 4c42042e8c1d1c97c584231e14e9c4a5972e3a4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
/**
 * Elgg file input
 * Displays a file input field
 *
 * @package Elgg
 * @subpackage Core
 *
 * @uses $vars['value'] The current value if any
 *
 */

if (!empty($vars['value'])) {
	echo elgg_echo('fileexists') . "<br />";
}

$defaults = array(
	'class' => 'elgg-input-file',
	'disabled' => FALSE,
	'size' => 30,	
);

$attrs = array_merge($defaults, $vars);

?>
<input type="file"  <?php echo elgg_format_attributes($attrs)?> />