Une erreur s'est produite en traitant le calibre.
Error on line 50, column 5 in 10154#10192#175299453
request.getCookies() is undefined.
It cannot be assigned to cookies
1<#-- 
2  Full view for agenda 
3  v1.0 
4  By SM 
5--> 
6 
7<#-- GLOBAL SERVICES --> 
8 
9<#-- SERVICES INJONCTIONS --> 
10<#assign GroupLocalService = serviceLocator.findService("com.liferay.portal.service.GroupLocalService")> 
11<#assign CalendarLocalService = serviceLocator.findService("calendar-portlet", "com.liferay.calendar.service.CalendarLocalService") > 
12<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.portlet.asset.service.AssetEntryLocalService") > 
13<#assign assetCategoryLocalService = serviceLocator.findService("com.liferay.portlet.asset.service.AssetCategoryLocalService") > 
14<#assign assetVocabularyLocalService = serviceLocator.findService("com.liferay.portlet.asset.service.AssetVocabularyLocalService") > 
15<#assign groupLocalService = serviceLocator.findService("com.liferay.portal.service.GroupLocalService") > 
16 
17<#-- Get Group ID --> 
18<#assign currentGroup = GroupLocalService.getGroup(themeDisplay.getScopeGroupId()) > 
19<#assign currentGroupId = currentGroup.getGroupId() > 
20 
21<#-- Namespacing --> 
22<#assign portletNamespace = renderResponse.getNamespace() /> 
23<#assign sharedNamespace = "_3_WAR_calendarportlet_" /> 
24 
25<#-- Taglibs --> 
26<#assign liferay_ui = taglibLiferayHash["/WEB-INF/tld/liferay-ui.tld"] /> 
27 
28<#-- Date formats --> 
29<#assign formatDate =  dateFormatFactory.getSimpleDateFormat("d MMM 'à' H'h'mm", locale) > 
30<#assign formatDateDate =  dateFormatFactory.getSimpleDateFormat("'Le' EEEE dd MMMM yyyy", locale) > 
31<#assign formatDateDate2 =  dateFormatFactory.getSimpleDateFormat("dd MMMM yyyy", locale) > 
32<#assign formatDateTime =  dateFormatFactory.getSimpleDateFormat(" H'h'mm", locale) > 
33<#assign formatDateMonth =  dateFormatFactory.getSimpleDateFormat("MMMM yyyy", locale) > 
34 
35<section class="full-content"> 
36  <article class="content-view"> 
37    <#-- Setting up asset fields to work on --> 
38    <#assign assetEntry = assetEntryLocalService.getEntry("com.liferay.calendar.model.CalendarBooking", entry.getCalendarBookingId()) /> 
39    <#assign title = htmlUtil.escape(detailsCalendarBooking.getTitle(locale)) /> 
40    <#assign content = detailsCalendarBooking.getDescription(locale)/> 
41    <#assign locationTitle = detailsCalendarBooking.getLocationTitle()/> 
42    <#assign image1 = htmlUtil.escapeHREF(detailsCalendarBooking.getImage()) /> 
43    <#assign image2 = htmlUtil.escapeHREF(detailsCalendarBooking.getImageCarousel()) /> 
44    <#assign image3 = htmlUtil.escapeHREF(detailsCalendarBooking.getImageSquare()) /> 
45 
46    <#assign targets = detailsCalendarBooking.getTarget()> 
47    <#assign types = detailsCalendarBooking.getType() /> 
48    <#assign locations = detailsCalendarBooking.getLocation() /> 
49 
50    <#assign cookies = request.getCookies()> 
51    <#list cookies as cookie> 
52    <#if cookie.name = "eventDisplayDate"> 
53        <#assign displayDate = cookie.value /> 
54    </#if> 
55    </#list> 
56    <#if !displayDate??> 
57        <#assign displayDate = detailsCalendarBooking.getStartTime() /> 
58    </#if> 
59 
60    <#--- Get event time infos --> 
61    <#assign jStartCalendar = calendarFactory.getCalendar() > 
62    <#assign jEndCalendar = calendarFactory.getCalendar() > 
63    <#assign jDisplayStartCalendar = calendarFactory.getCalendar() > 
64    <#assign jDisplayEndCalendar = calendarFactory.getCalendar() > 
65    <#assign startDateEvent = jStartCalendar.setTimeInMillis(detailsCalendarBooking.getStartTime()) > 
66    <#assign endDateEvent = jEndCalendar.setTimeInMillis(detailsCalendarBooking.getEndTime()) > 
67    <#assign displayStartDateEvent = jDisplayStartCalendar.setTimeInMillis(displayDate?number) > 
68    <#assign displayEndDateEvent = jDisplayEndCalendar.setTimeInMillis(displayDate?number + detailsCalendarBooking.getEndTime() - detailsCalendarBooking.getStartTime()) > 
69    <#-- Set up display page --> 
70    <#assign viewURL = assetEntry.getAssetRenderer().getURLViewInContext(renderRequest, renderResponse, viewURL) /> 
71    <#assign viewURL = "/affichage-evenement/-/event/event/" + entry.getCalendarBookingId() /> 
72 
73		<div class="content-top"> 
74			<h3 class="surtitle date"> 
75        <#if detailsCalendarBooking.isAllDay() > 
76          <#if jDisplayStartCalendar.get(5) == jDisplayEndCalendar.get(5) > 
77             ${formatDateDate.format(jDisplayStartCalendar)} 
78          <#else > 
79              Du ${formatDateDate2.format(jDisplayStartCalendar)} au ${formatDateDate2.format(jDisplayEndCalendar)} 
80          </#if> 
81        <#else> 
82          <#if jDisplayStartCalendar.get(5) == jDisplayEndCalendar.get(5) > 
83              ${formatDateDate.format(jDisplayStartCalendar)} de ${formatDateTime.format(jStartCalendar)} à ${formatDateTime.format(jEndCalendar)} 
84          <#else > 
85              Du ${formatDateDate2.format(jDisplayStartCalendar)} au ${formatDateDate2.format(jDisplayEndCalendar)} 
86          </#if> 
87        </#if> 
88      </h3> 
89			<h2 class="title"> 
90        ${title} 
91      </h2> 
92      <h3 class="surtitle category"> 
93        <span class="type"> 
94          <#if types?has_content> 
95            <#list types?split(",") as type> 
96              <span> 
97                ${assetCategoryLocalService.getAssetCategory(getterUtil.getLong(type)).getTitle(locale)} 
98              </span> 
99            </#list> 
100          </#if> 
101        </span> 
102        <span class="target"> 
103          <#if targets?has_content> 
104            <#list targets?split(",") as target> 
105              <span> 
106                ${assetCategoryLocalService.getAssetCategory(getterUtil.getLong(target)).getTitle(locale)} 
107              </span> 
108            </#list> 
109          </#if> 
110        </span> 
111        <span class="location"> 
112          <#if locations?has_content> 
113            <#list locations?split(",") as location> 
114              <span> 
115                ${assetCategoryLocalService.getAssetCategory(getterUtil.getLong(location)).getTitle(locale)} 
116              </span> 
117            </#list> 
118          </#if> 
119        </span> 
120      </h3> 
121		</div> 
122		<div class="content-bottom"> 
123      <#-- Content image or default image --> 
124      <img class="img-responsive" 
125      <#if image1?has_content> 
126         <#-- src="/image-processor-portlet/i/${currentGroupId}/links-list-theme/?u=${image1}"--> 
127         src="${image1}" 
128       <#else> 
129         src="${themeDisplay.getPathThemeImages()}/imagedefault.jpg" 
130       </#if> 
131       alt="${title}"/> 
132			<p class="content"> 
133        ${content} 
134      </p> 
135      <#if locationTitle?has_content>  
136          <hr/> 
137          <p class="content"> 
138                ${locationTitle} 
139          </p> 
140		</div> 
141	  </#if>	 
142  </article> 
143</section>