From 749b56bdace4245edb19447ae9f63a52c21d11c8 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 9 Jul 2012 20:48:34 +0400 Subject: experimental article attachment ui based on dijit dropdown --- include/functions.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/include/functions.php b/include/functions.php index 29b5d4677..06939c636 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; -- cgit v1.2.3