From b9a1f6334482ae181609e262c11c378e1d0f6109 Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Mon, 30 Sep 2013 10:02:26 +0200 Subject: [PATCH] go back to old template but add expire date as optional content --- core/templates/altmail.php | 10 +++++++--- core/templates/mail.php | 11 ++++++++--- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/core/templates/altmail.php b/core/templates/altmail.php index f7159a021a8..5df43b50776 100644 --- a/core/templates/altmail.php +++ b/core/templates/altmail.php @@ -1,7 +1,11 @@ getShareNotificationTextAlt($_['user_displayname'], $_['filename'], $_['link'], $expiration)); +print_unescaped($l->t("Hey there,\n\njust letting you know that %s shared %s with you.\nView it: %s\n\n", array($_['user_displayname'], $_['filename'], $_['link']))); +if ( isset($_['expiration']) ) { + print_unescaped($l->t("The share will expire at %s.\n\n", array($_['expiration']))); +} +p($l->t("Cheers!")); ?> -- -getMailFooterAlt()); +getName() . ' - ' . $theme->getSlogan()); ?> +getBaseUrl()); diff --git a/core/templates/mail.php b/core/templates/mail.php index 5570e4caabe..1464d2be2f4 100644 --- a/core/templates/mail.php +++ b/core/templates/mail.php @@ -12,8 +12,11 @@   getShareNotificationTextHtml($_['user_displayname'], $_['filename'], $_['link'], $expiration)); +print_unescaped($l->t('Hey there,

just letting you know that %s shared »%s« with you.
View it!

', array($_['user_displayname'], $_['filename'], $_['link']))); +if ( isset($_['expiration']) ) { + print_unescaped($l->t("The share will expire at %s.

", array($_['expiration']))); +} +p($l->t('Cheers!')); ?> @@ -21,7 +24,9 @@ print_unescaped($theme->getShareNotificationTextHtml($_['user_displayname'], $_[   --
-getMailFooterHtml()); ?> +getName()); ?> - +getSlogan()); ?> +
getBaseUrl());?> -- 2.39.5