/** * Will display an events list in sidebar. * * This can be used by themes that are not widget ready. * * @param int $num number of events to display. defaults to 5. */ function SidebarEventsList($num = 5) { $calendar = new EC_Calendar(); $calendar->displayEventList($num); }
function ec_show_events_list_html() { include_once EVENTSCALENDARCLASSPATH . DS . "bdpress/header.php"; $calendar = new EC_Calendar(); $calendar->displayEventList(5); }