Une erreur s'est produite en traitant le calibre.
Expression request.getCookies() is undefined on line 50, column 12 in 10154#10192#175299453.
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    <#list request.getCookies() as cookie> 
51    <#if cookie.name = "eventDisplayDate"> 
52        <#assign displayDate = cookie.value /> 
53    </#if> 
54    </#list> 
55    <#if !displayDate??> 
56        <#assign displayDate = detailsCalendarBooking.getStartTime() /> 
57    </#if> 
58 
59    <#--- Get event time infos --> 
60    <#assign jStartCalendar = calendarFactory.getCalendar() > 
61    <#assign jEndCalendar = calendarFactory.getCalendar() > 
62    <#assign jDisplayStartCalendar = calendarFactory.getCalendar() > 
63    <#assign jDisplayEndCalendar = calendarFactory.getCalendar() > 
64    <#assign startDateEvent = jStartCalendar.setTimeInMillis(detailsCalendarBooking.getStartTime()) > 
65    <#assign endDateEvent = jEndCalendar.setTimeInMillis(detailsCalendarBooking.getEndTime()) > 
66    <#assign displayStartDateEvent = jDisplayStartCalendar.setTimeInMillis(displayDate?number) > 
67    <#assign displayEndDateEvent = jDisplayEndCalendar.setTimeInMillis(displayDate?number + detailsCalendarBooking.getEndTime() - detailsCalendarBooking.getStartTime()) > 
68    <#-- Set up display page --> 
69    <#assign viewURL = assetEntry.getAssetRenderer().getURLViewInContext(renderRequest, renderResponse, viewURL) /> 
70    <#assign viewURL = "/affichage-evenement/-/event/event/" + entry.getCalendarBookingId() /> 
71 
72		<div class="content-top"> 
73			<h3 class="surtitle date"> 
74        <#if detailsCalendarBooking.isAllDay() > 
75          <#if jDisplayStartCalendar.get(5) == jDisplayEndCalendar.get(5) > 
76             ${formatDateDate.format(jDisplayStartCalendar)} 
77          <#else > 
78              Du ${formatDateDate2.format(jDisplayStartCalendar)} au ${formatDateDate2.format(jDisplayEndCalendar)} 
79          </#if> 
80        <#else> 
81          <#if jDisplayStartCalendar.get(5) == jDisplayEndCalendar.get(5) > 
82              ${formatDateDate.format(jDisplayStartCalendar)} de ${formatDateTime.format(jStartCalendar)} à ${formatDateTime.format(jEndCalendar)} 
83          <#else > 
84              Du ${formatDateDate2.format(jDisplayStartCalendar)} au ${formatDateDate2.format(jDisplayEndCalendar)} 
85          </#if> 
86        </#if> 
87      </h3> 
88			<h2 class="title"> 
89        ${title} 
90      </h2> 
91      <h3 class="surtitle category"> 
92        <span class="type"> 
93          <#if types?has_content> 
94            <#list types?split(",") as type> 
95              <span> 
96                ${assetCategoryLocalService.getAssetCategory(getterUtil.getLong(type)).getTitle(locale)} 
97              </span> 
98            </#list> 
99          </#if> 
100        </span> 
101        <span class="target"> 
102          <#if targets?has_content> 
103            <#list targets?split(",") as target> 
104              <span> 
105                ${assetCategoryLocalService.getAssetCategory(getterUtil.getLong(target)).getTitle(locale)} 
106              </span> 
107            </#list> 
108          </#if> 
109        </span> 
110        <span class="location"> 
111          <#if locations?has_content> 
112            <#list locations?split(",") as location> 
113              <span> 
114                ${assetCategoryLocalService.getAssetCategory(getterUtil.getLong(location)).getTitle(locale)} 
115              </span> 
116            </#list> 
117          </#if> 
118        </span> 
119      </h3> 
120		</div> 
121		<div class="content-bottom"> 
122      <#-- Content image or default image --> 
123      <img class="img-responsive" 
124      <#if image1?has_content> 
125         <#-- src="/image-processor-portlet/i/${currentGroupId}/links-list-theme/?u=${image1}"--> 
126         src="${image1}" 
127       <#else> 
128         src="${themeDisplay.getPathThemeImages()}/imagedefault.jpg" 
129       </#if> 
130       alt="${title}"/> 
131			<p class="content"> 
132        ${content} 
133      </p> 
134      <#if locationTitle?has_content>  
135          <hr/> 
136          <p class="content"> 
137                ${locationTitle} 
138          </p> 
139		</div> 
140	  </#if>	 
141  </article> 
142</section>