Se ha producido un error al procesar la plantilla.
Syntax error in template "20100#20136#67787689" in line 97, column 140: Found string literal: ")> <#assign styleWeb = ". Expecting: number
1<!--
2Template Name: Contenido Final Agregadoras
3Template Description: Contenido Final Agregadoras
4Template Key: CONTENIDO_FINAL
5Structure Key: CONTENIDO_FINAL
6Cacheable: true
7Small Image: false
8-->
9<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
10<#assign freemarkerUtilities = serviceLocator.findService("es.aragon.base.freemarker_utilities.api.FreemarkerUtilities")/>
11<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")/>
12<#assign portletLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.PortletLocalService")>
13<#assign imgSmall = .vars['reserved-article-small-image-url'].data/>
14<#assign journalArticleId = .vars['reserved-article-id'].data/>
15<#if journalArticleLocalService.fetchLatestArticle(themeDisplay.getScopeGroupId(), journalArticleId, 0)??>
16 <#assign journalArticle = journalArticleLocalService.fetchLatestArticle(themeDisplay.getScopeGroupId(), journalArticleId, 0)/>
17<#else>
18 <#assign journalArticle = journalArticleLocalService.fetchLatestArticle(themeDisplay.getScopeGroupId(), journalArticleId, -1)/>
19</#if>
20<#assign articleCategories = freemarkerUtilities.getArticleCategories(journalArticle, locale)/>
21<#assign organismos = freemarkerUtilities.filterVocabularyCategoriesFromArticleCategories(themeDisplay.getScopeGroupId(), "Organismos", articleCategories)/>
22<#assign temas = freemarkerUtilities.filterVocabularyCategoriesFromArticleCategories(themeDisplay.getScopeGroupId(), "Temas", articleCategories)/>
23<#assign statsUpdate = freemarkerUtilities.updateStats(renderRequest,themeDisplay.getScopeGroupId(), temas, "Temas")/>
24<#assign municipios = freemarkerUtilities.filterVocabularyCategoriesFromArticleCategories(themeDisplay.getScopeGroupId(), "Municipios", articleCategories)/>
25<#assign procedures = freemarkerUtilities.filterVocabularyCategoriesFromArticleCategories(themeDisplay.getScopeGroupId(), "Tramites", articleCategories)/>
26<#assign cuerpoPrincipal = cuerpo_principal.getData()/>
27<#assign cuerpoSecundario = cuerpo_secundario.getData()/>
28<#assign VOID = freemarkerUtilities.incrementViewCounter(journalArticle.getResourcePrimKey(), themeDisplay.getUserId())/>
29<#assign isNotice = freemarkerUtilities.getArticleCategoriesNotices(journalArticle, locale)/>
30<#assign h2Elements = []/>
31<#if getterUtil.getBoolean(generar_anclas.getData())>
32
33 <#assign sourceElements = [] />
34 <#assign sourceElements = sourceElements + [cuerpoPrincipal] />
35 <#assign sourceElements = sourceElements + [cuerpoSecundario] />
36 <#assign h2Elements = freemarkerUtilities.getH2Elements(sourceElements)/>
37 <#assign elementsWithAnchors = freemarkerUtilities.addAnchorIds(sourceElements)/>
38 <#if elementsWithAnchors?? && elementsWithAnchors?has_content>
39 <#if elementsWithAnchors[0]?? && elementsWithAnchors[0] != "">
40 <#assign cuerpoPrincipal = elementsWithAnchors[0]/>
41 </#if>
42 <#if elementsWithAnchors[1]?? && elementsWithAnchors[1] != "">
43 <#assign cuerpoSecundario = elementsWithAnchors[1]/>
44 </#if>
45 </#if>
46 <#else>
47</#if>
48<#assign showElementGallery = false>
49<#list galeria_contenidos_titulo.contenido.getSiblings() as tipoContenido>
50 <#if tipoContenido.tituloEnlace.link.getData()?? && tipoContenido.tituloEnlace.link.getData() != "">
51 <#assign showElementGallery = true>
52 </#if>
53</#list>
54<#assign journalArticleTitle = .vars['reserved-article-id'].data/>
55<#assign journalNav = freemarkerUtilities.getNavigationMenuByJournaId(journalArticleTitle,themeDisplay)/>
56<#assign navJournalId = journalNav[0] />
57<#assign navJournalddmTemplateKey = journalNav[1] />
58
59<#if navJournalId != "0" && journalArticleLocalService.fetchLatestArticle(themeDisplay.getScopeGroupId(), navJournalId, 0)??>
60 <@liferay_journal["journal-article"]
61 articleId =navJournalId
62 ddmTemplateKey=navJournalddmTemplateKey
63 groupId = themeDisplay.getScopeGroupId()/>
64</#if>
65<#assign journalNavMenu = freemarkerUtilities.getNavigationMenuByJournaIdAndTemplateKey(journalArticleTitle,"NAVEGACION_CONTENIDO_FINAL_MENU",themeDisplay)/>
66<#assign navJournalIdMenu = journalNavMenu[0] />
67<#assign navJournalddmTemplateKeyMenu = journalNavMenu[1] />
68
69<#if navJournalIdMenu != "0" && journalArticleLocalService.fetchLatestArticle(themeDisplay.getScopeGroupId(), navJournalIdMenu, 0)??>
70 <@liferay_journal["journal-article"]
71 articleId =navJournalIdMenu
72 ddmTemplateKey=navJournalddmTemplateKeyMenu
73 groupId = themeDisplay.getScopeGroupId()/>
74</#if>
75
76<div class="container">
77 <div class="detail-news-module u-padding-bottom-6">
78 <#if showElementGallery == true>
79 <section role="region" class="u-padding-bottom-6 readSpeakerOrigin" aria-labelledby="tituloGaleriaSection">
80 <div class="container">
81 <div class="gallery-module">
82 <div class="col">
83 <div class="swiper-container">
84 <ul class="swiper-wrapper my-gallery" itemscope itemtype="http://schema.org/ImageGallery">
85 <#list galeria_contenidos_titulo.contenido.getSiblings() as tipoContenido>
86 <#if tipoContenido.tituloEnlace.link.getData()?? && tipoContenido.tituloEnlace.link.getData() != "">
87 <li class="swiper-slide link-menu" itemprop="associatedMedia" itemscope itemtype="http://schema.org/ImageObject">
88 <#assign styleWeb = "web-no-icon" >
89 <#if tipoContenido.galeria_imagenes_imagen.getData()?? && tipoContenido.galeria_imagenes_imagen.getData() != "">
90 <#attempt>
91 <#assign fileEntry = freemarkerUtilities.getFileEntryByURL("${tipoContenido.galeria_imagenes_imagen.getData()})/>
92 <#recover>
93 <#assign fileEntry = ""/>
94 </#attempt>
95 <#if fileEntry?? && fileEntry?has_content>
96 <#assign fileEntryType = fileEntry.getMimeType()/>
97 <#if fileEntryType?contains("image/")>
98 <#assign styleWeb = "web-menu" >
99 <i class="icon-theme icon-big" style="background-image: url('${tipoContenido.galeria_imagenes_imagen.getData()}');"></i>
100 </#if>
101 </#if>
102 </#if>
103 <a href="${htmlUtil.escape(tipoContenido.tituloEnlace.link.getData())}" class="${styleWeb}">
104 <span>${htmlUtil.escape(tipoContenido.tituloEnlace.getData())}</span>
105 </a>
106 </li>
107 </#if>
108 </#list>
109 </ul>
110 <div class="swiper-pagination"></div>
111 <ul class="list-unstyled m-0" aria-hidden=true>
112 <li title="Anterior" class="swiper-button-prev" aria-hidden=true><span class="oculto">Mostrar elementos anteriores</span></li>
113 <li title="Siguiente" class="swiper-button-next" aria-hidden=true><span class="oculto">Mostrar elementos siguientes</span></li>
114 </ul>
115 </div>
116 </div>
117 </div>
118 </div>
119 </section>
120 <script src="${themeDisplay.getPathThemeRoot()}/js/swiper.min.js"></script>
121 </#if>
122 <#if imgSmall?? && imgSmall != "">
123 <div class="detail-news-module__title-with-image">
124 <div class="detail-news-module__title-with-image__image-container"><img alt="logo_organismo" data-fileentryid="" src="${.vars['reserved-article-small-image-url'].data}"/></div>
125 <div class="detail-news-module__title-with-image__title-container"><h1 id="readSpeakerOrigin" class="detail-news-module__h1 readSpeakerOrigin">${.vars['reserved-article-title'].data}</h1></div>
126 </div>
127 <#else>
128 <h1 id="readSpeakerOrigin" class="detail-news-module__h1 readSpeakerOrigin">${.vars['reserved-article-title'].data}</h1>
129 </#if>
130 <div class="detail-news-module__date-categories">
131 <#assign displayDate = freemarkerUtilities.getDisplayDate(journalArticle, languageUtil.get(locale, "aragon.short-date-format"))/>
132 <#if isNotice =="true">
133 <p class="date"><span>${displayDate}</span></p>
134 </#if>
135 </div>
136 <div class="detail-news-module__intro readSpeakerOrigin">
137 <p>${.vars['reserved-article-description'].data}</p>
138 </div>
139 <#if getterUtil.getBoolean(generar_anclas.getData()) && h2Elements?size gt 1>
140 <div class="detail-news-module__anchor" id="anchorsContainer">
141 <ul class='row listado' id='anchorsList'>
142 <#list h2Elements as cur_h2Element>
143 <#if cur_h2Element?index < 4>
144 <li class='col-xs-12 col-md-6 listado__item'>
145 <a class='link' href="${cur_h2Element.href}">${cur_h2Element.title}</a>
146 </li>
147 </#if>
148 </#list>
149 </ul>
150 </div>
151 </#if>
152 <div class="detail-news-module__body-news">
153 <div class="detail-news-module__body-news__description readSpeakerOrigin">
154 <div id="template-agregador">
155 ${cuerpoPrincipal}
156 </div>
157 </div>
158 <#if video_principal.getData()?? && video_principal.getData() != "">
159 <div class="detail-news-module__video" id="contenedorVideo">
160 <div class="video-container">
161 <a href="${video_principal.getData()}" target="_blank" title="Se abre en ventana nueva">
162 <img id="videoPrincipalThumbnail" src="${themeDisplay.getPathThemeImages()}/dga/default-video.png" alt="<@liferay.language key="aragon.template.contenido-final.video-hosted"/> ${video_principal.getData()}" class="image">
163 <script>
164 $(document).ready(function() {
165getVideoThumbnail("${video_principal.getData()}", "videoPrincipalThumbnail");
166});
167 </script>
168 <img src="${themeDisplay.getPathThemeImages()}/dga/icons/icon-play.svg" alt="Pulsa para navegar al vídeo en ventana nueva" class="icon-play">
169 </a>
170
171
172 </div>
173 <div class="pie-principal-video">
174 <#if video_principal.pie_video_principal.getData()?? && video_principal.pie_video_principal.getData() != "">
175 <p class="pie-foto pie-foto--nombre readSpeakerOrigin"><span class="oculto">Nombre del vídeo:</span>${video_principal.pie_video_principal.getData()}</p>
176 </#if>
177 </div>
178
179 <#if video_principal.descripcion_video_principal.getData()?? && video_principal.descripcion_video_principal.getData() != "">
180 <p class="pie-foto pie-foto--descripcion readSpeakerOrigin"><a href="#descripcionVideoExtensa"><@liferay.language key="aragon.template.noticia.read-complete-description"/></a></p>
181 </#if>
182
183 </div>
184 </#if>
185 <div class="detail-news-module__body-news__description">
186 ${cuerpoSecundario}
187 </div>
188 </div>
189 </div>
190 </div>
191<#if (video_principal.descripcion_video_principal.getData()?? && video_principal.descripcion_video_principal.getData() != "")>
192 <div class="container u-padding-bottom-6">
193 <div class="detail-news-module__image-acc-description readSpeakerOrigin u-padding-bottom-3">
194 <#if video_principal.descripcion_video_principal.getData()?? && video_principal.descripcion_video_principal.getData() != "">
195 <h2 id="descripcionVideoExtensa" tabindex="-1" class="detail-news-module__image-acc-description__label"><@liferay.language key="aragon.template.noticia.complete-video-description"/></h2>
196 <p class="detail-news-module__image-acc-description__text">
197 ${video_principal.descripcion_video_principal.getData()}
198 <a href="#contenedorVideo"><@liferay.language key="aragon.template.noticia.back-to-video"/></a>
199 </p>
200 </#if>
201 </div>
202 </div>
203</#if>
204<#if isNotice =="false">
205<#assign modifiedDate = freemarkerUtilities.getLastPublishDate(journalArticle, languageUtil.get(locale, "aragon.short-date-format"))/>
206 <div class ="container">
207 <div class="detail-news-module__date-categories">
208 <p class="date"><span><@liferay.language key="last-updated"/>: ${modifiedDate}</span></p>
209 </div>
210 </div>
211</#if>
212<#if listado_enlaces_titulo.titulo_enlace?? && listado_enlaces_titulo.titulo_enlace.getData()?has_content>
213 <h2 class="oculto" id="tituloListadoEnlacesSection">Información y recursos asociados</h2>
214 <section role="region" class="download-module u-padding-bottom-3 readSpeakerOrigin" aria-labelledby="tituloListadoEnlacesSection">
215 <div class="top-bar top-bar--border-yellow">
216 <div class="container top-bar__labels">
217 <p class="title">
218 <span class="pull-left">${listado_enlaces_titulo.getData()}</span>
219 </p>
220 </div>
221 </div>
222 <#if listado_enlaces_titulo.titulo_enlace.getSiblings()?has_content>
223 <div class="container u-container-mobile-0">
224 <div class="list-news-module">
225 <ul class="listado">
226 <#list listado_enlaces_titulo.titulo_enlace.getSiblings() as cur_enlace>
227 <#if cur_enlace.getData()?has_content>
228 <#assign enlaceURL = cur_enlace.enlace_url.getData()/>
229 <#if cur_enlace.documento.getData()?has_content>
230 <#assign enlaceURL = cur_enlace.documento.getData()/>
231 </#if>
232 <#assign enlaceSize = ""/>
233 <#if cur_enlace.enlace_size?? && cur_enlace.enlace_size.getData()?has_content>
234 <#assign enlaceSize = "(" + cur_enlace.enlace_size.getData() + ")"/>
235 </#if>
236 <li class="col-12 listado__item listado__item--dark-border">
237 <a href="${enlaceURL}" class="link download" target="_blank" title="<@liferay.language key="aragon.template.contenido-final.open-url"/>">
238 <span class="title pull-left">${cur_enlace.getData()}</span>
239 <#if cur_enlace.enlace_tipo.getData() == "page">
240 <span class="icon pull-right">
241 <img src="${themeDisplay.getPathThemeImages()}/dga/icons/icon-external-link.svg" alt="Página web">
242 </span>
243 <#else>
244 <span class="icon pull-right">
245 <img src="${themeDisplay.getPathThemeImages()}/dga/icons/icon-${cur_enlace.enlace_tipo.getData()}.svg" alt="Documento ${cur_enlace.enlace_tipo.getData()} ${enlaceSize}">
246 </span>
247 </#if>
248 </a>
249 </li>
250 </#if>
251 </#list>
252 </ul>
253 </div>
254 </div>
255 </#if>
256 </section>
257</#if>
258<section class="u-padding-bottom-6 readSpeakerOrigin">
259 <nav class="asociados" aria-label="Menús asociados" role="navigation">
260 <div class="container">
261 <ul class="asociados__listado">
262 <#if organismos?has_content>
263 <li class="col-xs-12 col-sm-6 col-md-3 item">
264 <p class="title">Organismos asociados</p>
265 <ul class="submenu-listado">
266 <#list organismos as organismo>
267 <#assign organismoshref = freemarkerUtilities.getAssetCategoryURL(request, organismo.getCategoryId(), false)/>
268 <li class="submenu-listado__item">
269 <a href="${organismoshref}" class="link">${organismo.getTitle(locale)}</a>
270 </li>
271 </#list>
272 </ul>
273 </li>
274 </#if>
275 <#if temas?has_content>
276 <li class="col-xs-12 col-sm-6 col-md-3 item">
277 <p class="title">Temas asociados</p>
278 <ul class="submenu-listado">
279 <#list temas as tema>
280 <#assign temashref = freemarkerUtilities.getAssetCategoryURL(request, tema.getCategoryId(), false)/>
281 <li class="submenu-listado__item">
282 <a href="${temashref}" class="link">${tema.getTitle(locale)}</a>
283 </li>
284 </#list>
285 </ul>
286 </li>
287 </#if>
288 <#if municipios?has_content>
289 <li class="col-xs-12 col-sm-6 col-md-3 item">
290 <p class="title">Municipios asociados</p>
291 <ul class="submenu-listado">
292 <#list municipios?sort_by("title") as municipio>
293 <#assign municipiohref = freemarkerUtilities.getAssetCategoryURL(request, municipio.getCategoryId(), false)/>
294 <li class="submenu-listado__item municipalitieName">
295 <a href="${municipiohref}" class="link">${municipio.getTitle(locale)}</a>
296 </li>
297 </#list>
298 </ul>
299 </li>
300 </#if>
301 <#if procedures?has_content>
302 <li class="col-xs-12 col-sm-6 col-md-3 item">
303 <p class="title">Trámites asociados</p>
304 <ul class="submenu-listado">
305 <#list procedures as procedure>
306 <#assign procedurehref = freemarkerUtilities.getAssetcategoryProcedureURL(request, procedure.getCategoryId())/>
307 <#assign customTitleProcedure = freemarkerUtilities.getCustomTitleProcedures(procedure, locale)/>
308 <li class="submenu-listado__item">
309 <a href="${procedurehref}" class="link">${customTitleProcedure}</a>
310 </li>
311 </#list>
312 </ul>
313 </li>
314 </#if>
315 <li class="col-xs-12 col-sm-6 col-md-3 item">
316 <p class="title">Datos abiertos</p>
317 <ul class="submenu-listado">
318 <#assign openDatahref = freemarkerUtilities.getOpenDataURLFromJournal(journalArticle)/>
319 <li class="submenu-listado__item">
320 <a href="${openDatahref}" class="link" target="_blank" title="Se abre en un nuevo portal web">Aragón Open Data </a>
321 </li>
322 </ul>
323 </li>
324 </ul>
325 </div>
326 </nav>
327</section>
328
329<#if serviceLocator.findService("es.aragon.base.jsonld_generator.api.JSONLDGenerator")?? && serviceLocator.findService("es.aragon.base.jsonld_generator.api.JSONLDGenerator")?has_content>
330 <#assign jsonLDGenerator = serviceLocator.findService("es.aragon.base.jsonld_generator.api.JSONLDGenerator")/>
331 <#assign jsonLDGeneratorJournal = jsonLDGenerator.getJournalArticleJsonLD2(articleCategories,themeDisplay) />
332 <#if jsonLDGeneratorJournal != "">
333 <script type="application/ld+json">
334 ${jsonLDGeneratorJournal}
335 </script>
336 </#if>
337 <#assign allCategoriesArticle = freemarkerUtilities.getAllArticleCategories(journalArticle, locale)/>
338 <#assign jsonLDGeneratorCategories = jsonLDGenerator.getCategoriesJsonLD2(allCategoriesArticle, themeDisplay) />
339 <#if jsonLDGeneratorCategories != "">
340 <script type="application/ld+json">
341 ${jsonLDGeneratorCategories}
342 </script>
343 </#if>
344 <input type="hidden" id="organisms" value="${jsonLDGenerator.getOrganismosFromJsonLD(articleCategories, locale)}">
345</#if>
346<script>
347$(document).ready(function(){
348var count = 0;
349$('#template-agregador ul li img').each(function(){
350count++;
351$(this).closest('ul').addClass("last-news-module__listado");
352var list = $(this).closest('li');
353list.addClass("col-12 col-sm-12 col-md-4 item-img");
354var picture = $(this).closest('picture');
355if(picture.length>0){
356var link = picture.next();
357link.addClass("img-title-container wrap_"+count);
358link.html('<p class=title>'+link.text()+'</p>');
359picture.addClass("wrap_"+count);
360$(".wrap_"+count).wrapAll('<div class="head-news" />');
361picture.appendTo(link);
362picture.wrap("<div class='image img_"+count+"'></div>");
363}else{
364var picture = $(this).closest('img');
365var link = picture.next();
366if(link.is("a")){
367link.addClass("img-title-container wrap_"+count);
368link.html('<p class=title>'+link.text()+'</p>');
369picture.addClass("wrap_"+count);
370$(".wrap_"+count).wrapAll('<div class="head-news" />');
371picture.appendTo(link);
372picture.wrap("<div class='image img_"+count+"'></div>");
373}else{
374var link2 = picture.parent();
375link2.addClass("img-title-container wrap_"+count);
376link2.html('<p class=title>'+link2.text()+'</p>');
377picture.addClass("wrap_"+count);
378$(".wrap_"+count).wrapAll('<div class="head-news" />');
379picture.appendTo(link2);
380picture.wrap("<div class='image img_"+count+"'></div>");
381}
382 }
383 });
384});
385$(window).on("load",function(){
386if(window.location.hash) {
387var urlHash = window.location.hash.substring(1);
388var anchorElement = document.getElementById(urlHash);
389var bannerheight = document.getElementById("banner");
390if(anchorElement != ""){
391var anchorTop = anchorElement.offsetTop;
392if(bannerheight != ""){
393anchorTop -= bannerheight.offsetHeight;
394var headerHeight;
395headerHeight = anchorElement.offsetTop - $('.new-header').height();
396var positionContent = headerHeight + 200;
397$('html,body').animate({
398scrollTop: positionContent }
399 , 100);
400 }
401 }
402 }
403});
404</script>
¿Te ha resultado útil esta página?
Tu respuesta nos ayudará a mejorar la web
Gracias por tu valoración
Para cualquier consulta, escríbenos a portalpublico@aragon.es
Puedes dejar aquí tu comentario anónimo.