Elgg  Version 3.0
file.php
Go to the documentation of this file.
1 <?php
13 if (!empty($vars['value'])) {
14  echo elgg_format_element('div', [
15  'class' => 'elgg-state elgg-state-warning',
16  ], elgg_echo('fileexists'));
17 }
18 
19 $vars['class'] = elgg_extract_class($vars, 'elgg-input-file');
20 
22  'disabled' => false,
23  'type' => 'file'
24 ];
25 
26 $vars = array_merge($defaults, $vars);
27 
elgg_echo($message_key, array $args=[], $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
elgg_extract_class(array $array, $existing=[], $extract_key= 'class')
Extract class names from an array, optionally merging into a preexisting set.
Definition: elgglib.php:1153
elgg_format_element($tag_name, array $attributes=[], $text= '', array $options=[])
Format an HTML element.
Definition: output.php:168
elgg echo
Translates a string.
Definition: languages.js:43
$defaults
Definition: file.php:21
if(!empty($vars['value'])) $vars['class']
Definition: file.php:19