summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-08-09 08:36:04 +0100
committerAndrew Dolgov <[email protected]>2007-08-09 08:36:04 +0100
commitac541432000c24fee20cf0e0ce0881aa6437455a (patch)
treee2c45aface714fc5929348dd2fdde79614e1aed5 /functions.php
parente4914b62755d3dddc42cd3d6a283978338800f57 (diff)
infinite scrolling
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php37
1 files changed, 21 insertions, 16 deletions
diff --git a/functions.php b/functions.php
index 3bf2a0b7d..7ca93956d 100644
--- a/functions.php
+++ b/functions.php
@@ -3693,7 +3693,9 @@
$topmost_article_ids = array();
- if (!$offset) $offset = 0;
+ if (!$offset) {
+ $offset = 0;
+ }
if ($subop == "undefined") $subop = "";
@@ -3777,24 +3779,26 @@
/// STOP //////////////////////////////////////////////////////////////////////////////////
- print "<div id=\"headlinesContainer\" $rtl_tag>";
+ if (!$offset) {
+ print "<div id=\"headlinesContainer\" $rtl_tag>";
- if (!$result) {
- print "<div align='center'>".__("Could not display feed (query failed). Please check label match syntax or local configuration.")."</div>";
- return;
- }
+ if (!$result) {
+ print "<div align='center'>".__("Could not display feed (query failed). Please check label match syntax or local configuration.")."</div>";
+ return;
+ }
- print_headline_subtoolbar($link, $feed_site_url, $feed_title, false,
- $rtl_content, $feed, $cat_view, $search, $match_on, $search_mode,
- $offset, $limit);
+ print_headline_subtoolbar($link, $feed_site_url, $feed_title, false,
+ $rtl_content, $feed, $cat_view, $search, $match_on, $search_mode,
+ $offset, $limit);
- print "<div id=\"headlinesInnerContainer\">";
+ print "<div id=\"headlinesInnerContainer\" onscroll=\"headlines_scroll_handler()\">";
+ }
if (db_num_rows($result) > 0) {
# print "\{$offset}";
- if (!get_pref($link, 'COMBINED_DISPLAY_MODE')) {
+ if (!get_pref($link, 'COMBINED_DISPLAY_MODE') && !$offset) {
print "<table class=\"headlinesList\" id=\"headlinesList\"
cellspacing=\"0\">";
}
@@ -3975,7 +3979,7 @@
++$lnum;
}
- if (!get_pref($link, 'COMBINED_DISPLAY_MODE')) {
+ if (!get_pref($link, 'COMBINED_DISPLAY_MODE') && !$offset) {
print "</table>";
}
@@ -3984,12 +3988,13 @@
} else {
- print "<div class='whiteBox'>".__('No articles found.')."</div>";
+ if (!$offset) print "<div class='whiteBox'>".__('No articles found.')."</div>";
}
- print "</div>";
-
- print "</div>";
+ if (!$offset) {
+ print "</div>";
+ print "</div>";
+ }
return $topmost_article_ids;
}