aboutsummaryrefslogtreecommitdiff
path: root/views/default/graphics/ajax_loader.php
blob: 77c1fbf4cbee937aeb19bc00198ac63312468423 (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['id'])) {
	$id = "id=\"{$vars['id']}\"";
}

$hidden = 'hidden';
if (isset($vars['hidden']) && $vars['hidden'] == false) {
	$hidden = '';
}

$loader = <<< END

<div class="elgg-ajax-loader $hidden" $id></div>

END;

echo $loader;