View

Day
Week
Month
Year



$(function () {
var calendarOptions = {
events_source: [{“id”:668,”class”:”event-danger”,”title”:”Vitray Tekniu011finde Ezop ve Tu00fcrk Fabllaru0131″,”url”:”https://supersohbet.com/?post_type=product&p=668″,”start”:”1521417600000″,”end”:”1521763200000″},{“id”:662,”class”:”event-danger”,”title”:”4 Gu00fcne 4 Teknik”,”url”:”https://supersohbet.com/product/4-gune-4-teknik/”,”start”:”1527120000000″,”end”:”1527379200000″},{“id”:652,”class”:”event-danger”,”title”:”Vitray Tekniu011finde Ezop ve Tu00fcrk Fabllaru0131″,”url”:”https://supersohbet.com/product/vitray-tekniginde-ezop-ve-turk-fabllari/”,”start”:”1521417600000″,”end”:”1521763200000″},{“id”:635,”class”:”event-danger”,”title”:”Cam+Metal Atu00f6lyesi”,”url”:”https://supersohbet.com/product/cammetal-atolyesi/”,”start”:”1527897600000″,”end”:”1528156800000″},{“id”:626,”class”:”event-inverse”,”title”:”Deneme Gezi”,”url”:”https://supersohbet.com/product/deneme-gezi/”,”start”:”1515542400000″,”end”:”1516838400000″},{“id”:620,”class”:”event-success”,”title”:”u00d6rnek u00c7ocuk Etkinlik”,”url”:”https://supersohbet.com/product/ornek-cocuk-etkinlik/”,”start”:”1515542400000″,”end”:”1516838400000″}],
view: ‘month’,
tmpl_path: ‘https://supersohbet.com/wp-content/themes/co/framework-customizations/extensions/shortcodes/shortcodes/events-calendar/static/tmpls/’,
tmpl_cache: false,
day: ‘2018-01-15’,
language: ‘tr-TR’,
onAfterEventsLoad: function(events) {
if(!events) {
return;
}
var list = $(‘#eventlist’);
list.html(”);
$.each(events, function(key, val) {
$(document.createElement(‘li’))
.html(‘‘ + val.title + ‘‘)
.appendTo(list);
});
},
onAfterViewLoad: function(view) {
$(‘.calendar-header’).text(this.getTitle());
$(‘.btn-group a’).removeClass(‘active’);
$(‘[data-calendar-view=”‘ + view + ‘”]’).addClass(‘active’);
},
classes: {
months: {
general: ‘label’
}
}
};
if($(“#calendar”).length){
var calendar = $(‘#calendar’).calendar(calendarOptions);
$(‘[data-calendar-nav]’).each(function() {
var $this = $(this);
$this.click(function() {
calendar.navigate($this.data(‘calendar-nav’));
});
});
$(‘[data-calendar-view]’).each(function() {
var $this = $(this);
$this.click(function() {
calendar.view($this.data(‘calendar-view’));
});
});
}
});