本文整理汇总了PHP中JemHelper::caltooltip方法的典型用法代码示例。如果您正苦于以下问题:PHP JemHelper::caltooltip方法的具体用法?PHP JemHelper::caltooltip怎么用?PHP JemHelper::caltooltip使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JemHelper
的用法示例。
在下文中一共展示了JemHelper::caltooltip方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: elseif
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);
?>
示例2:
$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">