Pular para o conteúdo
Voltar

Monumentos Históricos

Um erro ocorreu enquanto processava o modelo.
Expression catIcon is undefined on line 122, column 6 in 20154#20194#517779.
1<#-- 
2    Nome: Serviços (SEDEC) - MIGRACAO 
3    Estrutura: Serviços (SEDEC) 
4    Descrição: 
5    Fazer cache: Sim 
6    Data alteração: 2022 05 31 
7    Tarefa: #46151 
8    Obs.: 
9--> 
10<style> 
11.cat-service-icon{width:100%;text-align:center;color:#fff;background:#00AEEF !important;position:relative;} 
12.line-link{border-top: 3px solid #00AEEF;position: absolute;right: -35px;top: 90px;height: 1px;width: 50px;} 
13#service-content{margin-top:-5px;} 
14#service-background{} 
15#left-col{} 
16.mt-service .asset-full-content{font-family:'Calibri';text-align: justify;margin-top: 55px;padding-right: 20px;} 
17.attach-title { 
18   font-family: 'Nexa'; 
19   text-transform: uppercase; 
20   color: #fff; 
21   font-size: 14px; 
22   padding: 5px; 
23   background-color: #1255A6; 
24
25.attach-content { 
26   margin-top: 3px; 
27   padding: 10px 0; 
28   border-top: 2px solid #1255A6; 
29
30.orgao{font-family:'Calibri';    margin-top: 30px;} 
31.brasao{font-family:'Nexa';text-transform:uppercase;text-align: center;} 
32.brasao .icon-wrapper{border: 2px solid #fff; 
33    width: 34px; 
34    height: 34px; 
35    display: table !important; 
36    margin: 0 auto; 
37    padding: 5px;} 
38.brasao i.service-icon{padding:0 !important;color:#fff;} 
39.mini{font-size:.4em;} 
40.sigla{font-family:'Nexa';color:#fff;text-transform:uppercase;} 
41.line{display:block;font-size:14px;} 
42.relateds{} 
43.relateds ul{list-style: none;color: #fff;padding: 7px 10px 10px 0;margin: 0 0 0 10px;} 
44.relateds ul li{border-bottom:1px solid #fff;line-height: 15px;padding-bottom: 5px;padding-top: 3px;} 
45.relateds ul li.ativo {background-color: #00aeef;} 
46.relateds ul li a:hover{color:#009ae5;} 
47.lifecycle{padding: 10px;background:#193177 !important;} 
48.lifecycle .icon-wrapper i{font-size: 36px;display: table-cell;padding: 15px;} 
49.lifecycle .row-fluid > div:hover{background:#5a70b0;} 
50.service-title{background:#00AEEF;text-align;display: -webkit-inline-box;} 
51.service-title h1{color:#fff;padding:20px;margin:0;text-transform:uppercase;font-size: 1.8em;display: inline-flex;} 
52.service-lc-title{font-size: 48px;color: #fff;text-transform: uppercase;font-weight: bold;display: -webkit-inline-box;vertical-align: top;line-height: 120px;margin-left: 20px;} 
53.service-lc-title small {font-size: 14px;line-height: 18px;margin-top: -40px;position: absolute;} 
54.ico-service {border: 4px solid #fff;display: table !important;border-radius: 100%;padding: 10px;} 
55.ico-service i {color:#fff;font-size:100px;padding:10px;display: table-cell !important;} 
56.back-service{min-height: 200px !important;background-size: cover !important;padding: 15px;width: 48.1%;float: right;} 
57.cor .icon-wrapper { 
58  border: 2px solid #fff; 
59  width: 68px; 
60  height: 68px; 
61  display: table !important; 
62  border-radius: 50px; 
63  margin: 0 auto; 
64  padding: 5px; 
65
66.cor a, .cor .service-icon{color:#fff;} 
67.cor a:hover{color:#fff;text-decoration:none;} 
68.pagetitle-content input[type="text"] { 
69    color: #fff; 
70    background: rgba(255,255,255,0.3); 
71    border: 0; 
72    padding: 3px 5px; 
73    margin-top: 5px; 
74
75.pagetitle-content .search-layout{display:none;} 
76.pagetitle-content .control-group{margin-bottom:0;} 
77.pagetitle-content .liferaytokenlist{display:none;} 
78.pagetitle-content form{margin: 0;display: -webkit-inline-box;padding-left: 20px;} 
79.taglib-header{display:none;} 
80.mt-search{display:none;} 
81</style> 
82 
83<#assign  
84    journalArticleLocalService = serviceLocator.findService("com.liferay.portlet.journal.service.JournalArticleLocalService") 
85    ja = journalArticleLocalService.getArticle( groupId, .vars['reserved-article-id'].data ) 
86    resourceprimKey = ja.getResourcePrimKey() 
87    assetEntryLocalService = serviceLocator.findService("com.liferay.portlet.asset.service.AssetEntryLocalService") 
88    assetEntry = assetEntryLocalService.getEntry("com.liferay.portlet.journal.model.JournalArticle", resourceprimKey) 
89    categoryUtil = serviceLocator.findService("com.liferay.portlet.asset.service.AssetCategoryLocalService") 
90    categoryPorpertyService = serviceLocator.findService("com.liferay.portlet.asset.service.AssetCategoryPropertyLocalService") 
91    assetCategories = categoryUtil.getAssetEntryAssetCategories(assetEntry.getEntryId())  
92 
93    lifecycle = httpUtil.getParameter(request["attributes"].CURRENT_COMPLETE_URL, 'ciclo')  
94/> 
95 
96<#if (lifecycle == 'cv_industria_comercio') > 
97	<#assign lifecycleLabel = 'indústria e comércio' /> 
98<#elseif (lifecycle == 'cv_empreendedorismo') > 
99	<#assign lifecycleLabel = 'empreendedorismo' /> 
100<#elseif (lifecycle == 'cv_agricultura_empresarial') > 
101	<#assign lifecycleLabel = 'agricultura empresarial' /> 
102<#elseif (lifecycle == 'cv_turismo') > 
103	<#assign lifecycleLabel = 'turismo' /> 
104</#if> 
105 
106<#assign jaTags = serviceLocator.findService("com.liferay.portlet.asset.service.AssetTagLocalService") /> 
107 
108 
109<#list jaTags.getAssetEntryAssetTags(assetEntry.entryId) as aeTag > 
110    <#if aeTag.name == lifecycle > 
111        <#assign tagId = aeTag.tagId /> 
112    </#if> 
113</#list> 
114 
115<#list assetCategories as category > 
116    <#assign catIcon= (category.getDescriptionCurrentValue())!"" /> 
117    <#assign catName = (category.name)!"Categoria" /> 
118    <#assign catId = (category.categoryId)!0 /> 
119    <#break> 
120</#list> 
121 
122<#if catIcon == "" > 
123    <#assign catIcon = "icon-mt-mt" /> 
124</#if> 
125 
126<#if lifecycle != '' > 
127    <#assign assetEntryLocalService = serviceLocator.findService("com.liferay.portlet.asset.service.AssetEntryLocalService") /> 
128     
129    <#list jaTags.getGroupTags(groupId) as tag > 
130        <#if tag.name == 'serviceheader' > 
131            <#assign serviceHeaderID = tag.tagId /> 
132            <#break> 
133        </#if> 
134    </#list> 
135     
136    <#list assetEntryLocalService.getAssetTagAssetEntries(serviceHeaderID) as header > 
137        <#if header.getTitle(locale)?lower_case == lifecycleLabel?lower_case > 
138            <#assign renderer = header.getAssetRenderer()  /> 
139            <#assign className = renderer.getClassName()  /> 
140            <#if className == "com.liferay.portlet.journal.model.JournalArticle"  > 
141                 
142                <#assign  
143                    jad = renderer.getArticle() 
144                    document = saxReaderUtil.read(jad.getContent()) 
145                    rootElement = document.getRootElement() 
146 
147                    xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='color']/dynamic-content") 
148                    color = (xPathSelector.selectSingleNode(rootElement).getStringValue())!"" 
149 
150                    xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='icon']/dynamic-content") 
151                    icon = (xPathSelector.selectSingleNode(rootElement).getStringValue())!"" 
152 
153                    xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='category']/dynamic-content") 
154                    category = (xPathSelector.selectSingleNode(rootElement).getStringValue())!"" 
155 
156                    xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='imagem']/dynamic-content") 
157                    imagem = (xPathSelector.selectSingleNode(rootElement).getStringValue())!"" 
158 
159                    xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='color_text']/dynamic-content") 
160                    style = (xPathSelector.selectSingleNode(rootElement).getStringValue())!"" 
161                /> 
162                 
163                <style>.cor{background:${color};} .back-service{background: url(${imagem});}</style> 
164 
165                <div class="row-fluid header-service" style="margin-top: -20px;"> 
166                    <div class="span12 cor contrast-cor1" style="padding-left: 2.5641%;"> 
167                        <div class="span12" style="padding:0;"> 
168                            <div style="float: left;margin-top: 4%;"> 
169								<span style="display: -webkit-inline-box; display: -moz-grid-line;"> 
170									<div class="ico-service"> 
171										<i class="${icon}"></i> 
172									</div> 
173								</span> 
174								<span style="display: -webkit-inline-box; display: -moz-grid-line;" class="service-lc-title">${category}<br/><small>Selecione a área relacionada ao serviço</small></span> 
175                            </div> 
176                        </div> 
177                    </div> 
178                </div> 
179            </#if> 
180            <#break> 
181        </#if> 
182    </#list> 
183<#else> 
184    <style>.cor{background:#0071bb;}</style> 
185</#if> 
186 
187<div class="service-title"> 
188    <h1>${.vars['reserved-article-title'].data}</h1> 
189</div> 
190 
191<#if (image.getData()?trim != '') > 
192    <img style="margin-top:50px;" src="${image.getData()}" /> 
193</#if> 
194<br><br> 
195${full_text.getData()}<br><br>  
196 
197<#if link_service.getData()?has_content && file.getData()?has_content > 
198 
199<#elseif link_service.getData()?has_content > 
200    <span class="attach-title">Link do Serviço</span> 
201    <div class="attach-content row-fluid"><a href="${link_service.getData()}">${link_service.getData()}</a></div> 
202 
203<#else> 
204    <span class="attach-title">Download</span> 
205    <div class="attach-content row-fluid"> 
206        <#if file.getSiblings()?has_content > 
207        	<#list file.getSiblings() as cur_attach >			 
208                <#assign uuid = (cur_attach.getData()?split("/")[5])! /> 
209 
210                <#if uuid?contains("?")> 
211    				<#assign uuid = uuid?split("?")[0]> 
212    			</#if> 
213                 
214                <#assign 
215                    dlFileEntryUtil = serviceLocator.findService("com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService") 
216                    fileEntry = (dlFileEntryUtil.getDLFileEntryByUuidAndGroupId(uuid,groupId))! 
217                /> 
218                <#if cur_attach.getData()?has_content > 
219                    <a href="${cur_attach.getData()}" style="background: #B2DFD0;color: #35862C;display: -webkit-box;padding: 5px 20px;" title="${languageUtil.format(locale, 'download-x', fileEntry.title)}"> 
220                       	<li>${fileEntry.title}</li> 
221                    </a> 
222                </#if> 
223        	</#list> 
224        </#if>  
225    </div> 
226</#if> 
227 
228<div class="row-fluid orgao" style="display:none;"> 
229    <div class="span6 brasao"> 
230        <a href="${site.getData()}"> 
231			<img src="${theme_img_path!''}/brasoes/sedec.png" /> 
232        </a> 
233    </div> 
234    <div class="span6"> 
235    </div> 
236</div> 
237 
238 
239<#assign portalURL = "${httpUtil.getProtocol(request.attributes.CURRENT_URL)}://${getterUtil.getString(.vars['request.theme-display.portal-url'])}" /> 
240 
241<div class="cat-service-icon cor" style="height:inherit;padding: 17px 0 10px;"> 
242    <div class="icon-wrapper"> 
243        <i class="service-icon ${catIcon}"></i> 
244    </div> 
245    <h5 style="font-size:18px;font-weight:normal;text-transform:uppercase;">${catName}</h5> 
246    <div class="line-link"></div> 
247    <#if lifecycle != '' > 
248        <a href="/servicos?ciclo=${lifecycle}"><i class="icon-arrow-left"></i> Serviços para ${lifecycleLabel}</a> 
249    <#else> 
250        <a href="/servicos"><i class="icon-arrow-left"></i> Todos os Serviços</a> 
251    </#if> 
252</div> 
253 
254<#assign  
255    assetLinkLocalService = serviceLocator.findService("com.liferay.portlet.asset.service.AssetLinkLocalService" ) 
256    currentArticleAssetEntry = assetEntryLocalService.getEntry("com.liferay.portlet.journal.model.JournalArticle", resourceprimKey) 
257    currentArticleAssetEntryEntryId = currentArticleAssetEntry.getEntryId() 
258    currentArticleRelatedLinks = assetLinkLocalService.getDirectLinks(currentArticleAssetEntryEntryId) 
259 
260    obcFct =  staticUtil["com.liferay.portal.kernel.util.OrderByComparatorFactoryUtil"] 
261    comparator = obcFct.create("AssetEntry", ["publishDate", false]) 
262/> 
263 
264<div class="cor relateds"> 
265    <ul> 
266        <#list assetEntryLocalService.getAssetCategoryAssetEntries(catId, -1, -1, comparator) as link > 
267			<#assign linkedArticle = (journalArticleLocalService.getLatestArticle(link.getClassPK()))! /> 
268			<#assign laTags = serviceLocator.findService("com.liferay.portlet.asset.service.AssetTagLocalService") /> 
269			<#if (link.visible) > 
270				<#if (link.getEntryId() == assetEntry.getEntryId())  > 
271					<li class="ativo"> 
272				<#else> 
273					<li> 
274				</#if> 
275				<#if (lifecycle != '') > 
276					<a href="/-/${(linkedArticle.urlTitle)!}?ciclo=${lifecycle}">${(linkedArticle.getTitle(locale))!}</a></li> 
277				<#else> 
278					<a href="/-/${(linkedArticle.urlTitle)!}">${(linkedArticle.getTitle(locale))!}</a></li> 
279				</#if> 
280			</#if> 
281		</#list> 
282    </ul> 
283</div> 
284 
285<div class="lifecycle cor"> 
286    <div class="row-fluid" style="text-align:center;"> 
287        <div style="width:49%;display: inline-block;vertical-align:top;padding:5px 0;"> 
288            <a href="/servicos?ciclo=cv_industria_comercio"> 
289				<div class="icon-wrapper"> 
290					<i class="icon-mt-predio"></i> 
291				</div> 
292				<span style="text-transform:uppercase;">Indústria e Comércio</span> 
293			</a> 
294        </div> 
295        <div style="width:49%;display: inline-block;vertical-align:top;padding:5px 0;"> 
296            <a href="/servicos?ciclo=cv_empreendedorismo"> 
297				<div class="icon-wrapper"> 
298					<i class="icon-mt-pagamento"></i> 
299				</div> 
300				<span style="text-transform:uppercase;">Empreendedorismo</span> 
301			</a> 
302        </div> 
303    </div> 
304    <div class="row-fluid" style="text-align:center;"> 
305        <div style="width:49%;display: inline-block;vertical-align:top;padding:5px 0;"> 
306            <a href="/servicos?ciclo=cv_agricultura_empresarial"> 
307				<div class="icon-wrapper"> 
308					<i class="icon-mt-agricultura"></i> 
309				</div> 
310				<span style="text-transform:uppercase;">Agricultura Empresarial</span> 
311			</a> 
312        </div> 
313        <div style="width:49%;display: inline-block;vertical-align:top;padding:5px 0;"> 
314            <a href="/servicos?ciclo=cv_turismo"> 
315				<div class="icon-wrapper"> 
316					<i class="icon-mt-aviao"></i> 
317				</div> 
318				<span style="text-transform:uppercase;">Turismo</span> 
319			</a> 
320        </div> 
321    </div> 
322</div> 
323 
324<script type="text/javascript"> 
325    var serviceHeader = jQuery('.mt-service .header-service').clone(); 
326    var serviceContent = jQuery('.mt-service .asset-full-content').clone(); 
327    var serviceIcon = jQuery('.mt-service .cat-service-icon').clone(); 
328    var serviceList = jQuery('.mt-service .relateds').clone(); 
329    var lifecycle = jQuery('.mt-service .lifecycle').clone(); 
330     
331    jQuery('.mt-service .asset-full-content').remove(); 
332     
333    if('${lifecycle}' != ''){ 
334        jQuery('.mt-service .portlet-body > div').append('<div class="row-fluid"><div class="span12" id="service-header"></div></div><div class="row-fluid" id="service-background"><div class="span3" id="left-col"></div><div class="span9" id="service-content"></div></div>'); 
335    }else{ 
336        jQuery('.mt-service .portlet-body > div').append('<div class="row-fluid"><div class="row-fluid" id="service-background" style="margin-top:-20px;"><div class="span3" id="left-col"></div><div class="span9" id="service-content"></div></div>'); 
337
338    jQuery('#left-col').append(serviceIcon); 
339    jQuery('#left-col').append(serviceList); 
340    jQuery('#left-col').append(lifecycle); 
341    jQuery('#service-content').append(serviceContent); 
342     
343    jQuery('.mt-service .header-service').remove(); 
344    jQuery('.mt-service .asset-full-content .cat-service-icon').remove(); 
345    jQuery('.mt-service .asset-full-content .relateds').remove(); 
346    jQuery('.mt-service .asset-full-content .lifecycle').remove(); 
347    jQuery('#service-header').append(serviceHeader); 
348     
349    window.setTimeout( function(){ 
350        var search = document.querySelectorAll('.mt-search form')[0]; 
351        document.querySelectorAll('.pagetitle-content')[0].appendChild(search); 
352        document.querySelectorAll('.mt-search')[0].style.display = 'none'; 
353        document.querySelectorAll('.pagetitle-content select')[0].style.display = 'none'; 
354        document.querySelectorAll('.pagetitle-content form')[0].style.display = '-webkit-inline-box'; 
355        document.querySelectorAll('.pagetitle-content form')[0].style.marginLeft = '20px'; 
356        document.querySelectorAll('.pagetitle-content form')[0].style.marginBottom = '0'; 
357         
358        var x = document.querySelectorAll(".pagetitle-content input[type='image']")[0].src.replace("search.png", "search2.png"); 
359        document.querySelectorAll(".pagetitle-content input[type='image']")[0].src = x; 
360        document.querySelectorAll(".pagetitle-content input[type='image']")[0].style.marginLeft = "-34px"; 
361        document.querySelectorAll(".pagetitle-content input[type='image']")[0].style.background = "rgba(255,255,255,0.3)"; 
362        document.querySelectorAll(".pagetitle-content input[type='image']")[0].style.padding = "5px"; 
363        document.querySelectorAll(".pagetitle-content input[type='image']")[0].style.marginTop = "-2px"; 
364         
365        document.querySelectorAll('.pagetitle-content')[0].style.paddingBottom = '0'; 
366        document.querySelectorAll('.pagetitle-content')[0].style.paddingTop = '10px'; 
367         
368    }, 500 ); 
369</script>