";
echo "
\n";
echo "
\n";
echo " ".$event->getSummary()."
\n"; //If start&end date are same, only print one! if( $startDateArray['month'] == $endDateArray['month'] && $startDateArray['day'] == $endDateArray['day'] && $startDateArray['year'] == $endDateArray['year'] ) { echo " ".$monthName." ".$startDateArray['day'].", ".$startDateArray['year']." | "; } else { echo " ".$monthName." ".$startDateArray['day'].", ".$startDateArray['year']." - "; echo $monthNameEnd." ".$endDateArray['day'].", ".$endDateArray['year']." | "; } echo " ".date("g:i a", strtotime($startDateArray['hour'].":".$startDateArray['minute'])). " - ".date("g:i a", strtotime($endDateArray['hour'].":".$endDateArray['minute']))."\n"; if( $event->location <> '' ) { echo " Place: ".$event->location."\n"; } echo "".$event->getDescription()."
\n"; echo "