aboutsummaryrefslogtreecommitdiff
path: root/views/ical/export/entity.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/ical/export/entity.php')
-rw-r--r--views/ical/export/entity.php44
1 files changed, 22 insertions, 22 deletions
diff --git a/views/ical/export/entity.php b/views/ical/export/entity.php
index cac1f17ba..6d8a9d655 100644
--- a/views/ical/export/entity.php
+++ b/views/ical/export/entity.php
@@ -1,33 +1,33 @@
<?php
- /**
- * Elgg ICAL output of default object.
- *
- * @package Elgg
- * @subpackage Core
- * @author Curverider Ltd
- * @link http://elgg.org/
- *
- */
+/**
+ * Elgg ICAL output of default object.
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @author Curverider Ltd
+ * @link http://elgg.org/
+ *
+ */
- $entity = $vars['entity'];
-
- if (
- ($entity instanceof Notable) &&
- ($entity->getCalendarStartTime()) &&
- ($entity->getCalendarEndTime())
- )
- {
-?>
+$entity = $vars['entity'];
+
+if (
+ ($entity instanceof Notable) &&
+ ($entity->getCalendarStartTime()) &&
+ ($entity->getCalendarEndTime())
+)
+{
+?>
BEGIN:VEVENT
DTSTAMP:<?php echo date("Ymd\THis\Z", $entity->getTimeCreated()); ?>
DTSTART:<?php echo date("Ymd\THis\Z", $entity->getCalendarStartTime()); ?>
DTEND:<?php echo date("Ymd\THis\Z", $entity->getCalendarEndTime()); ?>
SUMMARY:<?php echo $event->title; ?>
LAST-MODIFIED:<?php echo date("Ymd\THis\Z", $entity->getTimeUpdated()); ?>
-END:VEVENT
-<?php
- }
+END:VEVENT
+<?php
+}
?>
if (
-
+
) \ No newline at end of file