btn-default" href="<?php echo JRoute::_('index.php?option=com_eventbooking&view=event&layout=form&id=' . $event->id . '&Itemid=' . $Itemid . '&return=' . $return); ?> "> <i class="<?php echo $iconPencilClass; ?> "></i> <?php echo JText::_('EB_EDIT'); ?> </a> </li> <?php } if (EventbookingHelper::canChangeEventStatus($event->id)) { if ($event->published == 1) { $link = JRoute::_('index.php?option=com_eventbooking&task=event.unpublish&id=' . $event->id . '&Itemid=' . $Itemid . '&return=' . $return); $text = JText::_('EB_UNPUBLISH'); $class = $iconRemoveClass; } else { $link = JRoute::_('index.php?option=com_eventbooking&task=event.publish&id=' . $event->id . '&Itemid=' . $Itemid . '&return=' . $return); $text = JText::_('EB_PUBLISH'); $class = $iconOkClass; } ?> <li> <a class="<?php echo $btnClass; ?> btn-default" href="<?php