Poder Judiciário do Estado do Rio de Janeiro
Autofit Section
TJRJ declara inconstitucionais artigos de lei de cotas nos cargos em comissão do Município do Rio
Um erro ocorreu enquanto processava o modelo.
The following has evaluated to null or missing:
==> sepFotoGaleria.getChild("imagemGaleria") [in template "10112#156075#5110204" at line 95, column 33]
----
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 itensGaleria = sepFotoGaleria... [in template "10112#156075#5110204" at line 95, column 9]
----
1<style>
2 .visualizar-conteudo .portlet-content-container .slider-noticia img {
3 margin-bottom: 0;
4 }
5
6 .conteudo img{
7 height: auto;
8 max-width: 100%;
9 }
10
11 .infoShare {
12 display: flex;
13 justify-content: space-between;
14 }
15
16 .share ul li a {
17 margin-bottom: 10px;
18 padding: 0 15px 0 5px;
19 text-decoration: none;
20 outline: none;
21 }
22
23 .share ul li a img {
24 margin: 0;
25 filter: invert(70%) sepia(67%) saturate(4757%) hue-rotate(159deg) brightness(95%) contrast(103%);
26 max-height: 20px;
27 }
28
29 .share ul li a img:hover {
30 filter: invert(92%) sepia(2%) saturate(7%) hue-rotate(140deg) brightness(97%) contrast(93%);
31 }
32
33 @media screen and (max-width: 768px){
34 .infoShare {
35 display: inline-block;
36 }
37 .share {
38 margin-top:10px;
39 }
40 }
41
42</style>
43
44<#setting locale="pt_BR">
45
46<#assign currentURL = themeDisplay.getPortalURL() + themeDisplay.getURLCurrent()>
47
48<div class="noticia">
49 <div class="titulo portlet-title-text">
50 ${.vars['reserved-article-title'].data}
51 </div>
52
53 <div class="infoShare">
54 <#if autor.getData()?has_content>
55 <div class="autor">
56 <#assign displayDate = .vars['reserved-article-display-date'].data?datetime("EEE, d MMM yyyy HH:mm:ss Z")>
57 <#assign minutesToCheck = displayDate?string("mm")>
58 <#if minutesToCheck == "00">
59 Notícia publicada por <span class="nome">${autor.getData()}</span> em ${displayDate?string("dd/MM/yyyy HH'h'")}
60 <#else>
61 Notícia publicada por <span class="nome">${autor.getData()}</span> em ${displayDate?string("dd/MM/yyyy HH'h'mm")}
62 </#if>
63 </div>
64 </#if>
65 <div class="share slide-in from-left">
66 <ul class="">
67 <li class="btn-share-whatsapp">
68 <a target="_blank" href="https://wa.me/?text=${currentURL}"><img alt="Botão de Compartilhamento para o WhatsApp" height="20" width="20" src="/documents/d/global/whatsapp-brands-solid" /></a>
69 </li>
70 <li class="btn-share-facebook">
71 <a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=${currentURL}"><img alt="Botão de Compartilhamento para o Facebook" height="20" width="20" src="/documents/d/global/facebook-f-brands-solid" /></a>
72 </li>
73 <li class="btn-share-twitter">
74 <a target="_blank" href="https://x.com/intent/tweet?text=${.vars['reserved-article-title'].data}!%20${currentURL}"><img alt="Botão de Compartilhamento para o Twitter" height="20" width="20" src="/documents/d/global/x-twitter-brands-solid" /></a>
75 </li>
76 <li class="btn-share-email">
77 <a target="_blank" href="mailto:?subject=${.vars['reserved-article-title'].data}!&body=${currentURL}" target="_blank"><img alt="Botão de Compartilhamento para o E-mail" height="20" width="20" src="/documents/d/global/envelope-regular" /></a>
78 </li>
79 <li class="btn-share">
80 <a href="#" onclick="btnShare()" title="Compartilhar"><img alt="Botão de Compartilhamento Geral" height="20" width="20" src="/documents/d/global/share-nodes-solid" /></a>
81 </li>
82 </ul>
83 </div>
84 </div>
85
86 <div class="subtitulo">
87 ${subtitulo.getData()}
88 </div>
89
90 <div class="conteudo">
91 ${conteudo.getData()}
92 </div>
93
94 <#if sepFotoGaleria??>
95 <#assign itensGaleria = sepFotoGaleria.getChild("imagemGaleria").getSiblings() />
96 <#assign possuiGaleria = (itensGaleria?first).getData()?has_content />
97
98 <#if possuiGaleria>
99 <div id="noticia-galeria-wrapper">
100 <div class="titulo portlet-title-text">
101 <span>Galeria de Imagens</span>
102 </div>
103 <div id="noticiaGaleria" class="slider-noticia">
104 <#list itensGaleria as itemGaleria>
105 <#attempt>
106 <div class="slide">
107 <a href="${itemGaleria.getData()}" data-fileentryid='${itemGaleria.getAttribute("fileEntryId")}' title='${itemGaleria.getAttribute("alt")}' data-naodesativarclick='true'>
108 <img src="${itemGaleria.getData()}&imageThumbnail=1" alt='${itemGaleria.getAttribute("alt")}'>
109 </a>
110 </div>
111 <#recover>
112 <!-- Nao foi possivel carregar imagem da galeria: ${.error} -->
113 </#attempt>
114 </#list>
115 </div>
116 </div>
117
118 <script>
119 AUI().ready('aui-image-viewer', function(A) {
120 var viewportRegion = A.getDoc().get('viewportRegion');
121
122 var maxHeight = (viewportRegion.height);
123 var maxWidth = (viewportRegion.width);
124
125 var playingMediaIndex = -1;
126
127
128 $(".slider-noticia").bxSlider({
129 pager: false,
130 minSlides: 1,
131 maxSlides: 5,
132 slideMargin: 19,
133 slideWidth: 201,
134 adaptiveHeight: true
135 });
136
137
138 var imageViewer = new A.ImageViewer(
139 {
140 delay: 5000,
141 links: '#noticiaGaleria :not(.bx-clone) a',
142 infoTemplate: 'Imagem {current} de {total}',
143 maxHeight: maxHeight,
144 maxWidth: maxWidth,
145 captionFromTitle: true,
146 playing: false,
147 preloadAllImages: true,
148 preloadNeighborImages: true,
149 showInfo: true,
150 showPlayer: true,
151 zIndex: ++Liferay.zIndex.WINDOW
152 }).render();
153 });
154
155 </script>
156 </#if>
157 </#if>
158
159 <script>
160 //funcionamento do botão btn-share com uma WEB API
161 function btnShare() {
162 navigator.share({url: "${currentURL}"});
163 }
164 </script>
165
166</div>
167
168<div class="button-wrapper voltar">
169 <button type="button" class="btn btn-amarelo" onclick="history.go(-1);" title="Voltar para a página anterior">Voltar</button>
170</div>