Descárgate la app
navarra.es
La información, servicios y trámites del Gobierno de Navarra
Lo más buscado
navarra.es
Los servicios y trámites por temas
Se ha producido un error al procesar la plantilla.
Template inclusion failed (for parameter value "/classic-theme_SERVLET_CONTEXT_/templates/common/MULTIMEDIA.ftl"): Unable to find FreeMarker template with ID classic-theme_SERVLET_CONTEXT_/templates/common/MULTIMEDIA.ftl ---- FTL stack trace ("~" means nesting-related): - Failed at: #include "${fullTemplatesPath}/common... [in template "48155#48801#CARD3" at line 6, column 5] ----
1<#-- Structure Key: CARD -->
2<#-- Template Key: CARD3 -->
3<#-- Template Name: CARD3 -->
4<#-- Template Description: Tarjetas con imagen, título y subtítulo - 3.0 -->
5<#if card?? && card.getSiblings()?has_content>
6 <#include "${fullTemplatesPath}/common/MULTIMEDIA.ftl" />
7
8 <#include "${fullTemplatesPath}/common/MULTIMEDIA.ftl" />
9 <#assign itemsXLine = "auto">
10<#--Obtenemos numero de elementos por linea-->
11 <#if elementos_linea?? &&
12 elementos_linea?has_content &&
13 elementos_linea.getData()?has_content &&
14 elementos_linea.getData() != itemsXLine>
15 <#assign itemsXLine = elementos_linea.getData()>
16 </#if>
17
18 <#assign borderColor = "-light-gray">
19 <#if back?has_content && back.getData()?has_content && back.getData() == "background-color-light-gray">
20 <#assign borderColor = "">
21 </#if>
22
23 <div class="card3">
24 <#if sectionTitle?? && sectionTitle ? has_content && sectionTitle.getData() ? has_content>
25 <h2 class="title inside">
26 ${sectionTitle.getData()}
27 </h2>
28 </#if>
29 <#if card?? && card.getSiblings()?has_content>
30
31 <#if (back.getData()?xhtml)== "background-color-dark-white" >
32 <div class="row">
33 </#if>
34 <div class="row thumb items-x-line-${(itemsXLine == "auto")?then(getMaxItemsXLine(card.getSiblings()),getItemsXLine(card.getSiblings(),itemsXLine?number))} max-size-4-cols movil-border${borderColor} ${back.getData()?xhtml}">
35 <#list card.getSiblings() as cardItem>
36 <div class="col-item hover">
37 <ul style="list-style: none !important; padding-inline-start: 0px !important;">
38 <li>
39 <#if cardItem?has_content && cardItem.url?has_content && cardItem.url.getData()?has_content>
40 <a href="<#if cardItem.url?? && cardItem.url.getData()?has_content>${cardItem.url.getData()?xhtml}</#if>"
41 title="${cardItem.title.getData()?xhtml}"
42 target="<#if cardItem.target?? && cardItem.target.getData()?has_content>${cardItem.target.getData()?xhtml}</#if>"
43 >
44 </#if>
45 <div class="thumbnail">
46 <div class="caption">
47 <#if cardItem.image?? && cardItem.image.getData()?has_content>
48 <@htmlImg imageObject=cardItem.image class="img-responsive" />
49 </#if>
50 <#if cardItem.title?? && cardItem.title.getData()?has_content>
51 <div class="title underline-to-right">
52 ${cardItem.title.getData()}
53 </div>
54 </#if>
55 <#if cardItem.subTitle?? && cardItem.subTitle.getData()?has_content>
56 <div class="subtitle">
57 ${cardItem.subTitle.getData()}
58 </div>
59 </#if>
60 </div>
61 </div>
62 <#if cardItem?has_content && cardItem.url?has_content && cardItem.url.getData()?has_content>
63 </a>
64 </li>
65 </ul>
66 </#if>
67 </div>
68 </#list>
69 </div>
70 <#if (back.getData()?xhtml)== "background-color-dark-white" >
71 </div>
72 </#if>
73 </#if>
74 </div>
75</#if>
76
77<#--Devuelve el máximo número de elementos que puede haber por línea en función-->
78<#--del numero de elementos del listado. -->
79<#--Si el listado tiene un tamaño mayor o igual a 4 -->
80<#-- return 4-->
81<#--Si no-->
82<#-- return list?size-->
83<#function getMaxItemsXLine list>
84 <#assign totalS = list?size>
85 <#if (totalS >= 4)>
86 <#return 4>
87 <#else>
88 <#return totalS>
89 </#if>
90</#function>
91
92<#--Puede ser que le usuario seleccione un número de elementos superior al número-->
93<#--de elementos del listado.-->
94<#--Si el listado tiene un tamaño inferior al número seleccionado de elementos x linea-->
95<#-- return list?size-->
96<#--Si no-->
97<#-- return número elementos x linea-->
98<#function getItemsXLine list selectedItemXLine>
99 <#assign totalS = list?size>
100 <#if (totalS < selectedItemXLine)>
101 <#return totalS>
102 <#else>
103 <#return selectedItemXLine>
104 </#if>
105</#function>
arrow_upward