You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.7 KiB
39 lines
1.7 KiB
8 years ago
|
<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}" style="width: 300px; margin: 50px auto;"></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: true,
|
||
|
openEventInNewWindow: false,
|
||
|
dateFormat: 'dddd DD-MM-YYYY',
|
||
|
showDescription: false,
|
||
|
locales: {ldelim}
|
||
|
locale: "ru",
|
||
|
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}
|