</a> <div class="cIndex-content"> <h3 class="cIndex-Name cResetH"> <a href="<?php echo $event->getLink(); ?> "><strong><?php echo $this->escape($event->title); ?> </strong></a> </h3> <div class="cIndex-Status"> <div class="cIndex-Date"><b><?php echo CEventHelper::formatStartDate($event, $config->get('eventdateformat')); ?> </b></div> <i class="cIndex-Location"><?php echo $this->escape($event->location); ?> </i> <div class="cIndex-Time"><?php echo JText::sprintf('COM_COMMUNITY_EVENTS_DURATION', CTimeHelper::getFormattedTime($event->startdate, $timeFormat), CTimeHelper::getFormattedTime($event->enddate, $timeFormat)); ?> </div> </div> <div class="cIndex-Actions"> <div class="action"> <?php if ($isExpired || CEventHelper::isPast($event)) {
<li id="cPhoto<?php echo $event->id; ?> "> <div id="<?php echo $event->id; ?> " class="cBoxPad"> <a href="javascript:void(0);"> <b class="cThumb-Calendar"> <b><?php echo CEventHelper::formatStartDate($event, JText::_('M')); ?> </b> <b><?php echo CEventHelper::formatStartDate($event, JText::_('d')); ?> </b> </b> <div class="cFeaturedTitle"><b><?php echo $event->title; ?> </b></div> <div class="cFeaturedMeta"><?php echo $event->location; ?> </div> </a> </div> </li> <?php
function _getEventsHTML($createEvents, $rows, $user, $config, $totalEvents, $creatable) { ob_start(); ?> <?php if ($rows) { ?> <ul class="joms-list--event"> <?php foreach ($rows as $row) { $event = JTable::getInstance('Event', 'CTable'); $event->load($row->id); $creator = CFactory::getUser($event->creator); // Get the formated date & time $format = $config->get('eventshowampm') ? JText::_('COM_COMMUNITY_DATE_FORMAT_LC2_12H') : JText::_('COM_COMMUNITY_DATE_FORMAT_LC2_24H'); $startdatehtml = CTimeHelper::getFormattedTime($event->startdate, $format); $enddatehtml = CTimeHelper::getFormattedTime($event->enddate, $format); ?> <li class="joms-media--event" title="<?php echo CStringHelper::escape($event->summary); ?> "> <div class="joms-media__calendar"> <span class="month"><?php echo CEventHelper::formatStartDate($event, JText::_('M')); ?> </span> <span class="date"><?php echo CEventHelper::formatStartDate($event, JText::_('d')); ?> </span> </div> <div class="joms-media__body"> <a href="<?php echo CRoute::_('index.php?option=com_community&view=events&task=viewevent&eventid=' . $event->id); ?> "><?php echo $event->title; ?> </a> <span class="joms-block"><?php echo $event->location; ?> </span> <a href="<?php echo CRoute::_('index.php?option=com_community&view=events&task=viewguest&eventid=' . $event->id . '&type=' . COMMUNITY_EVENT_STATUS_ATTEND); ?> "><?php echo JText::sprintf(!CStringHelper::isSingular($event->confirmedcount) ? 'COM_COMMUNITY_EVENTS_ATTANDEE_COUNT_MANY' : 'COM_COMMUNITY_EVENTS_ATTANDEE_COUNT', $event->confirmedcount); ?> </a> </div> </li> <?php } ?> </ul> <?php } else { ?> <div><?php echo JText::_('PLG_EVENTS_NO_EVENTS_CREATED_BY_THE_USER_YET'); ?> </div> <?php } ?> <small> <?php if ($creatable) { ?> <a class="joms-button--link" href="<?php echo CRoute::_('index.php?option=com_community&view=events&task=create'); ?> "><?php echo JText::_('COM_COMMUNITY_EVENTS_CREATE'); ?> </a> <?php } ?> <a class="joms-button--link" href="<?php echo CRoute::_('index.php?option=com_community&view=events'); ?> "><?php echo JText::_('COM_COMMUNITY_EVENTS_ALL_EVENTS') . ' (' . $totalEvents . ')'; ?> </a> </small> <?php $content = ob_get_contents(); ob_end_clean(); return $content; }
echo $event->id; ?> "> <div class="community-events-results-left"> <a href="<?php echo CRoute::_('index.php?option=com_community&view=events&task=viewevent&eventid=' . $event->id); ?> "><img class="avatar" src="<?php echo $event->getThumbAvatar(); ?> " border="0" alt="<?php echo $this->escape($event->title); ?> "/></a> <div class="eventDate"><?php echo CEventHelper::formatStartDate($event, '%b %d'); ?> </div> </div> <div class="community-events-results-right"> <h3 class="eventName"> <a href="<?php echo CRoute::_('index.php?option=com_community&view=events&task=viewevent&eventid=' . $event->id); ?> "><?php echo $this->escape($event->title); ?> </a> </h3> <div class="eventLocation"><?php echo $this->escape($event->location);