|
|
|
<link rel="stylesheet" href="{$ABS_PATH}modules/unicalendar/css/eventCalendar.css" type="text/css" media="screen" charset="utf-8" />
|
|
|
|
<link rel="stylesheet" href="{$ABS_PATH}modules/unicalendar/css/eventCalendar_theme_responsive.css" type="text/css" media="screen" charset="utf-8" />
|
|
|
|
<script src="{$ABS_PATH}modules/unicalendar/js/moment.js" type="text/javascript" charset="utf-8"></script>
|
|
|
|
<script src="{$ABS_PATH}modules/unicalendar/js/jquery.eventCalendar.js" type="text/javascript" charset="utf-8"></script>
|
|
|
|
|
|
|
|
{foreach from=$unicalendars item=unicalendar}
|
|
|
|
<div id="eventCalendar{$unicalendar.id}"></div>
|
|
|
|
<script>
|
|
|
|
$(function(){ldelim}
|
|
|
|
var data = [
|
|
|
|
{foreach from=$results item=result}
|
|
|
|
{ldelim} "date": "{$result.document_published|date_format:'%Y-%m-%d %H:%M:%S'|pretty_date}", "title": "{$result.document_title}", "description": "{$result.document_meta_description}", "url": "{$result.document_alias}" {rdelim},
|
|
|
|
{/foreach}
|
|
|
|
];
|
|
|
|
$('#eventCalendar{$unicalendar.id}').eventCalendar({ldelim}
|
|
|
|
jsonData: data,
|
|
|
|
jsonDateFormat: 'human',
|
|
|
|
startWeekOnMonday: {$unicalendar.uca_day},
|
|
|
|
eventsScrollable: {$unicalendar.uca_scroll},
|
|
|
|
openEventInNewWindow: {$unicalendar.uca_link},
|
|
|
|
dateFormat: 'dddd DD-MM-YYYY',
|
|
|
|
showDescription: {$unicalendar.uca_descript},
|
|
|
|
locales: {ldelim}
|
|
|
|
locale: "{#UCA_LOCALE#}",
|
|
|
|
txt_noEvents: "{#UCA_NO_EVENTS#}",
|
|
|
|
txt_SpecificEvents_prev: "",
|
|
|
|
txt_SpecificEvents_after: "{#UCA_REAL_EVENTS#}",
|
|
|
|
txt_NextEvents: "{#UCA_NEXT_EVENTS#}",
|
|
|
|
txt_GoToEventUrl: "{#UCA_LOOK_EVENTS#}",
|
|
|
|
moment: {ldelim}
|
|
|
|
"months" : {#UCA_MONTHS_EVENTS#},
|
|
|
|
"monthsShort" : {#UCA_MONSHORT_EVENTS#},
|
|
|
|
"weekdays" : {#UCA_WEEKDAYS_EVENTS#},
|
|
|
|
"weekdaysShort" : {#UCA_WDAYSHORT_EVENTS#},
|
|
|
|
"weekdaysMin" : {#UCA_WDAYMIN_EVENTS#}
|
|
|
|
{rdelim}
|
|
|
|
{rdelim}
|
|
|
|
{rdelim});
|
|
|
|
{rdelim});
|
|
|
|
</script>
|
|
|
|
{/foreach}
|