Exemple #1
0
    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') . "'>";
# output of calendar
$currentWeek = $this->currentweek;
$nrweeks = $this->params->get('nrweeks', 1);
echo $this->cal->showWeeksByID($currentWeek, $nrweeks);
?>
Exemple #2
0
			$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
		// if we have exact one color from categories we can use this as background color of event
		if (!empty($evbg_usecatcolor) && (count($catcolor) == 1)) {
			$content .= '<div class="eventcontentinner" style="background-color:'.array_pop($catcolor).'">';
			$content .= JemHelper::caltooltip($catname.$eventname.$timehtml.$venue.$eventstate, $eventdate, $row->title . $statusicon, $detaillink, 'editlinktip hasTip', $timetp, $category->color);
			$content .= $contentend . '</div>';
		} else {
			$content .= '<div class="eventcontentinner">' . $colorpic;
			$content .= JemHelper::caltooltip($catname.$eventname.$timehtml.$venue.$eventstate, $eventdate, $row->title . $statusicon, $detaillink, 'editlinktip hasTip', $timetp, $color);
			$content .= $contentend . '</div>';
		}

		$this->cal->setEventContent($year, $month, $day, $content);
	endforeach;

	# output of calendar
	$currentWeek = $this->currentweek;
	$nrweeks = $this->params->get('nrweeks', 1);
	echo $this->cal->showWeeksByID($currentWeek, $nrweeks);
	?>

	<div id="jlcalendarlegend">
		<div class="calendarButtons">
			<div class="calendarButtonsToggle">