173 if (isset($this->fbEventsAppId) && (!empty($this->fbEventsAppId)
174 && (isset($this->fbEventsAccessToken) && (!empty($this->fbEventsAccessToken)
175 && (isset($this->fbEventsPageId) && (!empty($this->fbEventsPageId)))))))
201 if ($this->fbEventsType ===
"all")
204 $this->sinceDate =
date(
'Y-01-01', strtotime(
'-' . $this->fbEventsYearRange .
' years'));
205 $this->untilDate =
date(
'Y-01-01', strtotime(
'+' . $this->fbEventsYearRange .
' years'));
207 elseif ($this->fbEventsType ==
"future")
210 $this->sinceDate =
date(
'Y-m-d');
211 $this->untilDate =
date(
'Y-12-31', strtotime(
'+' . $this->fbEventsYearRange .
' years'));
213 elseif ($this->fbEventsType ===
"past")
216 $this->sinceDate =
date(
'Y-01-01', strtotime(
'-' . $this->fbEventsYearRange .
' years'));
217 $this->untilDate =
date(
'Y-m-d');
222 $this->sinceDate =
date(
'Y-m-d');
223 $this->untilDate =
date(
'Y-12-31', strtotime(
'+' . $this->fbEventsYearRange .
' years'));
227 if (isset($this->fbEventsStartDate) && (!empty($this->fbEventsStartDate))
228 && (isset($this->fbEventsEndDate) && (!empty($this->fbEventsEndDate))))
230 $this->sinceDate =
date($this->fbEventsStartDate);
231 $this->untilDate =
date($this->fbEventsEndDate);
235 $since_unix_timestamp = strtotime($this->sinceDate);
236 $until_unix_timestamp = strtotime($this->untilDate);
248 $json_link =
"https://graph.facebook.com/v14.0/me/events?access_token={$this->fbEventsAccessToken}&fields={$this->fields}&created_time={$this->since_unix_timestamp}";
255 curl_setopt($curl, CURLOPT_URL, $json_link);
256 curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
258 $obj = json_decode(curl_exec($curl),
true, 512, JSON_BIGINT_AS_STRING);
271 if (isset($obj) && (is_array($obj) && (is_array($obj[
'data']) && (empty($obj[
'data'])))))
273 if (isset($this->fbEventsType) && (!empty($this->fbEventsType) && $this->fbEventsType ==
"future"))
276 $this->
errorMsg =
"Im Moment sind keine Termine geplant.";
279 else if (isset($this->fbEventsType) && (!empty($this->fbEventsType) && $this->fbEventsType ==
"past"))
282 $this->
errorMsg =
"Sorry, es wurden keine vergangenen Konzerte gefunden.";
287 $this->
errorMsg =
"Im Moment gibt es keine Termine.";
292 if ($this->fbEventsSortation ===
"asc")
294 $obj[
'data'] = array_reverse($obj[
'data']);
298 if (isset($this->fbEventsLimit) && (!empty($this->fbEventsLimit)))
300 $obj[
'data'] = array_slice($obj[
'data'], 0 -$this->fbEventsLimit);
308 if (isset($this->fbEventsHeading) && (!empty($this->fbEventsHeading)))
310 $this->fbEventsHeading =
"$this->fbEventsHeading";
313 if (isset($this->fbEventsSubtext) && (!empty($this->fbEventsSubtext)))
315 $this->fbEventsSubtext =
"<small>$this->fbEventsSubtext</small>";
316 $this->headline =
"<h1>$this->fbEventsHeading ".
"$this->fbEventsSubtext</h1>";
320 $this->headline =
"<h1>$this->fbEventsHeading</h1>";
325 $this->headline =
'';
343 foreach ($obj[
'data'] as $this->data => $this->
event)
346 $this->eventDate = new \DateTime($this->
event[
'start_time']);
348 $this->prettyDate = $this->eventDate->format(
'd.m.Y H:i');
350 $now = new \DateTime();
353 $until =
$now->diff($this->eventDate,
true);
356 $eventDateSimple = $this->eventDate->format(
'Y-m-d');
358 $currentDateSimple =
$now->format(
'Y-m-d');
361 if ($this->eventDate >
$now)
372 if ($until->days >= 31 && ($until->days < 365))
380 $duration =
"Monaten";
383 $this->dateString =
"$prepend $until->m $duration";
386 else if ($until->days >= 365)
394 $duration =
"Jahren";
397 $this->dateString =
"$prepend $until->y $duration";
401 else if ($until->days === 14)
403 if ($this->eventDate >
$now)
406 $this->dateString =
"in zwei Wochen";
411 $this->dateString =
"vor zwei Wochen";
414 else if ($until->days >= 8 && ($until->days <= 13))
415 {
if ($this->eventDate >
$now)
418 $this->dateString =
"in knapp zwei Wochen";
423 $this->dateString =
"vor knapp zwei Wochen";
426 else if ($until->days === 7)
427 {
if ($this->eventDate >
$now)
430 $this->dateString =
"in einer Woche";
435 $this->dateString =
"vor einer Woche";
438 else if ($until->days === 2)
440 if ($this->eventDate >
$now)
443 $this->dateString =
"übermorgen";
448 $this->dateString =
"vorgestern";
451 else if ($until->days === 1)
453 if ($this->eventDate >
$now)
456 $this->dateString =
"<span class=\"".$this->fbEventsDatewordCss.
"\">morgen</span>";
461 $this->dateString =
"<span class=\"".$this->fbEventsDatewordCss.
"\">gestern</span>";
465 else if ($eventDateSimple == $currentDateSimple)
467 $this->dateString =
"<span class=\"".$this->fbEventsDatewordCss.
"\">HEUTE !</span>";
470 {
if ($this->eventDate >
$now)
473 $this->dateString =
"$prepend $until->d Tagen";
478 if ($until->d === 0 && ($until->m === 0))
480 $this->dateString =
"gestern";
491 $duration =
"Monaten";
495 $this->dateString =
"$prepend $until->m $duration";
499 $this->dateString =
"$prepend $until->d Tagen";
506 if (isset($this->fbEventsCanceledOn) && ($this->fbEventsCanceledOn ==
true))
508 if (isset($this->
event[
'is_canceled']) && $this->
event[
'is_canceled'] ===
true)
510 $canceled =
"<span class=\"".$this->fbEventsFontCanceledCss.
"\">ACHTUNG! ABGESAGT!</span><br>";
529 if (isset($this->fbEventsShowCounter) && ($this->fbEventsShowCounter ==
"true"))
531 if (isset($this->
event[
'maybe_count']) && (!empty($this->
event[
'maybe_count']))
532 && (isset($this->
event[
'attending_count'])))
534 $this->iPeopleCount = $this->
event[
'maybe_count'] + $this->
event[
'attending_count'];
537 if (isset($this->iPeopleCount) && ($this->iPeopleCount != 0))
539 if ($this->eventDate >
$now)
541 $this->showPeople =
"<br><br><i class=\"$this->fbEventsFontPeopleCss\">" . $this->iPeopleCount .
" Personen sind daran interessiert oder werden dieses Konzert besuchen.</i>";
545 $this->showPeople =
"<br><br><i class=\"$this->fbEventsFontPeopleCss\">" . $this->iPeopleCount .
" Personen waren daran interessiert oder haben dieses Konzert besucht.</i>";
550 $this->showPeople =
'';
555 $this->showPeople =
'';
559 if (isset($this->fbEventsFontEventName) && (!empty($this->fbEventsFontEventName)))
564 if ($this->fbEventsFontEventName ==
"H1 SMALL")
566 $this->fontEventNameH =
"H1";
567 $smallTagStart =
"<small>";
568 $smallTagEnd =
"</small>";
570 else if ($this->fbEventsFontEventName ==
"H2 SMALL")
572 $this->fontEventNameH =
"H2";
573 $smallTagStart =
"<small>";
574 $smallTagEnd =
"</small>";
576 else if ($this->fbEventsFontEventName ==
"H3 SMALL")
578 $this->fontEventNameH =
"H3";
579 $smallTagStart =
"<small>";
580 $smallTagEnd =
"</small>";
582 else if ($this->fbEventsFontEventName ==
"H4 SMALL")
584 $this->fontEventNameH =
"H4";
585 $smallTagStart =
"<small>";
586 $smallTagEnd =
"</small>";
588 else if ($this->fbEventsFontEventName ==
"H5 SMALL")
590 $this->fontEventNameH =
"H5";
591 $smallTagStart =
"<small>";
592 $smallTagEnd =
"</small>";
594 else if ($this->fbEventsFontEventName ==
"H6 SMALL")
596 $this->fontEventNameH =
"H6";
597 $smallTagStart =
"<small>";
598 $smallTagEnd =
"</small>";
605 if (isset($this->fbEventsFontEventNameCss) && (!empty($this->fbEventsFontEventNameCss)))
607 $fontTitleCss =
" class=\"".$this->fbEventsFontEventNameCss.
"\"";
614 if (isset($this->fbEventsFbLink) && ($this->fbEventsFbLink ===
"true"))
616 $fbLinkStart =
"<a href=\"https://www.facebook.com/events/".$this->event[
'id'].
"\" title=\"auf Facebook öffnen: ".$this->
event[
'name'].
"\" target=\"_blank\">";
624 $fontTitleStart =
"".$fbLinkStart.
"<".$this->fontEventNameH.
"".$fontTitleCss.
">".$smallTagStart.
"";
625 $fontTitleEnd =
"".$smallTagEnd.
"</".$this->fontEventNameH.
">".$fbLinkEnd.
"";
634 if (isset($this->fbEventsFontDate) && (!empty($this->fbEventsFontDate)))
636 $smallTagStartDate =
'';
637 $smallTagEndDate =
'';
639 if ($this->fbEventsFontDate ==
"H1 SMALL")
641 $this->fontEventDateH =
"H1";
642 $smallTagStartDate =
"<small>";
643 $smallTagEndDate =
"</small>";
645 else if ($this->fbEventsFontDate ==
"H2 SMALL")
647 $this->fontEventDateH =
"H2";
648 $smallTagStartDate =
"<small>";
649 $smallTagEndDate =
"</small>";
651 else if ($this->fbEventsFontDate ==
"H3 SMALL")
653 $this->fontEventDateH =
"H3";
654 $smallTagStartDate =
"<small>";
655 $smallTagEndDate =
"</small>";
657 else if ($this->fbEventsFontDate ==
"H4 SMALL")
659 $this->fontEventDateH =
"H4";
660 $smallTagStartDate =
"<small>";
661 $smallTagEndDate =
"</small>";
663 else if ($this->fbEventsFontDate ==
"H5 SMALL")
665 $this->fontEventDateH =
"H5";
666 $smallTagStartDate =
"<small>";
667 $smallTagEndDate =
"</small>";
669 else if ($this->fbEventsFontDate ==
"H6 SMALL")
671 $this->fontEventDateH =
"H6";
672 $smallTagStartDate =
"<small>";
673 $smallTagEndDate =
"</small>";
680 if (isset($this->fbEventsFontDateCss) && (!empty($this->fbEventsFontDateCss)))
682 $fontDateCss =
" class=\"".$this->fbEventsFontDateCss.
"\"";
688 $fontDateStart =
"<".$this->fontEventDateH.
"".$fontDateCss.
">".$smallTagStartDate.
"";
689 $fontDateEnd =
"".$smallTagEndDate.
"</".$this->fontEventDateH.
">";
693 $fontDateStart =
"<h4><small>";
694 $fontDateEnd =
"</h4></small>";
698 if (isset($this->fbEventsFontDateword) && (!empty($this->fbEventsFontDateword)))
701 if ($this->fbEventsFontDateword ==
"true")
703 $smallTagStartDateword =
"<small>";
704 $smallTagEndDateword =
"</small>";
708 $smallTagStartDateword =
"";
709 $smallTagEndDateword =
"";
712 if (isset($this->fbEventsDatewordCss) && (!empty($this->fbEventsDatewordCss)))
714 $fontDatewordCssStart =
"<span class=\"".$this->fbEventsDatewordCss.
"\">";
715 $fontDatewordCssEnd =
"</span>";
719 $fontDatewordCssStart =
'';
720 $fontDatewordCssEnd =
'';
722 $fontDatewordStart =
"$smallTagStartDateword".$fontDatewordCssStart.
"";
723 $fontDatewordEnd =
"$fontDatewordCssEnd".$smallTagEndDateword.
"";
727 $fontDatewordStart =
"<small>";
728 $fontDatewordEnd =
"</small>";
733 if (isset($this->fbEventsFontLocation) && (!empty($this->fbEventsFontLocation)))
735 $smallTagStartLocation =
'';
736 $smallTagEndLocation =
'';
738 if ($this->fbEventsFontLocation ==
"H1 SMALL")
740 $this->fontEventLocationH =
"H1";
741 $smallTagStartLocation =
"<small>";
742 $smallTagEndLocation =
"</small>";
744 else if ($this->fbEventsFontLocation ==
"H2 SMALL")
746 $this->fontEventLocationH =
"H2";
747 $smallTagStartLocation =
"<small>";
748 $smallTagEndLocation =
"</small>";
750 else if ($this->fbEventsFontLocation ==
"H3 SMALL")
752 $this->fontEventLocationH =
"H3";
753 $smallTagStartLocation =
"<small>";
754 $smallTagEndLocation =
"</small>";
756 else if ($this->fbEventsFontLocation ==
"H4 SMALL")
758 $this->fontEventLocationH =
"H4";
759 $smallTagStartLocation =
"<small>";
760 $smallTagEndLocation =
"</small>";
762 else if ($this->fbEventsFontLocation ==
"H5 SMALL")
764 $this->fontEventLocationH =
"H5";
765 $smallTagStartLocation =
"<small>";
766 $smallTagEndLocation =
"</small>";
768 else if ($this->fbEventsFontLocation ==
"H6 SMALL")
770 $this->fontEventLocationH =
"H6";
771 $smallTagStartLocation =
"<small>";
772 $smallTagEndLocation =
"</small>";
779 if (isset($this->fbEventsFontLocationCss) && (!empty($this->fbEventsFontLocationCss)))
781 $fontLocationCss =
" class=\"".$this->fbEventsFontLocationCss.
"\"";
785 $fontLocationCss =
'';
787 $fontLocationStart =
"<".$this->fontEventLocationH.
"".$fontLocationCss.
">".$smallTagStartLocation.
"";
788 $fontLocationEnd =
"".$smallTagEndLocation.
"</".$this->fontEventLocationH.
">";
792 $fontLocationStart =
"<h4><small>";
793 $fontLocationEnd =
"</h4></small>";
798 if (isset($this->fbEventsFontAddress) && (!empty($this->fbEventsFontAddress)))
800 $smallTagStartAddress =
'';
801 $smallTagEndAddress =
'';
803 if ($this->fbEventsFontAddress ==
"H1 SMALL")
805 $this->fontEventAddressH =
"H1";
806 $smallTagStartAddress =
"<small>";
807 $smallTagEndAddress =
"</small>";
809 else if ($this->fbEventsFontAddress ==
"H2 SMALL")
811 $this->fontEventAddressH =
"H2";
812 $smallTagStartAddress =
"<small>";
813 $smallTagEndAddress =
"</small>";
815 else if ($this->fbEventsFontAddress ==
"H3 SMALL")
817 $this->fontEventAddressH =
"H3";
818 $smallTagStartAddress =
"<small>";
819 $smallTagEndAddress =
"</small>";
821 else if ($this->fbEventsFontAddress ==
"H4 SMALL")
823 $this->fontEventAddressH =
"H4";
824 $smallTagStartAddress =
"<small>";
825 $smallTagEndAddress =
"</small>";
827 else if ($this->fbEventsFontAddress ==
"H5 SMALL")
829 $this->fontEventAddressH =
"H5";
830 $smallTagStartAddress =
"<small>";
831 $smallTagEndAddress =
"</small>";
833 else if ($this->fbEventsFontAddress ==
"H6 SMALL")
835 $this->fontEventAddressH =
"H6";
836 $smallTagStartAddress =
"<small>";
837 $smallTagEndAddress =
"</small>";
844 if (isset($this->fbEventsFontAddressCss) && (!empty($this->fbEventsFontAddressCss)))
846 $fontAddressCss =
" class=\"".$this->fbEventsFontAddressCss.
"\"";
850 $fontAddressCss =
'';
852 $fontAddressStart =
"<".$this->fontEventAddressH.
"".$fontAddressCss.
">".$smallTagStartAddress.
"";
853 $fontAddressEnd =
"".$smallTagEndAddress.
"</".$this->fontEventAddressH.
">";
857 $fontAddressStart =
"";
858 $fontAddressEnd =
"";
863 if (isset($this->fbEventsFontDescription) && (!empty($this->fbEventsFontDescription)))
865 $smallTagStartDescription =
'';
866 $smallTagEndDescription =
'';
868 if ($this->fbEventsFontDescription ==
"H1 SMALL")
870 $this->fontEventDescriptionH =
"H1";
871 $smallTagStartDescription =
"<small>";
872 $smallTagEndDescription =
"</small>";
874 else if ($this->fbEventsFontDescription ==
"H2 SMALL")
876 $this->fontEventDescriptionH =
"H2";
877 $smallTagStartDescription =
"<small>";
878 $smallTagEndDescription =
"</small>";
880 else if ($this->fbEventsFontDescription ==
"H3 SMALL")
882 $this->fontEventDescriptionH =
"H3";
883 $smallTagStartDescription =
"<small>";
884 $smallTagEndDescription =
"</small>";
886 else if ($this->fbEventsFontDescription ==
"H4 SMALL")
888 $this->fontEventDescriptionH =
"H4";
889 $smallTagStartDescription =
"<small>";
890 $smallTagEndDescription =
"</small>";
892 else if ($this->fbEventsFontDescription ==
"H5 SMALL")
894 $this->fontEventDescriptionH =
"H5";
895 $smallTagStartDescription =
"<small>";
896 $smallTagEndDescription =
"</small>";
898 else if ($this->fbEventsFontDescription ==
"H6 SMALL")
900 $this->fontEventDescriptionH =
"H6";
901 $smallTagStartDescription =
"<small>";
902 $smallTagEndDescription =
"</small>";
909 if (isset($this->fbEventsFontDescriptionCss) && (!empty($this->fbEventsFontDescriptionCss)))
911 $fontDescriptionCss =
" class=\"".$this->fbEventsFontDescriptionCss.
"\"";
915 $fontDescriptionCss =
'';
917 $fontDescriptionStart =
"<".$this->fontEventDescriptionH.
"".$fontDescriptionCss.
">".$smallTagStartDescription.
"";
918 $fontDescriptionEnd =
"".$smallTagEndDescription.
"</".$this->fontEventDescriptionH.
">";
922 $fontDescriptionStart =
"";
923 $fontDescriptionEnd =
"";
928 if (isset($this->fbEventsFontPeople) && (!empty($this->fbEventsFontPeople)))
930 $smallTagStartPeople =
'';
931 $smallTagEndPeople =
'';
933 if ($this->fbEventsFontPeople ==
"H1 SMALL")
935 $this->fontEventPeopleH =
"H1";
936 $smallTagStartPeople =
"<small>";
937 $smallTagEndPeople =
"</small>";
939 else if ($this->fbEventsFontPeople ==
"H2 SMALL")
941 $this->fontEventPeopleH =
"H2";
942 $smallTagStartPeople =
"<small>";
943 $smallTagEndPeople =
"</small>";
945 else if ($this->fbEventsFontPeople ==
"H3 SMALL")
947 $this->fontEventPeopleH =
"H3";
948 $smallTagStartPeople =
"<small>";
949 $smallTagEndPeople =
"</small>";
951 else if ($this->fbEventsFontPeople ==
"H4 SMALL")
953 $this->fontEventPeopleH =
"H4";
954 $smallTagStartPeople =
"<small>";
955 $smallTagEndPeople =
"</small>";
957 else if ($this->fbEventsFontPeople ==
"H5 SMALL")
959 $this->fontEventPeopleH =
"H5";
960 $smallTagStartPeople =
"<small>";
961 $smallTagEndPeople =
"</small>";
963 else if ($this->fbEventsFontPeople ==
"H6 SMALL")
965 $this->fontEventPeopleH =
"H6";
966 $smallTagStartPeople =
"<small>";
967 $smallTagEndPeople =
"</small>";
969 else if ($this->fbEventsFontPeople ==
"globaltext small")
971 $this->fontEventPeopleH =
"span";
972 $smallTagStartPeople =
"<small>";
973 $smallTagEndPeople =
"</small>";
980 if (isset($this->fbEventsFontPeopleCss) && (!empty($this->fbEventsFontPeopleCss)))
982 $fontPeopleCss =
" class=\"".$this->fbEventsFontPeopleCss.
"\"";
988 $fontPeopleStart =
"<".$this->fontEventPeopleH.
"".$fontPeopleCss.
">".$smallTagStartPeople.
"";
989 $fontPeopleEnd =
"".$smallTagEndPeople.
"</".$this->fontEventPeopleH.
">";
993 $fontPeopleStart =
"<span class=\"text-muted\">";
994 $fontPeopleEnd =
"</span>";
999 if (isset($this->fbEventsShowCover) && ($this->fbEventsShowCover ==
"true"))
1001 if (isset($this->
event[
'cover'][
'source']) && (!empty($this->
event[
'cover'][
'source'])))
1005 if (isset($this->fbEventsCoverClass) && (!empty($this->fbEventsCoverClass)))
1010 if (isset($this->fbEventsFbLink) && ($this->fbEventsFbLink ===
"true"))
1012 $fbLinkStart =
"<a href=\"https://www.facebook.com/events/".$this->event[
'id'].
"\" title=\"auf Facebook öffnen: ".$this->
event[
'name'].
"\" target=\"_blank\">";
1013 $fbLinkEnd =
"</a>";
1020 $coverImage =
"<br>".$fbLinkStart.
"<img src=\"" . $this->
event[
'cover'][
'source'] .
"\" title=\"" . $this->
event[
'name'] .
"\" class=\"img-center ".$this->fbEventsCoverClass.
"\">".$fbLinkEnd.
"";
1024 $coverImage =
"<br><img src=\"" . $this->
event[
'cover'][
'source'] .
"\" title=\"" . $this->
event[
'name'] .
"\" class=\"img-thumbnail img-fluid\">";
1039 $animate =
" animated fadeIn";
1043 $animate =
" animate";
1047 if (isset($this->
event[
'place'][
'location'][
'street']) && (!empty($this->
event[
'place'][
'location'][
'street'])))
1049 $this->address = $this->
event[
'place'][
'location'][
'street'].
", ";
1053 $this->address =
'';
1056 if (isset($this->
event[
'place'][
'location'][
'zip']) && (!empty($this->
event[
'place'][
'location'][
'zip'])))
1058 $this->address .= $this->
event[
'place'][
'location'][
'zip'].
", ";
1062 $this->address =
'';
1065 if (isset($this->
event[
'place'][
'location'][
'city']) && (!empty($this->
event[
'place'][
'location'][
'city'])))
1067 $this->address .= $this->
event[
'place'][
'location'][
'city'].
", ";
1071 $this->address =
'';
1074 if (isset($this->
event[
'place'][
'location'][
'country']) && (!empty($this->
event[
'place'][
'location'][
'country'])))
1076 $this->address .= $this->
event[
'place'][
'location'][
'country'];
1080 $this->address =
'';
1086 if (isset($this->fbEventsGoogleMap) && ($this->fbEventsGoogleMap ==
"true"))
1088 $googleMapMarkup =
"<a class=\"hvr-grow\" target=\"_blank\" title=\"auf Google Maps ansehen\" href=\"http://maps.google.de/maps/dir/".$this->event[
'place'][
'location'][
'latitude'].
",".$this->
event[
'place'][
'location'][
'longitude'].
"\"><i class=\"fa fa-map-marker\"></i></a>";
1090 $this->address =
"".$address.
" ".$googleMapMarkup.
"";
1094 if (isset($this->fbEventsHrClass) && (!empty($this->fbEventsHrClass)))
1096 $hrClass =
" class=\"".$this->fbEventsHrClass.
"".$animate.
"\"";
1104 if (isset($this->
event[
'description']) && (!empty($this->
event[
'description'])))
1107 $reg_exUrl =
"/(http|https|ftp|ftps)\:\/\/[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(\/\S*)?/";
1110 if(preg_match($reg_exUrl, $this->
event[
'description'],
$url))
1113 $this->
event[
'description'] = preg_replace($reg_exUrl,
'<a href="'.
$url[0].
'" target="_blank">'.
$url[0].
'</a> ', $this->
event[
'description']);
1117 if (isset($this->fbEventsCanceledOn) && ($this->fbEventsCanceledOn ==
true))
1124 if (isset($this->fbEventsLayout) && ($this->fbEventsLayout ==
"minimal"))
1126 echo
"<div class=\"container-fluid\">";
1127 echo
"<div class=\"row".$animate.
"\">";
1128 echo
"<div class=\"col-md-12\">";
1129 echo
"".$fontTitleStart.
"".$canceled.
"".$delStart.
"".$this->
event[
'name'].
"".
$fontTitleEnd.
"";
1130 echo
"".$fontDateStart.
"".$delStart.
"".$this->prettyDate.
" Uhr ".$fontDatewordStart.
"(".$this->dateString.
")".$fontDatewordEnd.
"".$delEnd.
"".$fontDateEnd.
"<br>";
1131 echo
"".$delStart.
"".$fontLocationStart.
"".$this->
event[
'place'][
'name'].
"".$fontLocationEnd.
"<br>".$fontAddressStart.
"".$this->address.
"".$fontAddressEnd.
"".$delEnd.
"";
1132 echo
"".$fontPeopleStart.
"".$this->showPeople.
"".$fontPeopleEnd.
"";
1133 echo
"</div></div></div><br><br><br><br><br>";
1139 if (isset($this->fbEventsLayout) && ($this->fbEventsLayout ==
"table"))
1141 if (isset($this->fbEventsShowCover) && ($this->fbEventsShowCover ===
"true"))
1143 if (isset($this->
event[
'cover'][
'source']))
1145 $coverImage =
" style=\"background-image:url(".$this->event[
'cover'][
'source'].
");background-repeat:no-repeat;background-size:250px; width: 250px; height: 180px;\"";
1156 echo
"<div class=\"container-fluid\" style=\"background-color:#".$this->fbEventsBgColor.
"; color:#".$this->fbEventsTextColor.
";\">";
1157 echo
"<table border=\"1\" cellpadding=\"1\" cellspacing=\"1\" class=\"table table-responsive".$animate.
"\">";
1159 echo
"<td width=\"14%\"".$coverImage.
">";
1162 echo
"".$fontTitleStart.
"".$canceled.
"".$delStart.
"" . $this->
event[
'name'] .
"</b><br>" . $this->
event[
'place'][
'name'] .
"<br><small>" . $this->prettyDate .
" Uhr <small>(" . $this->dateString .
")</small></small><br><small>(" . $this->
event[
'place'][
'location'][
'street'] .
", " . $this->
event[
'place'][
'location'][
'zip'] .
" " . $this->
event[
'place'][
'location'][
'city'] .
", " . $this->
event[
'place'][
'location'][
'country'] .
")</small>".$fontTitleEnd.
"" . $delEnd .
"<br>".$this->event[
'description'].
"";
1170 if (isset($this->fbEventsLayout) && ($this->fbEventsLayout ==
"left"))
1173 echo
"<div class=\"jumbotron".$animate.
"\" style=\"background-color:#".$this->fbEventsBgColor.
"; color:#".$this->fbEventsTextColor.
";\">";
1174 echo
"<div class=\"row\">";
1175 echo
"<div class=\"col-md-4 text-center align-middle\">";
1176 echo
"".$coverImage.
"";
1178 echo
"<div class=\"col-md-8\">";
1179 echo
"".$fontTitleStart.
"".$canceled.
"".$delStart.
"".$this->
event[
'name'].
"".
$fontTitleEnd.
"";
1180 echo
"".$fontDateStart.
"".$delStart.
"".$this->prettyDate.
" Uhr ".$fontDatewordStart.
"(".$this->dateString.
")".$fontDatewordEnd.
"".$delEnd.
"".$fontDateEnd.
"<br>";
1181 echo
"".$delStart.
"".$fontLocationStart.
"".$this->
event[
'place'][
'name'].
"".$fontLocationEnd.
"<br>".$fontAddressStart.
"".$this->address.
"".$fontAddressEnd.
"".$delEnd.
"<hr".$hrClass.
">";
1182 echo
"".$fontDescriptionStart.
"".$this->
event[
'description'].
"".$fontDescriptionEnd.
"";
1183 echo
"".$fontPeopleStart.
"".$this->showPeople.
"".$fontPeopleEnd.
"";
1186 echo
"</div><br><br><br>";
1190 if (isset($this->fbEventsLayout) && ($this->fbEventsLayout ==
"top"))
1193 echo
"<div class=\"jumbotron".$animate.
"\" style=\"background-color:#".$this->fbEventsBgColor.
"; color:#".$this->fbEventsTextColor.
";\">";
1194 echo
"<div class=\"row\">";
1195 echo
"<div class=\"col-md-12 text-center align-middle\">";
1196 echo
"".$coverImage.
"<br>";
1197 echo
"".$fontTitleStart.
"".$canceled.
"".$delStart.
"".$this->
event[
'name'].
"".
$fontTitleEnd.
"";
1198 echo
"".$fontDateStart.
"".$delStart.
"".$this->prettyDate.
" Uhr ".$fontDatewordStart.
"(".$this->dateString.
")".$fontDatewordEnd.
"".$delEnd.
"".$fontDateEnd.
"<br>";
1199 echo
"".$delStart.
"".$fontLocationStart.
"".$this->
event[
'place'][
'name'].
"".$fontLocationEnd.
"<br>".$fontAddressStart.
"".$this->address.
"".$fontAddressEnd.
"".$delEnd.
"<hr".$hrClass.
">";
1200 echo
"".$fontDescriptionStart.
"".$this->
event[
'description'].
"".$fontDescriptionEnd.
"";
1201 echo
"".$fontPeopleStart.
"".$this->showPeople.
"".$fontPeopleEnd.
"";
1204 echo
"</div><br><br><br>";
1209 if (isset($this->fbEventsLayout) && ($this->fbEventsLayout ==
"middle"))
1212 echo
"<div class=\"container-fluid\">";
1213 echo
"<div class=\"".$animate.
"\" style=\"background-color:#".$this->fbEventsBgColor.
"; color:#".$this->fbEventsTextColor.
";\">";
1214 echo
"<div class=\"row\">";
1215 echo
"<div class=\"col-md-12 text-center align-middle\"><br>";
1216 echo
"".$fontTitleStart.
"".$canceled.
"".$delStart.
"".$this->
event[
'name'].
"".
$fontTitleEnd.
"";
1217 echo
"".$coverImage.
"<br>";
1218 echo
"".$fontDateStart.
"".$delStart.
"".$this->prettyDate.
" Uhr ".$fontDatewordStart.
"(".$this->dateString.
")".$fontDatewordEnd.
"".$delEnd.
"".$fontDateEnd.
"<br>";
1219 echo
"".$delStart.
"".$fontLocationStart.
"".$this->
event[
'place'][
'name'].
"".$fontLocationEnd.
"<br>".$fontAddressStart.
"".$this->address.
"".$fontAddressEnd.
"".$delEnd.
"<hr".$hrClass.
">";
1220 echo
"".$fontDescriptionStart.
"".$this->
event[
'description'].
"".$fontDescriptionEnd.
"";
1221 echo
"".$fontPeopleStart.
"".$this->showPeople.
"".$fontPeopleEnd.
"<br><br><br>";
1224 echo
"</div><br><br><br>";
1228 if (isset($this->fbEventsLayout) && ($this->fbEventsLayout ==
"middle2"))
1231 echo
"<div class=\"jumbotron".$animate.
"\" style=\"background-color:#".$this->fbEventsBgColor.
"; color:#".$this->fbEventsTextColor.
";\">";
1232 echo
"<div class=\"row\">";
1233 echo
"<div class=\"col-md-12 text-center align-middle\">";
1234 echo
"".$fontTitleStart.
"".$canceled.
"".$delStart.
"".$this->
event[
'name'].
"".
$fontTitleEnd.
"";
1235 echo
"".$fontDateStart.
"".$delStart.
"".$this->prettyDate.
" Uhr ".$fontDatewordStart.
"(".$this->dateString.
")".$fontDatewordEnd.
"".$delEnd.
"".$fontDateEnd.
"";
1236 echo
"".$coverImage.
"<br><br>";
1237 echo
"".$delStart.
"".$fontLocationStart.
"".$this->
event[
'place'][
'name'].
"".$fontLocationEnd.
"<br>".$fontAddressStart.
"".$this->address.
"".$fontAddressEnd.
"".$delEnd.
"<hr".$hrClass.
">";
1238 echo
"".$fontDescriptionStart.
"".$this->
event[
'description'].
"".$fontDescriptionEnd.
"";
1239 echo
"".$fontPeopleStart.
"".$this->showPeople.
"".$fontPeopleEnd.
"<br>";
1242 echo
"</div><br><br><br>";
1246 if (isset($this->fbEventsLayout) && ($this->fbEventsLayout ==
"middle3"))
1249 echo
"<div class=\"jumbotron".$animate.
"\" style=\"background-color:#".$this->fbEventsBgColor.
"; color:#".$this->fbEventsTextColor.
";\">";
1250 echo
"<div class=\"row\">";
1251 echo
"<div class=\"col-md-12 text-center align-middle\">";
1252 echo
"".$fontTitleStart.
"".$canceled.
"".$delStart.
"".$this->
event[
'name'].
"".
$fontTitleEnd.
"";
1253 echo
"".$fontDateStart.
"".$delStart.
"".$this->prettyDate.
" Uhr ".$fontDatewordStart.
"(".$this->dateString.
")".$fontDatewordEnd.
"".$delEnd.
"".$fontDateEnd.
"";
1254 echo
"".$delStart.
"".$fontLocationStart.
"".$this->
event[
'place'][
'name'].
"".$fontLocationEnd.
"<br>".$fontAddressStart.
"".$this->address.
"".$fontAddressEnd.
"".$delEnd.
"";
1255 echo
"<br>".$coverImage.
"<br><hr".$hrClass.
">";
1256 echo
"".$fontDescriptionStart.
"".$this->
event[
'description'].
"".$fontDescriptionEnd.
"";
1257 echo
"".$fontPeopleStart.
"".$this->showPeople.
"".$fontPeopleEnd.
"<br>";
1260 echo
"</div><br><br><br>";
1264 if (isset($this->fbEventsLayout) && ($this->fbEventsLayout ==
"right"))
1267 echo
"<div class=\"jumbotron".$animate.
"\" style=\"background-color:#".$this->fbEventsBgColor.
"; color:#".$this->fbEventsTextColor.
";\">";
1268 echo
"<div class=\"row\">";
1269 echo
"<div class=\"col-md-8\">";
1270 echo
"".$fontTitleStart.
"".$canceled.
"".$delStart.
"".$this->
event[
'name'].
"".
$fontTitleEnd.
"";
1271 echo
"".$fontDateStart.
"".$delStart.
"".$this->prettyDate.
" Uhr ".$fontDatewordStart.
"(".$this->dateString.
")".$fontDatewordEnd.
"".$delEnd.
"".$fontDateEnd.
"<br>";
1272 echo
"".$delStart.
"".$fontLocationStart.
"".$this->
event[
'place'][
'name'].
"".$fontLocationEnd.
"<br>".$fontAddressStart.
"".$this->address.
"".$fontAddressEnd.
"".$delEnd.
"<hr".$hrClass.
">";
1273 echo
"".$fontDescriptionStart.
"".$this->
event[
'description'].
"".$fontDescriptionEnd.
"";
1274 echo
"".$fontPeopleStart.
"".$this->showPeople.
"".$fontPeopleEnd.
"";
1276 echo
"<div class=\"col-md-4 text-center align-middle\">";
1277 echo
"".$coverImage.
"";
1280 echo
"</div><br><br><br>";
1284 if (isset($this->fbEventsLayout) && ($this->fbEventsLayout ==
"bottom"))
1287 echo
"<div class=\"jumbotron".$animate.
"\" style=\"background-color:#".$this->fbEventsBgColor.
"; color:#".$this->fbEventsTextColor.
";\">";
1288 echo
"<div class=\"row\">";
1289 echo
"<div class=\"col-md-12 text-center align-middle\">";
1290 echo
"".$fontTitleStart.
"".$canceled.
"".$delStart.
"".$this->
event[
'name'].
"".
$fontTitleEnd.
"";
1291 echo
"".$fontDateStart.
"".$delStart.
"".$this->prettyDate.
" Uhr ".$fontDatewordStart.
"(".$this->dateString.
")".$fontDatewordEnd.
"".$delEnd.
"".$fontDateEnd.
"<br>";
1292 echo
"".$delStart.
"".$fontLocationStart.
"".$this->
event[
'place'][
'name'].
"".$fontLocationEnd.
"<br>".$fontAddressStart.
"".$this->address.
"".$fontAddressEnd.
"".$delEnd.
"<hr".$hrClass.
">";
1293 echo
"".$fontDescriptionStart.
"".$this->
event[
'description'].
"".$fontDescriptionEnd.
"";
1294 echo
"".$fontPeopleStart.
"".$this->showPeople.
"".$fontPeopleEnd.
"<br>";
1295 echo
"".$coverImage.
"<br>";
1298 echo
"</div><br><br><br>";
1306 die (
"Unable to load data. AppID, Access Token or PageID is not set! Don't know what to do? Visit: <a href=\"http://developers.facebook.com\" target=\"_blank\">http://developers.facebook.com</a>");