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

Ações de combate a dengue em Sinop

Um erro ocorreu enquanto processava o modelo.
Error on line 61, column 57 in 20154#20194#25028
imagem?split("/")[5] is undefined.
It cannot be assigned to uuid
1<script src="http://code.jquery.com/jquery-1.11.3.min.js"></script> 
2 
3<#assign theme_img_path = "/mt-portal-theme/images" > 
4 
5<style> 
6.rg-image-nav a{ 
7	background:#000 url(${theme_img_path}/nav.png) no-repeat -20% 50%; 
8
9.es-nav span{ 
10	background:transparent url(${theme_img_path}/nav_thumbs.png) no-repeat top left; 
11
12.rg-loading{ 
13	background:#000 url(${theme_img_path}/ajax-loader.gif) no-repeat center center; 
14
15.rg-view a{ 
16	background:#464646 url(${theme_img_path}/views.png) no-repeat top left; 
17
18.mt-search{display:none;} 
19.taglib-header .header-back-to a{font-size:1.8em;margin-top:-10px;} 
20</style> 
21 
22<script id="img-wrapper-tmpl" type="text/x-jquery-tmpl">	 
23	<div class="rg-image-wrapper"> 
24		{{if itemsCount > 1}} 
25			<div class="rg-image-nav"> 
26				<a href="#" class="rg-image-nav-prev">Anterior</a> 
27				<a href="#" class="rg-image-nav-next">Próxima</a> 
28			</div> 
29		{{/if}} 
30		<div class="rg-image"></div> 
31		<div class="rg-loading"></div> 
32		<div class="rg-caption-wrapper"> 
33			<div class="rg-caption" style="display:none;"> 
34				<p></p> 
35			</div> 
36		</div> 
37	</div> 
38</script> 
39 
40<noscript> 
41	<style> 
42		.es-carousel ul{ 
43			display:block; 
44
45	</style> 
46</noscript> 
47 
48<div id="rg-gallery" class="rg-gallery"> 
49	<div class="rg-thumbs"> 
50		<div class="es-carousel-wrapper"> 
51			<div class="es-nav"> 
52				<span class="es-nav-prev">Previous</span> 
53				<span class="es-nav-next">Next</span> 
54			</div> 
55			<div class="es-carousel"> 
56				<ul> 
57					<#if .vars['image'].getSiblings()?has_content> 
58						<#list .vars['image'].getSiblings() as cur_item> 
59							<#assign imagem = cur_item.getData() > 
60							 
61							<#assign uuid = imagem?split("/")[5]> 
62							<#assign uuid = uuid?split("?")[0]> 
63							 
64							<#assign dlFileEntryUtil = serviceLocator.findService("com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService") > 
65							<#assign fileEntry = dlFileEntryUtil.getDLFileEntryByUuidAndGroupId(uuid, groupId) > 
66							 
67							<#assign version = fileEntry.getFileVersion().fileVersionId > 
68							<#assign fileEntryTypeId = fileEntry.getFileEntryTypeId() > 
69							<#assign fieldsMap = fileEntry.getFieldsMap(version) > 
70							 
71							<#assign imgTxt = "&nbsp;" > 
72							<#assign imgCred = "&nbsp;" > 
73							 
74							<#list fieldsMap?keys as fld> 
75								<#assign imgTxt = (fieldsMap[fld]["image_text"].getValue())!"" > 
76								<#assign imgCred = (fieldsMap[fld]["image_credits"].getValue())!"" > 
77								 
78								<#if imgTxt != "" > 
79									<#if imgCred != "" > 
80										<#assign imgCred = " - Foto por: " + imgCred > 
81									</#if> 
82								</#if> 
83							</#list> 
84							 
85							<li> 
86								<a href="#"> 
87									<img src="${imagem}&imageThumbnail=1" data-large="${imagem}&imageThumbnail=3" data-save="${imagem}" alt="${imgTxt}" data-description="${imgTxt} ${imgCred}" /> 
88								</a> 
89							</li> 
90						</#list> 
91					</#if> 
92				</ul> 
93			</div> 
94		</div> 
95	</div> 
96</div> 
97<script> 
98    executarGaleria(); 
99</script>