diff options
author | cash <cash.costello@gmail.com> | 2011-12-01 22:00:40 -0500 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-12-01 22:02:06 -0500 |
commit | 153cb18bbbdfc2343f494413cb234f2940c69a08 (patch) | |
tree | 82b88e4d3de33d101be8e976c3c46b4898bc1267 /views/default | |
parent | fec50c64932a7b30606d14fc0a8feb6a22793688 (diff) | |
download | elgg-153cb18bbbdfc2343f494413cb234f2940c69a08.tar.gz elgg-153cb18bbbdfc2343f494413cb234f2940c69a08.tar.bz2 |
added support for passing classes to ajax loader
Diffstat (limited to 'views/default')
-rw-r--r-- | views/default/graphics/ajax_loader.php | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/views/default/graphics/ajax_loader.php b/views/default/graphics/ajax_loader.php index 1a9046178..d5ce87ea9 100644 --- a/views/default/graphics/ajax_loader.php +++ b/views/default/graphics/ajax_loader.php @@ -6,6 +6,7 @@ * @subpackage Core * * @uses $vars['id'] CSS id + * @uses $vars['class'] Optional additional CSS class * @uses $vars['hidden'] Begin hidden? (true) */ @@ -13,15 +14,18 @@ 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)) { - $hidden = 'hidden'; -} else { - $hidden = ''; + $class = "$class hidden"; } $loader = <<< END -<div class="elgg-ajax-loader $hidden" $id></div> +<div class="$class" $id></div> END; |