get('global_show_ical_icon','0')==1) { // Get data from the model $row = $this->get('Item'); if (empty($row)) { return; } $row->categories = $this->get('Categories'); $row->id = $row->did; $row->slug = $row->alias ? ($row->id.':'.$row->alias) : $row->id; $params = $row->params; // check individual iCal Event setting if ($params->get('event_show_ical_icon',1)) { // initiate new CALENDAR $vcal = JemHelper::getCalendarTool(); $vcal->setConfig( "filename", "event".$row->did.".ics" ); JemHelper::icalAddEvent($vcal, $row); // generate and redirect output to user browser $vcal->returnCalendar(); } } } } ?>