diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-24 10:20:15 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-24 10:20:15 +0000 |
commit | ecbb7357f3cedc48ce02d1074287c56d4e8ccd5a (patch) | |
tree | 3f40150a16ce443672048057dce3b08ec8b3d2b7 | |
parent | 8f175fb48e3e748fae0003214a1eabbb296c19e5 (diff) | |
download | elgg-ecbb7357f3cedc48ce02d1074287c56d4e8ccd5a.tar.gz elgg-ecbb7357f3cedc48ce02d1074287c56d4e8ccd5a.tar.bz2 |
Introducing the AJAX loader
git-svn-id: https://code.elgg.org/elgg/trunk@1090 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r-- | views/default/ajax/loader.php | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/views/default/ajax/loader.php b/views/default/ajax/loader.php new file mode 100644 index 000000000..c9cddd3c4 --- /dev/null +++ b/views/default/ajax/loader.php @@ -0,0 +1,31 @@ +<?php
+
+ /**
+ * Elgg AJAX loader
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Curverider Ltd
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.org/
+ */
+
+ $loader = <<< END
+
+ <p>
+ <img src="{$vars['url']}_graphics/ajax_loader.gif" />
+ </p>
+
+END;
+
+ $loader = str_replace("\n","",$loader);
+ $loader = str_replace("\r","",$loader);
+
+ if (isset($vars['slashes']) && $vars['slashes'] == true) {
+ $loader = addslashes($loader);
+ }
+
+ echo $loader;
+
+?>
\ No newline at end of file |