[prev in list] [next in list] [prev in thread] [next in thread] 

List:       squirrelmail-cvs
Subject:    [SM-CVS] SF.net SVN: squirrelmail:[14913] trunk/squirrelmail/templates/default/ read_attachments.tpl
From:       pdontthink--- via squirrelmail-cvs <squirrelmail-cvs () lists ! sourceforge ! net>
Date:       2021-04-12 4:28:53
Message-ID: 1618201733.553247.9684 () sfp-scm-4 ! v30 ! lw ! sourceforge ! com
[Download RAW message or body]

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) {
-        ?>
-   &nbsp;|&nbsp;
-   <a href="<?php echo $link['HREF'] . '" ' . $link['Extra']; ?>><?php echo \
                $link['Text']; ?></a>
-        <?php
+        echo '&nbsp;|&nbsp;';
+        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.



-----
squirrelmail-cvs mailing list
List address: squirrelmail-cvs@lists.sourceforge.net
List info (subscribe/unsubscribe/change options): \
                https://lists.sourceforge.net/lists/listinfo/squirrelmail-cvs
Repository: http://squirrelmail.org/svn


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic