X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Ffrio%2Ftemplates%2Fevent_head.tpl;h=e836f226f2b0955541972285c2911d3e78772ded;hb=1e40cdd1d45bd19631102db9c4133d90638fae66;hp=a44fd30be6ffecf958be34c73df6b25af8a73a5e;hpb=606f42701ccd545a04fdf0b2a6bea3bce2ee9dd0;p=friendica.git diff --git a/view/theme/frio/templates/event_head.tpl b/view/theme/frio/templates/event_head.tpl index a44fd30be6..e836f226f2 100644 --- a/view/theme/frio/templates/event_head.tpl +++ b/view/theme/frio/templates/event_head.tpl @@ -1,113 +1,83 @@ - - - + + + - $(document).ready(function() { - // start the fullCalendar - $('#events-calendar').fullCalendar({ - firstDay: {{$i18n.firstDay}}, - monthNames: ['{{$i18n.January}}','{{$i18n.February}}','{{$i18n.March}}','{{$i18n.April}}','{{$i18n.May}}','{{$i18n.June}}','{{$i18n.July}}','{{$i18n.August}}','{{$i18n.September}}','{{$i18n.October}}','{{$i18n.November}}','{{$i18n.December}}'], - monthNamesShort: ['{{$i18n.Jan}}','{{$i18n.Feb}}','{{$i18n.Mar}}','{{$i18n.Apr}}','{{$i18n.May}}','{{$i18n.Jun}}','{{$i18n.Jul}}','{{$i18n.Aug}}','{{$i18n.Sep}}','{{$i18n.Oct}}','{{$i18n.Nov}}','{{$i18n.Dec}}'], - dayNames: ['{{$i18n.Sunday}}','{{$i18n.Monday}}','{{$i18n.Tuesday}}','{{$i18n.Wednesday}}','{{$i18n.Thursday}}','{{$i18n.Friday}}','{{$i18n.Saturday}}'], - dayNamesShort: ['{{$i18n.Sun}}','{{$i18n.Mon}}','{{$i18n.Tue}}','{{$i18n.Wed}}','{{$i18n.Thu}}','{{$i18n.Fri}}','{{$i18n.Sat}}'], - buttonText: { - prev: "", - next: "", - prevYear: "«", - nextYear: "»", - today: '{{$i18n.today}}', - month: '{{$i18n.month}}', - week: '{{$i18n.week}}', - day: '{{$i18n.day}}' - }, - events: '{{$baseurl}}/events/json/', - header: { - left: '', - // center: 'title', - right: '' - }, - timeFormat: 'H(:mm)', - eventClick: function(calEvent, jsEvent, view) { - showEvent(calEvent.id); - }, - loading: function(isLoading, view) { - if(!isLoading) { - $('td.fc-day').dblclick(function() { window.location.href='/events/new?start='+$(this).data('date'); }); - } - }, - - eventRender: function(event, element, view) { - //console.log(view.name); - if (event.item['author-name']==null) return; - switch(view.name){ - case "month": - element.find(".fc-event-title").html( - "{1} : {2}".format( - event.item['author-avatar'], - event.item['author-name'], - event.title - )); - break; - case "agendaWeek": - element.find(".fc-event-title").html( - "{1}

{2}

{3}

".format( - event.item['author-avatar'], - event.item['author-name'], - event.item.desc, - event.item.location - )); - break; - case "agendaDay": - element.find(".fc-event-title").html( - "{1}

{2}

{3}

".format( - event.item['author-avatar'], - event.item['author-name'], - event.item.desc, - event.item.location - )); - break; - } - } - - }) - - // center on date - var args=location.href.replace(baseurl,"").split("/"); - if (args.length>=4) { - $("#events-calendar").fullCalendar('gotoDate',args[2] , args[3]-1); - } - - // echo the title - var view = $('#events-calendar').fullCalendar('getView'); - $('#fc-title').text(view.title); + - {{if $editselect != 'none'}}