Elgg  Version 1.9
ajax_loader.php
Go to the documentation of this file.
1 <?php
13 $attributes = array();
14 
15 if (isset($vars['id'])) {
16  $attributes['id'] = $vars['id'];
17 }
18 
19 $class = 'elgg-ajax-loader';
20 if (isset($vars['class'])) {
21  $class = "$class {$vars['class']}";
22 }
23 
24 if (elgg_extract('hidden', $vars, true)) {
25  $class = "$class hidden";
26 }
27 
28 $attributes['class'] = $class;
29 
31 
32 $loader = <<< END
33 
34 <div $attrs></div>
35 
36 END;
37 
elgg_extract($key, array $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:1464
fieldset div
Definition: admin.php:462
if(isset($vars['id'])) $class
Definition: ajax_loader.php:19
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
$attrs
Definition: ajax_loader.php:30
$attributes
Definition: ajax_loader.php:13
$loader
Definition: ajax_loader.php:32
if(file_exists($welcome)) $vars
Definition: upgrade.php:93