echo $this->escape($this->row->full_title); ?> </dd> <dt class="when"><?php echo JText::_('COM_REDEVENT_WHEN') . ':'; ?> </dt> <dd class="when"> <?php $tmp = REOutput::formatdate($this->row->dates, $this->row->times); if (!empty($this->row->times) && strcasecmp('00:00:00', $this->row->times)) { $tmp .= ' ' . REOutput::formattime($this->row->dates, $this->row->times); } if (!empty($this->row->enddates) && $this->row->enddates != $this->row->dates) { $tmp .= ' - ' . REOutput::formatdate($this->row->enddates, $this->row->endtimes); } if (!empty($this->row->endtimes) && strcasecmp('00:00:00', $this->row->endtimes)) { $tmp .= ' ' . REOutput::formattime($this->row->dates, $this->row->endtimes); } echo $tmp; ?> </dd> <?php if ($this->row->venueid != 0) { ?> <dt class="where"><?php echo JText::_('COM_REDEVENT_WHERE') . ':'; ?> </dt> <dd class="where">
<?php foreach ($this->_eventlinks as $key => $event) { $event_url = JURI::current() . JRoute::_('index.php?option=com_redevent&view=details&xref=' . $event->xref); $venue_url = JURI::current() . JRoute::_('index.php?option=com_redevent&view=venueevents&id=' . $event->venueid); ?> <tr> <td><?php echo JHTML::_('link', $event_url, $event->full_title); ?> </td> <td><?php echo $event->location; ?> </td> <td><?php echo REOutput::formatdate($event->dates, $event->times); ?> <?php echo redEVENTHelper::getEventDuration($event); ?> <?php echo JHTML::_('link', $venue_url, $event->venue); ?> </td> <td class="re-price"><?php echo REOutput::formatListPrices($event->prices); ?> </td> </tr>
/** * Creates the Venueevents View * * @since 0.9 */ function display() { $document =& JFactory::getDocument(); $document->link = JRoute::_('index.php?option=com_redevent&view=upcomingvenueevents'); $upcomingevents = $this->get('UpcomingVenueEvents'); $elsettings = redEVENTHelper::config(); $imagepath = JURI::root() . 'administrator/components/com_redevent/assets/images/'; foreach ((array) $upcomingevents as $key => $event) { $event_url = RedeventHelperRoute::getDetailsRoute($event->slug, $event->xslug); $venue_url = RedeventHelperRoute::getVenueEventsRoute($event->venueslug); $description = '<table> <tbody> <tr> <td width="100">Course:</td><td>' . JHTML::_('link', $event_url, $event->full_title, 'target="_blank"') . '</td> </tr><tr> <td>Where:</td><td>' . $event->location . ' ' . REOutput::getFlag($event->country) . '</td> </tr><tr> <td>Date:</td><td>' . REOutput::formatdate($event->dates, $event->times) . '</td> </tr><tr> <td>Duration:</td><td>' . $event->duration; if ($event->duration == 1) { $description .= JText::_('COM_REDEVENT_DAY'); } else { if ($event->duration > 1) { $description .= JText::_('COM_REDEVENT_DAYS'); } } $description .= '</td> </tr><tr> <td>Venue:</td><td>' . JHTML::_('link', $venue_url, $event->venue, 'target="_blank"') . '</td> </tr><tr> <td>Price:</td><td class="re-price">' . REOutput::formatListPrices($event->prices) . '</td> </tr><tr> <td>Credits:</td><td>' . $event->course_credit . '</td> </tr><tr> <td>Signup:</td><td>'; /* Get the different submission types */ $submissiontypes = explode(',', $event->submission_types); $venues_html = ''; foreach ($submissiontypes as $key => $subtype) { switch ($subtype) { case 'email': $venues_html .= ' ' . JHTML::_('link', JRoute::_('index.php?option=com_redevent&view=signup&task=signup&subtype=email&xref=' . $event->xref . '&id=' . $event->id), JHTML::_('image', $imagepath . $elsettings->get('signup_email_img'), JText::_($elsettings->get('signup_email_text')), 'width="24px" height="24px" border="0"'), 'target="_blank"') . ' '; break; case 'phone': $venues_html .= ' ' . JHTML::_('link', JRoute::_('index.php?option=com_redevent&view=signup&task=signup&subtype=phone&xref=' . $event->xref . '&id=' . $event->id), JHTML::_('image', $imagepath . $elsettings->get('signup_phone_img'), JText::_($elsettings->get('signup_phone_text')), 'width="24px" height="24px" border="0"'), 'target="_blank"') . ' '; break; case 'external': $venues_html .= ' ' . JHTML::_('link', $event->submission_type_external, JHTML::_('image', $imagepath . $elsettings->get('signup_external_img'), $elsettings->get('signup_external_text'), 'width="24px" height="24px" border="0"'), 'target="_blank"') . ' '; break; case 'webform': if ($event->prices && count($event->prices)) { foreach ($event->prices as $p) { $img = empty($p->image) ? JHTML::_('image', $imagepath . $elsettings->get('signup_webform_img'), JText::_($elsettings->get('signup_webform_text'))) : JHTML::_('image', $imagepath . $p->image, JText::_($p->name)); $link = JRoute::_(RedeventHelperRoute::getSignupRoute('webform', $event->slug, $event->xslug, $p->slug)); $venues_html .= ' ' . JHTML::_('link', $link, $img) . ' '; } } else { $venues_html .= ' ' . JHTML::_('link', JRoute::_(RedeventHelperRoute::getSignupRoute('webform', $event->slug, $event->xslug)), JHTML::_('image', $imagepath . $elsettings->get('signup_webform_img'), JText::_($elsettings->get('signup_webform_text')))) . ' '; } break; case 'formaloffer': $venues_html .= ' ' . JHTML::_('link', JRoute::_('index.php?option=com_redevent&view=signup&subtype=formaloffer&task=signup&xref=' . $event->xslug . '&id=' . $event->slug), JHTML::_('image', $imagepath . $elsettings->get('signup_formal_offer_img'), JText::_($elsettings->get('signup_formal_offer_text')), 'width="24px" height="24px" border="0"'), 'target="_blank"') . ' '; break; } } $description .= $venues_html; $description .= '</td></tr></tbody></table>'; $item = new JFeedItem(); $item->title = $event->full_title; $item->link = $event_url; $item->description = $description; $item->date = ''; $item->category = $event->venue; // loads item info into rss array $document->addItem($item); } }
?> <div class="rf_img"></div> <?php } ?> <p class="rf_thumbevent_title"> <span class="summary"><?php echo JHTML::_('link', JRoute::_($detaillink), $row->full_title); ?> </span> @ <span class="location"><?php echo JHTML::_('link', JRoute::_($venuelink), $row->venue); ?> </span> </p> <p class="rf_thumbevent_date"> <span class="dtstart"><?php echo REOutput::formatdate($row->dates, $row->times); ?> </span> <?php if ($row->enddates && $row->enddates != '0000-00-00' && $row->enddates != $row->dates) { echo ' - <span class="dtend">' . REOutput::formatdate($row->enddates, $row->endtimes) . '</span>'; } ?> </p> </li> <?php } ?> </ul>
function _getTag_paymentrequestlink() { $link = ''; if (!empty($this->_submitkey)) { $title = urlencode($this->getEvent()->getData()->title . ' ' . REOutput::formatdate($this->getEvent()->getData()->dates, $this->getEvent()->getData()->times)); $link = $this->absoluteUrls('index.php?option=com_redform&controller=payment&task=select&source=redevent&key=' . $this->_submitkey . '&paymenttitle=' . $title, false); } return $link; }
foreach ($this->rows as $row) { ?> <tr class="sectiontableentry<?php echo $k + 1 . $this->params->get('pageclass_sfx'); ?> " > <td headers="el_date" align="left"> <strong> <?php echo REOutput::formatdate($row->dates, $row->times); ?> <?php if (redEVENTHelper::isValidDate($row->enddates) && $row->enddates != $row->dates) { echo ' - ' . REOutput::formatdate($row->enddates, $row->endtimes); } ?> </strong> <?php if ($this->params->get('showtime', 1)) { ?> <br /> <?php echo REOutput::formattime($row->dates, $row->times); if ($row->endtimes) { echo ' - ' . REOutput::formattime($row->enddates, $row->endtimes); } } ?>
//attach category color if any in front of the event title in the calendar overview if (isset($category->color) && $category->color) { $colorpic .= '<span class="colorpic" style="background-color: ' . $category->color . ';"></span>'; } //count number of events per category if (!array_key_exists($category->id, $countcatevents)) { $countcatevents[$category->id] = 1; } else { $countcatevents[$category->id]++; } } //wrap a div for each category around the event for show hide toggler $content .= '<div class="' . implode(' ', $cat_classes) . ($row->featured ? ' featured' : '') . '">'; $contentend .= '</div>'; $catname = '<div class="catname">' . implode(', ', $cat_names) . '</div>'; $eventdate = REOutput::formatdate($row->dates, $row->times); //venue if ($this->params->get('showlocate', 1) == 1) { $venue = '<div class="location"><span class="label">' . JText::_('COM_REDEVENT_VENUE') . ': </span>'; if ($this->params->get('showlinkvenue', 1) == 1 && 0) { $venue .= $row->locid ? "<a href='" . 'index.php?option=com_redevent&view=venueevents&id=' . $row->venueslug . "'>" . $this->escape($row->venue) . "</a>" : '-'; } else { $venue .= $row->locid ? $this->escape($row->venue) : '-'; } $venue .= '</div>'; } else { $venue = ''; } //generate the output $content .= $colorpic; if ($this->params->get('show_start_time', 0)) {
function _displayCancel($tpl) { $user =& JFactory::getUser(); $uri =& JFactory::getURI(); $xref = JRequest::getInt('xref'); $rid = JRequest::getInt('rid'); $key = JRequest::getVar('submit_key', '', 'request', 'string'); $document =& JFactory::getDocument(); $document->setTitle(JText::_('COM_REDEVENT_PAGETITLE_CANCEL_REGISTRATION')); $model = $this->getModel(); $model->setXref($xref); $course = $this->get('SessionDetails'); $course->dateinfo = REOutput::formatdate($course->dates, $course->times); $cancellink = JRoute::_(RedeventHelperRoute::getDetailsRoute($course->slug, $course->xref) . '&task=delreguser&rid=' . $rid); $this->assignRef('course', $course); $this->assignRef('xref', $xref); $this->assignRef('rid', $rid); $this->assignRef('cancellink', $cancellink); $this->assignRef('action', JRoute::_('index.php?option=com_redevent&xref=' . $xref . '&rid=' . $rid)); parent::display($tpl); }