Görünüm
Mod
$(function () {
var calendarOptions = {
events_source: [{“id”:1999,”class”:””,”title”:”1 day Fusing Workshop”,”image”:”https://camocagi.org/wp-content/uploads/2018/03/Screen-Shot-2018-03-29-at-17.44.20-200×200.png”,”url”:”https://camocagi.org/shop/gunubirlik-fuzyon-atolyesi/?lang=en”,”start”:”000″,”startDate”:”01/01″,”end”:”000″,”endDate”:”01/01/1970″},{“id”:1989,”class”:””,”title”:”Bead Making with Astrid Reidel”,”image”:”https://camocagi.org/wp-content/uploads/2018/04/Astrid-Reidel-200×200.png”,”url”:”https://camocagi.org/shop/bead-making-with-astrid-reidel/?lang=en”,”start”:”000″,”startDate”:”01/01″,”end”:”000″,”endDate”:”01/01/1970″},{“id”:2006,”class”:””,”title”:”Umut Demirgu00fcu00e7 Thurman”,”image”:”https://camocagi.org/wp-content/uploads/2018/04/emay-atolyesi-200×200.png”,”url”:”https://camocagi.org/shop/mine-atolyesi/?lang=en”,”start”:”000″,”startDate”:”01/01″,”end”:”000″,”endDate”:”01/01/1970″},{“id”:2008,”class”:””,”title”:”Bead Making with Tatyana Boyarinova”,”image”:”https://camocagi.org/wp-content/uploads/2018/03/tatyana-sakura-200×200.jpg”,”url”:”https://camocagi.org/shop/tatyana-boyarinova-ile-boncuk-yapimi/?lang=en”,”start”:”1525392000000″,”startDate”:”04/05″,”end”:”1525824000000″,”endDate”:”09/05/2018″},{“id”:2022,”class”:””,”title”:”1 day Glass Blowing Workshop”,”image”:”https://camocagi.org/wp-content/uploads/2018/03/sicak-cam-kalp-1-200×200.jpg”,”url”:”https://camocagi.org/shop/gunubirlik-sicak-cam-atolyesi/?lang=en”,”start”:”000″,”startDate”:”01/01″,”end”:”000″,”endDate”:”01/01/1970″},{“id”:2024,”class”:””,”title”:”1 day Bead Making Workshop”,”image”:”https://camocagi.org/wp-content/uploads/2018/03/claudu0131a-2-200×200.jpg”,”url”:”https://camocagi.org/shop/gunubirlik-boncuk-atolyesi/?lang=en”,”start”:”000″,”startDate”:”01/01″,”end”:”000″,”endDate”:”01/01/1970″},{“id”:1121,”class”:””,”title”:”Appetizer Glass Workshop Program”,”image”:”https://camocagi.org/wp-content/uploads/2018/03/tadu0131mlu0131k-kare-copy-200×200.jpg”,”url”:”https://camocagi.org/shop/tadimlik-atolye/?lang=en”,”start”:”000″,”startDate”:”01/01″,”end”:”000″,”endDate”:”01/01/1970″},{“id”:2026,”class”:””,”title”:”John Moran”,”image”:”https://camocagi.org/wp-content/uploads/2018/03/Protect_and_Serve_2017_photo_Evert_Van_Laere-200×200.jpg”,”url”:”https://camocagi.org/shop/john-moranla-sicak-heykel-yapimi-figuru-birlikte-cozmek/?lang=en”,”start”:”1526947200000″,”startDate”:”22/05″,”end”:”1527811200000″,”endDate”:”01/06/2018″},{“id”:2028,”class”:””,”title”:”KILN FORMING – OUT OF SQUARE with Emma Varga”,”image”:”https://camocagi.org/wp-content/uploads/2018/03/Emma-Varga-FireBush8-pateu0301-de-verre-wall-panel-HiRez-200×200.jpg”,”url”:”https://camocagi.org/shop/emma-varga-ile-fuzyon/?lang=en”,”start”:”1526947200000″,”startDate”:”22/05″,”end”:”1527811200000″,”endDate”:”01/06/2018″},{“id”:723,”class”:””,”title”:”Aesopu2019s & Turkish Fables in Stained Glass”,”image”:”https://camocagi.org/wp-content/uploads/2018/01/Joseph-Cavalieri-1-200×200.jpg”,”url”:”https://camocagi.org/shop/aesops-turkish-fables-in-stained-glass/?lang=en”,”start”:”1521417600000″,”startDate”:”19/03″,”end”:”1521763200000″,”endDate”:”23/03/2018″},{“id”:720,”class”:””,”title”:”Glass And Metal Workshop”,”image”:”https://camocagi.org/wp-content/uploads/2018/01/IMG_5392-200×200.jpg”,”url”:”https://camocagi.org/shop/glass-and-metal-workshop/?lang=en”,”start”:”1527897600000″,”startDate”:”02/06″,”end”:”1528156800000″,”endDate”:”05/06/2018″},{“id”:716,”class”:””,”title”:”u2028Silver Surfaces with Ana Lopez”,”image”:”https://camocagi.org/wp-content/uploads/2018/01/Ana.Lopez-4-200×200.jpg”,”url”:”https://camocagi.org/shop/silver-surfaces-with-ana-lopez/?lang=en”,”start”:”1527120000000″,”startDate”:”24/05″,”end”:”1527379200000″,”endDate”:”27/05/2018″},{“id”:2032,”class”:””,”title”:”Sallie Portnoy Kalu0131pla u015eekillendirme”,”image”:”https://camocagi.org/wp-content/uploads/2018/03/Screen-Shot-2018-03-19-at-16.19.53-200×200.png”,”url”:”https://camocagi.org/shop/kalipla-sekillendirme/?lang=en”,”start”:”1529625600000″,”startDate”:”22/06″,”end”:”1530057600000″,”endDate”:”27/06/2018″},{“id”:2034,”class”:””,”title”:”Mustafa Au011fatekin ceramics and glass”,”image”:”https://camocagi.org/wp-content/uploads/2018/04/mustafa-agatekin–200×200.jpg”,”url”:”https://camocagi.org/shop/seramik-ve-cam/?lang=en”,”start”:”1531872000000″,”startDate”:”18/07″,”end”:”1532304000000″,”endDate”:”23/07/2018″},{“id”:2038,”class”:””,”title”:”An Introduction to Neon with Tom Galbraith”,”image”:”https://camocagi.org/wp-content/uploads/2018/03/tom_galbraith-200×200.jpg”,”url”:”https://camocagi.org/shop/neon/?lang=en”,”start”:”1533513600000″,”startDate”:”06/08″,”end”:”1534377600000″,”endDate”:”16/08/2018″},{“id”:2042,”class”:””,”title”:”Tim Shaw”,”image”:”https://camocagi.org/wp-content/uploads/2018/04/DSC09264ssss-200×200.jpg”,”url”:”https://camocagi.org/shop/doga-ve-sicak-cam-ufleme/?lang=en”,”start”:”1533513600000″,”startDate”:”06/08″,”end”:”1534377600000″,”endDate”:”16/08/2018″},{“id”:2044,”class”:””,”title”:”Pate de verre”,”image”:”https://camocagi.org/wp-content/uploads/2018/04/Saman-Kalantari-200×200.png”,”url”:”https://camocagi.org/shop/pate-de-verre/?lang=en”,”start”:”1536278400000″,”startDate”:”07/09″,”end”:”1536710400000″,”endDate”:”12/09/2018″}],
view: ‘month’,
tmpl_path: ‘https://camocagi.org/wp-content/themes/co/framework-customizations/extensions/shortcodes/shortcodes/events-calendar/static/tmpls/’,
tmpl_cache: false,
language: ‘tr-TR’,
onAfterEventsLoad: function(events) {
if(!events) {
return;
}
var list = $(‘#eventlist’);
list.html(”);
$.each(events, function(key, val) {
var start = val.startDate;
var end = val.endDate;
$(document.createElement(‘li’))
.html(” + start + ‘ – ‘+end+’ ‘ + val.title + ‘‘)
.appendTo(list);
});
},
onAfterViewLoad: function(view) {
$(‘.calendar-header’).text(this.getTitle());
$(‘.btn-group.calendar-view 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’));
});
});
$(‘[data-calendar-mode]’).on(“click”, function () {
var $value = $(this).data(“calendar-mode”);
$(“[data-calendar-mode]”).removeClass(“active”);
$(this).addClass(“active”);
if($value === “calendar”){
$(“#eventlist”).stop().fadeOut().promise().done(function () {
$(“#calendar”).fadeIn();
$(“.calendar-head”).fadeIn();
$(“.calendar-view”).fadeIn();
});
}
else if($value === “agenda”){
$(“.calendar-head”).fadeOut();
$(“.calendar-view”).fadeOut();
$(“#calendar”).stop().fadeOut().promise().done(function () {
$(“#eventlist”).fadeIn();
});
}
});
}
});