blob: 1a90461785694165d4c2a6766fcf16bc49bb687e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
<?php
/**
* Elgg AJAX loader
*
* @package Elgg
* @subpackage Core
*
* @uses $vars['id'] CSS id
* @uses $vars['hidden'] Begin hidden? (true)
*/
if (isset($vars['id'])) {
$id = "id=\"{$vars['id']}\"";
}
if (elgg_extract('hidden', $vars, true)) {
$hidden = 'hidden';
} else {
$hidden = '';
}
$loader = <<< END
<div class="elgg-ajax-loader $hidden" $id></div>
END;
echo $loader;
|