contact us - elanrewardscard_responsive

Contact US

Need help? Want to report a lost or stolen card? Call us at 855.274.9934 in the U.S. or 918.858.9782 outside the U.S. We accept relay calls.

offeredProducts:
Hiba jelentkezett a sablon feldolgozása során.
The following has evaluated to null or missing:
==> bannertext  [in template "20116#20152#10759903" at line 90, column 24]

----
Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----

----
FTL stack trace ("~" means nesting-related):
	- Failed at: ${bannertext.getData()}  [in template "20116#20152#10759903" at line 90, column 22]
----
1<#assign serviceContext=staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext() /> 
2<#assign request = serviceContext.getRequest()/> 
3 
4<#assign enableMobileDisplay = (enableMobileDisplay.getData())!''/> 
5<#if (enableMobileDisplay != '' && enableMobileDisplay == 'true')> 
6	<#assign isMobileDisplay = 'visible-xs-block' /> 
7<#else> 
8	<#assign isMobileDisplay = ''/> 
9</#if> 
10 
11<#if request.getSession().getAttribute("offeredProducts")?has_content && request.getSession().getAttribute("offeredProducts")?string !="" > 
12	<#assign offeredProducts = request.getSession().getAttribute("offeredProducts")?string> 
13<#else> 
14	<#assign offeredProducts = ""/> 
15</#if> 
16 
17<#if request.getSession().getAttribute("enrolledProducts")?has_content > 
18	<#assign enrolledProducts = request.getSession().getAttribute("enrolledProducts")?string/> 
19<#else> 
20	<#assign enrolledProducts = ""/> 
21</#if> 
22 
23<#function displayImage b offeredProducts enrolledProducts> 
24	<#assign companyIds = b.bannercompanies.getData()/> 
25	<#assign subcompanyIds = b.bannersubcompanies.getData()?trim/> 
26	<#assign excludeSubcompanyIds = b.bannerexcludesubcompanies.getData()?trim/> 
27	<#assign bannerDisplay = false/> 
28	<#assign prodDisplay = b.bannerproductdisplay.getData()/> 
29 
30	<#assign prod = '|' + b.bannerproduct.getData() + '|'/> 
31 
32	<#if  (prod == '|0|' || prod == '||')> 
33		<#assign bannerDisplay = true/> 
34 
35	<#else> 
36		<#if (prodDisplay == '2' && offeredProducts?contains(prod))> 
37			<#assign bannerDisplay = true/> 
38		</#if> 
39 
40		<#if (prodDisplay == '1' && offeredProducts?contains(prod) &&  enrolledProducts?contains(prod))> 
41			<#assign bannerDisplay = true/> 
42		</#if> 
43 
44		<#if (prodDisplay == '0' && offeredProducts?contains(prod) && !enrolledProducts?contains(prod))> 
45			<#assign bannerDisplay = true/> 
46		</#if> 
47	</#if> 
48 
49	<#if (bannerDisplay)> 
50		 <#if excludeSubcompanyIds != '' > 
51			<#list excludeSubcompanyIds?split(",")  as subcompanyId> 
52				<#assign trimmedId = subcompanyId?trim/> 
53				<#if (trimmedId != '')> 
54					<#assign bannerDisplay = (bannerDisplay && (trimmedId != userSubCompanyId))/> 
55				</#if> 
56			</#list> 
57		</#if>  
58	</#if>	 
59 
60	<#assign companyIgnored   = true/> 
61	<#assign companyMatched   = false/> 
62 
63	<#if (bannerDisplay)> 
64		<#if (subcompanyIds != '')> 
65			<#list subcompanyIds?split(",")  as subcompanyId> 
66				<#assign trimmedId = subcompanyId?trim /> 
67				<#if (trimmedId != '')> 
68					<#assign companyIgnored = false /> 
69					<#assign companyMatched = (companyMatched || (trimmedId == userSubCompanyId)) /> 
70				</#if> 
71			</#list> 
72		</#if> 
73 
74		<#if (!companyMatched)> 
75			<#list companyIds?split(",")  as companyId> 
76				<#assign trimmedId = companyId?trim /> 
77				<#if (trimmedId != '')> 
78					<#assign companyIgnored = false /> 
79					<#assign companyMatched = (companyMatched || (trimmedId == userCompanyId)) /> 
80				</#if> 
81			</#list>				 
82		 
83		</#if> 
84	</#if> 
85	<#return bannerDisplay && (companyIgnored || companyMatched)> 
86</#function> 
87 
88<div class="marketingBannerAddParent fsvStandardClass noprint"> 
89	<div id="carousel" class="carousel slide visible-md-block visible-sm-block visible-lg-block ${isMobileDisplay}" data-ride="carousel"> 
90		<div>${bannertext.getData()}</div> 
91		<div class="carousel-inner" > 
92			<#if request.getSession().getAttribute("companyId")??> 
93				<#assign userCompanyId = request.getSession().getAttribute("companyId")?string/> 
94			<#else> 
95				<#assign userCompanyId = ''/> 
96			</#if> 
97 
98			<#if request.getSession().getAttribute("subcompanyId")??> 
99				<#assign userSubCompanyId = request.getSession().getAttribute("subcompanyId")?string/> 
100			<#else> 
101				<#assign userSubCompanyId = ''/> 
102			</#if> 
103			 
104			<#--start: Update buttons content based on Locale--> 
105			<#assign conButton = ''/> 
106			<#assign canButton = ''/> 
107			<#assign modalHeader = ''/> 
108			<#assign pauseCarousel = ''/> 
109			<#assign playCarousel = ''/> 
110			<#assign nextSlide = ''/> 
111			<#assign previousSlide = ''/> 
112			<#if locale?lower_case == 'es_es'> 
113				<#assign conButton = 'Continuar'/> 
114				<#assign canButton = 'Cancelar'/> 
115				<#assign modalHeader = '¿Dejando?'/> 
116				<#assign pauseCarousel = 'Pausar la animación de la diapositiva'/> 
117				<#assign playCarousel = 'Reproducir animación de diapositivas'/> 
118				<#assign nextSlide = 'La siguiente diapositiva'/> 
119				<#assign previousSlide = 'Diapositiva anterior'/> 
120			<#else>  
121				<#assign conButton = 'Continue'/> 
122				<#assign canButton = 'Cancel'/> 
123				<#assign modalHeader = 'Leaving?'/> 
124				<#assign pauseCarousel = 'Pause Slide Animation'/> 
125				<#assign playCarousel = 'Play Slide Animation'/> 
126				<#assign nextSlide = 'Next Slide'/> 
127				<#assign previousSlide = 'Previous Slide'/> 
128			</#if> 
129			<#--end: Update buttons content based on Locale--> 
130			 
131			<#assign imgCount = 0/> 
132			<#assign linksCount = 0/> 
133			<#assign displayedBannerImages = []/> 
134			<#assign speedBumps = []/> 
135			<#if bannerimage.getSiblings()?has_content> 
136				<#list bannerimage.getSiblings() as b> 
137					<#if (b.isSpeedBumpEnabled.getData())??> 
138						<#assign isSpeedBumpEnabled = b.isSpeedBumpEnabled.getData()/> 
139					<#else> 
140						<#assign isSpeedBumpEnabled = 'false'/> 
141					</#if> 
142					<#if displayImage(b, offeredProducts, enrolledProducts)> 
143						<#assign displayedBannerImages = displayedBannerImages + [b] /> 
144 
145						<#if isSpeedBumpEnabled== 'true'> 
146							<#assign speedBumps = speedBumps + [b] /> 
147						</#if> 
148					</#if> 
149				</#list> 
150			</#if> 
151 
152			<#if displayedBannerImages?has_content> 
153				<#list displayedBannerImages as b> 
154					<#if (b.isSpeedBumpEnabled.getData())??> 
155						<#assign isSpeedBumpEnabled = b.isSpeedBumpEnabled.getData()/> 
156					<#else> 
157						<#assign isSpeedBumpEnabled = 'false'/> 
158					</#if> 
159						 
160					<#if (b.speedbumpcontent.getData())??> 
161						<#assign speedbumpcontent = b.speedbumpcontent.getData()/> 
162					<#else> 
163						<#assign speedbumpcontent = ''/> 
164					</#if> 
165 
166					<#assign imgActiveText   = '' /> 
167					<#if imgCount == 0> 
168						<#assign imgActiveText   = 'active' /> 
169					</#if> 
170 
171					<div class="item ${imgActiveText}"> 
172						<#if (b.bannerlink.getData() != '' || b.bannerwebsiteaddress.getData() != '')> 
173							<#if (b.bannerurlcontrols.getData() != '2')> 
174								<#assign openInNewWindow   = "target='_blank'" /> 
175							<#else> 
176								<#assign openInNewWindow   = "target='_self'" /> 
177							</#if> 
178 
179							<#if (b.bannerlink.getData() != '')> 
180								<#assign openLink   = b.bannerlink.getData() /> 
181							<#else> 
182								<#assign openLink   = b.bannerwebsiteaddress.getData() /> 
183							</#if> 
184							 
185							<#if isSpeedBumpEnabled== 'true'> 
186								<a href="" title = '${b.banneralttext.getData()}' data-toggle='modal' data-target='#speedBumpBannerAdModal${b?index}' tabindex="-1"> 
187							<#else> 
188								<a href = '${openLink}' ${openInNewWindow} title = '${b.banneralttext.getData()}' tabindex="-1"> 
189							</#if> 
190									<img src='${b.getData()}' alt='${b.banneralttext.getData()}' /> 
191								</a> 
192							<#assign linksCount   = linksCount + 1 /> 
193						<#else> 
194							<img src='${b.getData()}' alt='${b.banneralttext.getData()}' /> 
195						</#if> 
196					</div> 
197					<#assign imgCount   = imgCount + 1 /> 
198				</#list> 
199			</#if> 
200		</div> 
201		<#if (imgCount > 0)> 
202			<ol class="carousel-indicators" > 
203				<#assign counter   = 0 /> 
204				<#list displayedBannerImages as b> 
205					<#assign imgActiveText   = '' /> 
206					<#if counter == 0> 
207						<#assign imgActiveText   = 'active' /> 
208					</#if> 
209					<li data-target="#carousel" class="carouselListItem ${imgActiveText}" data-slide-to='${counter}' style="width:${100/imgCount}%;"> 
210						<div class="indicator"><span class="glyphicon glyphicon-triangle-top" aria-hidden="true"></span></div> 
211						<div class="transbox"> 
212							<p> 
213								<#if (b.bannerlink.getData() != '' || b.bannerwebsiteaddress.getData() != '')> 
214									<#if (b.bannerurlcontrols.getData() != '2')> 
215										<#assign openInNewWindow   = "target='_blank'" /> 
216									<#else> 
217										<#assign openInNewWindow   = "target='_self'" /> 
218									</#if> 
219 
220									<#if (b.bannerlink.getData() != '')> 
221										<#assign openLink   = b.bannerlink.getData() /> 
222									<#else> 
223										<#assign openLink   = b.bannerwebsiteaddress.getData() /> 
224									</#if> 
225									<#if (b.isSpeedBumpEnabled.getData())??> 
226										<#assign isSpeedBumpEnabled = b.isSpeedBumpEnabled.getData()/> 
227									<#else> 
228										<#assign isSpeedBumpEnabled = 'false'/> 
229									</#if> 
230									<#if isSpeedBumpEnabled== 'true'> 
231										<a href="" title = '${b.banneralttext.getData()}' data-toggle='modal'  
232										data-target='#speedBumpBannerAdModal${b?index}'>${b.banneralttext.getData()}</a> 
233									<#else> 
234										<a href = '${openLink}' ${openInNewWindow} title = '${b.banneralttext.getData()}'>${b.banneralttext.getData()}</a> 
235									</#if> 
236								<#else> 
237									${b.banneralttext.getData()} 
238								</#if> 
239							</p> 
240						</div> 
241					</li> 
242					<#assign counter   = counter + 1 /> 
243				</#list> 
244			</ol> 
245		</#if> 
246		<#if (imgCount > 1)> 
247			<div class="carouselNavigation"> 
248				<button id="midCarouselDiv" class="glyphicon glyphicon-pause" aria-label="${pauseCarousel}" onclick="pausePlayBanner();"></button> 
249				<button id="previousSlide" href="#carousel" class="glyphicon glyphicon-chevron-left" data-slide="prev" aria-label="${previousSlide}"></button> 
250				<button id="nextSlide" href="#carousel" class="glyphicon glyphicon-chevron-right" data-slide="next" aria-label="${nextSlide}"></button> 
251			</div> 
252		</#if> 
253	</div> 
254 
255	<#-- Modal to be used for Speed Bump --> 
256	<#if speedBumps?has_content> 
257		<#list speedBumps as b> 
258			<#if (b.bannerlink.getData() != '' || b.bannerwebsiteaddress.getData() != '')> 
259				<#if (b.bannerlink.getData() != '')> 
260					<#assign openLink   = b.bannerlink.getData() /> 
261				<#else> 
262					<#assign openLink   = b.bannerwebsiteaddress.getData() /> 
263				</#if> 
264			</#if> 
265					 
266			<div class="modal fade bannerad-speedbump-display" id="speedBumpBannerAdModal${b?index}" tabindex="-2" 
267									role="dialog" aria-label="Speed Bump Confirm"> 
268				<div class="modal-dialog modal-dialog-centered" role="document"> 
269					<div class="modal-content"> 
270					 
271					<#-- Modal Header --> 
272					 
273						<div class="modal-header row"> 
274							<button type="button" class="close" data-dismiss="modal" 
275								aria-label="Close"> 
276								<span aria-hidden="true">X</span> 
277							</button> 
278							<div class="modal-title">${modalHeader}</div> 
279						</div> 
280					 
281					<#-- Modal Body --> 
282					 
283						<div target="bannerAd"> 
284							<div class="modal-body"> 
285								<div class="row"> 
286									<div class="col-xs-12 speedBumpContent"> 
287										<#if b.speedbumpcontent?has_content> 
288											<strong>${b.speedbumpcontent.getData()}</strong> 
289										</#if> 
290									</div> 
291								</div> 
292							</div> 
293							 
294							<#-- Modal Buttons --> 
295							 
296							<div class="row"> 
297								<div class="col-sm-5 col-sm-push-6"> 
298									<button type="submit" class="btn btn-primary btn-block"  
299									<#if b.bannerurlcontrols.getData() == "1" > 
300										onclick="window.open('${openLink}', 'quickLinks'); return false;"  
301									<#else> 
302										onclick="window.location.replace('${openLink}');return false;"  
303									</#if> 
304										data-dismiss="modal" > 
305										${conButton} 
306									</button> 
307								</div> 
308								<div class="col-sm-5 col-sm-pull-4"> 
309									<button type="button" class="btn btn-secondary btn-block"  
310										data-dismiss="modal"> 
311										${canButton} 
312									</button> 
313								</div> 
314							</div> 
315						</div> 
316					</div> 
317				</div> 
318			</div> 
319		</#list> 
320	</#if> 
321</div> 
322 
323 
324 
325<#if (bannerdelay.getData() != '' || bannerdelay.getData() != '')> 
326<script type="text/javascript"> 
327jQuery(document).ready( 
328	function() { 
329	$('#carousel').carousel({ 
330		interval: ${bannerdelay.getData()}000 
331	}); 
332
333);	 
334</script> 
335</#if> 
336<#if (imgCount > 1)> 
337<script type="text/javascript"> 
338	function pausePlayBanner() { 
339		if(jQuery("#midCarouselDiv").hasClass('glyphicon-pause')) { 
340			jQuery('#carousel').carousel('pause');	 
341			jQuery('#midCarouselDiv').attr('class','glyphicon glyphicon-play');		 
342			jQuery('#midCarouselDiv').attr('aria-label','${playCarousel}');	 
343		} else { 
344			jQuery('#carousel').carousel('cycle'); 
345			jQuery('#midCarouselDiv').attr('class','glyphicon glyphicon-pause'); 
346			jQuery('#midCarouselDiv').attr('aria-label','${pauseCarousel}');	 
347
348
349	jQuery(document).ready( 
350	function() { 
351		jQuery('#carousel').addClass('carouselContainer'); 
352
353); 
354</script> 
355</#if> 
356<#if (linksCount > 0)> 
357<script type="text/javascript"> 
358	$('li.carouselListItem a').click(function() { 
359		if($(this).attr('href') != ''){ 
360			var windowOption = $(this).attr('target') != '' ? $(this).attr('target') : '_blank'; 
361			window.open($(this).attr('href'),windowOption); 
362
363	}); 
364</script> 
365</#if>