diff options
| author | Thomas Hackl <hackl@data-quest.de> | 2025-01-28 14:02:51 +0000 |
|---|---|---|
| committer | Thomas Hackl <hackl@data-quest.de> | 2025-01-28 14:02:51 +0000 |
| commit | 85b3e6b63d161e5fe4d91ce3958b09a3d18b0493 (patch) | |
| tree | e416bc729026e653d5cc468d55572c77e5cf57d7 | |
| parent | 7e802d0608616b5ea0c5b912f6eceafc1e7d79e0 (diff) | |
Resolve "Mailbenachrichtigungen: Logo ist noch nicht hi-dpi"
Closes #4474
Merge request studip/studip!3349
| -rw-r--r-- | lib/classes/StudipMail.php | 2 | ||||
| -rw-r--r-- | lib/messaging.inc.php | 2 | ||||
| -rw-r--r-- | public/assets/images/logos/logo-hires.png | bin | 0 -> 23026 bytes | |||
| -rw-r--r-- | templates/mail/html.php | 11 | ||||
| -rw-r--r-- | templates/mail/notification_html.php | 8 |
5 files changed, 16 insertions, 7 deletions
diff --git a/lib/classes/StudipMail.php b/lib/classes/StudipMail.php index 269ddf9..78a5d29 100644 --- a/lib/classes/StudipMail.php +++ b/lib/classes/StudipMail.php @@ -100,7 +100,7 @@ class StudipMail // Add Stud.IP logo as "pseudo" attachment - this will be embedded in the mail via Content-ID. $mail->addRelatedAttachment( - $GLOBALS['STUDIP_BASE_PATH'] . '/public/assets/images/logos/studip4-logo@2x.png', + $GLOBALS['STUDIP_BASE_PATH'] . '/public/assets/images/logos/logo-hires.png', 'studip-logo.png', 'image/png', 'studiplogo' diff --git a/lib/messaging.inc.php b/lib/messaging.inc.php index 2a1761e..1f59df1 100644 --- a/lib/messaging.inc.php +++ b/lib/messaging.inc.php @@ -232,7 +232,7 @@ class messaging // Add Stud.IP logo as "pseudo" attachment - this will be embedded in the mail via Content-ID. $mail->addRelatedAttachment( - $GLOBALS['STUDIP_BASE_PATH'] . '/public/assets/images/logos/studip4-logo@2x.png', + $GLOBALS['STUDIP_BASE_PATH'] . '/public/assets/images/logos/logo-hires.png', 'studip-logo.png', 'image/png', 'studiplogo' diff --git a/public/assets/images/logos/logo-hires.png b/public/assets/images/logos/logo-hires.png Binary files differnew file mode 100644 index 0000000..b065bd2 --- /dev/null +++ b/public/assets/images/logos/logo-hires.png diff --git a/templates/mail/html.php b/templates/mail/html.php index 1987333..acf64b9 100644 --- a/templates/mail/html.php +++ b/templates/mail/html.php @@ -50,9 +50,12 @@ } .studip-mail header .studip-mail-header-logo { + height: 45px; + margin-bottom: 25px; margin-left: auto; margin-right: auto; - width: 100%; + margin-top: 25px; + width: 130px; } .studip-mail header .studip-mail-sndrec { @@ -81,8 +84,9 @@ <article class="studip-mail"> <header> <div class="studip-mail-header-logo" > - <img alt="" width="130" height="92" src="cid:studiplogo"> + <img alt="" src="cid:studiplogo" width="130" height="45"> </div> + <br> <p class="studip-mail-sndrec"> <?php if ($snd_fullname) : ?> <?= sprintf(_('%1$s hat Ihnen eine Nachricht in Stud.IP geschickt.'), @@ -115,8 +119,9 @@ <?php endif ?> </section> <footer> + <br> <?= sprintf( - _('Diese E-Mail ist eine Kopie einer systeminternen Nachricht, die in Stud.IP an %1$s (%2$s) versendet wurde.'), + _('Diese E-Mail ist eine Kopie einer systeminternen Nachricht,<br>die in Stud.IP an %1$s (%2$s) versendet wurde.'), htmlReady($rec_fullname), htmlReady($rec_username) ) diff --git a/templates/mail/notification_html.php b/templates/mail/notification_html.php index b1cbdee..960740b 100644 --- a/templates/mail/notification_html.php +++ b/templates/mail/notification_html.php @@ -49,9 +49,12 @@ } .studip-mail header .studip-mail-header-logo { + height: 45px; + margin-bottom: 25px; margin-left: auto; margin-right: auto; - width: 100%; + margin-top: 25px; + width: 130px; } .studip-mail header .studip-mail-sndrec { @@ -80,8 +83,9 @@ <article class="studip-mail"> <header> <div class="studip-mail-header-logo" > - <img alt="" width="130" height="92" src="cid:studiplogo"> + <img alt="" src="cid:studiplogo" width="130" height="45"> </div> + <br> <p class="studip-mail-sndrec"> <?= sprintf( _('Stud.IP hat eine automatische Systemnachricht für Sie.'), |
