From 6aa79cacfd8958c68f48f4f230fea9fb972ed3ae Mon Sep 17 00:00:00 2001 From: Felix Epp Date: Mon, 19 Sep 2016 16:00:41 +0200 Subject: [PATCH 1/4] Fix mail header logo [fixes #1326] Signed-off-by: Felix A. Epp --- apps/encryption/templates/mail.php | 5 ++--- core/img/logo-mail.gif | Bin 518 -> 0 bytes core/img/logo-mail.png | Bin 1944 -> 1706 bytes core/templates/internalmail.php | 5 ++--- core/templates/mail.php | 5 ++--- settings/templates/email.new_user.php | 5 ++--- 6 files changed, 8 insertions(+), 12 deletions(-) delete mode 100644 core/img/logo-mail.gif diff --git a/apps/encryption/templates/mail.php b/apps/encryption/templates/mail.php index 3783959b36..3754b4b3e5 100644 --- a/apps/encryption/templates/mail.php +++ b/apps/encryption/templates/mail.php @@ -6,9 +6,8 @@ - - diff --git a/core/img/logo-mail.gif b/core/img/logo-mail.gif deleted file mode 100644 index 7c14cb8d1afe578634f7d410811d4c8d409e945c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 518 zcmV+h0{Q(%Nk%w1VQm010OJV&0D;H=fyn@Y$^e4M0D{Q?g317c$N+=M0E5c^|NsC0 z|NsC0|NsC0|NsC0|NsC0A^8LW3IGoPEC2ui0Bry=06+x(@X1N5y*T5*wf|r!h5%un zXsWL3F}@Zn&k_w=B^x})?5C4}4D>_YKE)Gp$V(O{Wm%TyoP7~gK~%TBp*+57@`L-7~}Hc@$1et(74HIH70T91sH zo@9NWqGgCUBPFS*4p2849!FF&#R($Ed^1Rr zYD3S$yIiKEP$}qgr9ufB)4ADp;bw|CGVGLumu8}qlo!y6`}uO6HfhgRJTR(+AJeNs zvudR(vWS3aVFLm|v;ryxklE6NvLIC)TP6d7#vQ}e2}Gs|!<}$@V@9&N`6%?o3U`If zh$~#)HK{i31Rn@y%9vCZD+t7PE0b;VweyP13nwQup)|GJ)g~UhMiY3pJ-vo)+ZND4 Iw}c1)JB~W@P5=M^ diff --git a/core/img/logo-mail.png b/core/img/log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=`@vj{V)mXjf$HWpm(6stc_tkasL-!fq>XGw;4S(cLaaAfD1fq`;~mxspCQp~1+rgL|F z1_w{Lt5@e8tV(#PSV{8tA04qi(5k0i(mknUZ=yS=FEtk9RkQ)DpZZ8~y)04fDgOdxJ&9=m diff --git a/core/templates/internalmail.php b/core/templates/internalmail.php index 9bb10fb545..555c063c14 100644 --- a/core/templates/internalmail.php +++ b/core/templates/internalmail.php @@ -2,9 +2,8 @@
  - <?php p($theme->getName()); ?> + + <?php p($theme->getName()); ?>
 
- - diff --git a/core/templates/mail.php b/core/templates/mail.php index c2d84184d3..3721d50e27 100644 --- a/core/templates/mail.php +++ b/core/templates/mail.php @@ -2,9 +2,8 @@
  -<?php p($theme->getName()); ?> + +<?php p($theme->getName()); ?>
 
- - diff --git a/settings/templates/email.new_user.php b/settings/templates/email.new_user.php index 8b13ac753e..054992532d 100644 --- a/settings/templates/email.new_user.php +++ b/settings/templates/email.new_user.php @@ -2,9 +2,8 @@
  -<?php p($theme->getName()); ?> + +<?php p($theme->getName()); ?>
 
- - From 01867b42d4dbc521e1e738f9f93a35389a7a5903 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Tue, 29 Nov 2016 16:31:40 +0100 Subject: [PATCH 2/4] Update sharedbymail template Signed-off-by: Morris Jobke --- apps/sharebymail/templates/mail.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/sharebymail/templates/mail.php b/apps/sharebymail/templates/mail.php index 48f7dcb063..ea3531809a 100644 --- a/apps/sharebymail/templates/mail.php +++ b/apps/sharebymail/templates/mail.php @@ -27,9 +27,8 @@
  - <?php p($theme->getName()); ?> + + <?php p($theme->getName()); ?>
 
- - From 224c89c1b837e1fd6a36cff2f17324e5b7535994 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Tue, 29 Nov 2016 16:50:02 +0100 Subject: [PATCH 3/4] Remove leftovers from #1929 Signed-off-by: Morris Jobke --- core/templates/internalaltmail.php | 13 ---------- core/templates/internalmail.php | 38 ------------------------------ 2 files changed, 51 deletions(-) delete mode 100644 core/templates/internalaltmail.php delete mode 100644 core/templates/internalmail.php diff --git a/core/templates/internalaltmail.php b/core/templates/internalaltmail.php deleted file mode 100644 index 38531d109b..0000000000 --- a/core/templates/internalaltmail.php +++ /dev/null @@ -1,13 +0,0 @@ -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!")); -?> - --- -getName() . ' - ' . $theme->getSlogan()); ?> -getBaseUrl()); diff --git a/core/templates/internalmail.php b/core/templates/internalmail.php deleted file mode 100644 index 555c063c14..0000000000 --- a/core/templates/internalmail.php +++ /dev/null @@ -1,38 +0,0 @@ -
  - <?php p($theme->getName()); ?> + + <?php p($theme->getName()); ?>
 
- -
- - - - - - - - - - - - - - - - - -
-<?php p($theme->getName()); ?> -
 
  -t('Hey there,

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

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

'); -} -// TRANSLATORS term at the end of a mail -p($l->t('Cheers!')); -?> -
 
 --
-getName()); ?> - -getSlogan()); ?> -
getBaseUrl());?> -
 
-
From 8e361b723c76cf5c71ee5cbbad886afa48c10833 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Wed, 30 Nov 2016 08:51:50 +0100 Subject: [PATCH 4/4] Fix minor mail issues * a nextcloud * Strong username & url Signed-off-by: Roeland Jago Douma --- settings/templates/email.new_user.php | 2 +- settings/templates/email.new_user_plain_text.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/settings/templates/email.new_user.php b/settings/templates/email.new_user.php index 054992532d..bd2d4249d9 100644 --- a/settings/templates/email.new_user.php +++ b/settings/templates/email.new_user.php @@ -11,7 +11,7 @@
  t('Hey there,

just letting you know that you now have an %s account.

Your username: %s
Access it: %s

', array($theme->getName(), $_['username'], $_['url'], $_['url']))); + print_unescaped($l->t('Hey there,

just letting you know that you now have a %s account.

Your username: %s
Access it: %s

', array($theme->getName(), $_['username'], $_['url'], $_['url']))); // TRANSLATORS term at the end of a mail p($l->t('Cheers!')); diff --git a/settings/templates/email.new_user_plain_text.php b/settings/templates/email.new_user_plain_text.php index 79559a8702..2cc70ddfa2 100644 --- a/settings/templates/email.new_user_plain_text.php +++ b/settings/templates/email.new_user_plain_text.php @@ -1,5 +1,5 @@ t("Hey there,\n\njust letting you know that you now have an %s account.\n\nYour username: %s\nAccess it: %s\n\n", array($theme->getName(), $_['username'], $_['url']))); +print_unescaped($l->t("Hey there,\n\njust letting you know that you now have a %s account.\n\nYour username: %s\nAccess it: %s\n\n", array($theme->getName(), $_['username'], $_['url']))); // TRANSLATORS term at the end of a mail p($l->t("Cheers!"));