Imágenes del cielo nocturno

| Media: 0.0 | Votos: 0
Se ha producido un error al procesar la plantilla.
The following has evaluated to null or missing:
==> jsonObject.uuid  [in template "20115#20151#1583006" at line 689, column 132]

----
Tip: It's the step after the last dot that caused this error, not those before it.
----
Tip: If the failing expression is known to 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 entryUuid = jsonObject.uuid  [in template "20115#20151#1583006" at line 689, column 113]
----
1<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") /> 
2<#assign dlFileEntryService = serviceLocator.findService('com.liferay.document.library.kernel.service.DLFileEntryService')/> 
3<#assign dlFileEntryLocalService=serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService") /> 
4<#assign assentEntryLocalService = serviceLocator.findService('com.liferay.asset.kernel.service.AssetEntryLocalService')/> 
5<#assign commonServiceApiService = serviceLocator.findService("es.juntadeandalucia.cma.global.common.services.api.CommonServiceApi")/> 
6<#assign formaterDate = commonServiceApiService.getFormatDate() /> 
7<#assign formatos = ['.epub','.zip','.torrent','.pdf','.xlsx'] /> 
8<#--  <#assign formaterDate = "dd 'de' MMMM 'de' yyyy" />  --> 
9<#assign enlace = "" /> 
10<#assign noText = true> 
11<#assign noImg = true> 
12<#assign noImgApartado = true> 
13 
14<#assign serviceContext = staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext()> 
15<#assign httpServletRequest = serviceContext.getRequest()> 
16<#assign pvGroupId = ""> 
17<#assign pvArticleId = ""> 
18<#assign pvStatus = ""> 
19 
20<#assign stringURL = "${themeDisplay.getURLCurrent()}" /> 
21<#--<h1>CurrentURL. ${stringURL}</h1> 
22<h1>valueParamURL. ${valueParamURL[1]}</h1> 
23<#assign url = themeDisplay.getURLCurrent()>--> 
24<#if stringURL?contains("?groupId=")> 
25<#assign pvGroupId ="${(httpServletRequest.getParameter('groupId'))}"> 
26 
27<#else> 
28<#assign pvGroupId = ""> 
29</#if> 
30 
31<#if stringURL?contains("&articleId=")> 
32<#assign pvArticleId ="${(httpServletRequest.getParameter('articleId'))}"> 
33 
34<#else> 
35<#assign pvArticleId = ""> 
36</#if> 
37 
38<#if stringURL?contains("&status=")> 
39<#assign pvStatus ="${(httpServletRequest.getParameter('status'))}"> 
40 
41<#else> 
42<#assign pvStatus = ""> 
43</#if> 
44 
45<#if pvGroupId?has_content && pvArticleId?has_content && pvStatus?has_content> 
46<#assign jCurEntry = journalArticleLocalService.fetchLatestArticle(pvGroupId?number, pvArticleId?string, pvStatus?number)> 
47<#assign aArticleXML = saxReaderUtil.read(jCurEntry.getContentByLocale(locale)) /> 
48<#assign tituloXML = jCurEntry.getTitle(locale)> 
49<#assign fechaMostrar = aArticleXML.selectSingleNode("//dynamic-element[@name='Fecha2ehn']//dynamic-content/text()") > 
50<#assign listadoImagenes = commonServiceApiService.getImgIndice(aArticleXML)> 
51 
52<div class="evr-detalle evr-detalle"> 
53 
54		<#if fechaMostrar.getText() != ""> 
55			<#assign fechaMostrarEstructuraBasico_Data = getterUtil.getString(fechaMostrar.getText())> 
56			<#if validator.isNotNull(fechaMostrarEstructuraBasico_Data)> 
57				<#assign fechaMostrarEstructuraBasico_DateObj = dateUtil.parseDate("yyyy-MM-dd", fechaMostrarEstructuraBasico_Data, locale)> 
58				<p class="evr-normativa-detalle__date-color">${dateUtil.getDate(fechaMostrarEstructuraBasico_DateObj, formaterDate, locale)}</p> 
59			</#if> 
60		</#if> 
61 
62		<#assign listadoSubtitulosEstructuraBasico =aArticleXML.selectSingleNode("//dynamic-element[@name='subtitulosEstructuraBasicoFieldSet']") > 
63		<#assign ficheroSubtituloEstructuraBasico = listadoSubtitulosEstructuraBasico.selectNodes("//dynamic-element[@name='subtituloEstructuraBasico']//dynamic-content/text()") > 
64		<#list ficheroSubtituloEstructuraBasico as ficheroSub> 
65			<#if ficheroSub.getText()?has_content> 
66				<p class="evr-subtitle">${ficheroSub.getText()}</p> 
67			</#if> 
68		</#list> 
69 
70		<#assign textoEstructuraBasicoX = aArticleXML.selectSingleNode("//dynamic-element[@name='textoEstructuraBasico']//dynamic-content/text()") > 
71		<#if textoEstructuraBasicoX?has_content && textoEstructuraBasicoX.getText() != ""> 
72			<#assign noText = false> 
73		</#if> 
74		<#assign imagenEstructuraIndiceX = aArticleXML.selectNodes("//dynamic-element[@name='imagenEstructuraIndice']//dynamic-content/text()") > 
75		<#assign textoAlternativoImagen = "" > 
76		<#assign pos = "" > 
77		<#assign imgR = "" > 
78		<#assign piex = "" > 
79		<#assign ficherox = "" > 
80		<#assign i = 1 > 
81		<#list imagenEstructuraIndiceX as ficheroImagen> 
82			<#if ficheroImagen.getText()?has_content> 
83				<#if i == 1> 
84					<#assign ficherox = ficheroImagen.getText() > 
85				</#if> 
86				<#if i == 2> 
87					<#assign pos = ficheroImagen.getText() > 
88				</#if> 
89				<#if i == 3> 
90					<#assign imgR = ficheroImagen.getText() > 
91				</#if> 
92				<#if i == 4> 
93					<#assign piex = ficheroImagen.getText() > 
94				</#if> 
95				<#if i == 5> 
96					<#assign textoAlternativoImagen = ficheroImagen.getText() > 
97				</#if> 
98			</#if> 
99			<#assign i = i+1 > 
100		</#list> 
101 
102		<#if ficherox?has_content && ficherox != "Izquierda" && ficherox != "CentroDeBajo" && ficherox != "CentroEncima " && ficherox != "Derecha"> 
103			<#assign listadoImagenes = commonServiceApiService.getImgIndice(aArticleXML)> 
104			<#if listadoImagenes?? && listadoImagenes?has_content> 
105				<#list 0 ..< listadoImagenes.length() as k> 
106					<#assign ficheroImagenEstructuraIndiceXML = listadoImagenes.get(k).ficheroImagenEstructuraIndiceXML> 
107					<#assign idImagenVinculadaXML = listadoImagenes.get(k).idImagenVinculadaXML> 
108					<#if (ficheroImagenEstructuraIndiceXML?? && ficheroImagenEstructuraIndiceXML?has_content) || (idImagenVinculadaXML?? && idImagenVinculadaXML?has_content)> 
109						<#assign noImg = false> 
110					</#if> 
111				</#list> 
112			</#if> 
113		</#if> 
114 
115 
116		<#assign textoEstructuraBasicoX = aArticleXML.selectSingleNode("//dynamic-element[@name='textoEstructuraBasico']//dynamic-content/text()") > 
117		<div class="evr-detalle__box-text evr-detalle__txt <#if noText == true> evr-detalle__no-text </#if> <#if noImg == true> evr-detalle__no-img </#if> <#if noText == false && noImg == false> evr-detalle-complete</#if>"> 
118			<#if textoEstructuraBasicoX?has_content  && textoEstructuraBasicoX.getText() != ""> 
119			<div class="evr-detalle__box-text  evr-detalle__txt  <#if noText == false && (imagenEstructuraIndice.ficheroImagenEstructuraIndice?? && imagenEstructuraIndice.ficheroImagenEstructuraIndice.getData()?has_content) || (imagenEstructuraIndice.idImagenVinculada?? && imagenEstructuraIndice.idImagenVinculada.getData()?has_content)> evr-detalle__box-text--primary evr-detalle__flex--column</#if>"> 
120				<div class="evr-detalle__carr"> 
121 
122					<#if listadoImagenes?? && listadoImagenes?has_content> 
123						<#list 0 ..< listadoImagenes.length() as k> 
124							<#assign ficheroImagenEstructuraIndiceXML = listadoImagenes.get(k).ficheroImagenEstructuraIndiceXML> 
125							<#assign idPosicionImagenXML = listadoImagenes.get(k).idPosicionImagenXML> 
126							<#assign idImagenVinculadaXML = listadoImagenes.get(k).idImagenVinculadaXML> 
127							<#assign textoPieImagenEstructuraIndiceXML = listadoImagenes.get(k).textoPieImagenEstructuraIndiceXML> 
128							<#assign textoAlternativoImagenEstructuraIndiceXML = listadoImagenes.get(k).textoAlternativoImagenEstructuraIndiceXML> 
129 
130							<#if (ficheroImagenEstructuraIndiceXML?? && ficheroImagenEstructuraIndiceXML?has_content) || (idImagenVinculadaXML?? && idImagenVinculadaXML?has_content)> 
131								<#assign posicion = idPosicionImagenXML /> 
132								<#if posicion=="Izquierda"> 
133									<#assign clase = "evr-detalle__box  evr-detalle__box--flex-left"/> 
134								<#elseif posicion=="Derecha"> 
135									<#assign clase = "evr-detalle__box  evr-detalle__box--flex"/> 
136								<#elseif posicion="CentroDeBajo"> 
137									<#assign clase = "evr-detalle__box  evr-detalle__box--flex-down"/> 
138								<#elseif posicion="CentroEncima"> 
139									<#assign clase = "evr-detalle__box  evr-detalle__box--flex-top"/> 
140								</#if> 
141							</#if> 
142							<div class="<#if clase?has_content>${clase}</#if>"> 
143								<#if (ficheroImagenEstructuraIndiceXML?? && ficheroImagenEstructuraIndiceXML?has_content) || (idImagenVinculadaXML?? && idImagenVinculadaXML?has_content)> 
144									<div class="evr-detalle__box-figure"> 
145										<#if ficheroImagenEstructuraIndiceXML?? && ficheroImagenEstructuraIndiceXML?has_content > 
146											<figure class="evr-detalle__fig "> 
147												<img class="evr-detalle__img" <#if textoAlternativoImagenEstructuraIndiceXML?has_content> alt='${textoAlternativoImagenEstructuraIndiceXML}' <#else> alt='${ficheroImagenEstructuraIndiceXML}' </#if> src="${ficheroImagenEstructuraIndiceXML}" /> 
148												<#if textoPieImagenEstructuraIndiceXML?? && textoPieImagenEstructuraIndiceXML?has_content> 
149													<p class="evr-detalle__figcaption"><#if textoPieImagenEstructuraIndiceXML?has_content>${textoPieImagenEstructuraIndiceXML}</#if></p> 
150												</#if> 
151											</figure> 
152										<#elseif idImagenVinculadaXML?? && idImagenVinculadaXML?has_content> 
153											<#assign imgVinculada = idImagenVinculadaXML?eval /> 
154											<#assign classPKImgVinculada = imgVinculada.classPK?number /> 
155											<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") /> 
156											<#assign articleImgVinculada = journalArticleLocalService.getLatestArticle(classPKImgVinculada) /> 
157											<#assign aArticleXMLImgVinculada = saxReaderUtil.read(articleImgVinculada.getContent()) /> 
158											<#assign ficheroEstructuraImagen = aArticleXMLImgVinculada.valueOf("//dynamic-element[@name='ficheroEstructuraImagen']/dynamic-content/text()") /> 
159											<#assign titulo = articleImgVinculada.getTitle(locale) /> 
160											<#assign descripcion = articleImgVinculada.getDescription(locale) /> 
161											<#if ficheroEstructuraImagen?has_content> 
162												<figure class="evr-detalle__fig playimagevinc " style="position: relative;"> 
163													<img  class="evr-detalle__img"  <#if cur_item.textoAlternativoImagenEstructuraIndice?has_content> alt='${cur_item.textoAlternativoImagenEstructuraIndice.getData()}' <#else> alt='${titulo}' </#if>  src="${ficheroEstructuraImagen?ensure_starts_with("/medioambiente/portal")}" data-descripcion="${descripcion}" data-titulo="${titulo}" /> 
164													<#if cur_item.textoPieImagenEstructuraIndice.getData()?has_content> 
165														<p class="evr-detalle__figcaption"><#if cur_item.textoPieImagenEstructuraIndice?has_content>${cur_item.textoPieImagenEstructuraIndice.getData()}</#if></p> 
166													</#if> 
167												</figure> 
168											</#if> 
169										</#if> 
170									</div> 
171								</#if> 
172							</div> 
173						</#list> 
174					</#if> 
175 
176					<#--  GALERIA IMAGEN PRINCIPAL  --> 
177					<#assign idGaleriaVinculadaXML = aArticleXML.selectSingleNode("//dynamic-element[@name='idGaleriaVinculada']//dynamic-content/text()") > 
178					<#if idGaleriaVinculadaXML?? && idGaleriaVinculadaXML.getText()?has_content> 
179					<#assign idGale = idGaleriaVinculadaXML.getText()?eval /> 
180					<#assign classPKGaleria = idGale.classPK?number /> 
181					<#assign gal = journalArticleLocalService.getLatestArticle(classPKGaleria) /> 
182					<#assign aArticleXMLGaleria = saxReaderUtil.read(gal.getContent()) /> 
183					<#assign staticfile = aArticleXMLGaleria.selectNodes("//dynamic-element[@name='IdImagenEstructuraGaleria']//dynamic-content") /> 
184					<#assign tituloG = gal.getTitle(locale) /> 
185					<#assign descripcion = gal.getDescription(locale) /> 
186					<#assign entryId = gal.getArticleId()/> 
187					<#--  Obtener enlace Galeria Imagenes  --> 
188					<#assign assetEntryLocalServiceUtilG = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") /> 
189					<#assign jaPrimKey = gal.getResourcePrimKey()/> 
190					<#assign assetEntry = assetEntryLocalServiceUtilG.fetchEntry("com.liferay.journal.model.JournalArticle",jaPrimKey?number) /> 
191					<#assign enlace = commonServiceApiService.getEnlace(themeDisplay,assetEntry.getClassPK(),assetEntry.getEntryId())> 
192					<#assign webCont = aArticleXMLGaleria.selectNodes("//dynamic-element[@name='idContenidoWebGaleria']//dynamic-content")!"" /> 
193					<#if staticfile?has_content || webCont?has_content && webCont != ""> 
194					<div class="evr-detalle__margin"> 
195						<p class="evr-galery__subtitle">${tituloG}</p> 
196						<div class="evr-galery__carrousel evr-detailsnews__carousel " data-detail-carrousel='initial'> 
197							<#if staticfile?has_content> 
198								<#list staticfile as i> 
199									<#if i?? && i?has_content> 
200										<#assign selectValue = i.getText() /> 
201										<figure class="evr-galery__carrousel-fig evr-modal-selector  playimag" data-toggle='modal' > 
202											<img class="evr-galery__carrousel-img" src="${selectValue}" data-title="${tituloG}" data-desc="${descripcion}" data-galery="${enlace}" /> 
203										</figure> 
204									</#if> 
205								</#list> 
206							</#if> 
207							<#if webCont?has_content> 
208								<#list webCont as i> 
209									<#if i?? && i?has_content> 
210										<#assign selectValue = i.getText() /> 
211										<#if selectValue?has_content> 
212											<#assign jSData = i.getData()?eval /> 
213											<#assign classPKImg = jSData.classPK?number /> 
214											<#assign articleImgVinculada = journalArticleLocalService.getLatestArticle(classPKImg) /> 
215											<#assign aArticleXMLImgVinculada = saxReaderUtil.read(articleImgVinculada.getContent()) /> 
216											<#assign ficheroEstructuraImagen = aArticleXMLImgVinculada.valueOf("//dynamic-element[@name='ficheroEstructuraImagen']/dynamic-content/text()") /> 
217											<#assign ficheroEstructuraImagen = ficheroEstructuraImagen?replace("/medioambiente", "")/> 
218											<#assign altImagen = aArticleXMLImgVinculada.valueOf("//dynamic-element[@name='textoAlternativoEstructuraImagen']/dynamic-content/text()") /> 
219											<figure class="evr-galery__carrousel-fig evr-modal-selector  playimag" data-toggle='modal'> 
220												<img class="evr-galery__carrousel-img" src="${ficheroEstructuraImagen?ensure_starts_with('/medioambiente/portal')}" alt="${altImagen}" data-title="${tituloG}" data-galery="${enlace}" data-desc="${descripcion}"/> 
221											</figure> 
222										</#if> 
223									</#if> 
224								</#list> 
225							</#if> 
226						</div> 
227						<div class="evr-galery__carrousel evr-galery__carrousel--small" data-detail-carr-nav='initial'> 
228							<#if staticfile?has_content> 
229								<#list staticfile as i> 
230									<#if i?? && i?has_content> 
231										<#assign selectValue = i.getText() /> 
232										<figure class="evr-galery__carrousel-fig " > 
233											<img class="evr-galery__carrousel-img" src="${selectValue}" alt="${tituloG}"> 
234										</figure> 
235									</#if> 
236								</#list> 
237							</#if> 
238							<#if webCont?has_content> 
239								<#list webCont as i> 
240									<#if i?? && i?has_content> 
241										<#assign selectValue = i.getText() /> 
242										<#if selectValue?has_content> 
243											<#assign jSData = i.getData()?eval /> 
244											<#assign classPKImg = jSData.classPK?number /> 
245											<#assign articleImgVinculada = journalArticleLocalService.getLatestArticle(classPKImg) /> 
246											<#assign aArticleXMLImgVinculada = saxReaderUtil.read(articleImgVinculada.getContent()) /> 
247											<#assign ficheroEstructuraImagen = aArticleXMLImgVinculada.valueOf("//dynamic-element[@name='ficheroEstructuraImagen']/dynamic-content/text()") /> 
248											<#assign ficheroEstructuraImagen = ficheroEstructuraImagen?replace("/medioambiente", "")/> 
249											<#assign altImagen = aArticleXMLImgVinculada.valueOf("//dynamic-element[@name='textoAlternativoEstructuraImagen']/dynamic-content/text()") /> 
250											<figure class="evr-galery__carrousel-fig"> 
251												<img class="evr-galery__carrousel-img" src="${ficheroEstructuraImagen?ensure_starts_with('/medioambiente/portal')}" alt="${altImagen}"/> 
252											</figure> 
253										</#if> 
254									</#if> 
255								</#list> 
256							</#if> 
257						</div> 
258						<div> 
259							</#if> 
260							</#if> 
261							<#--  FIN GALERIA IMAGEN PRINCIPAL  --> 
262						</div> 
263						${textoEstructuraBasicoX.getText()} 
264					</div> 
265					</#if> 
266 
267 
268						<#if apartadoEstructuraIndice?? && apartadoEstructuraIndice?has_content> 
269							<div class="evr-lis_lista_top_description"> 
270							<#assign listaIndicesOrdenada = []> 
271							<#assign listaIndicesOrdenada = commonServiceApiService.getApartadoIndiceOrdenadoXML(aArticleXML) /> 
272							<#assign index = 0> 
273							<#assign counter = 0> 
274							<#assign lastIndex = -999999> 
275							<#if listaIndicesOrdenada?? && listaIndicesOrdenada?has_content> 
276								<#list listaIndicesOrdenada as cur> 
277									<#assign class = ""> 
278									<#if cur.getIndice()?has_content> 
279										<#assign class = "nivelindice"> 
280										<#assign class = class + (cur.getIndice()?split(".")?size-1)?string> 
281									</#if> 
282									<#assign index = index + 1> 
283									<#assign indexString = (index)?string> 
284									<div class="${class}"> 
285									<#--  TITULO  --> 
286									<#if cur.getTitulo()?has_content> 
287										<a class="evr-detalle__subtitle evr-detalle__subtitle--primary evr-desple " data-despleg data-toggle="collapse" href="#collapseService${indexString}" role="button" aria-expanded="false" aria-controls="collapseService"> 
288											${cur.getTitulo()} 
289										</a> 
290									</#if> 
291									<#if (cur.getDescripcion()?? && cur.getDescripcion()?has_content) || (cur.getFicheroAdjunto()?? && cur.getFicheroAdjunto()?has_content && cur.getFicheroAdjunto() != "") || (cur.getEnlaces()?? && cur.getEnlaces()?has_content && cur.getTextoEnlace()?? && cur.getTextoEnlace()?has_content)> 
292										<#--  IMAGEN --> 
293										<#assign imgMostrar = "" /> 
294										<#assign src = "" /> 
295										<#if cur.getAlt()?has_content> 
296											<#assign alt = cur.getAlt()> 
297										<#else> 
298											<#assign alt = .vars['reserved-article-title'].data> 
299										</#if> 
300										<#if cur.getImagen()?has_content> 
301											<#assign src = cur.getImagen() /> 
302										<#elseif cur.getImagenVinculada()?has_content> 
303											<#assign vImagen = cur.getImagenVinculada() /> 
304											<#assign data = vImagen?eval /> 
305											<#assign classPK2 = data.classPK?number> 
306											<#assign className = data.className /> 
307											<#assign obj = journalArticleLocalService.getLatestArticle(classPK2) /> 
308											<#assign structure = obj.getDDMStructure() /> 
309											<#assign structureName = structure.getName(locale) /> 
310											<#if structureName == "Imagen" > 
311												<#assign aArticleXML= saxReaderUtil.read(obj.getContent()) /> 
312												<#if obj.getTitle(locale)?has_content> 
313												<#-- <script> 
314														var tituloVIMG = '${obj.getTitle(locale)}'; 
315														var descripcionVIMG = '${obj.getDescription(locale)}'; 
316													</script>--> 
317												</#if> 
318												<#assign objContentImagen = aArticleXML.valueOf("//dynamic-element[@name='ficheroEstructuraImagen']/dynamic-content/text()") /> 
319												<#assign alt = aArticleXML.valueOf("//dynamic-element[@name='textoAlternativoEstructuraImagen']/dynamic-content/text()") /> 
320												<#assign titulo = obj.getTitle(locale) /> 
321												<#assign tituloVIMG = obj.getTitle(locale) /> 
322												<#assign descripcionVIMG = obj.getDescription(locale) /> 
323												<#if objContentImagen?has_content> 
324													<#assign imgMostrar = objContentImagen?ensure_starts_with("/medioambiente/portal") /> 
325													<#if !alt?has_content || alt==""> 
326														<#assign alt = titulo/> 
327													</#if> 
328												</#if> 
329											</#if> 
330										</#if> 
331										<div class="evr-detalle__box collapse" id="collapseService${indexString}" > 
332											<div class="evr-detalle__box-text <#if src == '' && imgMostrar == ''> evr-detalle__box-no-img-apartado <#else> evr-detalle__txt evr-detalle__box-text--primary </#if>"> 
333												<#--  DESCRIPCION  --> 
334												<#if cur.getDescripcion()?has_content> 
335													<div class="evr-detalle__txt"> 
336														<#if src?? && src?has_content> 
337															<div class="evr-detalle__box-figure evr-detalle__box-figure--primary"> 
338																<figure class=" "> 
339																	<img class="evr-detalle__img-lateral" src="${src}" <#if alt?has_content> alt="${alt}"</#if> <#if cur.getAlt()?has_content></#if> /> 
340																	<p class="evr-detailsnews__details-figure"><#if cur.getPieImagen()?has_content>${cur.getPieImagen()}</#if></p> 
341																</figure> 
342															</div> 
343														<#elseif imgMostrar?? && imgMostrar?has_content> 
344															<div class="evr-detalle__box-figure evr-detalle__box-figure--primary"> 
345																<figure class="playimagevinc "> 
346																	<img class="evr-detalle__img-lateral " data-titulo="${titulo}" data-descripcion="${descripcionVIMG}" src="${imgMostrar}" <#if alt?has_content> alt="${alt}"</#if> <#if cur.getAlt()?has_content></#if> /> 
347																	<p class="evr-detailsnews__details-figure"><#if cur.getPieImagen()?has_content>${cur.getPieImagen()}</#if></p> 
348																</figure> 
349															</div> 
350														</#if> 
351														${cur.getDescripcion()} 
352													</div> 
353												</#if> 
354												<#--  ENLACE DESCARGA  --> 
355												<#if cur.getFicheroAdjunto()?? && cur.getFicheroAdjunto()?has_content && cur.getFicheroAdjunto() != ""> 
356													<#assign uuId = cur.getFicheroAdjunto()?split("/")?last?split("?")[0] /> 
357													<#assign scope = cur.getFicheroAdjunto()?split("/documents/")?last?split("/")?first> 
358													<#assign file = dlFileEntryService.getFileEntryByUuidAndGroupId(uuId, scope?number)> 
359													<#assign tamanoMb = tFichero(file.getSize()) /> 
360													<#if file.getTitle()?contains(".")> 
361														<#assign nombreFMod = file.getTitle()?split(".")[0] /> 
362													<#else> 
363														<#assign nombreFMod = file.getTitle() /> 
364													</#if> 
365													<#if file.getTitle()?split(".")[1]??> 
366													<#--  <#assign tamañoMb = tFichero(file.getSize()) />  --> 
367														<#assign fFormato = file.getTitle()?split(".")[1]?upper_case /> 
368														<#assign archivoAdjuntoA = cur.getFicheroAdjunto() /> 
369													</#if> 
370													<#if cur.getTextoEnlace()?has_content> 
371														<#assign titleA = cur.getTextoEnlace()/> 
372													<#else> 
373														<#assign titleA = cur.getFicheroAdjunto()?split("/")?last?split("?")[0] /> 
374													</#if> 
375													<#if fFormato?? && fFormato?has_content> 
376														<a class="evr-detalle__link evr-detalle__link--download" download="" href="${cur.getFicheroAdjunto()}"> 
377															<span class=""><@liferay.language key="descargar"/> ${fFormato} (${tamanoMb}MB)</span> 
378														</a> 
379													</#if> 
380												</#if> 
381												<#if cur.getEnlaces()?has_content && cur.getTextoEnlace()?has_content> 
382													<p class="evr-normativa-descarga"> 
383														<a class="evr-detalle__link" href="${cur.getEnlaces()}" <#if cur.getTextoEnlace()?has_content></#if>> 
384															<#--  <img alt="<@liferay.language key='incono.download.svg'/>" class="evr-normativa-detalle__boja-style" src="${themeDisplay.getPathThemeImages()}/iconos_portal_SVG/Grupo 1326.svg"> ${cur.getTextoEnlace()}  --> 
385															<span class="">${cur.getTextoEnlace()}</span> 
386														</a> 
387													</p> 
388												</#if> 
389											</div> 
390										</div> 
391									</#if> 
392									<#assign currentIndex = (cur.getIndice()?split(".")?size-1)> 
393									<#assign total = listaIndicesOrdenada?size> 
394									<#if counter + 1 < total> 
395										<#assign nextElement = listaIndicesOrdenada[counter + 1]> 
396										<#assign nextIndex = (nextElement.getIndice()?split(".")?size-1)> 
397									<#else> 
398										<#assign nextIndex = 0> 
399									</#if> 
400									<#if currentIndex < nextIndex> 
401									<#elseif currentIndex == nextIndex > 
402									</div> 
403							<#else> 
404								<#assign total_number = currentIndex - nextIndex> 
405								<#list 0..total_number as i> 
406									</div> 
407								</#list> 
408							</#if> 
409						<#assign counter = counter + 1> 
410						</#list> 
411						</#if> 
412						</div> 
413						</#if> 
414				<div> 
415					<div> 
416						<#function tFichero fichero> 
417							<#assign tamanoF = (fichero/1024)/1024 /> 
418							<#if tamanoF?split(".")[0]?number == 0 > 
419								<#assign tamanoF = 0.01 /> 
420							</#if> 
421							<#return (tamanoF?string["0.##"]) /> 
422						</#function> 
423						<script> 
424							$( document ).ready(function() { 
425var lateralPics = $(".evr-detalle__img-lateral").length; 
426var detallePics = $(".evr-detalle__img").length; 
427var loadedLateral = 0; 
428var loadedDetalle = 0; 
429$(".evr-detalle__img-lateral").each(function() { 
430let foto = new Image() 
431foto.onload = () => { 
432let ancho=foto.naturalWidth; 
433let parentElem = $(this).closest('figure').length > 0 ? $(this).closest('figure') : $(this).parent(); 
434if(ancho>740){ 
435if(!$(parentElem).hasClass("playimagevinc")){ 
436$(parentElem).addClass("playimag"); 
437$(parentElem).addClass("evr-imagen-detalle__icon-ampliacion"); 
438}else{ 
439$(parentElem).addClass("evr-imagen-detalle__icon-ampliacion"); 
440
441									}else{ 
442$(parentElem).removeClass("playimagevinc"); 
443$(parentElem).removeClass("evr-imagen-detalle__icon-ampliacion"); 
444
445									loadedLateral++; 
446									if(loadedDetalle === detallePics && loadedLateral === lateralPics)  poPupEmergenteImagenesVideos(); 
447
448								foto.src=$(this).attr("src"); 
449							}); 
450							$(".evr-detalle__img").each(function() { 
451let foto = new Image() 
452foto.onload = () => { 
453let ancho=foto.naturalWidth; 
454let parentElem = $(this).closest('figure').length > 0 ? $(this).closest('figure') : $(this).parent(); 
455if(ancho>740){ 
456if(!$(parentElem).hasClass("playimagevinc")){ 
457$(parentElem).addClass("playimag"); 
458$(parentElem).addClass("evr-imagen-detalle__icon-ampliacion"); 
459}else{ 
460$(parentElem).addClass("evr-imagen-detalle__icon-ampliacion"); 
461
462									}else{ 
463$(parentElem).removeClass("playimagevinc"); 
464$(parentElem).removeClass("evr-imagen-detalle__icon-ampliacion"); 
465 
466
467									loadedDetalle++; 
468									if(loadedDetalle === detallePics && loadedLateral === lateralPics)  poPupEmergenteImagenesVideos(); 
469
470								foto.src=$(this).attr("src"); 
471							}) 
472								//poPupEmergenteImagenesVideos(); 
473							}); 
474							$('.evr-galery__carrousel-fig').parent().on('afterChange', function(event, slick, currentSlide){ 
475let $el = $(".evr-galery__carrousel-fig.slick-slide.slick-current.slick-active").first(); 
476$('[data-showpieimg="true"]').addClass('hidden'); 
477$('[data-showpieimg="true"][data-pieimg="'+$el.attr("data-pieimg")+'"]').removeClass("hidden"); 
478}); 
479							$('.evr-detalle__subtitle.evr-detalle__subtitle--primary.evr-desple').click( 
480								function(){ $(this).toggleClass('poser') }, 
481								function(){ $(this).toggleClass('poser') } 
482							); 
483							$('.evr-detalle__subtitle.evr-detalle__subtitle--primary.evr-desple').click( 
484								function(){ $(this).focus() }, 
485								function(){ $(this).blur() } 
486							); 
487						</script> 
488						<style> 
489.evr-detalle__subtitle{ 
490width: auto; 
491
492.evr-detalle__link{ 
493display: inline; 
494
495.evr-lis_lista_top{ 
496position: relative; 
497top: 10px; 
498width: 100% !important; 
499
500.evr-lis_lista_top_img{ 
501position: relative; 
502top: 10px; 
503width: 68% !important; 
504
505.evr-lis_lista_top_description{ 
506position: relative; 
507width: 68% !important; 
508
509@media only screen and (max-width: 768px){ 
510.evr-lis_lista_top_img{ 
511position: relative; 
512top: 10px; 
513width: 100% !important; 
514
515.evr-lis_lista_top_description{ 
516width: 100% !important; 
517
518.evr-detalle__txt img { 
519margin: 0; 
520
521.evr-detalle__box-text--primary { 
522width: 100%!important; 
523
524.nivelindice0 .evr-detalle__box-text { 
525width: 100%; 
526
527.evr-detalle__box-figure--primary{ 
528width: 100%!important; 
529margin-right:0px; 
530display: inline-block; 
531
532.nivelindice0 .evr-detalle__box-text { 
533width: 100%!important; 
534
535
536.evr-detalle__txt { 
537overflow: initial; 
538
539 
540.evr-detalle__no-text { 
541display: flex; 
542flex-wrap: wrap; 
543flex-direction: row-reverse; 
544width:100%; 
545
546 
547.evr-detalle-complete { 
548display: flex; 
549flex-wrap: wrap; 
550
551.nivelindice0 .evr-detalle__box-text { 
552width: 75%; 
553
554.evr-detalle__box-text--primary { 
555width: 100%; 
556
557.evr-detalle__box-figure--primary{ 
558width: 25%; 
559margin-right:100px; 
560display: inline-block; 
561
562.evr-detalle__no-img .evr-lis_lista_top_description { 
563width: 100%!important; 
564
565.evr-detalle__no-img .evr-detalle__box-figure--primary { 
566margin-right: 0; 
567
568.evr-detalle__no-img { 
569padding-right: 0; 
570
571.evr-detalle-complete .evr-lis_lista_top_description { 
572width: 100% !important; 
573
574.nivelindice0 .evr-detalle__box-text.evr-detalle__box-no-img-apartado { 
575width: 100%; 
576
577</style> 
578<#else> 
579<div class="evr-detalle evr-detalle"> 
580		<#if (imagenEstructuraIndice.ficheroImagenEstructuraIndice?? && imagenEstructuraIndice.ficheroImagenEstructuraIndice.getData()?has_content) || (imagenEstructuraIndice.idImagenVinculada?? && imagenEstructuraIndice.idImagenVinculada.getData()?has_content)> 
581			<#assign posicion = imagenEstructuraIndice.idPosicionImagen.getData() /> 
582			<#if posicion=="Izquierda"> 
583				<#assign clase = "evr-detalle__box  evr-detalle__box--flex-left"/> 
584			<#elseif posicion=="Derecha"> 
585				<#assign clase = "evr-detalle__box  evr-detalle__box--flex"/> 
586			<#elseif posicion="CentroDeBajo"> 
587				<#assign clase = "evr-detalle__box  evr-detalle__box--flex-down"/> 
588			<#elseif posicion="CentroEncima"> 
589				<#assign clase = "evr-detalle__box  evr-detalle__box--flex-top"/> 
590			</#if> 
591		</#if> 
592		<#if parentStructureFieldSet1582845.Fecha2ehn?? && parentStructureFieldSet1582845.Fecha2ehn.getData()?has_content> 
593			<#assign fechaMostrarEstructuraBasico_Data = getterUtil.getString(parentStructureFieldSet1582845.Fecha2ehn.getData())> 
594			<#if validator.isNotNull(fechaMostrarEstructuraBasico_Data)> 
595				<#assign fechaMostrarEstructuraBasico_DateObj = dateUtil.parseDate("yyyy-MM-dd", fechaMostrarEstructuraBasico_Data, locale)> 
596				<p class="evr-normativa-detalle__date-color">${dateUtil.getDate(fechaMostrarEstructuraBasico_DateObj, formaterDate, locale)}</p> 
597			</#if> 
598		</#if> 
599		<#if parentStructureFieldSet1582845.subtitulosEstructuraBasicoFieldSet.subtituloEstructuraBasico.getSiblings()?has_content> 
600			<#list parentStructureFieldSet1582845.subtitulosEstructuraBasicoFieldSet.subtituloEstructuraBasico.getSiblings() as cur_parentStructureFieldSet1582845_subtitulosEstructuraBasicoFieldSet_subtituloEstructuraBasico> 
601				<#if (cur_parentStructureFieldSet1582845_subtitulosEstructuraBasicoFieldSet_subtituloEstructuraBasico.getData())??> 
602					<p class="evr-subtitle">${cur_parentStructureFieldSet1582845_subtitulosEstructuraBasicoFieldSet_subtituloEstructuraBasico.getData()}</p> 
603				</#if> 
604			</#list> 
605		</#if> 
606		<#if (parentStructureFieldSet1582845.textoEstructuraBasico.getData())??> 
607			<#assign noText = false> 
608		</#if> 
609		<#if (apartadoEstructuraIndiceFieldSet.ficheroImagenApartadoEstructuraIndice.getData()?? && apartadoEstructuraIndiceFieldSet.ficheroImagenApartadoEstructuraIndice.getData() != "") || (imagenEstructuraIndice.idImagenVinculada?? && imagenEstructuraIndice.idImagenVinculada.getData()?has_content) || (imagenEstructuraIndiceFieldSet.ficheroImagenEstructuraIndice?? && imagenEstructuraIndiceFieldSet.ficheroImagenEstructuraIndice.getData()?has_content)> 
610			<#assign noImg = false> 
611		</#if> 
612		<div class="evr-detalle__box-text evr-detalle__txt <#if noText == false && noImg == false>evr-detalle-complete</#if> <#if noText == true>evr-detalle__no-text</#if><#if noImg == true>evr-detalle__no-img</#if>"> 
613			<#if (parentStructureFieldSet1582845.textoEstructuraBasico.getData())?? && parentStructureFieldSet1582845.textoEstructuraBasico.getData() != ""> 
614				<div class="evr-detalle__box-text  evr-detalle__txt  <#if noText == false && (imagenEstructuraIndice.ficheroImagenEstructuraIndice?? && imagenEstructuraIndice.ficheroImagenEstructuraIndice.getData()?has_content) || (imagenEstructuraIndice.idImagenVinculada?? && imagenEstructuraIndice.idImagenVinculada.getData()?has_content)> evr-detalle__box-text--primary evr-detalle__flex--column</#if>"> 
615					<div class="evr-detalle__carr"> 
616						<div class="<#if clase?has_content>${clase}</#if>"> 
617							<#if (imagenEstructuraIndice.ficheroImagenEstructuraIndice?? && imagenEstructuraIndice.ficheroImagenEstructuraIndice.getData()?has_content) || (imagenEstructuraIndice.idImagenVinculada?? && imagenEstructuraIndice.idImagenVinculada.getData()?has_content)> 
618								<div class="evr-detalle__box-figure"> 
619									<#list imagenEstructuraIndice.getSiblings() as cur_item> 
620										<#if cur_item.ficheroImagenEstructuraIndice.getData()?? && cur_item.ficheroImagenEstructuraIndice.getData()?has_content > 
621											<figure class="evr-detalle__fig "> 
622												<img class="evr-detalle__img" <#if cur_item.textoAlternativoImagenEstructuraIndice.getData()?has_content> alt='${cur_item.textoAlternativoImagenEstructuraIndice.getData()}' <#else> alt='${cur_item.ficheroImagenEstructuraIndice.getData()}' </#if> src="${cur_item.ficheroImagenEstructuraIndice.getData()}" /> 
623												<#if cur_item.textoPieImagenEstructuraIndice?? && cur_item.textoPieImagenEstructuraIndice.getData()?? && cur_item.textoPieImagenEstructuraIndice.getData()?has_content> 
624													<p class="evr-detalle__figcaption"><#if cur_item.textoPieImagenEstructuraIndice?has_content>${cur_item.textoPieImagenEstructuraIndice.getData()}</#if></p> 
625												</#if> 
626											</figure> 
627										<#elseif cur_item.idImagenVinculada?? && cur_item.idImagenVinculada.getData()?has_content> 
628											<#assign imgVinculada = cur_item.idImagenVinculada.getData()?eval /> 
629											<#assign classPKImgVinculada = imgVinculada.classPK?number /> 
630											<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") /> 
631											<#assign articleImgVinculada = journalArticleLocalService.getLatestArticle(classPKImgVinculada) /> 
632											<#assign aArticleXMLImgVinculada = saxReaderUtil.read(articleImgVinculada.getContent()) /> 
633											<#assign ficheroEstructuraImagen = aArticleXMLImgVinculada.valueOf("//dynamic-element[@name='ficheroEstructuraImagen']/dynamic-content/text()") /> 
634											<#assign titulo = articleImgVinculada.getTitle(locale) /> 
635											<#assign descripcion = articleImgVinculada.getDescription(locale) /> 
636											<#if ficheroEstructuraImagen?has_content> 
637												<figure class="evr-detalle__fig playimagevinc " style="position: relative;"> 
638													<#if ficheroEstructuraImagen??> 
639														<#assign jsonObject=ficheroEstructuraImagen?eval> 
640														<#assign entryUuid=jsonObject.uuid /> 
641														<#assign entryGroupId=getterUtil.getLong(jsonObject.groupId) /> 
642														<#assign dlFileEntry=dlFileEntryLocalService.fetchDLFileEntryByUuidAndGroupId(entryUuid, entryGroupId) /> 
643														<#assign 
644														assetEntry=assentEntryLocalService.getEntry("com.liferay.document.library.kernel.model.DLFileEntry", 
645														dlFileEntry.fileEntryId) 
646														/> 
647														<#assign assetRenderer=assetEntry.assetRenderer /> 
648														<#assign foto=assetRenderer.getURLDownload(themeDisplay) /> 
649													</#if> 
650													<img  class="evr-detalle__img"  <#if cur_item.textoAlternativoImagenEstructuraIndice?has_content> alt='${cur_item.textoAlternativoImagenEstructuraIndice.getData()}' <#else> alt='${titulo}' </#if>  src="${foto}" data-descripcion="${descripcion}" data-titulo="${titulo}" /> 
651													<#if cur_item.textoPieImagenEstructuraIndice.getData()?has_content> 
652														<p class="evr-detalle__figcaption"><#if cur_item.textoPieImagenEstructuraIndice?has_content>${cur_item.textoPieImagenEstructuraIndice.getData()}</#if></p> 
653													</#if> 
654												</figure> 
655											</#if> 
656										</#if> 
657									</#list> 
658								</div> 
659							</#if> 
660						</div> 
661						<#--  GALERIA IMAGEN PRINCIPAL  --> 
662						<#if idGaleriaVinculada?? && idGaleriaVinculada.getData()?has_content> 
663							<#assign idGale = idGaleriaVinculada.getData()?eval /> 
664							<#assign classPKGaleria = idGale.classPK?number /> 
665							<#assign gal = journalArticleLocalService.getLatestArticle(classPKGaleria) /> 
666							<#assign aArticleXMLGaleria = saxReaderUtil.read(gal.getContent()) /> 
667							<#assign staticfile = aArticleXMLGaleria.selectNodes("//dynamic-element[@name='IdImagenEstructuraGaleria']//dynamic-content") /> 
668							<#assign tituloG = gal.getTitle(locale) /> 
669							<#assign descripcion = gal.getDescription(locale) /> 
670							<#assign entryId = gal.getArticleId()/> 
671							<#--  Obtener enlace Galeria Imagenes  --> 
672							<#assign assetEntryLocalServiceUtilG = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") /> 
673							<#assign jaPrimKey = gal.getResourcePrimKey()/> 
674							<#assign assetEntry = assetEntryLocalServiceUtilG.fetchEntry("com.liferay.journal.model.JournalArticle",jaPrimKey?number) /> 
675							<#assign enlace = commonServiceApiService.getEnlace(themeDisplay,assetEntry.getClassPK(),assetEntry.getEntryId())> 
676							<#assign assetEntryLocalService=serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService")> 
677							<#--    --> 
678							<#assign webCont = aArticleXMLGaleria.selectNodes("//dynamic-element[@name='idContenidoWebGaleria']//dynamic-content") /> 
679							<#if staticfile?has_content || webCont?has_content && webCont != ""> 
680								<div class="evr-detalle__margin"> 
681									<p class="evr-galery__subtitle">${tituloG}</p> 
682									<div class="evr-galery__carrousel evr-detailsnews__carousel " data-detail-carrousel='initial'> 
683										<#if staticfile?has_content> 
684											<#list staticfile as i> 
685												<#if i?? && i?has_content> 
686													<#assign selectValue = i.getText() /> 
687													<#if selectValue?has_content> 
688														<#assign jsonObject=selectValue?eval> 
689														<#assign entryUuid=jsonObject.uuid /> 
690														<#assign entryGroupId=getterUtil.getLong(jsonObject.groupId) /> 
691														<#assign dlFileEntry=dlFileEntryLocalService.fetchDLFileEntryByUuidAndGroupId(entryUuid, entryGroupId) /> 
692														<#assign 
693														assetEntry=assentEntryLocalService.getEntry("com.liferay.document.library.kernel.model.DLFileEntry", 
694														dlFileEntry.fileEntryId) 
695														/> 
696														<#assign assetRenderer=assetEntry.assetRenderer /> 
697														<#assign selectValue=assetRenderer.getURLDownload(themeDisplay) /> 
698													</#if> 
699													<figure class="evr-galery__carrousel-fig evr-modal-selector  playimag" data-toggle='modal' > 
700														<img class="evr-galery__carrousel-img" src="${selectValue}" data-title="${tituloG}" data-desc="${descripcion}" data-galery="${enlace}" /> 
701													</figure> 
702												</#if> 
703											</#list> 
704										</#if> 
705									</div> 
706									<div class="evr-galery__carrousel evr-galery__carrousel--small" data-detail-carr-nav='initial'> 
707										<#if staticfile?has_content> 
708											<#list staticfile as i> 
709												<#if i?? && i?has_content> 
710													<#assign selectValue = i.getText() /> 
711													<#if selectValue?has_content> 
712														<#assign jsonObject=selectValue?eval> 
713														<#assign entryUuid=jsonObject.uuid /> 
714														<#assign entryGroupId=getterUtil.getLong(jsonObject.groupId) /> 
715														<#assign dlFileEntry=dlFileEntryLocalService.fetchDLFileEntryByUuidAndGroupId(entryUuid, entryGroupId) /> 
716														<#assign 
717														assetEntry=assentEntryLocalService.getEntry("com.liferay.document.library.kernel.model.DLFileEntry", 
718														dlFileEntry.fileEntryId) 
719														/> 
720														<#assign assetRenderer=assetEntry.assetRenderer /> 
721														<#assign selectValue=assetRenderer.getURLDownload(themeDisplay) /> 
722													</#if> 
723													<figure class="evr-galery__carrousel-fig " > 
724														<img class="evr-galery__carrousel-img" src="${selectValue}" alt="${tituloG}"> 
725													</figure> 
726												</#if> 
727											</#list> 
728										</#if> 
729									</div> 
730								</div> 
731							</#if> 
732						</#if> 
733						<#--  FIN GALERIA IMAGEN PRINCIPAL  --> 
734					</div> 
735					${parentStructureFieldSet1582845.textoEstructuraBasico.getData()} 
736				</div> 
737			</#if> 
738				<#if apartadoEstructuraIndice?? && apartadoEstructuraIndice?has_content> 
739					<div class="evr-lis_lista_top_description"> 
740					<#assign listadoIndices = apartadoEstructuraIndice.getSiblings() /> 
741					<#assign listaIndicesOrdenada = []> 
742					<#assign listaIndicesOrdenada = commonServiceApiService.getApartadoIndiceOrdenado(listadoIndices) /> 
743					<#assign index = 0> 
744					<#assign counter = 0> 
745					<#assign lastIndex = -999999> 
746					<#if listaIndicesOrdenada?? && listaIndicesOrdenada?has_content> 
747						<#list listaIndicesOrdenada as cur> 
748							<#assign class = ""> 
749							<#if cur.getIndice()?has_content> 
750								<#assign class = "nivelindice"> 
751								<#assign class = class + (cur.getIndice()?split(".")?size-1)?string> 
752							</#if> 
753							<#assign index = index + 1> 
754							<#assign indexString = (index)?string> 
755							<div class="${class}"> 
756								<#--  TITULO  --> 
757								<#if cur.getTitulo()?has_content> 
758									<a class="evr-detalle__subtitle evr-detalle__subtitle--primary evr-desple " data-despleg data-toggle="collapse" href="#collapseService${indexString}" role="button" aria-expanded="false" aria-controls="collapseService"> 
759										${cur.getTitulo()} 
760									</a> 
761								</#if> 
762								<#if (cur.getDescripcion()?? && cur.getDescripcion()?has_content) || (cur.getFicheroAdjunto()?? && cur.getFicheroAdjunto()?has_content && cur.getFicheroAdjunto() != "") || (cur.getEnlaces()?? && cur.getEnlaces()?has_content && cur.getTextoEnlace()?? && cur.getTextoEnlace()?has_content)> 
763									<#--  IMAGEN --> 
764									<#assign imgMostrar = "" /> 
765									<#assign src = "" /> 
766									<#if cur.getAlt()?has_content> 
767										<#assign alt = cur.getAlt()> 
768									<#else> 
769										<#assign alt = .vars['reserved-article-title'].data> 
770									</#if> 
771									<#if cur.getImagen()?has_content> 
772										<#assign src = cur.getImagen() /> 
773									<#elseif cur.getImagenVinculada()?has_content> 
774										<#assign vImagen = cur.getImagenVinculada() /> 
775										<#assign data = vImagen?eval /> 
776										<#assign classPK2 = data.classPK?number> 
777										<#assign className = data.className /> 
778										<#assign obj = journalArticleLocalService.getLatestArticle(classPK2) /> 
779										<#assign structure = obj.getDDMStructure() /> 
780										<#assign structureName = structure.getName(locale) /> 
781										<#if structureName == "Imagen" > 
782											<#assign aArticleXML= saxReaderUtil.read(obj.getContent()) /> 
783											<#assign objContentImagen = aArticleXML.valueOf("//dynamic-element[@name='ficheroEstructuraImagen']/dynamic-content/text()") /> 
784											<#assign alt = aArticleXML.valueOf("//dynamic-element[@name='textoAlternativoEstructuraImagen']/dynamic-content/text()") /> 
785											<#assign titulo = obj.getTitle(locale) /> 
786											<#assign tituloVIMG = obj.getTitle(locale) /> 
787											<#assign descripcionVIMG = obj.getDescription(locale) /> 
788											<#if objContentImagen?has_content> 
789												<#if objContentImagen??> 
790													<#assign jsonObject=objContentImagen?eval> 
791													<#assign entryUuid=jsonObject.uuid /> 
792													<#assign entryGroupId=getterUtil.getLong(jsonObject.groupId) /> 
793													<#assign dlFileEntry=dlFileEntryLocalService.fetchDLFileEntryByUuidAndGroupId(entryUuid, entryGroupId) /> 
794													<#assign 
795													assetEntry=assentEntryLocalService.getEntry("com.liferay.document.library.kernel.model.DLFileEntry", 
796													dlFileEntry.fileEntryId) 
797													/> 
798													<#assign assetRenderer=assetEntry.assetRenderer /> 
799													<#assign foto=assetRenderer.getURLDownload(themeDisplay) /> 
800													<#assign imgMostrar = foto /> 
801												</#if> 
802												<#if !alt?has_content || alt==""> 
803													<#assign alt = titulo/> 
804												</#if> 
805											</#if> 
806										</#if> 
807									</#if> 
808									<div class="evr-detalle__box collapse" id="collapseService${indexString}" > 
809										<div class="evr-detalle__box-text <#if src == '' && imgMostrar == ''> evr-detalle__box-no-img-apartado <#else> evr-detalle__txt evr-detalle__box-text--primary </#if>"> 
810											<div class="evr-detalle__txt"> 
811												<#if src?? && src?has_content> 
812													<div class="evr-detalle__box-figure evr-detalle__box-figure--primary"> 
813														<figure class=" "> 
814															<img class="evr-detalle__img-lateral" src="${src}" <#if alt?has_content> alt="${alt}"</#if> <#if cur.getAlt()?has_content></#if> /> 
815														<p class="evr-detailsnews__details-figure"><#if cur.getPieImagen()?has_content>${cur.getPieImagen()}</#if></p> 
816														</figure> 
817													</div> 
818												<#elseif imgMostrar?? && imgMostrar?has_content> 
819													<div class="evr-detalle__box-figure evr-detalle__box-figure--primary"> 
820														<figure class="playimagevinc "> 
821															<img class="evr-detalle__img-lateral " data-titulo="${titulo}" data-descripcion="${descripcionVIMG}" src="${imgMostrar}" <#if alt?has_content> alt="${alt}"</#if> <#if cur.getAlt()?has_content></#if> /> 
822															<p class="evr-detailsnews__details-figure"><#if cur.getPieImagen()?has_content>${cur.getPieImagen()}</#if></p> 
823														</figure> 
824													</div> 
825												</#if> 
826												<#--  DESCRIPCION  --> 
827												<#if cur.getDescripcion()?has_content> 
828													${cur.getDescripcion()} 
829												</#if> 
830											</div> 
831											<#--  ENLACE DESCARGA  --> 
832											<#if cur.getFicheroAdjunto()?? && cur.getFicheroAdjunto()?has_content && cur.getFicheroAdjunto() != ""> 
833												<#assign uuId = cur.getFicheroAdjunto()?split("/")?last?split("?")[0] /> 
834												<#assign scope = cur.getFicheroAdjunto()?split("/documents/")?last?split("/")?first> 
835												<#assign file = dlFileEntryService.getFileEntryByUuidAndGroupId(uuId, scope?number)> 
836												<#assign tamanoMb = tFichero(file.getSize()) /> 
837												<#if file.getTitle()?contains(".")> 
838													<#assign nombreFMod = file.getTitle()?split(".")[0] /> 
839												<#else> 
840													<#assign nombreFMod = file.getTitle() /> 
841												</#if> 
842												<#if file.getTitle()?split(".")[1]??> 
843													<#assign fFormato = file.getTitle()?split(".")[1]?upper_case /> 
844													<#assign archivoAdjuntoA = cur.getFicheroAdjunto() /> 
845												</#if> 
846												<#if cur.getTextoEnlace()?has_content> 
847													<#assign titleA = cur.getTextoEnlace()/> 
848												<#else> 
849													<#assign titleA = cur.getFicheroAdjunto()?split("/")?last?split("?")[0] /> 
850												</#if> 
851												<#if fFormato?? && fFormato?has_content> 
852													<a  class="evr-detalle__link evr-detalle__link--download" download="" href="${cur.getFicheroAdjunto()}"> 
853														<span class=""><@liferay.language key="descargar"/> ${fFormato} (${tamanoMb}MB)</span> 
854													</a> 
855												<#else> 
856													<a  class="evr-detalle__link evr-detalle__link--download" download="" href="${cur.getFicheroAdjunto()}"> 
857														<span class=""><@liferay.language key="descargar"/> (${tamanoMb}MB)</span> 
858													</a> 
859												</#if> 
860											</#if> 
861											<#if cur.getEnlaces()?has_content && cur.getTextoEnlace()?has_content> 
862												<p class="evr-normativa-descarga"> 
863													<a class="evr-detalle__link" href="${cur.getEnlaces()}"> 
864														<span class="">${cur.getTextoEnlace()}</span> 
865													</a> 
866												</p> 
867											</#if> 
868										</div> 
869									</div> 
870								</#if> 
871								<#assign currentIndex = (cur.getIndice()?split(".")?size-1)> 
872								<#assign total = listaIndicesOrdenada?size> 
873								<#if counter + 1 lt total> 
874									<#assign nextElement = listaIndicesOrdenada[counter + 1]> 
875									<#assign nextIndex = (nextElement.getIndice()?split(".")?size-1)> 
876								<#else> 
877									<#assign nextIndex = 0> 
878								</#if> 
879								<#if currentIndex lt nextIndex> 
880								<#elseif currentIndex == nextIndex > 
881									</div> 
882								<#else> 
883									<#assign total_number = currentIndex - nextIndex> 
884									<#list 0..total_number as i> 
885										</div> 
886									</#list> 
887								</#if> 
888							<#assign counter = counter + 1> 
889						</#list> 
890					</#if> 
891					</div> 
892				</#if> 
893		</div> 
894	</div> 
895 
896	<#function tFichero fichero> 
897		<#assign tamanoF = (fichero/1024)/1024 /> 
898		<#if tamanoF?split(".")[0]?number == 0 > 
899			<#assign tamanoF = 0.01 /> 
900		</#if> 
901		<#return (tamanoF?string["0.##"]) /> 
902	</#function> 
903 
904	<script> 
905		$( document ).ready(function() { 
906var lateralPics = $(".evr-detalle__img-lateral").length; 
907var detallePics = $(".evr-detalle__img").length; 
908var loadedLateral = 0; 
909var loadedDetalle = 0; 
910$(".evr-detalle__img-lateral").each(function() { 
911let foto = new Image() 
912foto.onload = () => { 
913let ancho=foto.naturalWidth; 
914let parentElem = $(this).closest('figure').length > 0 ? $(this).closest('figure') : $(this).parent(); 
915if(ancho>740){ 
916if(!$(parentElem).hasClass("playimagevinc")){ 
917$(parentElem).addClass("playimag"); 
918$(parentElem).addClass("evr-imagen-detalle__icon-ampliacion"); 
919}else{ 
920$(parentElem).addClass("evr-imagen-detalle__icon-ampliacion"); 
921
922					}else{ 
923$(parentElem).removeClass("playimagevinc"); 
924$(parentElem).removeClass("evr-imagen-detalle__icon-ampliacion"); 
925
926					loadedLateral++; 
927					if(loadedDetalle === detallePics && loadedLateral === lateralPics)  poPupEmergenteImagenesVideos(); 
928
929				foto.src=$(this).attr("src"); 
930			}); 
931			$(".evr-detalle__img").each(function() { 
932let foto = new Image() 
933foto.onload = () => { 
934let ancho=foto.naturalWidth; 
935let parentElem = $(this).closest('figure').length > 0 ? $(this).closest('figure') : $(this).parent(); 
936if(ancho>740){ 
937if(!$(parentElem).hasClass("playimagevinc")){ 
938$(parentElem).addClass("playimag"); 
939$(parentElem).addClass("evr-imagen-detalle__icon-ampliacion"); 
940}else{ 
941$(parentElem).addClass("evr-imagen-detalle__icon-ampliacion"); 
942
943					}else{ 
944$(parentElem).removeClass("playimagevinc"); 
945$(parentElem).removeClass("evr-imagen-detalle__icon-ampliacion"); 
946 
947
948					loadedDetalle++; 
949					if(loadedDetalle === detallePics && loadedLateral === lateralPics)  poPupEmergenteImagenesVideos(); 
950
951				foto.src=$(this).attr("src"); 
952			}) 
953			//poPupEmergenteImagenesVideos(); 
954		}); 
955		$('.evr-galery__carrousel-fig').parent().on('afterChange', function(event, slick, currentSlide){ 
956let $el = $(".evr-galery__carrousel-fig.slick-slide.slick-current.slick-active").first(); 
957$('[data-showpieimg="true"]').addClass('hidden'); 
958$('[data-showpieimg="true"][data-pieimg="'+$el.attr("data-pieimg")+'"]').removeClass("hidden"); 
959}); 
960		$('.evr-detalle__subtitle.evr-detalle__subtitle--primary.evr-desple').click( 
961			function(){ $(this).toggleClass('poser') }, 
962			function(){ $(this).toggleClass('poser') } 
963		); 
964		$('.evr-detalle__subtitle.evr-detalle__subtitle--primary.evr-desple').click( 
965			function(){ $(this).focus() }, 
966			function(){ $(this).blur() } 
967		); 
968	</script> 
969 
970	<style> 
971.evr-detalle__subtitle{ 
972width: auto; 
973
974.evr-detalle__link{ 
975display: inline; 
976
977.evr-lis_lista_top{ 
978position: relative; 
979top: 10px; 
980width: 100% !important; 
981
982.evr-lis_lista_top_img{ 
983position: relative; 
984top: 10px; 
985width: 68% !important; 
986
987.evr-lis_lista_top_description{ 
988position: relative; 
989width: 68% !important; 
990
991@media only screen and (max-width: 768px){ 
992.evr-lis_lista_top_img{ 
993position: relative; 
994top: 10px; 
995width: 100% !important; 
996
997.evr-lis_lista_top_description{ 
998width: 100% !important; 
999
1000.evr-detalle__txt img { 
1001margin: 0; 
1002
1003.evr-detalle__box-text--primary { 
1004width: 100%!important; 
1005
1006.evr-detalle__box-figure--primary{ 
1007width: 100%!important; 
1008margin-right:0px; 
1009display: inline-block; 
1010
1011.nivelindice0 .evr-detalle__box-text { 
1012width: 100%!important; 
1013
1014
1015.evr-detalle__txt { 
1016overflow: initial; 
1017
1018 
1019.evr-detalle__no-text { 
1020display: flex; 
1021flex-wrap: wrap; 
1022flex-direction: row-reverse; 
1023width:100%; 
1024
1025 
1026.evr-detalle-complete { 
1027display: flex; 
1028flex-wrap: wrap; 
1029
1030.nivelindice0 .evr-detalle__box-text { 
1031width: 75%; 
1032
1033.evr-detalle__box-text--primary { 
1034width: 100%; 
1035
1036.evr-detalle__box-figure--primary{ 
1037width: 25%; 
1038margin-right:100px; 
1039display: inline-block; 
1040
1041.evr-detalle__no-img .evr-lis_lista_top_description { 
1042width: 100%!important; 
1043
1044.evr-detalle__no-img .evr-detalle__box-figure--primary { 
1045margin-right: 0; 
1046
1047.evr-detalle__no-img { 
1048padding-right: 0; 
1049
1050.evr-detalle-complete .evr-lis_lista_top_description { 
1051width: 100% !important; 
1052
1053.nivelindice0 .evr-detalle__box-text.evr-detalle__box-no-img-apartado { 
1054width: 100%; 
1055
1056</style> 
1057 
1058<script> 
1059procesarContenido(); 
1060eliminarMarginBottom(); 
1061</script> 
1062</#if>