aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-24 10:20:15 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-24 10:20:15 +0000
commitecbb7357f3cedc48ce02d1074287c56d4e8ccd5a (patch)
tree3f40150a16ce443672048057dce3b08ec8b3d2b7 /views/default
parent8f175fb48e3e748fae0003214a1eabbb296c19e5 (diff)
downloadelgg-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
Diffstat (limited to 'views/default')
-rw-r--r--views/default/ajax/loader.php31
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