blob: 2d2da30b7f95f1da8169c27c879a17eb95e13a3e (
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
|
<?php
/**
* Elgg AJAX loader
*
* @package Elgg
* @subpackage Core
*
* @uses $vars['id'] CSS id
* @uses $vars['hidden'] Begin hidden? (true)
*/
if (isset($vars['internalid'])) {
$id = "id=\"{$vars['internalid']}\"";
}
$hidden = 'hidden';
if (isset($vars['hidden']) && $vars['hidden'] == false) {
$hidden = '';
}
$loader = <<< END
<div class="elgg-ajax-loader $hidden" $id></div>
END;
echo $loader;
|