[(#REM) L'appel depuis un article se fait par < fullcalendarXX >, alors id_fullcalendar=XX ou par un modele CROCHET(# MODELE{fullcalendar}{id_fullcalendar=XX})CROCHET , alors id_fullcalendar=XX ] 0){ $class=",backgroundColor: '".$style[$row['id_style']]['back']."', textColor: '".$style[$row['id_style']]['text']."', borderColor: '".$style[$row['id_style']]['bord']."'"; } else $class=''; $events.="{title: '".texte_script($row['titre'])."',start: new Date(parseInt('".$date[0]."',10), parseInt('".($date[1]-1)."',10), parseInt('".$date[2]."',10), parseInt('".$start[0]."',10), parseInt('".$start[1]."',10)),end: new Date(parseInt('".$date_fin[0]."',10), parseInt('".($date_fin[1]-1)."',10), parseInt('".$date_fin[2]."',10), parseInt('".$end[0]."',10), parseInt('".$end[1]."',10)), $url allDay: false $class},"; } sql_free($result); $events=substr($events,0,strlen($events)-1); $events.=']'; break; # AGENDA GOOGLE case 'google': # Choppe la clé Google dans le seul évènement de cet agenda ... $result = sql_select('lien', 'spip_fullcalendar_events', 'id_fullcalendar='.intval($id)); $row = sql_fetch($result); if(!strlen($row['lien'])) return; $URL_AGENDA = "http://www.google.com/calendar/feeds/".$row['lien']."/public/basic"; $events = "events: $.fullCalendar.gcalFeed('".$URL_AGENDA."'), eventClick: function(event) { // opens events in a popup window window.open(event.url, 'gcalevent', 'width=700,height=600'); return false; }, loading: function(bool) { if (bool) { $('#loading').show(); }else{ $('#loading').hide(); } } "; break; default: } # Récupère les variable Paramètres / CFG $aspectRatio = "[(#ENV{aspectRatio,#CONFIG{fullcalendar/aspectRatio,'1.35'}}|texte_script)]"; $useTheme = "[(#ENV{useTheme,#CONFIG{fullcalendar/useTheme,true}}|texte_script)]"; $useTheme = ($useTheme=='true')? 'theme: true,' : '' ; $weekends = "[(#ENV{weekends,#CONFIG{fullcalendar/weekends,true}}|texte_script)]"; $defaultView = "[(#ENV{defaultView,#CONFIG{fullcalendar/defaultView,month}}|texte_script)]"; $headerLeft = "[(#CONFIG{fullcalendar/headerLeft, 'prev,next'}|texte_script)]"; $headerCenter = "[(#CONFIG{fullcalendar/headerCenter, 'title'}|texte_script)]"; $headerRight = "[(#CONFIG{fullcalendar/headerRight, 'month,agendaWeek,agendaDay'}|texte_script)]"; $firstDay = "[(#CONFIG{fullcalendar/firstDay, '1'}|texte_script)]"; $month_titleFormat = "[(#CONFIG{fullcalendar/month_titleFormat, 'MMMM yyyy'}|texte_script)]"; $month_columnFormat = "[(#CONFIG{fullcalendar/month_columnFormat, 'dddd'}|texte_script)]"; $month_timeFormat = "[(#CONFIG{fullcalendar/month_timeFormat, ''}|texte_script)]"; #$week_titleFormat = "[(#CONFIG{fullcalendar/week_titleFormat, 'd [(#VAL{91}|chr)]MMMM[(#VAL{93}|chr)] [(#VAL{91}|chr)] yyyy[(#VAL{93}|chr)][(#VAL{123}|chr)] - d MMMM yyyy[(#VAL{125}|chr)]' }|texte_script)]"; $week_titleFormat = "[(#CONFIG{fullcalendar/week_titleFormat, 'd MMMM yyyy{ - d MMMM yyyy}'}|texte_script)]"; $week_columnFormat = "[(#CONFIG{fullcalendar/week_columnFormat, 'dddd d'}|texte_script)]"; $week_timeFormat_basic = "[(#CONFIG{fullcalendar/week_timeFormat_basic, 'H(:mm)'}|texte_script)]"; $week_timeFormat_agenda = "[(#CONFIG{fullcalendar/week_timeFormat_agenda, 'H(:mm)'}|texte_script)]"; $day_titleFormat = "[(#CONFIG{fullcalendar/day_titleFormat, 'dddd d MMMM yyyy'}|texte_script)]"; $day_columnFormat = "[(#CONFIG{fullcalendar/day_columnFormat, 'dddd d MMMM'}|texte_script)]"; $day_timeFormat_basic = "[(#CONFIG{fullcalendar/day_timeFormat_basic, 'H:mm{ - H:mm}'}|texte_script)]"; $day_timeFormat_agenda = "[(#CONFIG{fullcalendar/day_timeFormat_agenda, 'H:mm{ - H:mm}'}|texte_script)]"; $rand = rand(0,1000); # Génère le fullcalendar avec tous ses paramètres ... print "
"; } ?>