Elgg  Version 2.3
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 $vars['class'] = elgg_extract_class($vars, 'elgg-input-file');
18 
19 $defaults = array(
20  'disabled' => false,
21  'type' => 'file'
22 );
23 
24 $vars = array_merge($defaults, $vars);
25 
26 echo elgg_format_element('input', $vars);
elgg_extract_class(array $array, $existing=[])
Extract class names from an array with key "class", optionally merging into a preexisting set.
Definition: elgglib.php:1396
$defaults
Definition: file.php:19
if(!empty($vars['value'])) $vars['class']
Definition: file.php:17
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
elgg_format_element($tag_name, array $attributes=array(), $text='', array $options=array())
Format an HTML element.
Definition: output.php:208