From 8c6f0aa3d2d8143da3e0a5da6b57d5fe8bc858d8 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Fri, 26 Mar 2021 23:43:42 -0400 Subject: [PATCH] change calendar invite emails to use pngs instead of svgs Signed-off-by: Nick Sweeting --- apps/dav/lib/CalDAV/Schedule/IMipPlugin.php | 14 +++++++------- core/img/caldav/attendees.png | Bin 0 -> 446 bytes core/img/caldav/description.png | Bin 0 -> 166 bytes core/img/caldav/link.png | Bin 0 -> 412 bytes core/img/caldav/location.png | Bin 0 -> 358 bytes core/img/caldav/organizer.png | Bin 0 -> 337 bytes core/img/caldav/time.png | Bin 0 -> 243 bytes core/img/caldav/title.png | Bin 0 -> 160 bytes 8 files changed, 7 insertions(+), 7 deletions(-) create mode 100755 core/img/caldav/attendees.png create mode 100755 core/img/caldav/description.png create mode 100755 core/img/caldav/link.png create mode 100755 core/img/caldav/location.png create mode 100755 core/img/caldav/organizer.png create mode 100755 core/img/caldav/time.png create mode 100755 core/img/caldav/title.png diff --git a/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php b/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php index 7c2f6b71a4..8d26f83ffc 100644 --- a/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php +++ b/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php @@ -534,16 +534,16 @@ class IMipPlugin extends SabreIMipPlugin { private function addBulletList(IEMailTemplate $template, IL10N $l10n, $vevent) { if ($vevent->SUMMARY) { $template->addBodyListItem($vevent->SUMMARY, $l10n->t('Title:'), - $this->getAbsoluteImagePath('caldav/title.svg'),'','',self::IMIP_INDENT); + $this->getAbsoluteImagePath('caldav/title.png'),'','',self::IMIP_INDENT); } $meetingWhen = $this->generateWhenString($l10n, $vevent); if ($meetingWhen) { $template->addBodyListItem($meetingWhen, $l10n->t('Time:'), - $this->getAbsoluteImagePath('caldav/time.svg'),'','',self::IMIP_INDENT); + $this->getAbsoluteImagePath('caldav/time.png'),'','',self::IMIP_INDENT); } if ($vevent->LOCATION) { $template->addBodyListItem($vevent->LOCATION, $l10n->t('Location:'), - $this->getAbsoluteImagePath('caldav/location.svg'),'','',self::IMIP_INDENT); + $this->getAbsoluteImagePath('caldav/location.png'),'','',self::IMIP_INDENT); } if ($vevent->URL) { $url = $vevent->URL->getValue(); @@ -551,7 +551,7 @@ class IMipPlugin extends SabreIMipPlugin { htmlspecialchars($url), htmlspecialchars($url)), $l10n->t('Link:'), - $this->getAbsoluteImagePath('caldav/link.svg'), + $this->getAbsoluteImagePath('caldav/link.png'), $url,'',self::IMIP_INDENT); } @@ -560,7 +560,7 @@ class IMipPlugin extends SabreIMipPlugin { /* Put description last, like an email body, since it can be arbitrarily long */ if ($vevent->DESCRIPTION) { $template->addBodyListItem($vevent->DESCRIPTION->getValue(), $l10n->t('Description:'), - $this->getAbsoluteImagePath('caldav/description.svg'),'','',self::IMIP_INDENT); + $this->getAbsoluteImagePath('caldav/description.png'),'','',self::IMIP_INDENT); } } @@ -606,7 +606,7 @@ class IMipPlugin extends SabreIMipPlugin { } } $template->addBodyListItem($organizerHTML, $l10n->t('Organizer:'), - $this->getAbsoluteImagePath('caldav/organizer.svg'), + $this->getAbsoluteImagePath('caldav/organizer.png'), $organizerText,'',self::IMIP_INDENT); } @@ -635,7 +635,7 @@ class IMipPlugin extends SabreIMipPlugin { } $template->addBodyListItem(implode('
',$attendeesHTML), $l10n->t('Attendees:'), - $this->getAbsoluteImagePath('caldav/attendees.svg'), + $this->getAbsoluteImagePath('caldav/attendees.png'), implode("\n",$attendeesText),'',self::IMIP_INDENT); } diff --git a/core/img/caldav/attendees.png b/core/img/caldav/attendees.png new file mode 100755 index 0000000000000000000000000000000000000000..2e0baa494438f54cc56fa94d3442939d7e0caace GIT binary patch literal 446 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbMf(g2?jS0LTc&@g}g{Jy@vsZ*!U z1cS+wCj;3)a>k4q)4>49g@9?(rU3GkB&B3^^__ftlT&MIo7+2jCr+9+eb)SiE7xr}c;e#KYd7yadHU?t zo44;ie){t5`;Whh&za+a1~4XhyStdV@9($>(=;Vfp)T$< z9e0!#a3t)E+WlhA$zW->)9Y7diYFJbBnJiUNwY4x->mWD=>_&b$-kZ)mvK85#pJxP lto>nY;k3z>Qtfhedl|p(lg!#TI}PMK22WQ%mvv4FO#nfE&}skx literal 0 HcmV?d00001 diff --git a/core/img/caldav/description.png b/core/img/caldav/description.png new file mode 100755 index 0000000000000000000000000000000000000000..55e3f2cf64d7d7bb380efddc6a6309743c9e2324 GIT binary patch literal 166 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!73?$#)eFPE^3h)VW1=3TePMrn=|NsA&{>$S)j*+K}V+hCfDv13^JBN(@#CS9|P3Q;OXk;vd$@?2>{fz BG=cyC literal 0 HcmV?d00001 diff --git a/core/img/caldav/link.png b/core/img/caldav/link.png new file mode 100755 index 0000000000000000000000000000000000000000..c59d0e34acc3a0d64e19fd563ed33c9e974327f2 GIT binary patch literal 412 zcmV;N0b~A&P)x%RB;@};nxsF6H02MA*~W52+Bq4Bur7fibQJDMu>7V3tb5_ zq38SgbuM5wqOGJ&-~|l*U5_pVWk85jP$re$jtULf^QfhCEj?r^O=kD?zj7CEXt0NA zu*#2kS!!2Hy2DpK#wZPTIH30a9&cHz+|;G$;X4O0AjMEjGt5agC^62bQoGKjdCtWXAUPxN%>o!U09mX-MLiUI?j4|dkW_6BUHZhItmI@4Gj4`#PPF>0dsbi4h z33ZHd`jYplgSkKYsx{#@`!~1qC?(0000yBVrVm8_|NsBnfB7z;#i}Jie!&a^f2yy?HMcSH0fm2ig7>67+|F|3)qgt5VS6FbA_ i-^q*&CcF#`2jpLE<*4Ca^bg2pVDNPHb6Mw<&;$Ss&YF1u literal 0 HcmV?d00001 diff --git a/core/img/caldav/organizer.png b/core/img/caldav/organizer.png new file mode 100755 index 0000000000000000000000000000000000000000..19e08065e6147e0bb3573b0fb735ad8bc17ffb92 GIT binary patch literal 337 zcmV-X0j~auP)x23~+0 zW6bL>fpcyK#2t<8x;MsL!s-_$J(~ee>P1tqH9)XkFMg)0EXyMinTp6huv3Lb)$teb j3FN?=h%5$N_IG^)^^He{J(rWb00000NkvXXu0mjfrYeuM literal 0 HcmV?d00001 diff --git a/core/img/caldav/time.png b/core/img/caldav/time.png new file mode 100755 index 0000000000000000000000000000000000000000..059a95abce341cdf86ab661bc3c0c3f9012a3569 GIT binary patch literal 243 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbL!Wq?nJE0CTxZQ6_(Gp51-kUM?) zbU2C30J0(A|NsAS_EQ!CH4Bym`2{n0diiEG%$zlE{=P?#pFI8fr$%@VKTwh}$=lsU zsCrKhkj>!j>Eak7ad~aOHD7~)$YGwPOKtY;`=2T)v7l+9&a^!$jr}fLT%?ydZqB-< z$Qa$ZVwLKmbq&8QWM8=+P`m#~?!)Yed8)=2?9bfUyMF$Gne5)r3{