Pular para o conteúdo
Galeria de Fotos | Banco de Imagens
Voltar

Reunião com a Administração Superior

Um erro ocorreu enquanto processava o modelo.
Error on line 79, column 65 in 20154#20194#25028
dlFileEntryUtil.getDLFileEntryByUuidAndGroupId(uuid, groupId) is undefined.
It cannot be assigned to fileEntry
1<#-- 
2	Nome: Galeria de Imagens (Mod.Global) 
3	Estrutura: Galeria de Imagens (Mod.Global) 
4	Idioma: Freemarker 
5	Descrição: 
6	Fazer cache: não 
7	Data Alteração: 2022 10 31 
8	Tarefa: 51609 
9	Obs.:    
10--> 
11 
12 
13<#if (serviceLocator.findService("com.liferay.portal.service.ReleaseLocalService"))?? > 
14    <script src="http://code.jquery.com/jquery-1.11.3.min.js"></script> 
15     
16    <#assign theme_img_path = "/mt-portal-theme/images" > 
17     
18    <style> 
19    .rg-image-nav a{ 
20    	background:#000 url(${theme_img_path}/nav.png) no-repeat -20% 50%; 
21
22    .es-nav span{ 
23    	background:transparent url(${theme_img_path}/nav_thumbs.png) no-repeat top left; 
24
25    .rg-loading{ 
26    	background:#000 url(${theme_img_path}/ajax-loader.gif) no-repeat center center; 
27
28    .rg-view a{ 
29    	background:#464646 url(${theme_img_path}/views.png) no-repeat top left; 
30
31    .mt-search{display:none;} 
32    .taglib-header .header-back-to a{font-size:1.8em;margin-top:-10px;} 
33    </style> 
34     
35    <script id="img-wrapper-tmpl" type="text/x-jquery-tmpl">	 
36    	<div class="rg-image-wrapper"> 
37    		{{if itemsCount > 1}} 
38    			<div class="rg-image-nav"> 
39    				<a href="#" class="rg-image-nav-prev">Anterior</a> 
40    				<a href="#" class="rg-image-nav-next">Próxima</a> 
41    			</div> 
42    		{{/if}} 
43    		<div class="rg-image"></div> 
44    		<div class="rg-loading"></div> 
45    		<div class="rg-caption-wrapper"> 
46    			<div class="rg-caption" style="display:none;"> 
47    				<p></p> 
48    			</div> 
49    		</div> 
50    	</div> 
51    </script> 
52     
53    <noscript> 
54    	<style> 
55    		.es-carousel ul{ 
56    			display:block; 
57
58    	</style> 
59    </noscript> 
60     
61    <div id="rg-gallery" class="rg-gallery"> 
62    	<div class="rg-thumbs"> 
63    		<div class="es-carousel-wrapper"> 
64    			<div class="es-nav"> 
65    				<span class="es-nav-prev">Previous</span> 
66    				<span class="es-nav-next">Next</span> 
67    			</div> 
68    			<div class="es-carousel"> 
69    				<ul> 
70    					<#if .vars['image'].getSiblings()?has_content> 
71    						<#list .vars['image'].getSiblings() as cur_item> 
72    							<#assign imagem = cur_item.getData() > 
73    							 
74    							<#if imagem?trim != "" > 
75        							<#assign uuid = imagem?split("/")[5]> 
76        							<#assign uuid = uuid?split("?")[0]> 
77        							 
78        							<#assign dlFileEntryUtil = serviceLocator.findService("com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService") > 
79        							<#assign fileEntry = dlFileEntryUtil.getDLFileEntryByUuidAndGroupId(uuid, groupId) > 
80        							 
81        							<#assign version = fileEntry.getFileVersion().fileVersionId > 
82        							<#assign fileEntryTypeId = fileEntry.getFileEntryTypeId() > 
83        							<#assign fieldsMap = fileEntry.getFieldsMap(version) > 
84        							 
85        							<#assign imgTxt = "&nbsp;" > 
86        							<#assign imgCred = "&nbsp;" > 
87        							 
88        							<#list fieldsMap?keys as fld> 
89        								<#assign imgTxt = (fieldsMap[fld]["image_text"].getValue())!"" > 
90        								<#assign imgCred = (fieldsMap[fld]["image_credits"].getValue())!"" > 
91        								 
92        								<#if imgTxt != "" > 
93        									<#if imgCred != "" > 
94        										<#assign imgCred = " - Foto por: " + imgCred > 
95        									</#if> 
96        								</#if> 
97        							</#list> 
98        							 
99        							<li> 
100        								<a href="#"> 
101        									<img src="${imagem}&imageThumbnail=1" data-large="${imagem}&imageThumbnail=3" data-save="${imagem}" alt="${imgTxt}" data-description="${imgTxt} ${imgCred}" /> 
102        								</a> 
103        							</li> 
104        						</#if> 
105    						</#list> 
106    					</#if> 
107    				</ul> 
108    			</div> 
109    		</div> 
110    	</div> 
111    </div> 
112    <script> 
113        executarGaleria(); 
114    </script> 
115<#else> 
116    <script src="http://code.jquery.com/jquery-1.11.3.min.js"></script> 
117     
118    <#assign theme_img_path = "/mt-portal-theme/images" > 
119     
120    <style> 
121    .rg-image-nav a{ 
122    	background:#000 url(${theme_img_path}/nav.png) no-repeat -20% 50%; 
123
124    .es-nav span{ 
125    	background:transparent url(${theme_img_path}/nav_thumbs.png) no-repeat top left; 
126
127    .rg-loading{ 
128    	background:#000 url(${theme_img_path}/ajax-loader.gif) no-repeat center center; 
129
130    .rg-view a{ 
131    	background:#464646 url(${theme_img_path}/views.png) no-repeat top left; 
132
133    .mt-search{display:none;} 
134    .component-title .header-back-to a{font-size:1.8em;margin-top:-10px;} 
135    </style> 
136     
137    <script id="img-wrapper-tmpl" type="text/x-jquery-tmpl">	 
138    	<div class="rg-image-wrapper"> 
139    		{{if itemsCount > 1}} 
140    			<div class="rg-image-nav"> 
141    				<a href="#" class="rg-image-nav-prev">Anterior</a> 
142    				<a href="#" class="rg-image-nav-next">Próxima</a> 
143    			</div> 
144    		{{/if}} 
145    		<div class="rg-image"></div> 
146    		<div class="rg-loading"></div> 
147    		<div class="rg-caption-wrapper"> 
148    			<div class="rg-caption" style="display:none;"> 
149    				<p></p> 
150    			</div> 
151    		</div> 
152    	</div> 
153    </script> 
154     
155    <noscript> 
156    	<style> 
157    		.es-carousel ul{ 
158    			display:block; 
159
160    	</style> 
161    </noscript> 
162     
163    <div id="rg-gallery" class="rg-gallery"> 
164    	<div class="rg-thumbs"> 
165    		<div class="es-carousel-wrapper"> 
166    			<div class="es-nav"> 
167    				<span class="es-nav-prev">Previous</span> 
168    				<span class="es-nav-next">Next</span> 
169    			</div> 
170    			<div class="es-carousel"> 
171    				<ul> 
172    					<#if .vars['image'].getSiblings()?has_content> 
173    						<#list .vars['image'].getSiblings() as cur_item> 
174    							<#assign imagem = cur_item.getData() > 
175    							 
176    							<#if imagem?trim != "" > 
177        							<#assign uuid = imagem?split("/")[5]> 
178        							<#assign uuid = uuid?split("?")[0]> 
179        							 
180        							<#assign dlFileEntryUtil = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService") > 
181        							<#assign fileEntry = dlFileEntryUtil.getDLFileEntryByUuidAndGroupId(uuid, groupId) > 
182        							 
183        							<#assign version = fileEntry.getFileVersion().fileVersionId > 
184        							<#assign fileEntryTypeId = fileEntry.getFileEntryTypeId() > 
185        							<#assign fieldsMap = (fileEntry.getFieldsMap(version))!'' > 
186        							<#assign imgTxt = "&nbsp;" > 
187        							<#assign imgCred = "&nbsp;" > 
188        							<#if fieldsMap?has_content> 
189        							    <#list fieldsMap?keys as fld> 
190        							    	<#assign imgTxt = (fieldsMap[fld]["image_text"].getValue())!"" > 
191        							    	<#assign imgCred = (fieldsMap[fld]["image_credits"].getValue())!"" > 
192        							    	 
193        							    	<#if imgTxt != "" > 
194        							    		<#if imgCred != "" > 
195        							    			<#assign imgCred = " - Foto por: " + imgCred > 
196        							    		</#if> 
197        							    	</#if> 
198        							    </#list> 
199        							</#if> 
200        							<li> 
201        								<a href="#"> 
202        									<img src="${imagem}&imageThumbnail=1" data-large="${imagem}&imageThumbnail=3" data-save="${imagem}" alt="${imgTxt}" data-description="${imgTxt} ${imgCred}" /> 
203        								</a> 
204        							</li> 
205        						</#if> 
206    						</#list> 
207    					</#if> 
208    				</ul> 
209    			</div> 
210    		</div> 
211    	</div> 
212    </div> 
213    <script> 
214        executarGaleria(); 
215    </script> 
216</#if>