";
-
- print "|
- Select:
- All,
- Unread,
- None
-
- Toggle: Unread,
- Starred";
-
- print " | ";
-
- print "";
-
- if ($feed_site_url) {
- print "$feed_title";
+ if ($omode != "xml") {
+
+ print "";
+
+ print "";
+
} else {
- print $feed_title;
+ print "";
}
-
- print "";
- print " ";
-
-
- print "";
$lnum = 0;
@@ -1022,7 +1037,7 @@
$num_unread = 0;
while ($line = db_fetch_assoc($result)) {
-
+
$class = ($lnum % 2) ? "even" : "odd";
$id = $line["id"];
@@ -1041,6 +1056,9 @@
if ($line["unread"] == "t" || $line["unread"] == "1") {
$class .= "Unread";
++$num_unread;
+ $is_unread = 'true';
+ } else {
+ $is_unread = 'false';
}
if ($line["marked"] == "t" || $line["marked"] == "1") {
@@ -1053,72 +1071,99 @@
$content_link = "" .
$line["title"] . "";
-
- print "";
- // onclick=\"javascript:view($id,$feed_id)\">
-
- print "| $update_pic | ";
-
- print "
-
- | ";
-
- print "$marked_pic | ";
-
- if ($line["feed_title"]) {
- print "$content_link | ";
- print "
- ".$line["feed_title"]." | ";
- } else {
- print "";
-
- print "" .
- $line["title"];
-
- if (get_pref($link, 'SHOW_CONTENT_PREVIEW')) {
-
- $content_preview = truncate_string(strip_tags($line["content_preview"]),
- 101);
-
- if ($content_preview) {
- print " - $content_preview";
- }
- }
-
- print "";
- print " | ";
- }
-
+
if (get_pref($link, 'HEADLINES_SMART_DATE')) {
$updated_fmt = smart_date_time(strtotime($line["updated"]));
} else {
$short_date = get_pref($link, 'SHORT_DATE_FORMAT');
$updated_fmt = date($short_date, strtotime($line["updated"]));
}
+
+ if (get_pref($link, 'SHOW_CONTENT_PREVIEW')) {
+ $content_preview = truncate_string(strip_tags($line["content_preview"]), 101);
+ }
+
+ if ($omode != "xml") {
+
+ print " ";
+ // onclick=\"javascript:view($id,$feed_id)\">
+
+ print "| $update_pic | ";
+
+ print "
+
+ | ";
+
+ print "$marked_pic | ";
+
+ if ($line["feed_title"]) {
+ print "$content_link | ";
+ print "
+ ".$line["feed_title"]." | ";
+ } else {
+ print "";
+
+ print "" .
+ $line["title"];
+
+ if (get_pref($link, 'SHOW_CONTENT_PREVIEW')) {
+
+ if ($content_preview) {
+ print " - $content_preview";
+ }
+ }
+
+ print "";
+ print " | ";
+ }
+
+ print "$updated_fmt | ";
+
+ print " ";
+
+ } else {
+
+ print "";
+ print "";
+ print "" . $line["link"] . "";
+ print "$updated_fmt";
+ if ($content_preview) {
+ print "";
+ }
+
+ if ($line["feed_title"]) {
+ print "";
+ }
+ print "";
+
+ }
- print "$updated_fmt | ";
-
- print "";
++$lnum;
}
-
- print " ";
+
+ if ($omode != "xml") {
+ print " |