* @copyright Radagast Solutions 2008 * @link http://radagast.biz/ * */ // Load event calendar model require_once(dirname(dirname(dirname(dirname(dirname(__FILE__)))))."/models/model.php"); //the number of events to display $num = (int) $vars['entity']->num_display; if (!$num) $num = 5; // Get the events $events = event_calendar_get_personal_events_for_user(page_owner(),$num); // If there are any events to view, view them if (is_array($events) && sizeof($events) > 0) { echo "