X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=functions.php;h=d56ed295743a96311f06f1890639c2cc517964c3;hb=9c99281f20f938701f8645aad1d25412ca6538a7;hp=82f06e718cad1784bd925b218ae82c1a12ebe161;hpb=102cfe73c6662ab632ff8f81f924a3c642747b29;p=tt-rss.git
diff --git a/functions.php b/functions.php
index 82f06e71..d56ed295 100644
--- a/functions.php
+++ b/functions.php
@@ -1672,82 +1672,6 @@
}
}
- function printFeedEntry($feed_id, $class, $feed_title, $unread, $icon_file, $link,
- $rtl_content = false, $last_updated = false, $last_error = false,
- $fg_content = false, $bg_content = false) {
-
- if (!$feed_title) $feed_title = getFeedTitle($link, $feed_id, false);
- if (!$unread) $unread = getFeedUnread($link, $feed_id);
-
- if ($unread > 0) $class .= " Unread";
-
- if (!$icon_file) $icon_file = getFeedIcon($feed_id);
-
- if (strpos($icon_file, "images") !== false) {
- $icon_file = theme_image($link, $icon_file);
- }
-
- if (file_exists($icon_file) && filesize($icon_file) > 0) {
- $feed_icon = "
";
- } else {
- $feed_icon = "
";
- }
-
- if ($rtl_content) {
- $rtl_tag = "dir=\"rtl\"";
- } else {
- $rtl_tag = "dir=\"ltr\"";
- }
-
- $error_notify_msg = "";
-
- if ($last_error) {
- $link_title = "Error: $last_error ($last_updated)";
- $error_notify_msg = "(Error)";
- } else if ($last_updated) {
- $link_title = "Updated: $last_updated";
- }
-
- $feed_title = truncate_string($feed_title, 30);
-
- $feed = "$feed_title";
-
-/* if ($feed_id < -10) {
- $bg_color = "#00ccff";
- $fg_color = "white";
- }
-
- if ($fg_color || $bg_color) {
- $color_str = "
l
";
- }
-
- print $color_str; */
-
- print "";
- print "$feed_icon";
- print "$feed";
-
- if ($unread != 0) {
- $fctr_class = "class=\"feedCtr Unread\"";
- } else {
- $fctr_class = "class=\"feedCtr\"";
- }
-
- print "
- ($unread)";
-
- if (get_pref($link, "EXTENDED_FEEDLIST")) {
- $total = getFeedArticles($link, $feed_id);
- print "
- $last_updated ($total total) $error_notify_msg
";
- }
-
- print "";
-
- }
-
function getmicrotime() {
list($usec, $sec) = explode(" ",microtime());
return ((float)$usec + (float)$sec);
@@ -4147,47 +4071,6 @@
print " ";
-/* print "".
- __("Actions...") . "
- ";
-
- print "";
-
- print "- ".__('Selection toggle:')."
- - ".__('Unread')."
- - ".__('Starred')."
- - ".__('Published')."
- - ".__('Selection:')."
- - ".__('Mark as read')."
";
-
-// print "- ".__('Entire feed').
-// "
";
-
- if ($feed_id != "0") {
- print "- ".__('Archive')."
";
- } else {
- print "- ".__('Move back')."
";
- print "- ".__('Delete')."
";
-
- }
-
- print "- ".
- __('Forward by email')."
";
-
- //print "- --------
";
- print "- ".__('Assign label:')."
";
-
- print_labels_headlines_dropdown($link, $feed_id);
-
- print "- ".__('Feed:')."
";
- print "- ".__('View as RSS')."
";
-
- print "
"; */
-
print "