Um erro ocorreu enquanto processava o modelo.
The following has evaluated to null or missing:
==> ImgDestaqueLegenda [in template “10132#10165#32400897” at line 36, column 22]
—-
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: ${ImgDestaqueLegenda.getData()} [in template “10132#10165#32400897” at line 36, column 20]
—-
1<#assign posicaoLegenda = (getterUtil.getString(themeDisplay.getThemeSetting(“posicao da legenda do carrossel”)) == “Dentro da imagem”)?then(‘inside-description’,’outside-description’) />
2<#assign tempoCarrossel = getterUtil.getString(themeDisplay.getThemeSetting(“velocidade de repoducao do carrossel”)) />
3<#assign id = randomNamespace />
4<#assign currentUrl=themeDisplay.getPortalURL() + “/-/” + .vars[‘reserved-article-url-title’].data/>
5
6<#macro renderCarouselItems itens thumbnails>
7 <#list itens as file>
8 <div class=”galery-image ${file.getAttribute(“alt”)?has_content?then(posicaoLegenda, ”)}”>
9 <div class=”multimidia-wrapper”>
10 <img alt=”${file.getAttribute(“alt”)???then(file.getAttribute(“alt”),””)}” src=”${file.getData()}${thumbnails?then(‘?imageThumbnail=1’,”)}” data-caption=”${file.getAttribute(“alt”)?has_content?then(file.getAttribute(“alt”), ”)}” />
11 </div>
12 <#if file.getAttribute(“alt”)?has_content && !thumbnails>
13 <p class=”d-none d-sm-block ${posicaoLegenda}”>${file.getAttribute(“alt”)}</p>
14 </#if>
15 </div>
16 </#list>
17</#macro>
18
19<div class=”noticia-wrapper”>
20 <p><em>${.vars[‘reserved-article-description’].data}</em></p>
21
22 <div class=”social-media-share mobile”>
23 <a class=”share-facebook” href=”https://www.facebook.com/sharer.php?u=${currentUrl}” target=”_blank” target=”_blank”></a>
24 <a class=”share-twitter” href=”http://twitter.com/intent/tweet?text=${.vars[‘reserved-article-title’].data}%0AVeja%20mais%20em:&url=${currentUrl}” target=”_blank”></a>
25 <a class=”share-linkedin” href=”https://www.linkedin.com/shareArticle?mini=true&url=${currentUrl}&title=${.vars[‘reserved-article-title’].data}” target=”_blank”></a>
26 <a class=”share-whatsapp” href=”https://web.whatsapp.com/send?text=${currentUrl}” target=”_blank”></a>
27 <a class=”share-googleplus” href=”https://plus.google.com/share?url=${currentUrl}” target=”_blank”></a>
28 </div>
29
30 <div class=”news-body”>
31 <#if imagem_destaque.getData()?? && imagem_destaque.getData() != “”>
32 <div class=”imagem-da-noticia”>
33
34
35 <img alt=”${imagem_destaque.getAttribute(‘alt’)}” src=”${imagem_destaque.getData()}” />
36 <p>${ImgDestaqueLegenda.getData()}</p>
37 <div class=”social-media-share”>
38 <a class=”share-facebook” href=”https://www.facebook.com/sharer.php?u=${currentUrl}” target=”_blank” target=”_blank”></a>
39 <a class=”share-twitter” href=”http://twitter.com/intent/tweet?text=${.vars[‘reserved-article-title’].data}%0AVeja%20mais%20em:&url=${currentUrl}” target=”_blank”></a>
40 <a class=”share-linkedin” href=”https://www.linkedin.com/shareArticle?mini=true&url=${currentUrl}&title=${.vars[‘reserved-article-title’].data}” target=”_blank”></a>
41 <a class=”share-whatsapp” href=”https://web.whatsapp.com/send?text=${currentUrl}” target=”_blank”></a>
42 <a class=”share-googleplus” href=”https://plus.google.com/share?url=${currentUrl}” target=”_blank”></a>
43 </div>
44 </div>
45 </#if>
46
47 <div class=”materia”>${materia.getData()}</div>
48
49 <#– Carousel –>
50 <#if imagem_carrossel.getSiblings()?has_content && imagem_carrossel.getData()?has_content>
51 <h4>Mais imagens</h4>
52
53 <div class=”thumbnails-nav-wrapper”>
54 <div class= “thumbnails-nav” id=”slider-${id}”>
55 <@renderCarouselItems imagem_carrossel.getSiblings() true />
56 </div>
57 <#if (imagem_carrossel.getSiblings()?size > 5)>
58 <span class=”glyphicon glyphicon-pause” id=”slider-${id}-playpause” aria-hidden=”true”></span>
59 ${imagem_carrossel.getSiblings()?size}
60 </#if>
61 </div>
62
63 <div id=”lightbox-${id}” class=”lightbox-carousel”>
64 <i class=”glyphicon glyphicon-remove”></i>
65 <div class=”slider-gallery-wrapper”>
66 <div class= “slider-gallery” id=”slider-lightbox-${id}”>
67 <@renderCarouselItems imagem_carrossel.getSiblings() false />
68 </div>
69 </div>
70 <div class=”thumbnails-nav-wrapper”>
71 <div class=”thumbnails-nav” id=”thumbnails-${id}-controls”>
72 <@renderCarouselItems imagem_carrossel.getSiblings() true />
73 </div>
74 <#if (imagem_carrossel.getSiblings()?size > 5)>
75 <span class=”glyphicon glyphicon-pause” id=”slider-${id}-lightbox-playpause” aria-hidden=”true”></span>
76 </#if>
77 </div>
78 </div>
79 </#if>
80 </div>
81</div>
82
83<script>
84 $(‘#lightbox-${id} .slider-gallery-wrapper img’).hover(
85 function() {
86 const $text=$($($(this).parent()).next());
87 $text.hasClass(‘inside-description’) && $text.fadeTo( “slow” , 0);
88 }, function() {
89 const $text=$($($(this).parent()).next());
90 $text.hasClass(‘inside-description’) && $text.fadeTo( “slow” , 1);
91 }
92 );
93 $(document).ready(function() {
94 var ${id}autoplaying=${(imagem_carrossel.getSiblings()?size > 5)?c};
95 var ${id}showingLightbox=false;
96 const ${id}playPauseControllers=”#slider-${id}-playpause, #slider-${id}-lightbox-playpause”;
97 $(“#slider-${id}”).slick({
98 slidesToShow: ${(imagem_carrossel.getSiblings()?size > 5)?then(5,imagem_carrossel.getSiblings()?size)},
99 slidesToScroll: 1,
100 autoplay: ${id}autoplaying,
101 swipeToSlide: ${(imagem_carrossel.getSiblings()?size > 5)?c},
102 centerMode: ${(imagem_carrossel.getSiblings()?size > 5)?c},
103 autoplaySpeed: ${tempoCarrossel},
104 focusOnSelect: true,
105 prevArrow:
106 ‘<span class=”glyphicon glyphicon-chevron-left” aria-hidden=”true”></span>’,
107 nextArrow:
108 ‘<span class=”glyphicon glyphicon-chevron-right” aria-hidden=”true”></span>’,
109 centerPadding: “60px”,
110 responsive: [
111 {
112 breakpoint: 767.98,
113 settings: {
114 slidesToShow: 3,
115 adaptiveHeight: true
116 }
117 }
118 ]
119 });
120 $(“#slider-${id}”).slickLightbox({
121 src: ‘src’,
122 itemSelector: ‘.galery-image .multimidia-wrapper img’,
123 caption:’caption’
124 });
125 });
126</script>