]> git.mxchange.org Git - friendica.git/blobdiff - include/text.php
improved infinite scrollling
[friendica.git] / include / text.php
index 43b321e98a01f503ce960e8ae91e32b0eb3310c3..535c36d235f0fe81ac87c03def37bf9b937df46d 100644 (file)
@@ -385,6 +385,18 @@ function alt_pager(&$a, $i) {
 
 }}
 
+if(! function_exists('scroll_loader')) {
+/**
+ * Loader for infinite scrolling
+ * @return string html for loader
+ */
+function scroll_loader() {
+       $tpl = get_markup_template("scroll_loader.tpl");
+       return replace_macros($tpl, array(
+               'wait' => t('Loading more entries...'),
+               'end' => t('The end')
+       ));
+}}
 
 if(! function_exists('expand_acl')) {
 /**