コード例 #1
0
ファイル: default.php プロジェクト: JKoelman/JEM-3
    } else {
        $venue = '';
    }
    //date in tooltip
    $multidaydate = '<div class="time label label-info"><span class="text-label">' . JText::_('COM_JEM_DATE') . ': </span>';
    if ($multi->row == 'first') {
        $multidaydate .= JemOutput::formatShortDateTime($row->dates, $row->times, $row->enddates, $row->endtimes);
        $multidaydate .= JemOutput::formatSchemaOrgDateTime($row->dates, $row->times, $row->enddates, $row->endtimes);
    } elseif ($multi->row == 'middle') {
        $multidaydate .= JemOutput::formatShortDateTime($row->multistartdate, $row->times, $row->multienddate, $row->endtimes);
        $multidaydate .= JemOutput::formatSchemaOrgDateTime($row->multistartdate, $row->times, $row->multienddate, $row->endtimes);
    } elseif ($multi->row == 'zlast') {
        $multidaydate .= JemOutput::formatShortDateTime($row->multistartdate, $row->times, $row->multienddate, $row->endtimes);
        $multidaydate .= JemOutput::formatSchemaOrgDateTime($row->multistartdate, $row->times, $row->multienddate, $row->endtimes);
    } else {
        $multidaydate .= JemOutput::formatShortDateTime($row->dates, $row->times, $row->enddates, $row->endtimes);
        $multidaydate .= JemOutput::formatSchemaOrgDateTime($row->dates, $row->times, $row->enddates, $row->endtimes);
    }
    $multidaydate .= '</div>';
    //generate the output
    $content .= JemHelper::caltooltip($catname . $eventname . $timeTip . $venue, $eventdate, $row->title, $detaillink, 'hasTooltip', $timeHtml, $category->color);
    $content .= $colorpic;
    $content .= $contentend;
    $this->cal->setEventContent($year, $month, $day, $content);
}
$catinfo = JemHelper::arrayUnique($catinfo);
// create hidden input fields
foreach ($catinfo as $val) {
    echo "<input name='category" . $val['catid'] . "' type='hidden' value='" . $val['color'] . "'>";
}
echo "<input id='usebgcatcolor' name='usebgcatcolor' type='hidden' value='" . $this->params->get('usebgcatcolor', '0') . "'>";
コード例 #2
0
				<?php endif; ?>

				<?php if ($this->jemsettings->showeventimage == 1) : ?>
					<td headers="jem_eventimage" align="left" valign="top">
						<?php if (!empty($row->datimage)) : ?>
							<?php
							$dimage = JemImage::flyercreator($row->datimage, 'event');
							echo JemOutput::flyer($row, $dimage, 'event');
							?>
						<?php endif; ?>
					</td>
				<?php endif; ?>

				<td headers="jem_date" align="left">
					<?php
						echo JemOutput::formatShortDateTime($row->dates, $row->times,
							$row->enddates, $row->endtimes);
						echo JemOutput::formatSchemaOrgDateTime($row->dates, $row->times,
							$row->enddates, $row->endtimes);
					?>
				</td>

				<?php if (($this->jemsettings->showtitle == 1) && ($this->jemsettings->showdetails == 1)) : ?>
					<td headers="jem_title" align="left" valign="top">
						<a href="<?php echo JRoute::_(JemHelperRoute::getEventRoute($row->slug)); ?>" itemprop="url">
							<span itemprop="name"><?php echo $this->escape($row->title) . JemOutput::recurrenceicon($row); ?></span>
						</a><?php echo JemOutput::publishstateicon($row); ?>
					</td>
				<?php endif; ?>

				<?php if (($this->jemsettings->showtitle == 1) && ($this->jemsettings->showdetails == 0)) : ?>
					<td headers="jem_title" align="left" valign="top" itemprop="name">