- ".__('Selection')."
- --------
@@ -3659,7 +3812,9 @@
} */
print "";
-
+
+ print "";
+
if ($feed_site_url) {
if (!$bottom) {
$target = "target=\"_new\"";
@@ -3678,6 +3833,8 @@
print " [$user_page_offset] ";
}
+ print "";
+
if (!$bottom) {
print "
";
}
- print " ($cat_unread) $ellipsis";
if ($can_browse) {
@@ -3988,7 +4145,7 @@
if ($collapsed == "t" || $collapsed == "1") {
$holder_class = "feedCatHolder";
$holder_style = "display:none;";
- $ellipsis = "...";
+ $ellipsis = "â¦";
} else {
$holder_class = "feedCatHolder";
$holder_style = "";
@@ -4004,7 +4161,7 @@
print "-
$tmp_category
- ($cat_unread) $ellipsis
";
@@ -4287,16 +4444,22 @@
$num_tags = 0;
+ if ($_SESSION["theme"] == "3pane") {
+ $tag_limit = 3;
+ } else {
+ $tag_limit = 6;
+ }
+
foreach ($tags as $tag) {
$num_tags++;
$tag_escaped = str_replace("'", "\\'", $tag);
$tag_str = "$tag, ";
- if ($num_tags == 6) {
- $tags_str .= "...";
+ if ($num_tags == $tag_limit) {
+ $tags_str .= "…";
- } else if ($num_tags < 6) {
+ } else if ($num_tags < $tag_limit) {
$tags_str .= $tag_str;
}
$f_tags_str .= $tag_str;
@@ -4305,7 +4468,7 @@
$tags_str = preg_replace("/, $/", "", $tags_str);
$f_tags_str = preg_replace("/, $/", "", $f_tags_str);
- $all_tags_div = "...All Tags: $f_tags_str ";
+ $all_tags_div = "…All Tags: $f_tags_str ";
$tags_str = preg_replace("/\.\.\.$/", "$all_tags_div", $tags_str);
if (!$entry_comments) $entry_comments = " "; # placeholder
@@ -4332,7 +4495,40 @@
$line["content"] = preg_replace("/href=/i", "target=\"_new\" href=", $line["content"]);
}
- print $line["content"] . "";
+ print $line["content"];
+
+ $result = db_query($link, "SELECT * FROM ttrss_enclosures WHERE
+ post_id = '$id'");
+
+ if (db_num_rows($result) > 0) {
+ print "";
+
+ if (db_num_rows($result) == 1) {
+ print __("Attachment:") . " ";
+ } else {
+ print __("Attachments:") . " ";
+ }
+
+ $entries = array();
+
+ while ($line = db_fetch_assoc($result)) {
+
+ $url = $line["content_url"];
+
+ $filename = substr($url, strrpos($url, "/")+1);
+
+ $entry = " " .
+ $filename . " (" . $line["content_type"] . ")" . "";
+
+ array_push($entries, $entry);
+ }
+
+ print join(", ", $entries);
+
+ print " ";
+ }
+
+ print "";
print "";
@@ -4345,6 +4541,8 @@
function outputHeadlinesList($link, $feed, $subop, $view_mode, $limit, $cat_view,
$next_unread_feed, $offset) {
+ $disable_cache = false;
+
$timing_info = getmicrotime();
$topmost_article_ids = array();
@@ -4412,6 +4610,11 @@
/// START /////////////////////////////////////////////////////////////////////////////////
$search = db_escape_string($_GET["query"]);
+
+ if ($search) {
+ $disable_cache = true;
+ }
+
$search_mode = db_escape_string($_GET["search_mode"]);
$match_on = db_escape_string($_GET["match_on"]);
@@ -4660,6 +4863,38 @@
// print "";
print $line["content_preview"];
+
+ $e_result = db_query($link, "SELECT * FROM ttrss_enclosures WHERE
+ post_id = '$id'");
+
+ if (db_num_rows($e_result) > 0) {
+ print " ";
+
+ if (db_num_rows($e_result) == 1) {
+ print __("Attachment:") . " ";
+ } else {
+ print __("Attachments:") . " ";
+ }
+
+ $entries = array();
+
+ while ($e_line = db_fetch_assoc($e_result)) {
+
+ $url = $e_line["content_url"];
+
+ $filename = substr($url, strrpos($url, "/")+1);
+
+ $entry = " " .
+ $filename . " (" . $e_line["content_type"] . ")" . "";
+
+ array_push($entries, $entry);
+ }
+
+ print join(", ", $entries);
+
+ print " ";
+ }
+
print " ";
// print " ";
@@ -4694,14 +4929,14 @@
if ($num_tags < 5) {
$tags_str .= "$tag, ";
} else if ($num_tags == 5) {
- $tags_str .= "...";
+ $tags_str .= "…";
}
}
$tags_str = preg_replace("/, $/", "", $tags_str);
$full_tags_str = preg_replace("/, $/", "", $full_tags_str);
- $all_tags_div = "...All Tags: $full_tags_str ";
+ $all_tags_div = "…All Tags: $full_tags_str ";
$tags_str = preg_replace("/\.\.\.$/", "$all_tags_div", $tags_str);
@@ -4746,7 +4981,7 @@
print "";
}
- return array($topmost_article_ids, $headlines_count);
+ return array($topmost_article_ids, $headlines_count, $feed, $disable_cache);
}
// from here: http://www.roscripts.com/Create_tag_cloud-71.html
|