Hi
You can try to use the code below :
Code:
if (count($currentDay["events"]) == 1) {
$row = $currentDay["events"][0] ;
$link = JRoute::_('index.php?option=com_eventbooking&task=view_event&event_id='.$row->id.'&Itemid='.$itemId);
} else {
$link = JRoute::_('index.php?option=com_eventbooking&task=view_event&event_id='.$row->id.'&Itemid='.$itemId);
}
Then echo that $link variable to the href attribute of the a tag. The idea is that if the current date has only one event, you get that event by accessing to $currentDay["events"][0] . I think you know programming, so with that clue, you can edit code to meet your need.
Tuan