return $events;
}
+ public function getModelSlideShowEventsData()
+ {
+ $this->postAddTimes = true;
+ $where = "T.slideshow
+ AND T.image != ''
+ AND T.status = " . $this->config['status_numb']['Active'] . "
+ AND T.id IN (
+ SELECT event
+ FROM " . GLM_MEMBERS_EVENTS_PLUGIN_DB_PREFIX . "times AS ET
+ WHERE active
+ AND " . $this->dateRange . "
+ )
+ ";
+ $order = "T.id";
+ $events = $this->getList($where, $order);
+ return $events;
+ }
+
/**
* getModelEventData
*
$eventsByDate = $mainEvents;
}
+ if ($view == 'agenda.html') {
+ // get the slideshow events
+ $slideShowEvents = $this->getModelSlideShowEventsData($categoryId);
+ //echo '<pre>$slideShowEvents: ' . print_r($slideShowEvents, true) . '</pre>';
+ }
+
// Compile template data
$templateData = array(
'siteBaseUrl' => GLM_MEMBERS_EVENTS_SITE_BASE_URL,
'currentUrl' => GLM_MEMBERS_EVENTS_PLUGIN_CURRENT_URL,
'categoryId' => $categoryId,
'categories' => $categories,
- //'events' => $events,
'eventsByDate' => $eventsByDate,
- //'event' => $event,
'catEvents' => $categoryEvents,
'fromDate' => $fromDate,
'toDate' => $toDate,