$groupByDay = true;
$groupMonth = false;
-
+
// get list cities to search by
require_once GLM_MEMBERS_EVENTS_PLUGIN_CLASS_PATH.'/data/dataEvents.php';
$cities = new GlmDataEvents($this->wpdb, $this->config);
$cityData = $cities->getEventsCities(true);
-
+
// If there's a pageslug as attribute then update the pageSlug
if ( isset ( $actionData['request']['pageslug'] ) ) {
$pageSlug = $actionData['request']['pageslug'];
);
wp_enqueue_script('event-dashboard-js');
wp_enqueue_style('jquery-style', '//ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/smoothness/jquery-ui.css');
-
-
+
+ echo '<pre>$action: ' . print_r( $action, true ) . '</pre>';
switch ( $action ) {
case 'front-page':
$this->postAddRecurrences = true;
exit;
break;
default:
+ $this->postAddLocations = true;
$this->postAddRecurrences = true;
if ( !$view ) {
$view = 'agenda.html';
}
$events = $this->getModelEventsData( $categoryId, null, $memberId, $amenityId, $venueId );
$this->postAddRecurrences = false;
+ $this->postAddLocations = false;
break;
}
-
+
// group the events by the starting date
$eventsByDate = $mainEvents = array();
$eventCounter = 0;
}
$json_months = json_encode($months);
ksort($months);
-
-
+
+
// Compile template data
$templateData = array(
'eventDays' => $eventDays,