Elgg  Version 3.0
ajax_loader.php
Go to the documentation of this file.
1 <?php
14 
15 if (isset($vars['id'])) {
16  $attributes['id'] = elgg_extract('id', $vars);
17 }
18 
19 $attributes['class'] = elgg_extract_class($vars, 'elgg-ajax-loader');
20 
21 if (elgg_extract('hidden', $vars, true)) {
22  $attributes['class'][] = "hidden";
23 }
24 
26 
27 $loader = <<< END
28 
29 <div $attrs></div>
30 
31 END;
32 
elgg_format_attributes(array $attrs=[])
Converts an associative array into a string of well-formed HTML/XML attributes Returns a concatenated...
Definition: output.php:134
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 echo
Translates a string.
Definition: languages.js:43
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:1131
$vars['type']
Definition: save.php:11
if(elgg_extract('hidden', $vars, true)) $attrs
Definition: ajax_loader.php:25
$attributes
Definition: ajax_loader.php:13
$loader
Definition: ajax_loader.php:27