Elgg  Version 1.9
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
Definition: file.php:23
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
elgg echo
Translates a string.
Definition: languages.js:43
elgg_format_attributes(array $attrs=array())
Converts an associative array into a string of well-formed attributes.
Definition: output.php:118
list style type
Definition: admin.php:724
elgg table input[type=checkbox]
Definition: admin.php:392
if(file_exists($welcome)) $vars
Definition: upgrade.php:93
$attrs
Definition: file.php:27