Merge pull request #26342 from pirate/cal-invite-email-use-pngs

Fix broken Calendar Event Invite email icons in Gmail by using PNGs instead of SVGs
This commit is contained in:
Morris Jobke 2021-03-29 11:01:46 +02:00 committed by GitHub
commit f8bad86097
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 7 additions and 7 deletions

View File

@ -534,16 +534,16 @@ class IMipPlugin extends SabreIMipPlugin {
private function addBulletList(IEMailTemplate $template, IL10N $l10n, $vevent) { private function addBulletList(IEMailTemplate $template, IL10N $l10n, $vevent) {
if ($vevent->SUMMARY) { if ($vevent->SUMMARY) {
$template->addBodyListItem($vevent->SUMMARY, $l10n->t('Title:'), $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); $meetingWhen = $this->generateWhenString($l10n, $vevent);
if ($meetingWhen) { if ($meetingWhen) {
$template->addBodyListItem($meetingWhen, $l10n->t('Time:'), $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) { if ($vevent->LOCATION) {
$template->addBodyListItem($vevent->LOCATION, $l10n->t('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) { if ($vevent->URL) {
$url = $vevent->URL->getValue(); $url = $vevent->URL->getValue();
@ -551,7 +551,7 @@ class IMipPlugin extends SabreIMipPlugin {
htmlspecialchars($url), htmlspecialchars($url),
htmlspecialchars($url)), htmlspecialchars($url)),
$l10n->t('Link:'), $l10n->t('Link:'),
$this->getAbsoluteImagePath('caldav/link.svg'), $this->getAbsoluteImagePath('caldav/link.png'),
$url,'',self::IMIP_INDENT); $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 */ /* Put description last, like an email body, since it can be arbitrarily long */
if ($vevent->DESCRIPTION) { if ($vevent->DESCRIPTION) {
$template->addBodyListItem($vevent->DESCRIPTION->getValue(), $l10n->t('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:'), $template->addBodyListItem($organizerHTML, $l10n->t('Organizer:'),
$this->getAbsoluteImagePath('caldav/organizer.svg'), $this->getAbsoluteImagePath('caldav/organizer.png'),
$organizerText,'',self::IMIP_INDENT); $organizerText,'',self::IMIP_INDENT);
} }
@ -635,7 +635,7 @@ class IMipPlugin extends SabreIMipPlugin {
} }
$template->addBodyListItem(implode('<br/>',$attendeesHTML), $l10n->t('Attendees:'), $template->addBodyListItem(implode('<br/>',$attendeesHTML), $l10n->t('Attendees:'),
$this->getAbsoluteImagePath('caldav/attendees.svg'), $this->getAbsoluteImagePath('caldav/attendees.png'),
implode("\n",$attendeesText),'',self::IMIP_INDENT); implode("\n",$attendeesText),'',self::IMIP_INDENT);
} }

BIN
core/img/caldav/attendees.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 446 B

BIN
core/img/caldav/description.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 B

BIN
core/img/caldav/link.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 412 B

BIN
core/img/caldav/location.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 358 B

BIN
core/img/caldav/organizer.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 337 B

BIN
core/img/caldav/time.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 243 B

BIN
core/img/caldav/title.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 160 B