示例#1
0
  	<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 
    if (!empty($this->row->url)) {
        ?>
示例#2
0
 function _getTag_startenddatetime()
 {
     $tmp = REOutput::formatdate($this->getEvent()->getData()->dates, $this->getEvent()->getData()->times);
     if (!empty($this->getEvent()->getData()->times) && strcasecmp('00:00:00', $this->getEvent()->getData()->times)) {
         $tmp .= ' ' . REOutput::formattime($this->getEvent()->getData()->dates, $this->getEvent()->getData()->times);
     }
     if (!empty($this->getEvent()->getData()->enddates) && $this->getEvent()->getData()->enddates != $this->getEvent()->getData()->dates) {
         $tmp .= ' - ' . REOutput::formatdate($this->getEvent()->getData()->enddates, $this->getEvent()->getData()->endtimes);
     }
     if (!empty($this->getEvent()->getData()->endtimes) && strcasecmp('00:00:00', $this->getEvent()->getData()->endtimes)) {
         $tmp .= ' ' . REOutput::formattime($this->getEvent()->getData()->dates, $this->getEvent()->getData()->endtimes);
     }
     return $tmp;
 }
示例#3
0
    					
    					<?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);
            }
        }
        ?>
				</td>

				<td headers="el_title" align="left" valign="top">
					<a onclick="insertEvent('<?php 
        echo $row->id;
        ?>
', '<?php 
        echo str_replace(array("'", "\""), array("\\'", ""), $row->title);
        ?>
', '<?php 
        echo JURI::root() . RedeventHelperRoute::getDetailsRoute($row->slug, $row->xref);
        ?>
示例#4
0
        //Link to details
        $detaillink = JRoute::_(RedeventHelperRoute::getDetailsRoute($row->slug, $row->xslug));
        ?>
  	<tr class="sectiontableentry<?php 
        echo $k + 1 . $this->params->get('pageclass_sfx') . ($row->featured ? ' featured' : '');
        echo $isover;
        ?>
" 
  	    itemscope itemtype="http://schema.org/Event">
			<td class="re_time">
				<?php 
        // is this a full day(s) event ?
        if (!$row->times || '00:00:00' == $row->times) {
            echo JText::_('COM_REDEVENT_ALL_DAY');
        } else {
            echo REOutput::formattime($row->dates, $row->times);
        }
        ?>
			</td>
			
		<?php 
        foreach ($this->columns as $col) {
            ?>
			<?php 
            switch ($col) {
                case 'date':
                    ?>
	    		<td class="re_date">
	    			<?php 
                    if ($row->dates && strtotime($row->dates)) {
                        ?>
示例#5
0
 //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)) {
     $content .= REOutput::formattime($row->dates, $row->times) . ' ';
 }
 // Text to display in calendar
 if ($this->params->get('session_display', 0) == 0 || !$row->datimage) {
     $text = $row->full_title;
 } elseif ($this->params->get('session_display', 0) == 1) {
     $img = redEVENTImage::getThumbUrl($row->datimage, $this->params->get('pic_size', 20));
     $text = '<span class="session-image">' . JHTML::image($img, $row->full_title) . '</span>';
 } else {
     $img = redEVENTImage::getThumbUrl($row->datimage, $this->params->get('pic_size', 20));
     $text = '<span class="session-image">' . JHTML::image($img, $row->full_title) . '</span>';
     $text .= $row->full_title;
 }
 $content .= $this->caltooltip($catname . $eventname . $timehtml . $venue, $eventdate, $text, $detaillink, 'eventTip');
 $content .= $contentend;
 // add the event to the calendar