Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Print all the fields with comments.

  • Loading branch information...
commit 22835c5ca60208c7e223a1c809d67b001d6d34a3 1 parent e3d76ec
Zoumpis authored June 05, 2012

Showing 1 changed file with 51 additions and 2 deletions. Show diff stats Hide diff stats

  1. 53  mod/event_calendar/models/model.php
53  mod/event_calendar/models/model.php
@@ -912,15 +912,39 @@ function event_calendar_get_formatted_full_items($event) {
912 912
 	$item->title = elgg_echo('Location');
913 913
 	$item->value = htmlspecialchars($event->location);
914 914
 	$event_items[] = $item;
  915
+	
  916
+	
915 917
 	$item = new stdClass();
916 918
 	$item->title = elgg_echo('Arrival');
917 919
 	$item->value = $event->arrival;
918 920
 	$event_items[] = $item;
919 921
 	$item = new stdClass();
  922
+	$item->title = elgg_echo('Arrival Comment');
  923
+	$event->annotate('arrival_comment', "Aj :21/06");
  924
+	$arrival_annotation = $event->getAnnotations('arrival_comment');
  925
+	$arrival_print = $arrival_annotation[0][value];
  926
+	$item->value = $arrival_print;
  927
+	$event_items[] = $item;
  928
+	
  929
+	
  930
+	
  931
+	
  932
+	
  933
+	$item = new stdClass();
920 934
 	$item->title = elgg_echo('Departure');
921 935
 	$item->value = $event->departure;
922 936
 	$event_items[] = $item;
923 937
 	$item = new stdClass();
  938
+	$item->title = elgg_echo('Departure Comment');
  939
+	$event->annotate('departure_comment', "Aj :26/06");
  940
+	$departure_annotation = $event->getAnnotations('departure_comment');
  941
+	$departure_print = $departure_annotation[0][value];
  942
+	$item->value = $departure_print;
  943
+	$event_items[] = $item;
  944
+	
  945
+	
  946
+	
  947
+	$item = new stdClass();
924 948
 	$item->title = elgg_echo('Material');
925 949
 	$item->value = $event->material;
926 950
 	$event_items[] = $item;
@@ -928,22 +952,47 @@ function event_calendar_get_formatted_full_items($event) {
928 952
 	$item->title = elgg_echo('Material Comment');
929 953
 	$event->annotate('material_comment', "Aj :200 DVD's");
930 954
 	$material_annotation = $event->getAnnotations('material_comment');
931  
-	$a = $material_annotation[0][value];
932  
-	$item->value = $a;
  955
+	$material_print = $material_annotation[0][value];
  956
+	$item->value = $material_print;
933 957
 	$event_items[] = $item;
  958
+	
934 959
 	$item = new stdClass();
935 960
 	$item->title = elgg_echo('Booth');
936 961
 	$item->value = $event->booth;
937 962
 	$event_items[] = $item;
938 963
 	$item = new stdClass();
  964
+	$item->title = elgg_echo('Booth Comment');
  965
+	$event->annotate('booth_comment', "Aj,Zoumpis");
  966
+	$booth_annotation = $event->getAnnotations('booth_comment');
  967
+	$booth_print = $booth_annotation[0][value];
  968
+	$item->value = $booth_print;
  969
+	$event_items[] = $item;
  970
+	
  971
+	$item = new stdClass();
939 972
 	$item->title = elgg_echo('Travel Support');
940 973
 	$item->value = $event->travel;
941 974
 	$event_items[] = $item;
942 975
 	$item = new stdClass();
  976
+	$item->title = elgg_echo('Travel Support Comment');
  977
+	$event->annotate('travel_comment', "Aj,Zoumpis");
  978
+	$travel_annotation = $event->getAnnotations('travel_comment');
  979
+	$travel_print = $travel_annotation[0][value];
  980
+	$item->value = $travel_print;
  981
+	$event_items[] = $item;
  982
+	
  983
+	$item = new stdClass();
943 984
 	$item->title = elgg_echo('Talks');
944 985
 	$item->value = $event->talks;
945 986
 	$event_items[] = $item;
946 987
 	$item = new stdClass();
  988
+	$item->title = elgg_echo('Talks Comment');
  989
+	$event->annotate('talks_comment', "Aj :How to become a lizard");
  990
+	$talks_annotation = $event->getAnnotations('talks_comment');
  991
+	$talks_print = $talks_annotation[0][value];
  992
+	$item->value = $talks_print;
  993
+	$event_items[] = $item;
  994
+	
  995
+	$item = new stdClass();
947 996
 	$item->title = elgg_echo('event_calendar:contact_label');
948 997
 	$item->value = htmlspecialchars($event->contact);
949 998
 	$event_items[] = $item;

0 notes on commit 22835c5

Please sign in to comment.
Something went wrong with that request. Please try again.