예제 #1
0
$calCode .= "\t\tweekNumbers: " . ($params->get('weeknumbers', 1) == 1 ? 'true' : 'false') . ",\n";
$calCode .= "\t\tmonthNames: " . $monthsLong . ",\n";
$calCode .= "\t\tmonthNamesShort: " . $monthsShort . ",\n";
$calCode .= "\t\tdayNames: " . $daysLong . ",\n";
$calCode .= "\t\tdayNamesShort: " . $daysShort . ",\n";
if ($params->get('calendar_height', 0) > 0) {
    $calCode .= "\t\tcontentHeight: " . $params->get('calendar_height', 0) . ",\n";
}
$calCode .= "\t\tdayNamesShort: " . $daysShort . ",\n";
$calCode .= "\t\ttimeFormat: { \n";
$calCode .= "\t\t\tmonth: '" . Fullcalendar::convertFromPHPDate($params->get('timeformat_month', 'g:i a{ - g:i a}')) . "',\n";
$calCode .= "\t\t\tweek: \"" . Fullcalendar::convertFromPHPDate($params->get('timeformat_week', "g:i a{ - g:i a}")) . "\",\n";
$calCode .= "\t\t\tday: '" . Fullcalendar::convertFromPHPDate($params->get('timeformat_day', 'g:i a{ - g:i a}')) . "',\n";
$calCode .= "\t\t\tlist: '" . Fullcalendar::convertFromPHPDate($params->get('timeformat_list', 'g:i a{ - g:i a}')) . "'},\n";
$calCode .= "\t\tcolumnFormat: { month: 'ddd', week: 'ddd d', day: 'dddd d'},\n";
$calCode .= "\t\taxisFormat: '" . Fullcalendar::convertFromPHPDate($params->get('axisformat', 'g:i a')) . "',\n";
$calCode .= "\t\tallDayText: '" . htmlspecialchars(JText::_('COM_GCALENDAR_GCALENDAR_VIEW_ALL_DAY'), ENT_QUOTES) . "',\n";
$calCode .= "\t\tbuttonText: {\n";
$calCode .= "\t\t\tprev:     ' ◄ ',\n";
// left triangle
$calCode .= "\t\t\tnext:     ' ► ',\n";
// right triangle
$calCode .= "\t\t\tprevYear: ' << ',\n";
// <<
$calCode .= "\t\t\tnextYear: '&nbsp;&gt;&gt;&nbsp;',\n";
// >>
$calCode .= "\t\t\ttoday:    '" . htmlspecialchars(JText::_('COM_GCALENDAR_GCALENDAR_VIEW_TOOLBAR_TODAY'), ENT_QUOTES) . "',\n";
$calCode .= "\t\t\tmonth:    '" . htmlspecialchars(JText::_('COM_GCALENDAR_GCALENDAR_VIEW_VIEW_MONTH'), ENT_QUOTES) . "',\n";
$calCode .= "\t\t\tweek:     '" . htmlspecialchars(JText::_('COM_GCALENDAR_GCALENDAR_VIEW_VIEW_WEEK'), ENT_QUOTES) . "',\n";
$calCode .= "\t\t\tday:      '" . htmlspecialchars(JText::_('COM_GCALENDAR_GCALENDAR_VIEW_VIEW_DAY'), ENT_QUOTES) . "',\n";
$calCode .= "\t\t\tlist:      '" . htmlspecialchars(JText::_('COM_GCALENDAR_GCALENDAR_VIEW_VIEW_LIST'), ENT_QUOTES) . "'\n";
예제 #2
0
$calCode .= "\t\t},\n";
$calCode .= "\t\tdefaultView: 'month',\n";
$height = $params->get('calendar_height', null);
if (!empty($height)) {
    $calCode .= "\t\tcontentHeight: " . $height . ",\n";
}
$calCode .= "\t\teditable: false, theme: " . (!empty($theme) ? 'true' : 'false') . ",\n";
$calCode .= "\t\ttitleFormat: { \n";
$calCode .= "\t\t        month: '" . Fullcalendar::convertFromPHPDate($params->get('titleformat_month', 'M Y')) . "'},\n";
$calCode .= "\t\tfirstDay: " . $params->get('weekstart', 0) . ",\n";
$calCode .= "\t\tmonthNames: " . $monthsLong . ",\n";
$calCode .= "\t\tmonthNamesShort: " . $monthsShort . ",\n";
$calCode .= "\t\tdayNames: " . $daysLong . ",\n";
$calCode .= "\t\tdayNamesShort: " . $daysShort . ",\n";
$calCode .= "\t\ttimeFormat: { \n";
$calCode .= "\t\t        month: '" . Fullcalendar::convertFromPHPDate($params->get('timeformat_month', 'g:i a')) . "'},\n";
$calCode .= "\t\tcolumnFormat: { month: 'ddd', week: 'ddd d', day: 'dddd d'},\n";
$calCode .= "\t\tbuttonText: {\n";
$calCode .= "\t\t    prev:     '&nbsp;&#9668;&nbsp;',\n";
// left triangle
$calCode .= "\t\t    next:     '&nbsp;&#9658;&nbsp;',\n";
// right triangle
$calCode .= "\t\t    prevYear: '&nbsp;&lt;&lt;&nbsp;',\n";
// <<
$calCode .= "\t\t    nextYear: '&nbsp;&gt;&gt;&nbsp;'\n";
// >>
$calCode .= "\t\t},\n";
$calCode .= "\t\teventRender: function(event, element) {\n";
$calCode .= "\t\t\telement.addClass('gcal-module_event_gccal_'+" . $module->id . ");\n";
$calCode .= "\t\t\tif (event.description){\n";
$calCode .= "\t\t\t\telement.tipTip({content: event.description, defaultPosition: 'top'});}\n";