diff options
author | Stephen Colebrook <scolebrook@mac.com> | 2014-10-10 09:29:38 -0400 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-10-29 10:24:24 +0100 |
commit | 6feb31bf96215101e314ce2f0c03644495ad095c (patch) | |
tree | 7e5666d8a92ed1e0aab05315283b916649f5effa /core/templates | |
parent | 5bf476efd07d8f6b771f3cbf8ff10e617536263b (diff) | |
download | nextcloud-server-6feb31bf96215101e314ce2f0c03644495ad095c.tar.gz nextcloud-server-6feb31bf96215101e314ce2f0c03644495ad095c.zip |
Allow separate templates for internal and external share notifications
Diffstat (limited to 'core/templates')
-rw-r--r-- | core/templates/internalaltmail.php | 13 | ||||
-rw-r--r-- | core/templates/internalmail.php | 39 |
2 files changed, 52 insertions, 0 deletions
diff --git a/core/templates/internalaltmail.php b/core/templates/internalaltmail.php new file mode 100644 index 00000000000..38531d109b7 --- /dev/null +++ b/core/templates/internalaltmail.php @@ -0,0 +1,13 @@ +<?php +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 on %s.", array($_['expiration']))); + print_unescaped("\n\n"); +} +// TRANSLATORS term at the end of a mail +p($l->t("Cheers!")); +?> + +-- +<?php p($theme->getName() . ' - ' . $theme->getSlogan()); ?> +<?php print_unescaped("\n".$theme->getBaseUrl()); diff --git a/core/templates/internalmail.php b/core/templates/internalmail.php new file mode 100644 index 00000000000..0e73a601857 --- /dev/null +++ b/core/templates/internalmail.php @@ -0,0 +1,39 @@ +<table cellspacing="0" cellpadding="0" border="0" width="100%"> +<tr><td> +<table cellspacing="0" cellpadding="0" border="0" width="600px"> +<tr> +<td bgcolor="<?php p($theme->getMailHeaderColor());?>" width="20px"> </td> +<td bgcolor="<?php p($theme->getMailHeaderColor());?>"> +<img src="<?php p(OC_Helper::makeURLAbsolute(image_path('', 'logo-mail.gif'))); ?>" alt="<?php p($theme->getName()); ?>"/> +</td> +</tr> +<tr><td colspan="2"> </td></tr> +<tr> +<td width="20px"> </td> +<td 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 <strong>%s</strong> with you.<br><a href="%s">View it!</a><br><br>', array($_['user_displayname'], $_['filename'], $_['link']))); +if ( isset($_['expiration']) ) { + p($l->t("The share will expire on %s.", array($_['expiration']))); + print_unescaped('<br><br>'); +} +// TRANSLATORS term at the end of a mail +p($l->t('Cheers!')); +?> +</td> +</tr> +<tr><td colspan="2"> </td></tr> +<tr> +<td width="20px"> </td> +<td 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 p($theme->getBaseUrl()); ?>"><?php p($theme->getBaseUrl());?></a> +</td> +</tr> +<tr> +<td colspan="2"> </td> +</tr> +</table> +</td></tr> +</table> |