From: <pdo...@us...> - 2021-04-12 04:29:00
|
Revision: 14913 http://sourceforge.net/p/squirrelmail/code/14913 Author: pdontthink Date: 2021-04-12 04:28:53 +0000 (Mon, 12 Apr 2021) Log Message: ----------- Allow plugins to add non-link text for attachments Modified Paths: -------------- trunk/squirrelmail/templates/default/read_attachments.tpl Modified: trunk/squirrelmail/templates/default/read_attachments.tpl =================================================================== --- trunk/squirrelmail/templates/default/read_attachments.tpl 2021-04-12 03:16:42 UTC (rev 14912) +++ trunk/squirrelmail/templates/default/read_attachments.tpl 2021-04-12 04:28:53 UTC (rev 14913) @@ -81,10 +81,11 @@ } foreach ($attachment['OtherLinks'] as $link) { - ?> - | - <a href="<?php echo $link['HREF'] . '" ' . $link['Extra']; ?>><?php echo $link['Text']; ?></a> - <?php + echo ' | '; + if (empty($link['HREF'])) + echo '<span ' . $link['Extra'] . '>' . $link['Text'] . '</span>'; + else + echo '<a href="' . $link['HREF'] . '" ' . $link['Extra'] . '>' . $link['Text'] . '</a>'; } ?> </small> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |