function printEvent($view, $item, $height = -1, $top = -1) { $gcal = $this->calendar; if (!$gcal->getShowEventTitle()) { return; } $feed = $item->get_feed(); if ($height > -1) { echo "<div class=\"Event\" style=\"height:" . $height . "px; top:" . $top . "px\">"; } echo "<div class=\"gccal_" . $feed->get('gcid') . "\">"; if ($height > -1) { echo "<div style=\"height:" . ($height - 2) . "px\">"; } EventRenderer::display($view, $item); if ($height > -1) { echo "</div>"; echo "</div>"; } echo "</div>"; }
function display($displayType, $spItem) { global $Itemid; $feed = $spItem->get_feed(); $summaryLength = 0; switch ($displayType) { case "month": $summaryLength = 22; break; case "week": $summaryLength = 23; break; case "day": $summaryLength = 0; break; } JHTML::_('behavior.modal'); echo "<a class=\"gcalendar_daylink modal\" href=\"" . JRoute::_('index.php?option=com_gcalendar&tmpl=component&view=event&eventID=' . $spItem->get_id() . '&gcid=' . $feed->get('gcid')) . '&Itemid=' . $Itemid . "\" "; echo " rel=\"{handler: 'iframe', size: {x: 680, y: 650}}\" title=\""; echo EventRenderer::summary($spItem); echo "\" >"; echo EventRenderer::summary($spItem, $summaryLength); echo "</a>\n"; }