Publicador de contenidos

Se ha producido un error al procesar la plantilla.
The following has evaluated to null or missing:
==> request.getParameter('isBanner')  [in template "10154#10192#21258889" at line 6, column 21]

----
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: #assign isBanner = request.getParamet...  [in template "10154#10192#21258889" at line 6, column 1]
----
1<#-- Parameters --> 
2<#attempt> 
3<#assign resourcePK = request.getParameter('resourcePK') /> 
4<#recover> 
5</#attempt> 
6<#assign isBanner = request.getParameter('isBanner') /> 
7 
8<#-- Services--> 
9 
10<#assign LiteralsToolsServiceUtil = serviceLocator.findService("com.aqua.literals.util.LiteralsToolsService")/> 
11<#assign UtilsService = serviceLocator.findService("com.educaixa.utils.service.EduCaixaUtilsService")/> 
12<#assign UserBookmarkLocalService = serviceLocator.findService("com.educaixa.services.service.UserBookmarkLocalService") /> 
13<#assign serviceContext = staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext()> 
14<#assign journalArticleService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")/> 
15<#assign DLFileEntryLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService") /> 
16 
17<#-- Variables --> 
18 
19<#assign article = journalArticleService.getLatestArticle(resourcePK?number, 0) /> 
20<#assign journalArticleId = article.getArticleId() /> 
21<#assign document = saxReaderUtil.read(article.getContentByLocale(locale)) /> 
22<#assign language = themeDisplay.getLocale() /> 
23<#assign companyId =themeDisplay.getCompanyId()/> 
24<#assign groupId = themeDisplay.getScopeGroupId()/> 
25<#assign userId =themeDisplay.getUserId()/> 
26<#assign jaUrlTitle = article.getUrlTitle() /> 
27<#assign url = "https://${request.serverName}/-/${jaUrlTitle}" /> 
28<#assign is_signed_in = themeDisplay.isSignedIn()/> 
29<#assign type = document.valueOf("//dynamic-element[@name='tipo']/dynamic-content/text()")?keep_after('"')?keep_before('"') /> 
30<#assign title = document.valueOf("//dynamic-element[@name='title']/dynamic-content/text()") /> 
31 
32<#assign avilableDownload = ""/> 
33<#assign css = ""/> 
34<#if type == "program"> 
35	<#assign css = "programas"/> 
36<#elseif type == "evidence" || type == "slavin"> 
37	<#assign css = "evidencias"/> 
38<#elseif type == "activity"> 
39	<#assign css = "actividades"/> 
40<#elseif type == "actuality"> 
41	<#assign css = "actualidad"/> 
42<#elseif type == "center"> 
43	<#assign css = "educaixa"/> 
44<#elseif type?contains("training")> 
45	<#assign css = "formacion"/> 
46<#elseif type == "experience"> 
47	<#assign css = "educaixa"/> 
48<#elseif type?contains("resource")> 
49	<#assign css = "recursos"/> 
50</#if> 
51 
52<#assign files = "" /> 
53<#if isBanner == "true"> 
54	<#assign bannerTitle = "" /> 
55	<#assign bannerDescription = "" /> 
56	<#if type == "activity"> 
57		<#assign bannerObj = document.valueOf("//dynamic-element[@name='bannerVideo']/dynamic-content/text()") /> 
58	<#elseif type?contains("resource")> 
59		<#assign docprincipal = document.valueOf("//dynamic-element[@name='docprincipal']/dynamic-content/text()") /> 
60		<#assign siteMeta = UtilsService.getDocumentMetadataInJSON(docprincipal, themeDisplay) /> 
61		<#assign title = document.valueOf("//dynamic-element[@name='titulo']/dynamic-content/text()")?replace('<[^>]+>','','r') /> 
62		<#assign downloable = document.valueOf("//dynamic-element[@name='descargable']/dynamic-content/text()") /> 
63		<#if type?contains("resourceImage") || type?contains("resourceInfograph")> 
64			<#assign files = [docprincipal] /> 
65			<#assign otherImages = document.selectNodes("//dynamic-element[@name='otraimagenficha']") /> 
66			<#if otherImages?has_content && otherImages?size gt 0> 
67				<#list otherImages as otherImg> 
68					<#if otherImg.elementText("dynamic-content")?has_content> 
69						<#assign files = files + [otherImg.elementText("dynamic-content")] /> 
70					</#if> 
71				</#list> 
72			</#if> 
73		<#elseif type?contains("resourcePodcast")> 
74			<#assign file = DLFileEntryLocalService.getFileEntryByUuidAndGroupId(docprincipal?keep_after_last("/")?keep_before("?"),groupId)/> 
75			<#assign mimeType = file.getMimeType()?keep_before("/")/> 
76			<#if mimeType == "audio"> 
77				<#assign bannerObj = docprincipal /> 
78			<#else> 
79				<#if siteMeta.get(0).audio_id?has_content> 
80					<#assign bannerObjYT = siteMeta.get(0).audio_id /> 
81				</#if> 
82			</#if> 
83		<#elseif type?contains("resourceVideo")> 
84			<#assign file = DLFileEntryLocalService.getFileEntryByUuidAndGroupId(docprincipal?keep_after_last("/")?keep_before("?"),groupId)/> 
85			<#assign mimeType = file.getMimeType()?keep_before("/")/> 
86			    <#attempt> 
87				<#if siteMeta.get(0).brightcove_id?has_content> 
88					<#assign bannerObjYT = siteMeta.get(0).brightcove_id /> 
89				</#if> 
90				<#recover> 
91				</#attempt> 
92		</#if> 
93	<#else> 
94		<#assign bannerObjYT = document.valueOf("//dynamic-element[@name='video']/dynamic-element[@name='videoYTBanner']/dynamic-content/text()") /> 
95		<#assign bannerObj = document.valueOf("//dynamic-element[@name='video']/dynamic-content/text()") /> 
96		<#assign bannerTitle = document.valueOf("//dynamic-element[@name='video']/dynamic-element[@name='videoTitle']/dynamic-content/text()") /> 
97		<#assign bannerDescription = document.valueOf("//dynamic-element[@name='video']/dynamic-element[@name='videoDescription']/dynamic-content/text()") /> 
98	</#if> 
99	 
100<#else> 
101    <#-- excperiencias B5--> 
102    <#if type?contains("experience")> 
103		<#assign highlightTitle = document.valueOf("//dynamic-element[@name='highlightTitle']/dynamic-content/text()") /> 
104		<#assign highlightText = document.valueOf("//dynamic-element[@name='highlightTitle']/dynamic-element[@name='highlightText']/dynamic-content/text()") /> 
105		<#assign highlightExternalVideoLink = document.valueOf("//dynamic-element[@name='highlightTitle']/dynamic-element[@name='highlightExternalVideoLink']/dynamic-content/text()") /> 
106    <#elseif type?contains("resourcePhysical")> 
107	    <#assign files = document.selectNodes("//dynamic-element[@name='MaterialRelacionado']") /> 
108	<#else> 
109	    <#assign files = document.selectNodes("//dynamic-element[@name='videoOrImage']") /> 
110    </#if> 
111</#if> 
112 
113<input id="falsa-modal-recurso-comp-id" value="${themeDisplay.getCompanyId()}" type="hidden" /> 
114<input id="falsa-modal-recurso-user-id" value="${themeDisplay.getUserId()}" type="hidden" /> 
115 
116<div id="falsa-modal-recurso"> 
117	<div class="falsa-modal-rec-header"> 
118		<a class="modal-rec-home" href="/home" alt="Home"><img src="/o/edu-caixa-theme/images/logo_eduCaixa.png" alt="EduCaixa" class="logo"></a> 
119		<div class="falsa-modal-rec-header-info"> 
120			<span class="modal-rec-title modal-rec-tit-${css} bold ">${title}</span> 
121		</div> 
122		<#if files?has_content && files?size gt 1> 
123		<div class="slide-counter blanco"> 
124			<span class="blanco"></span> 
125		</div> 
126		</#if> 
127	</div> 
128	<div class="falsa-modal-rec-content"> 
129		<div class="falsa-modal-rec-content-item"> 
130			<#if type?contains("resourceInfograph")> 
131				<#if files?first?has_content> 
132					<img src="${files?first}" /> 
133				</#if> 
134			<#else> 
135				<#if isBanner == "true"> 
136					<#if type?contains("resource")> 
137						<#if files?has_content> 
138						<div class="modal-rec-carrousel-items"> 
139							<#list files as file> 
140								<div class="modal-rec-image-wrapper" data-download="">  
141									<img data-fileentryid="" alt="alt" src="${file}" /> 
142								</div> 
143							</#list> 
144						</div> 
145						<#elseif bannerObjYT?has_content && bannerObjYT != ""> 
146							<div class="yt-video-wrapper modal-rec-yt-wrapper"> 
147								<iframe src="https://www.youtube.com/embed/${bannerObjYT}?rel=0" enablejsapi='1' allowfullscreen webkitallowfullscreen mozallowfullscreen frameborder='0'></iframe> 
148							</div> 
149						<#elseif bannerObj?has_content && bannerObj != ""> 
150							<div class="video-wrapper modal-rec-video-wrapper"> 
151								<video controls="" controlsList="nodownload"> 
152								  <source src="${bannerObj}"> 
153								</video> 
154								<div class="playpause"></div> 
155							</div> 
156						</#if> 
157					<#else> 
158						<#if bannerObjYT?has_content && bannerObjYT != ""> 
159						<#assign avilableDownload = "no-rec-download"/> 
160						<div class="yt-video-wrapper modal-rec-yt-wrapper"> 
161							<iframe src="https://www.youtube.com/embed/${bannerObjYT}?rel=0" enablejsapi='1' allowfullscreen webkitallowfullscreen mozallowfullscreen frameborder='0'></iframe> 
162						</div> 
163						<#elseif bannerObj?has_content && bannerObj != ""> 
164						<div class="video-wrapper modal-rec-video-wrapper" data-download="${bannerObj}"> 
165							<video controls="" controlsList="nodownload"> 
166							  <source src="${bannerObj}"> 
167							</video> 
168							<div class="playpause"></div> 
169						</div> 
170						</#if> 
171					</#if> 
172				<#else> 
173					<#-- experiencias B5--> 
174					<#if  type?contains("experience")> 
175						<#if highlightExternalVideoLink?has_content && highlightExternalVideoLink != ""> 
176							<#assign avilableDownload = "no-rec-download"/>				 
177							<div class="yt-video-wrapper modal-rec-yt-wrapper"> 
178								<iframe src="https://www.youtube.com/embed/${highlightExternalVideoLink}?rel=0" enablejsapi='1' allowfullscreen webkitallowfullscreen mozallowfullscreen frameborder='0'></iframe> 
179							</div> 
180						</#if> 
181					<#else> 
182						<div class="modal-rec-carrousel-items"> 
183						<#list files as file> 
184							<#if file.elementText("dynamic-content")?has_content> 
185								<#assign fileContent = DLFileEntryLocalService.getFileEntryByUuidAndGroupId(file.elementText("dynamic-content")?keep_after_last("/")?keep_before("?"),groupId)/> 
186								<#assign mimeType = fileContent.getMimeType()?keep_before("/")/> 
187								<#if mimeType == "image"> 
188									<div class="modal-rec-image-wrapper" data-download="${file.elementText("dynamic-content")}">  
189									 
190										<img data-fileentryid="" alt="alt" src="${file.elementText("dynamic-content")}" /> 
191									</div> 
192								<#elseif mimeType == "video"> 
193									<div class="video-wrapper modal-rec-video-wrapper" data-download="${file.elementText("dynamic-content")}"> 
194										<video controls="" controlsList="nodownload"> 
195										  <source src="${file.elementText("dynamic-content")}" type="${fileContent.getMimeType()}"> 
196										</video> 
197										<div class="playpause"></div> 
198									</div> 
199								</#if> 
200							<#elseif file.valueOf("dynamic-element[@name='youtubeVideo']/dynamic-content/text()")?has_content && file.valueOf("dynamic-element[@name='youtubeVideo']/dynamic-content/text()") != ""> 
201								<#if file?is_first> 
202									<#assign avilableDownload = "no-rec-download"/> 
203								</#if> 
204								<div class="yt-video-wrapper modal-rec-yt-wrapper"> 
205									<iframe src="https://www.youtube.com/embed/${file.valueOf("dynamic-element[@name='youtubeVideo']/dynamic-content/text()")}?rel=0" enablejsapi='1' allowfullscreen webkitallowfullscreen mozallowfullscreen frameborder='0'></iframe> 
206								</div> 
207							</#if> 
208						</#list> 
209						</div> 
210					</#if>	 
211				</#if> 
212			</#if> 
213			<div class="modal-rec-actions"> 
214				<#if type?contains("resource")> 
215					<#if !downloable?has_content> 
216						<#assign avilableDownload = "no-rec-download"/> 
217						<#assign downloable = ""/> 
218					</#if> 
219					<a href="${downloable}" class="modal-rec-download-but-resource boton small boton-${css} ${avilableDownload} width-100">${LiteralsToolsServiceUtil.getLiteral(groupId, language, "com.educaixa.download")}</a> 
220				<#else> 
221					<a href="" class="modal-rec-download-but boton small boton-${css} ${avilableDownload} width-100">${LiteralsToolsServiceUtil.getLiteral(groupId, language, "com.educaixa.download")}</a> 
222				</#if> 
223				<a class="modal-rec-compartir" data-url="${url}"></a> 
224				<div id="share" class="hide"> 
225					<span class="modal-close"></span> 
226					<p class="negro bold">${LiteralsToolsServiceUtil.getLiteral(groupId, language, "com.educaixa.share")}</p> 
227					<p class="margin-bottom-20">${title}</p> 
228					<div id="share-content"></div> 
229				</div> 
230				<#if is_signed_in> 
231					<#assign isUserBookmark = UserBookmarkLocalService.isUserBookmark(companyId,userId,journalArticleId,groupId)/> 
232					<#if isUserBookmark> 
233						<a class="modal-rec-bookmark bookmarked ${css}" onClick="updateUserBookmark(${journalArticleId},false);" data-articleid="${journalArticleId}"></a>  
234					<#else> 
235						<a class="modal-rec-bookmark ${css}" onClick="updateUserBookmark(${journalArticleId},true);" data-articleid="${journalArticleId}" ></a> 
236					</#if> 
237					<#-- a class="modal-rec-bookmark" data-articleid="${journalArticleId}"></a --> 
238				<#else> 
239					<#assign httpServletRequest = serviceContext.getRequest() /> 
240					<#assign plid = portalUtil.getPlidFromPortletId(themeDisplay.getScopeGroupId(), "EducaixaMyeducaixaLogin") /> 
241					<#assign renderURL = portletURLFactory.create(httpServletRequest, "EducaixaMyeducaixaLogin", plid, "RENDER_PHASE") /> 
242					${renderURL.setParameter("mvcPath", "/login_modal.jsp")} 
243					${renderURL.setWindowState("POP_UP")} 
244					<a class="modal-rec-bookmark not-log" onClick="openPopup('${renderURL}','','500', '650')"></a> 
245				</#if> 
246				<#if (isBanner == "true" && (!bannerTitle?has_content && !bannerDescription?has_content)) || type?contains("activity")> 
247				<#else> 
248					<a class="zoom-in"></a> 
249				</#if> 
250			</div> 
251		</div> 
252					 
253		<#if (type?contains("resource") && files?has_content) || (isBanner=="false" && !type?contains("experience"))> 
254			<div class="falsa-modal-rec-content-info falsa-modal-rec-content-info-slick"> 
255		<#else> 
256			<div class="falsa-modal-rec-content-info"> 
257		</#if> 
258			<#if isBanner == "true"> 
259				<div class="falsa-modal-rec-info-item"> 
260					<p class="negro bold uppercase" style="width:100%;">${bannerTitle}</p> 
261					<p style="width:100%;">${bannerDescription}</p> 
262				</div> 
263			<#else> 
264				<#-- experiencias B5--> 
265				<#if  type?contains("experience")> 
266					<#if highlightTitle?has_content> 
267						<div class="falsa-modal-rec-info-item"> 
268							<p class="negro bold uppercase">${highlightTitle}</p> 
269							<#if highlightText?has_content> 
270								<p>${highlightText}</p> 
271							</#if> 
272						</div> 
273					</#if> 
274				<#else> 
275					<#list files as file> 
276						<#assign fileTitle = "" /> 
277						<#assign fileDescr = "" /> 
278						<#if file.valueOf("dynamic-element[@name='fileItemTitle']/dynamic-content/text()")?has_content && file.valueOf("dynamic-element[@name='fileItemTitle']/dynamic-content/text()") != ""> 
279							<#assign fileTitle = file.valueOf("dynamic-element[@name='fileItemTitle']/dynamic-content/text()") /> 
280						</#if> 
281						<#if file.valueOf("dynamic-element[@name='fileItemTitle']/dynamic-element[@name='fileItemDescription']/dynamic-content/text()")?has_content && file.valueOf("dynamic-element[@name='fileItemTitle']/dynamic-element[@name='fileItemDescription']/dynamic-content/text()") != ""> 
282							<#assign fileDescr = file.valueOf("dynamic-element[@name='fileItemTitle']/dynamic-element[@name='fileItemDescription']/dynamic-content/text()") /> 
283						</#if> 
284						<div class="falsa-modal-rec-info-item"> 
285							<p class="negro bold uppercase">${fileTitle}</p> 
286							<p>${fileDescr}</p> 
287						</div> 
288					</#list> 
289				</#if> 
290			</#if> 
291		</div> 
292	</div> 
293</div> 
294 
295 <#-- Modal confirmacion eliminar--> 
296<div id="modal-confirm-delete" class="close-modal hide"> 
297	<span class="modal-close" onclick="javascript:closeModal();"></span> 
298	<input type="hidden" class="titulo-confirmacion" value="${LiteralsToolsServiceUtil.getLiteral(groupId, language, "com.educaixa.are.you.sure.to.delete")} "> 
299	<#--El titulo y los datos del boton eliminar se rellenan por js --> 
300	<h3 class="center uppercase"></h3>	 
301	<p class=" button-wrapper center"> 
302		<a onClick="closeModal();" class="cancel uppercase boton width-150 margin-top-20 boton-blanco medium margin-bottom-10"> 
303			${LiteralsToolsServiceUtil.getLiteral(groupId, language, "com.educaixa.no.cancel")} 
304		</a> 
305		<a data-articleid="" class="delete uppercase boton width-150 margin-top-20 boton-educaixa medium margin-bottom-10"> 
306			${LiteralsToolsServiceUtil.getLiteral(groupId, language, "com.educaixa.yes.delete")} 
307		</a> 
308	</p> 
309</div> 
310 
311<style> 
312#share { 
313	width: 15rem; 
314	position: fixed; 
315	top: 5rem; 
316	left: 50%; 
317	transform: translateX(-50%); 
318	top: 50%; 
319	transform: translateY(-50%); 
320	padding: 2rem; 
321	background-color: white; 
322	text-align: left; 
323	z-index: 10; 
324
325#share p { 
326	color: $blue-grey; 
327
328#share .jssocials-share { 
329	width: 100%; 
330
331#share .jssocials-share  a { 
332	width: 100%; 
333	text-align: left; 
334	margin: 0 !important; 
335
336#share .jssocials-share  a i { 
337	color: white; 
338
339#share .jssocials-share  a span { 
340	color: white; 
341
342#share .jssocials-share  a .copyLink { 
343	background-color: darkgray; 
344
345 
346#share  .modal-close { 
347	position: absolute; 
348	top: 0; 
349	right: 0; 
350	font-size: 16px; 
351	margin: .5rem; 
352	padding: 2px; 
353	cursor: pointer; 
354
355 
356 
357#falsa-modal-recurso .falsa-modal-rec-info-item p { 
358	color: #607d8b; 
359
360#falsa-modal-recurso .falsa-modal-rec-content-info { 
361	padding: 2rem 3rem; 
362
363	 
364	 
365</style> 
366 
367<script> 
368$('.modal-rec-carrousel-items').on('beforeChange', function(event, slick, currentSlide, nextSlide){ 
369	//var content = $('.slide-counter span').html(); 
370	//var newContent =  (Number(nextSlide)+1) + content.substring(content.indexOf('/'), content.length); 
371	var newContent =  (Number(nextSlide)+1) + "/" + $('.slick-slider')[0].slick.slideCount; 
372	$('.slide-counter span').html(newContent); 
373	 
374	if($('.modal-rec-carrousel-items [data-slick-index = "'+nextSlide+'"] [data-download]').length > 0 && $('.modal-rec-carrousel-items [data-slick-index = "'+nextSlide+'"] [data-download]').data("download") != "") { 
375		var href = $('.modal-rec-carrousel-items [data-slick-index = '+nextSlide+'] [data-download]').data("download"); 
376		$('.modal-rec-download-but').attr('href', href); 
377		$('.modal-rec-download-but').removeClass('no-rec-download'); 
378	} else { 
379		$('.modal-rec-download-but').addClass('no-rec-download'); 
380
381}); 
382 
383$('#banner').addClass('hide'); 
384 
385$(document).ready(function(){ 
386 
387	// Acciones bookmark 
388	var userId = $('#falsa-modal-recurso-user-id').val(); 
389	var companyId = $('#falsa-modal-recurso-comp-id').val(); 
390 
391	/*if (!$('.modal-rec-bookmark').hasClass('not-log')) { 
392		var articleId = $('.modal-rec-bookmark').data('articleid'); 
393		if (isUserBookmark(companyId, userId, articleId) { 
394			$('.modal-rec-bookmark').addClass('bookmarked'); 
395
396	}*/ 
397 
398	/*$('.modal-rec-bookmark').on('click', function() { 
399		if (!$(this).hasClass('not-log')) { 
400			var articleId = $(this).data('articleid'); 
401			if ($(this).hasClass('bookmarked')) { 
402				deleteUserBookmark(companyId, userId, articleId); 
403				$(this).removeClass('bookmarked'); 
404
405			else { 
406				addUserBookmark(companyId, userId, articleId); 
407				$(this).addClass('bookmarked'); 
408
409
410	});*/ 
411 
412	// Contador slides 
413	if ($('.modal-rec-carrousel-items').children().length > 1) { 
414		$('.slide-counter span').html('1/' + $('.modal-rec-carrousel-items').children().length); 
415
416	$('.modal-rec-carrousel-items').slick({ 
417		slidesToShow: 1, 
418		slidesToScroll: 1, 
419		infinite: false, 
420		adaptiveHeight: true, 
421		lazyLoad: 'ondemand', 
422		asNavFor: '.falsa-modal-rec-content-info' 
423	}); 
424	//$('.falsa-modal-rec-content-info').slick({ 
425	$('.falsa-modal-rec-content-info-slick').slick({ 
426		slidesToShow: 1, 
427		slidesToScroll: 1, 
428		infinite: false, 
429		arrows: false, 
430		draggable: false, 
431		speed: 0 
432	}); 
433	// Acciones abrir descripcion elemento 
434	$("#falsa-modal-recurso .zoom-in").on('click', function(){ 
435		if ($(this).hasClass('zoomed')) { 
436			$(this).removeClass('zoomed'); 
437			$('.falsa-modal-rec-content-item').removeClass('open'); 
438			$('.falsa-modal-rec-content-info').removeClass('open'); 
439		} else { 
440			$(this).addClass('zoomed'); 
441			$('.falsa-modal-rec-content-item').addClass('open'); 
442			$('.falsa-modal-rec-content-info').addClass('open'); 
443
444		if ($('.modal-rec-carrousel-items').length) { 
445			if ($('.modal-rec-carrousel-items').hasClass('slick-initialized') && $('.modal-rec-carrousel-items')[0].slick.slideCount > 1) { 
446				var initSlide = Number($('.modal-rec-carrousel-items .slick-active')[0].dataset.slickIndex); 
447				$('.modal-rec-carrousel-items').slick("unslick"); 
448				$('.modal-rec-carrousel-items').slick({ 
449					slidesToShow: 1, 
450					slidesToScroll: 1, 
451					infinite: false, 
452					asNavFor: '.falsa-modal-rec-content-info' 
453				}); 
454				$('.modal-rec-carrousel-items').slick('slickGoTo',parseInt(initSlide),true); 
455			} else { 
456				$('.modal-rec-carrousel-items').slick("unslick"); 
457				$('.modal-rec-carrousel-items').slick({ 
458					slidesToShow: 1, 
459					slidesToScroll: 1, 
460					infinite: false 
461				}); 
462
463
464	}); 
465 
466	// Seteo download  
467	if (!$('.modal-rec-download-but').hasClass('no-rec-download')) { 
468		var href = $("[data-download]")[0].dataset.download; 
469		$('.modal-rec-download-but').attr('href', href); 
470
471	 
472	trimElemAndAddTitleAt($('#falsa-modal-recurso .modal-rec-title'), 60); 
473 
474	$(".modal-rec-compartir").on('click', function (event) { 
475		//event.preventDefault(); 
476		event.stopPropagation(); 
477		var url = $(this).data('url'); 
478		var title = $('#falsa-modal-recurso .modal-rec-title').attr('title'); 
479		var subtitle = $(this).parents('.tarjeta').find('.subtitulo').data('subtitle');  
480 
481		$("#falsa-modal-recurso #share-content").jsSocials({ 
482			url: url, 
483			text: title + ": " + subtitle, 
484			showCount: false, 
485			showLabel: true, 
486			shares: [ { share: "facebook", label: "Facebook" },  
487					  { share: "twitter", label: "Twitter", shareUrl: "https://twitter.com/share?url={url}&via={via}&hashtags={hashtags}", hashtags: "EduCaixa" },  
488					  { share: "email", label: "E-mail", shareUrl: "mailto:{to}?subject={text}&body={url}"},  
489					  "whatsapp"] 
490		}); 
491		if(!isMobile()) { 
492			$('#falsa-modal-recurso .jssocials-share-whatsapp').addClass("hide"); 
493
494		var buttonCopy = "<div class='jssocials-share' style='background-color: gray;'><a class='copyLink jssocials-share-link' onclick='copyCardLink($(this));'><i class='fa fa-copy jssocials-share-logo'></i><span class='jssocials-share-label'>Copiar enlace</span></a></div>"; 
495		$(".jssocials-share-whatsapp").after(buttonCopy); 
496		$(this).next().removeClass("hide");	 
497	}); 
498 
499	$("#falsa-modal-recurso #share .modal-close").on('click', function (event) { 
500 
501		$("#falsa-modal-recurso #share").addClass("hide"); 
502	}); 
503 
504}); 
505</script>