summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/CalDAV
diff options
context:
space:
mode:
authorbrad2014 <brad2014@users.noreply.github.com>2019-10-10 14:35:28 -0700
committerbrad2014 <brad2014@users.noreply.github.com>2020-08-20 22:16:47 +0200
commitb0687b1182e0c2da8873b2224d299f4c933f29db (patch)
tree9395e47a1fd16fd87922d8b2c1c6c1ed4af794f9 /apps/dav/lib/CalDAV
parent781359a5827f8a6fa477cbc23b0c8ef5e94bac23 (diff)
downloadnextcloud-server-b0687b1182e0c2da8873b2224d299f4c933f29db.tar.gz
nextcloud-server-b0687b1182e0c2da8873b2224d299f4c933f29db.zip
Make icon set for CalDav event presentation, use in iMIP email.
iMIP e-mails were, as a hack, using filetypes icons for caldav elements (titles, locations). This commit creates a folder of caldav element icons. To start, they are used in iMIP emails, but eventually should be used by any app that wants to have icon labels for caldav elements. Signed-off-by: brad2014 <brad2014@users.noreply.github.com>
Diffstat (limited to 'apps/dav/lib/CalDAV')
-rw-r--r--apps/dav/lib/CalDAV/Schedule/IMipPlugin.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php b/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php
index 011314b41d6..6a9b64ff971 100644
--- a/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php
+++ b/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php
@@ -529,23 +529,23 @@ class IMipPlugin extends SabreIMipPlugin {
if ($vevent->SUMMARY) {
$template->addBodyListItem($vevent->SUMMARY, $l10n->t('Title:'),
- $this->getAbsoluteImagePath('filetypes/text.svg'),'','',self::IMIP_INDENT);
+ $this->getAbsoluteImagePath('caldav/title.svg'),'','',self::IMIP_INDENT);
}
$meetingWhen = $this->generateWhenString($l10n, $vevent);
if ($meetingWhen) {
$template->addBodyListItem($meetingWhen, $l10n->t('Time:'),
- $this->getAbsoluteImagePath('filetypes/text-calendar.svg'),'','',self::IMIP_INDENT);
+ $this->getAbsoluteImagePath('caldav/time.svg'),'','',self::IMIP_INDENT);
}
if ($vevent->LOCATION) {
$template->addBodyListItem($vevent->LOCATION, $l10n->t('Location:'),
- $this->getAbsoluteImagePath('filetypes/location.svg'),'','',self::IMIP_INDENT);
+ $this->getAbsoluteImagePath('caldav/location.svg'),'','',self::IMIP_INDENT);
}
if ($vevent->URL) {
$template->addBodyListItem(sprintf('<a href="%s">%s</a>',
htmlspecialchars($vevent->URL),
htmlspecialchars($vevent->URL)),
$l10n->t('Link:'),
- $this->getAbsoluteImagePath('filetypes/link.svg'),
+ $this->getAbsoluteImagePath('caldav/link.svg'),
$vevent->URL,'',self::IMIP_INDENT);
}
@@ -554,7 +554,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, $l10n->t('Description:'),
- $this->getAbsoluteImagePath('filetypes/text.svg'),'','',self::IMIP_INDENT);
+ $this->getAbsoluteImagePath('caldav/description.svg'),'','',self::IMIP_INDENT);
}
}
@@ -595,7 +595,7 @@ class IMipPlugin extends SabreIMipPlugin {
$organizerText .= ' ✔︎';
}
$template->addBodyListItem($organizerHTML, $l10n->t('Organizer:'),
- $this->getAbsoluteImagePath('filetypes/text-vcard.svg'),
+ $this->getAbsoluteImagePath('caldav/organizer.svg'),
$organizerText,'',self::IMIP_INDENT);
}
@@ -624,7 +624,7 @@ class IMipPlugin extends SabreIMipPlugin {
}
$template->addBodyListItem(implode('<br/>',$attendeesHTML), $l10n->t('Attendees:'),
- $this->getAbsoluteImagePath('filetypes/text-vcard.svg'),
+ $this->getAbsoluteImagePath('caldav/attendees.svg'),
implode("\n",$attendeesText),'',self::IMIP_INDENT);
}