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         <div class="type"> 
93            <#if types?has_content> 
94            <h3> 
95              <i class="fas fa-tags"></i> 
96            </h3> 
97            <ul> 
98              <#list types?split(",") as type> 
99                <li> 
100                  ${assetCategoryLocalService.getAssetCategory(getterUtil.getLong(type)).getTitle(locale)} 
101                </li> 
102              </#list> 
103            </ul>   
104            </#if> 
105            
106        </div> 
107        <div class="target"> 
108          <#if targets?has_content> 
109            <h3> 
110              <i class="fas fa-user-circle"></i> 
111            </h3> 
112            <ul> 
113            <#list targets?split(",") as target> 
114              <li> 
115                ${assetCategoryLocalService.getAssetCategory(getterUtil.getLong(target)).getTitle(locale)} 
116              </li> 
117            </#list> 
118            </ul> 
119          </#if> 
120        </div> 
121        <div class="location"> 
122          <#if locations?has_content> 
123            <h3>  
124              <i class="fas fa-home"></i> 
125            </h3> 
126            <ul> 
127            <#list locations?split(",") as location> 
128              <li> 
129                ${assetCategoryLocalService.getAssetCategory(getterUtil.getLong(location)).getTitle(locale)} 
130              </li> 
131            </#list> 
132            </ul> 
133          </#if> 
134        </div> 
135      </h3> 
136		</div> 
137		<div class="content-bottom"> 
138      <#-- Content image or default image --> 
139      <img class="img-responsive" 
140      <#if image1?has_content> 
141         <#-- src="/image-processor-portlet/i/${currentGroupId}/links-list-theme/?u=${image1}"--> 
142         src="${image1}" 
143       <#else> 
144         src="${themeDisplay.getPathThemeImages()}/imagedefault.jpg" 
145       </#if> 
146       alt="${title}"/> 
147			<p class="content"> 
148        ${content} 
149      </p> 
150      <#if locationTitle?has_content> 
151          <hr/> 
152          <p class="content"> 
153                ${locationTitle} 
154          </p> 
155		</div> 
156	  </#if> 
157  </article> 
158</section>