From 9c99281f20f938701f8645aad1d25412ca6538a7 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 16 Nov 2010 12:23:06 +0300 Subject: code cleanup --- functions.php | 393 ++++++++++++---------------------------------------------- 1 file changed, 78 insertions(+), 315 deletions(-) (limited to 'functions.php') diff --git a/functions.php b/functions.php index 82f06e718..d56ed2957 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 "