]> source.dussan.org Git - nextcloud-server.git/commitdiff
change calendar invite emails to use pngs instead of svgs 26357/head
authorNick Sweeting <git@sweeting.me>
Sat, 27 Mar 2021 03:43:42 +0000 (23:43 -0400)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Mon, 29 Mar 2021 16:17:16 +0000 (16:17 +0000)
Signed-off-by: Nick Sweeting <git@sweeting.me>
apps/dav/lib/CalDAV/Schedule/IMipPlugin.php
core/img/caldav/attendees.png [new file with mode: 0755]
core/img/caldav/description.png [new file with mode: 0755]
core/img/caldav/link.png [new file with mode: 0755]
core/img/caldav/location.png [new file with mode: 0755]
core/img/caldav/organizer.png [new file with mode: 0755]
core/img/caldav/time.png [new file with mode: 0755]
core/img/caldav/title.png [new file with mode: 0755]

index bfc82c0ee9020bdfd1a521fc0964d001c6b7c3e0..4cdac3cb44f479be5ac092d3ed13eb441c4d7881 100644 (file)
@@ -531,16 +531,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();
@@ -548,7 +548,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);
                }
 
@@ -557,7 +557,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);
                }
        }
 
@@ -603,7 +603,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);
                }
 
@@ -632,7 +632,7 @@ class IMipPlugin extends SabreIMipPlugin {
                }
 
                $template->addBodyListItem(implode('<br/>',$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 (executable)
index 0000000..2e0baa4
Binary files /dev/null and b/core/img/caldav/attendees.png differ
diff --git a/core/img/caldav/description.png b/core/img/caldav/description.png
new file mode 100755 (executable)
index 0000000..55e3f2c
Binary files /dev/null and b/core/img/caldav/description.png differ
diff --git a/core/img/caldav/link.png b/core/img/caldav/link.png
new file mode 100755 (executable)
index 0000000..c59d0e3
Binary files /dev/null and b/core/img/caldav/link.png differ
diff --git a/core/img/caldav/location.png b/core/img/caldav/location.png
new file mode 100755 (executable)
index 0000000..0992c34
Binary files /dev/null and b/core/img/caldav/location.png differ
diff --git a/core/img/caldav/organizer.png b/core/img/caldav/organizer.png
new file mode 100755 (executable)
index 0000000..19e0806
Binary files /dev/null and b/core/img/caldav/organizer.png differ
diff --git a/core/img/caldav/time.png b/core/img/caldav/time.png
new file mode 100755 (executable)
index 0000000..059a95a
Binary files /dev/null and b/core/img/caldav/time.png differ
diff --git a/core/img/caldav/title.png b/core/img/caldav/title.png
new file mode 100755 (executable)
index 0000000..b312250
Binary files /dev/null and b/core/img/caldav/title.png differ