$events = $this->getModelEventsData( $categoryId, $limit, $memberId, $amenityId, $venueId );
break;
case 'event-list-name':
+ $this->postAddRecurrences = true;
$events = $this->getModelEventsData( $eventNameSearch, null, $memberId, $amenityId, $venueId );
+ $this->postAddRecurrences = false;
if ( !$view ) {
$view = 'agenda.html';
}
} else {
$calendar_view = $calendar_view[0]['calendar_view'];
}
-
+
$years = array('current' => $current_year = date("Y"), 'next' => date('Y') +1 );
$months = [];
$count = 0;
foreach($years as $key=>$year){
-
+
if($current_year == $year){
$sql = 'SELECT MONTH(start_time) as month FROM '. GLM_MEMBERS_EVENTS_PLUGIN_DB_PREFIX .'times ';
$sql .= "WHERE YEAR(start_time) = $year AND MONTH(start_time) >= MONTH(CURDATE()) GROUP BY month";
}
$json_months = json_encode($months);
ksort($months);
-
+
// Compile template data
$templateData = array(
'eventDays' => $eventDays,