diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2013-09-25 11:51:28 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2013-09-25 11:51:28 +0200 |
commit | 883d1c0df32a942d3bb07f242e8ffcd871418f60 (patch) | |
tree | 9ddfaec99ea2886d997bdcb90842a7ae9b0029fd /core/templates/mail.php | |
parent | ca47fc5f18178c88f8a4eff3de35f02b580bc6b1 (diff) | |
download | nextcloud-server-883d1c0df32a942d3bb07f242e8ffcd871418f60.tar.gz nextcloud-server-883d1c0df32a942d3bb07f242e8ffcd871418f60.zip |
use template for txt and html mails to send notification mails
Diffstat (limited to 'core/templates/mail.php')
-rw-r--r-- | core/templates/mail.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/templates/mail.php b/core/templates/mail.php index de72b136b13..5570e4caabe 100644 --- a/core/templates/mail.php +++ b/core/templates/mail.php @@ -12,7 +12,8 @@ <td bgcolor="#f8f8f8" width="20px"> </td> <td bgcolor="#f8f8f8" style="font-weight:normal; font-size:0.8em; line-height:1.2em; font-family:verdana,'arial',sans;"> <?php -print_unescaped($l->t('Hey there,<br><br>just letting you know that %s shared »%s« with you.<br><a href="%s">View it!</a><br><br>Cheers!', array($_['user_displayname'], $_['filename'], $_['link']))); +$expiration = isset($_['expiration']) ? $_['expiration'] : null; +print_unescaped($theme->getShareNotificationTextHtml($_['user_displayname'], $_['filename'], $_['link'], $expiration)); ?> </td> </tr> @@ -20,9 +21,8 @@ print_unescaped($l->t('Hey there,<br><br>just letting you know that %s shared » <tr> <td bgcolor="#f8f8f8" width="20px"> </td> <td bgcolor="#f8f8f8" style="font-weight:normal; font-size:0.8em; line-height:1.2em; font-family:verdana,'arial',sans;">--<br> -<?php p($theme->getName()); ?> - -<?php p($theme->getSlogan()); ?> -<br><a href="<?php print_unescaped($theme->getBaseUrl()); ?>"><?php print_unescaped($theme->getBaseUrl());?></a></td> +<?php print_unescaped($theme->getMailFooterHtml()); ?> +</td> </tr> <tr> <td bgcolor="#f8f8f8" colspan="2"> </td> |