Events
if (!$search): ?> if ($view != "featured"): ?>Events on //
} ?>";
if( !$daylisting['day'] ) {
// Only if this is NOT a specific day listing, do we need the month/year title here
$output .= "
";
$output .= "";
if ($days['nrf']) {
$output .= "";
} else {
foreach ($days as $day => $itema) {
$ts = strtotime($day);
$output .= "";
$output .= date('F Y', strtotime($month_machine . "01"));
$output .= "
";
}
$output .= "";
$output .= "";
$output .= "
";
}
}
$output .= "";
$output .= "
";
$output .= "" . date('M', $ts) . "
"; $output .= "" . date("d", $ts) . "
"; $output .= "";
$output .= "
";
$output .= "" . date('l', $ts) . "
"; foreach ($itema as $item) { $output .= $item; } $output .= "No events found.
'; echo 'View events on our list view.
getContent(
"event",
"display:calendar",
"numberOfMonths:12",
$hide_group,
"hide_category:small-group-finder,live-event",
$categoryFilterParam,
"recurring:yes",
"eventTitles:inDay",
"topLevelLink:" . $daylisting_url,
"enablepast:yes",
"nextPrev:,",
"headingletters:4"
);
?>
endif; ?>
$featEventsData = getContent(
"event",
"display:list",
"features",
"recurring:yes",
"howmany:6",
$hide_group,
"hide_category:small-group-finder,live-event",//for sites with small group finder
"show:__url__",
"show:||",
"show:__imageurl width='602' height='392'__",
"show:||",
"show:__title__",
"show:||",
"show:__eventstart format='D n/j/y'__",
"show:||",
"show:__eventtimes__",
"show:||",
"show:__preview limit='80'__",
"show:~~",
"noecho"
);
if( $featEventsData ) {
$featEventsOutput = '';
$featEventsArr = explode( "~~", rtrim($featEventsData,"~~" ) );
foreach( $featEventsArr as $featEvent ) {
list($eventURL,$imageURL,$eventTitle,$eventStart,$eventTimes,$eventDesc) = explode( "||", $featEvent );
if( $imageURL == '' && !$placeholderImage ) {
$placeholderImage = getContent(
"linklist",
"display:links",
"find:featured-events-placeholder-image",
"show:__imageurl__",
"noecho"
);
$imageURL = $placeholderImage;
}
elseif( $imageURL == '' ) {
$imageURL = $placeholderImage;
}
if( $imageURL ) {
$featEventsOutput .= "";
$featEventsOutput .= " ";
}
else { // event doesn't have image (and there's no placeholder image)
$featEventsOutput .= "";
$featEventsOutput .= " ";
}
} // end foreach
}
if($featEventsOutput) { echo $featEventsOutput; }?>
";
$featEventsOutput .= "
";
$featEventsOutput .= "";
$featEventsOutput .= "";
$featEventsOutput .= "
";
$featEventsOutput .= "";
$featEventsOutput .= "";
$featEventsOutput .= "
";
$featEventsOutput .= "".$eventStart."
";
$featEventsOutput .= "".$eventTitle."
"; $featEventsOutput .= "";
$featEventsOutput .= "
";
$featEventsOutput .= "";
$featEventsOutput .= "
";
$featEventsOutput .= "".$eventStart."
"; $featEventsOutput .= "".$eventTitle."
"; $featEventsOutput .= "".$eventTimes."
"; $featEventsOutput .= "".$eventDesc."
"; $featEventsOutput .= "Search results for | echo $search_term; ?>
$search_raw = getContent(
"search",
"display:results",
"find_module:events",
$hide_group,
"hide_category:small-group-finder,live-event",
"keywords:" . $search_term,
"show:__id__",
"show:||",
"noecho",
"noedit"
);
$search_result_ids = explode("||", $search_raw);
$search_result_ids = array_filter($search_result_ids);
$rawEvents = "";
foreach ($search_result_ids as $result_id) {
$rawEvents .= getContent(
"event",
"display:detail",
$hide_group,
"find_id:" . $result_id,
"show:__eventstart format='Ymd'__",
"show:~~",
"show:",
"show: ",
"show:|~",
"noecho",
"noedit"
);
}
$output = "";
if (!$rawEvents) {
$output = "";
} else {
$rawEvents = explode("|~", trim($rawEvents, "|~"));
$myEvents = array();
foreach ($rawEvents as $rawEvent) {
$rawEventArray = explode("~~", $rawEvent);
$ymd = $rawEventArray[0];
$month_machine = date('Ym', strtotime($ymd));
$myEvents[$month_machine][$ymd][] = $rawEventArray[1];
}
foreach ($myEvents as $month_machine => $days) {
$output .= "";
$output .= " ";
}
}
echo $output;
?>
__title__
", "show:", "show:" . date('F Y', strtotime($month_machine . "01")) . "
"; foreach ($days as $day => $itema) { $ts = strtotime($day); $output .= "";
$output .= "
";
}
$output .= "";
$output .= "
";
$output .= "" . date('M', $ts) . "
"; $output .= "" . date("d", $ts) . "
"; $output .= "";
$output .= "
";
$output .= "" . date('l', $ts) . "
"; foreach ($itema as $item) { $output .= $item; } $output .= "