From: Andrew Dolgov Date: Mon, 9 Jul 2012 16:48:34 +0000 (+0400) Subject: experimental article attachment ui based on dijit dropdown X-Git-Tag: 1.6.0~192 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=749b56bdace4245edb19447ae9f63a52c21d11c8;p=tt-rss.git experimental article attachment ui based on dijit dropdown --- diff --git a/include/functions.php b/include/functions.php index 29b5d467..06939c63 100644 --- a/include/functions.php +++ b/include/functions.php @@ -4718,13 +4718,16 @@ if (!$ctype) $ctype = __("unknown type"); -# $filename = substr($url, strrpos($url, "/")+1); + $filename = substr($url, strrpos($url, "/")+1); - $entry = format_inline_player($link, $url, $ctype); +# $player = format_inline_player($link, $url, $ctype); # $entry .= " " . # $filename . " (" . $ctype . ")" . ""; + $entry = "
$filename ($ctype)
"; + array_push($entries_html, $entry); $entry = array(); @@ -4736,8 +4739,6 @@ array_push($entries, $entry); } - $rv .= "
"; - if (!get_pref($link, "STRIP_IMAGES")) { if ($always_display_enclosures || !preg_match("/

"; + } } } } - if (count($entries) == 1) { - $rv .= __("Attachment:") . " "; - } else { - $rv .= __("Attachments:") . " "; - } + $rv .= "
". + "" . __('Attachments').""; + $rv .= "
"; - $rv .= join(", ", $entries_html); + foreach ($entries_html as $entry) { $rv .= $entry; }; - $rv .= "
"; + $rv .= "
"; } return $rv;