aboutsummaryrefslogtreecommitdiff
path: root/views/ical
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-10-16 21:25:25 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-10-16 21:25:25 +0000
commit694781d190fba09437a37983f077d0381a56050b (patch)
tree788d5eeb369d7dc85bb35adf4fd1abe86f00b504 /views/ical
parentd46162271a5ca3c3af690173d0abfcd1ab9f69a1 (diff)
downloadelgg-694781d190fba09437a37983f077d0381a56050b.tar.gz
elgg-694781d190fba09437a37983f077d0381a56050b.tar.bz2
Finished standardizing seconday views.
git-svn-id: http://code.elgg.org/elgg/trunk@3559 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/ical')
-rw-r--r--views/ical/canvas/default.php28
-rw-r--r--views/ical/export/entity.php44
-rw-r--r--views/ical/object/default.php22
-rw-r--r--views/ical/pageshells/pageshell.php23
-rw-r--r--views/ical/search/entity_list.php29
5 files changed, 69 insertions, 77 deletions
diff --git a/views/ical/canvas/default.php b/views/ical/canvas/default.php
index 38977dca9..0a955e92d 100644
--- a/views/ical/canvas/default.php
+++ b/views/ical/canvas/default.php
@@ -1,18 +1,16 @@
<?php
- /**
- * Elgg ICAL output
- *
- * @package Elgg
- * @subpackage Core
- * @author Curverider Ltd
- * @link http://elgg.org/
- *
- */
+/**
+ * Elgg ICAL output
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @author Curverider Ltd
+ * @link http://elgg.org/
+ *
+ */
- for ($i = 1; $i < 8; $i++) {
-
- if (isset($vars["area{$i}"]))
- echo $vars["area{$i}"];
-
+for ($i = 1; $i < 8; $i++) {
+ if (isset($vars["area{$i}"])) {
+ echo $vars["area{$i}"];
}
-?> \ No newline at end of file
+} \ No newline at end of file
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
diff --git a/views/ical/object/default.php b/views/ical/object/default.php
index 29e4ab219..fcbfcba5b 100644
--- a/views/ical/object/default.php
+++ b/views/ical/object/default.php
@@ -1,14 +1,12 @@
<?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/
+ *
+ */
- elgg_view('export/entity', $vars);
-
-?> \ No newline at end of file
+elgg_view('export/entity', $vars); \ No newline at end of file
diff --git a/views/ical/pageshells/pageshell.php b/views/ical/pageshells/pageshell.php
index eee032681..0ea76c9e9 100644
--- a/views/ical/pageshells/pageshell.php
+++ b/views/ical/pageshells/pageshell.php
@@ -1,18 +1,17 @@
<?php
+/**
+ * Elgg ICAL output pageshell
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @author Curverider Ltd
+ * @link http://elgg.org/
+ *
+ */
- /**
- * Elgg ICAL output pageshell
- *
- * @package Elgg
- * @subpackage Core
- * @author Curverider Ltd
- * @link http://elgg.org/
- *
- */
+header("Content-Type: text/calendar");
- header("Content-Type: text/calendar");
-
- echo $vars['body'];
+echo $vars['body'];
?>
BEGIN:VCALENDAR
VERSION:2.0
diff --git a/views/ical/search/entity_list.php b/views/ical/search/entity_list.php
index 9e5737bbe..b39bb4229 100644
--- a/views/ical/search/entity_list.php
+++ b/views/ical/search/entity_list.php
@@ -1,18 +1,15 @@
<?php
+/**
+ * Elgg default layout
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @author Curverider Ltd
+ * @link http://elgg.org/
+ */
- /**
- * Elgg default layout
- *
- * @package Elgg
- * @subpackage Core
- * @author Curverider Ltd
- * @link http://elgg.org/
- */
-
- $entities = $vars['entities'];
- if (is_array($entities) && sizeof($entities) > 0) {
- foreach($entities as $entity)
- echo elgg_view_entity($entity);
- }
-
-?> \ No newline at end of file
+$entities = $vars['entities'];
+if (is_array($entities) && sizeof($entities) > 0) {
+ foreach($entities as $entity)
+ echo elgg_view_entity($entity);
+} \ No newline at end of file