X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=templates%2Fdefault%2Fread_recipient_list.tpl;h=e6a65ed93e7a7e99511c893d6d7c54cabba75e75;hp=99a1c52468883c65f71c9e19de7cd97bb45da745;hb=c4faef335b2362c81b8ebf026d4066c12d70536c;hpb=0ce793dc634b331c28af1485877f43c5e43087e5
diff --git a/templates/default/read_recipient_list.tpl b/templates/default/read_recipient_list.tpl
index 99a1c524..e6a65ed9 100644
--- a/templates/default/read_recipient_list.tpl
+++ b/templates/default/read_recipient_list.tpl
@@ -17,7 +17,7 @@
* $r['Email'] - Email address of the recipient
* $a['Full'] - Full name + email
*
- * @copyright © 1999-2006 The SquirrelMail Project Team
+ * @copyright 1999-2020 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package squirrelmail
@@ -31,25 +31,33 @@ extract($t);
/** Begin template **/
$count = 0;
+echo "";
+
foreach ($recipients as $r) {
$count++;
- if ($count > 3 && !$show_more)
- continue;
+
echo $r['Full'];
if ($count != count($recipients)) {
echo ", \n ";
}
+ if (!$show_more && $count == 3) {
+ echo "";
+ }
}
+echo "\n";
+
if (count($recipients) > 3) {
- if ($show_more) {
- ?>
- ()
-
- ()
- " .
+ ($show_more ? _("less") : _("more") ) .
+ ")";
}