Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Print all the fields with comments.

  • Loading branch information...
commit 22835c5ca60208c7e223a1c809d67b001d6d34a3 1 parent e3d76ec
@athanrous authored
Showing with 51 additions and 2 deletions.
  1. +51 −2 mod/event_calendar/models/model.php
View
53 mod/event_calendar/models/model.php
@@ -912,15 +912,39 @@ function event_calendar_get_formatted_full_items($event) {
$item->title = elgg_echo('Location');
$item->value = htmlspecialchars($event->location);
$event_items[] = $item;
+
+
$item = new stdClass();
$item->title = elgg_echo('Arrival');
$item->value = $event->arrival;
$event_items[] = $item;
$item = new stdClass();
+ $item->title = elgg_echo('Arrival Comment');
+ $event->annotate('arrival_comment', "Aj :21/06");
+ $arrival_annotation = $event->getAnnotations('arrival_comment');
+ $arrival_print = $arrival_annotation[0][value];
+ $item->value = $arrival_print;
+ $event_items[] = $item;
+
+
+
+
+
+ $item = new stdClass();
$item->title = elgg_echo('Departure');
$item->value = $event->departure;
$event_items[] = $item;
$item = new stdClass();
+ $item->title = elgg_echo('Departure Comment');
+ $event->annotate('departure_comment', "Aj :26/06");
+ $departure_annotation = $event->getAnnotations('departure_comment');
+ $departure_print = $departure_annotation[0][value];
+ $item->value = $departure_print;
+ $event_items[] = $item;
+
+
+
+ $item = new stdClass();
$item->title = elgg_echo('Material');
$item->value = $event->material;
$event_items[] = $item;
@@ -928,22 +952,47 @@ function event_calendar_get_formatted_full_items($event) {
$item->title = elgg_echo('Material Comment');
$event->annotate('material_comment', "Aj :200 DVD's");
$material_annotation = $event->getAnnotations('material_comment');
- $a = $material_annotation[0][value];
- $item->value = $a;
+ $material_print = $material_annotation[0][value];
+ $item->value = $material_print;
$event_items[] = $item;
+
$item = new stdClass();
$item->title = elgg_echo('Booth');
$item->value = $event->booth;
$event_items[] = $item;
$item = new stdClass();
+ $item->title = elgg_echo('Booth Comment');
+ $event->annotate('booth_comment', "Aj,Zoumpis");
+ $booth_annotation = $event->getAnnotations('booth_comment');
+ $booth_print = $booth_annotation[0][value];
+ $item->value = $booth_print;
+ $event_items[] = $item;
+
+ $item = new stdClass();
$item->title = elgg_echo('Travel Support');
$item->value = $event->travel;
$event_items[] = $item;
$item = new stdClass();
+ $item->title = elgg_echo('Travel Support Comment');
+ $event->annotate('travel_comment', "Aj,Zoumpis");
+ $travel_annotation = $event->getAnnotations('travel_comment');
+ $travel_print = $travel_annotation[0][value];
+ $item->value = $travel_print;
+ $event_items[] = $item;
+
+ $item = new stdClass();
$item->title = elgg_echo('Talks');
$item->value = $event->talks;
$event_items[] = $item;
$item = new stdClass();
+ $item->title = elgg_echo('Talks Comment');
+ $event->annotate('talks_comment', "Aj :How to become a lizard");
+ $talks_annotation = $event->getAnnotations('talks_comment');
+ $talks_print = $talks_annotation[0][value];
+ $item->value = $talks_print;
+ $event_items[] = $item;
+
+ $item = new stdClass();
$item->title = elgg_echo('event_calendar:contact_label');
$item->value = htmlspecialchars($event->contact);
$event_items[] = $item;
Please sign in to comment.
Something went wrong with that request. Please try again.