blob: d5ce87ea92fc436dc74d7dfee8de2cf96d2c70db (
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
29
30
31
32
|
<?php
/**
* Elgg AJAX loader
*
* @package Elgg
* @subpackage Core
*
* @uses $vars['id'] CSS id
* @uses $vars['class'] Optional additional CSS class
* @uses $vars['hidden'] Begin hidden? (true)
*/
if (isset($vars['id'])) {
$id = "id=\"{$vars['id']}\"";
}
$class = 'elgg-ajax-loader';
if (isset($vars['class'])) {
$class = "$class {$vars['class']}";
}
if (elgg_extract('hidden', $vars, true)) {
$class = "$class hidden";
}
$loader = <<< END
<div class="$class" $id></div>
END;
echo $loader;
|