Pular para o conteúdo
Voltar

Ações e Programas

Um erro ocorreu enquanto processava o modelo.
Expression linkedArticle.urlTitle is undefined on line 338, column 75 in 20154#20194#3677231.
1<#-- 
2    Nome: Serviços (INTERMAT) 
3    Estrutura: Serviços (INTERMAT) 
4    Descrição: 
5    Fazer cache: Sim 
6    Data alteração: 2022 10 19 
7    Tarefa: #51609 
8    Obs.: 
9--> 
10<#if (serviceLocator.findService("com.liferay.portal.service.ReleaseLocalService"))?? > 
11    <style> 
12    .cat-service-icon{width:100%;text-align:center;color:#fff;background:#00AEEF !important;position:relative;} 
13    .line-link{border-top: 3px solid #00AEEF;position: absolute;right: -35px;top: 90px;height: 1px;width: 50px;} 
14    #service-content{margin-top:-5px;} 
15    #service-background{} 
16    #left-col{} 
17    .mt-service .asset-full-content{font-family:'Calibri';text-align: justify;margin-top: 55px;padding-right: 20px;} 
18    .attach-title { 
19       font-family: 'Nexa'; 
20       text-transform: uppercase; 
21       color: #fff; 
22       font-size: 14px; 
23       padding: 5px; 
24       background-color: #1255A6; 
25
26    .attach-content { 
27       margin-top: 3px; 
28       padding: 10px 0; 
29       border-top: 2px solid #1255A6; 
30
31    .orgao{font-family:'Calibri';    margin-top: 30px;} 
32    .brasao{font-family:'Nexa';text-transform:uppercase;text-align: center;} 
33    .brasao .icon-wrapper{border: 2px solid #fff; 
34        width: 34px; 
35        height: 34px; 
36        display: table !important; 
37        margin: 0 auto; 
38        padding: 5px;} 
39    .brasao i.service-icon{padding:0 !important;color:#fff;} 
40    .mini{font-size:.4em;} 
41    .sigla{font-family:'Nexa';color:#fff;text-transform:uppercase;} 
42    .line{display:block;font-size:14px;} 
43    .relateds{} 
44    .relateds ul{list-style: none;color: #fff;padding: 7px 10px 10px 0;margin: 0 0 0 10px;} 
45    .relateds ul li{border-bottom:1px solid #fff;line-height: 15px;padding-bottom: 5px;padding-top: 3px;} 
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    </style> 
81     
82    <#--  <#assign {theme_img_path} = request.get("theme-display").get("path-theme-images") />  --> 
83     
84    <#assign 
85        journalArticleLocalService = serviceLocator.findService("com.liferay.portlet.journal.service.JournalArticleLocalService") 
86        ja = journalArticleLocalService.getArticle( groupId, .vars['reserved-article-id'].data ) 
87        resourceprimKey = ja.getResourcePrimKey() 
88        assetEntryLocalService = serviceLocator.findService("com.liferay.portlet.asset.service.AssetEntryLocalService") 
89        assetEntry = assetEntryLocalService.getEntry("com.liferay.portlet.journal.model.JournalArticle", resourceprimKey) 
90        categoryUtil = serviceLocator.findService("com.liferay.portlet.asset.service.AssetCategoryLocalService") 
91        categoryPorpertyService = serviceLocator.findService("com.liferay.portlet.asset.service.AssetCategoryPropertyLocalService") 
92        assetCategories = categoryUtil.getAssetEntryAssetCategories(assetEntry.getEntryId()) 
93     
94        lifecycle = httpUtil.getParameter(request["attributes"].CURRENT_COMPLETE_URL, 'ciclo') 
95    /> 
96     
97    <#if (lifecycle == 'cv_indcom') > 
98    	<#assign lifecycleLabel = 'indústria e comércio' /> 
99    <#elseif (lifecycle == 'cv_empinv') > 
100    	<#assign lifecycleLabel = 'empreendedorismo e investimentos' /> 
101    <#elseif (lifecycle == 'cv_agremp') > 
102    	<#assign lifecycleLabel = 'agricultura empresarial' /> 
103    <#elseif (lifecycle == 'cv_tur') > 
104    	<#assign lifecycleLabel = 'turismo' /> 
105    <#else > 
106        <#--  <#assign lifecycleLabel = ''/>  --> 
107    </#if> 
108     
109    <#assign jaTags = serviceLocator.findService("com.liferay.portlet.asset.service.AssetTagLocalService") /> 
110     
111    <#list jaTags.getAssetEntryAssetTags(assetEntry.entryId) as aeTag > 
112        <#if aeTag.name == lifecycle > 
113            <#assign tagId = aeTag.tagId /> 
114        </#if> 
115    </#list> 
116     
117    <#list assetCategories as category > 
118        <#if (category.name == "Diretoria de Cartografia e Acervo Fundiário") > 
119    		<#assign catIcon= "icon-mt-terra" /> 
120    	<#elseif (category.name == "Diretoria Rural") > 
121    		<#assign catIcon= "icon-mt-agricultura" /> 
122    	<#elseif (category.name == "Diretoria de Regularização Fundiária Urbana") > 
123    		<#assign catIcon= "icon-mt-urbanismo" /> 
124    	<#elseif (category.name == "Diretoria de Administração Sistêmica") > 
125    		<#assign catIcon= "icon-mt-trabalho-4" /> 
126    	<#elseif (category.name == "Atendimento ao Usuário") > 
127    		<#assign catIcon= "icon-mt-computador-2" /> 
128    	<#elseif (category.name == "Acesso à Informação") > 
129    		<#assign catIcon= "icon-info-sign" /> 
130    	<#elseif (category.name == "Ações e Programas") > 
131    		<#assign catIcon= "icon-eye-open" /> 
132    	<#elseif (category.name == "Aquisições") > 
133    		<#assign catIcon= "icon-th-large" /> 
134    	<#elseif (category.name == "Intermat") > 
135    		<#assign catIcon= "icon-mt-governo" /> 
136    	<#elseif (category.name == "Informações Cartográficas e Fundiárias") > 
137    		<#assign catIcon= "icon-mt-mt" /> 
138        </#if> 
139     
140    	<#assign catName = category.name /> 
141    	<#assign catId = (category.categoryId)!0 /> 
142        <#break> 
143    </#list> 
144     
145    <#if (lifecycle != '') > 
146        <#assign assetEntryLocalService = serviceLocator.findService("com.liferay.portlet.asset.service.AssetEntryLocalService") /> 
147     
148        <#-- MIGRACAO: Verificar posteriormente o numero magico da linha abaixo --> 
149        <#list assetEntryLocalService.getAssetTagAssetEntries(286987) as header > 
150            <#if (header.getTitle(locale)?lower_case == lifecycleLabel) > 
151                <#assign renderer = header.getAssetRenderer()  /> 
152                <#assign className = renderer.getClassName()  /> 
153                <#if className == "com.liferay.portlet.journal.model.JournalArticle"  > 
154     
155                    <#assign 
156                        jad = renderer.getArticle() 
157                        document = saxReaderUtil.read(jad.getContent()) 
158                        rootElement = document.getRootElement() 
159     
160                        xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='color']/dynamic-content") 
161                        color = (xPathSelector.selectSingleNode(rootElement).getStringValue())!"" 
162     
163                        xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='icon']/dynamic-content") 
164                        icon = (xPathSelector.selectSingleNode(rootElement).getStringValue())!"" 
165     
166                        xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='category']/dynamic-content") 
167                        category = (xPathSelector.selectSingleNode(rootElement).getStringValue())!"" 
168     
169                        xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='imagem']/dynamic-content") 
170                        imagem = (xPathSelector.selectSingleNode(rootElement).getStringValue())!"" 
171     
172                        xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='color_text']/dynamic-content") 
173                        style = (xPathSelector.selectSingleNode(rootElement).getStringValue())!"" 
174                    /> 
175     
176                    <style>.cor{background:${color};} .back-service{background: url(${imagem});}</style> 
177     
178                    <div class="row-fluid header-service" style="margin-top: -20px;"> 
179                        <div class="span12 cor contrast-cor1" style="padding-left: 2.5641%;"> 
180                            <div class="span12" style="padding:0;"> 
181                                <div style="float: left;margin-top: 4%;"> 
182                                <span style="display: -webkit-inline-box;"> 
183                                    <div class="ico-service"> 
184                                        <i class="${icon}"></i> 
185                                    </div> 
186                                </span> 
187                                <span class="service-lc-title">${category}<br/><small>Selecione a área relacionada ao serviço</small></span> 
188                                </div> 
189                                <!--<div class="back-service"> 
190                                </div>--> 
191                            </div> 
192                        </div> 
193                    </div> 
194                </#if> 
195                <#break> 
196            </#if> 
197        </#list> 
198    <#else> 
199        <style>.cor{background:#0071bb;}</style> 
200    </#if> 
201     
202    <div class="service-title"> 
203        <h1>${.vars['reserved-article-title'].data}</h1> 
204    </div> 
205     
206    <#if (image.getData()?trim != '') > 
207        <img style="margin-top:50px;" src="${image.getData()}" /> 
208    </#if> 
209    <br><br> 
210    ${full_text.getData()} 
211    <br><br> 
212     
213    <#if link_service.getData()?has_content > 
214        <span class="attach-title">Link do Serviço</span> 
215        <div class="attach-content row-fluid"><a href="${link_service.getData()}">${link_service.getData()}</a></div> 
216    <#elseif file.getData()?has_content > 
217        <span class="attach-title">Download</span> 
218        <div class="attach-content row-fluid"> 
219            <a href="${file.getData()}" download> 
220            	Clique aqui para baixar o arquivo 
221            </a> 
222        </div> 
223    </#if> 
224     
225    <div class="row-fluid orgao" style="display:none"> 
226        <div class="span6 brasao"> 
227            <a href="${site.getData()}"> 
228            <#if name.getData() == 'ses' > 
229                <img src="${theme_img_path!''}/brasoes/ses.png" /> 
230            <#elseif (name.getData() == 'secel') > 
231                <img src="${theme_img_path!''}/brasoes/secel.png" /> 
232            <#elseif (name.getData() == 'casacivil') > 
233                <img src="${theme_img_path!''}/brasoes/casacivil.png" /> 
234            <#elseif (name.getData() == 'casamilitar') > 
235                <img src="${theme_img_path!''}/brasoes/casamilitar.png" /> 
236            <#elseif (name.getData() == 'cge') > 
237                <img src="${theme_img_path!''}/brasoes/cge.png" /> 
238            <#elseif (name.getData() == 'gae') > 
239                <img src="${theme_img_path!''}/brasoes/gae.png" /> 
240            <#elseif (name.getData() == 'gcom') > 
241                <img src="${theme_img_path!''}/brasoes/gcom.png" /> 
242            <#elseif (name.getData() == 'gdr') > 
243                <img src="${theme_img_path!''}/brasoes/gdr.png" /> 
244            <#elseif (name.getData() == 'governadoria') > 
245                <img src="${theme_img_path!''}/brasoes/governadoria.png" /> 
246            <#elseif (name.getData() == 'gtcc') > 
247                <img src="${theme_img_path!''}/brasoes/gtcc.png" /> 
248            <#elseif (name.getData() == 'pge') > 
249                <img src="${theme_img_path!''}/brasoes/pge.png" /> 
250            <#elseif (name.getData() == 'seaf') > 
251                <img src="${theme_img_path!''}/brasoes/seaf.png" /> 
252            <#elseif (name.getData() == 'secid') > 
253                <img src="${theme_img_path!''}/brasoes/secid.png" /> 
254            <#elseif (name.getData() == 'seciteci') > 
255                <img src="${theme_img_path!''}/brasoes/seciteci.png" /> 
256            <#elseif (name.getData() == 'sedec') > 
257                <img src="${theme_img_path!''}/brasoes/sedec.png" /> 
258            <#elseif (name.getData() == 'seduc') > 
259                <img src="${theme_img_path!''}/brasoes/seduc.png" /> 
260            <#elseif (name.getData() == 'sefaz') > 
261                <img src="${theme_img_path!''}/brasoes/sefaz.png" /> 
262            <#elseif (name.getData() == 'seges') > 
263                <img src="${theme_img_path!''}/brasoes/seges.png" /> 
264            <#elseif (name.getData() == 'sejudh') > 
265                <img src="${theme_img_path!''}/brasoes/sejudh.png" /> 
266            <#elseif (name.getData() == 'sema') > 
267                <img src="${theme_img_path!''}/brasoes/sema.png" /> 
268            <#elseif (name.getData() == 'seplan') > 
269                <img src="${theme_img_path!''}/brasoes/seplan.png" /> 
270            <#elseif (name.getData() == 'sesp') > 
271                <img src="${theme_img_path!''}/brasoes/sesp.png" /> 
272            <#elseif (name.getData() == 'setas') > 
273                <img src="${theme_img_path!''}/brasoes/setas.png" /> 
274            <#elseif (name.getData() == 'sinfra') > 
275                <img src="${theme_img_path!''}/brasoes/sinfra.png" /> 
276            <#elseif (name.getData() == 'vicegov') > 
277                <img src="${theme_img_path!''}/brasoes/vice.png" /> 
278    		<#elseif (name.getData() == 'intermat') > 
279                <img src="${theme_img_path!''}/brasoes/intermat.png" /> 
280            <#else> 
281                <h3>${name.getData()}</h3> 
282            </#if> 
283            </a> 
284        </div> 
285        <div class="span6"> 
286     
287        </div> 
288    </div> 
289     
290    <#--  <#assign themeDisplay = portal.getClass().forName("com.liferay.portal.theme.ThemeDisplay").newInstance() />  --> 
291    <#assign portalURL = "${httpUtil.getProtocol(request.attributes.CURRENT_URL)}://${getterUtil.getString(.vars['request.theme-display.portal-url'])}" /> 
292     
293    <div class="cat-service-icon cor" style="height:inherit;padding: 17px 0 10px;"> 
294        <div class="icon-wrapper"> 
295            <i class="service-icon ${catIcon!'icon-mt-mt'}"></i> 
296        </div> 
297        <h5 style="font-size:18px;font-weight:normal;text-transform:uppercase;">${catName!""}</h5> 
298        <div class="line-link"></div> 
299        <#if lifecycle != '' > 
300            <a href="/servicos?ciclo=${lifecycle}"><i class="icon-arrow-left"></i> Serviços para ${lifecycleLabel!""}</a> 
301        <#else> 
302            <a href="/servicos"><i class="icon-arrow-left"></i> Todos os Serviços</a> 
303        </#if> 
304    </div> 
305     
306    <#assign 
307        assetLinkLocalService = serviceLocator.findService("com.liferay.portlet.asset.service.AssetLinkLocalService" ) 
308     
309        currentArticleAssetEntry = assetEntryLocalService.getEntry("com.liferay.portlet.journal.model.JournalArticle", resourceprimKey) 
310        currentArticleAssetEntryEntryId = currentArticleAssetEntry.getEntryId() 
311        currentArticleRelatedLinks = assetLinkLocalService.getDirectLinks(currentArticleAssetEntryEntryId) 
312    /> 
313     
314    <div class="cor relateds"> 
315        <ul> 
316            <li>${ja.getTitle(locale)}</li> 
317            <#if lifecycle != '' > 
318                <#list assetEntryLocalService.getAssetTagAssetEntries(tagId) as link > 
319                    <#assign linkedArticle = journalArticleLocalService.getLatestArticle(link.getClassPK(), 0) /> 
320                    <#assign laTags = serviceLocator.findService("com.liferay.portlet.asset.service.AssetTagLocalService") /> 
321     
322                    <#list categoryUtil.getAssetEntryAssetCategories(link.getEntryId()) as linkCat > 
323                        <#if linkCat.categoryId == catId && link.getEntryId() != assetEntry.getEntryId() > 
324    						<li><a href="/-/${linkedArticle.urlTitle}?ciclo=${lifecycle}">${linkedArticle.getTitle(locale)}</a></li> 
325    						<#break> 
326                        </#if> 
327                    </#list> 
328                </#list> 
329            <#else> 
330     
331                <#list assetEntryLocalService.getAssetCategoryAssetEntries(catId!0) as link > 
332                    <#assign linkedArticle = (journalArticleLocalService.getLatestArticle(link.getClassPK(), 0))! /> 
333                    <#assign laTags = serviceLocator.findService("com.liferay.portlet.asset.service.AssetTagLocalService") /> 
334     
335                    <#list categoryUtil.getAssetEntryAssetCategories(link.getEntryId()) as linkCat > 
336                        <#if (linkCat.categoryId == catId && link.getEntryId() != assetEntry.getEntryId()) > 
337                            <#if (link.visible) > 
338    							<li><a href="/-/${linkedArticle.urlTitle}">${linkedArticle.getTitle(locale)}</a> </li> 
339    							<#break> 
340                            </#if> 
341                        </#if> 
342                    </#list> 
343                </#list> 
344            </#if> 
345        </ul> 
346    </div> 
347     
348    <div class="lifecycle cor"> 
349        <div class="row-fluid" style="text-align:center;"> 
350            <div style="width:49%;display: inline-block;vertical-align:top;padding:5px 0;"> 
351                <a href="/-/3677382-atualizacao-cartografica"> 
352    				<div class="icon-wrapper"> 
353    					<i class="icon-mt-terra"></i> 
354    				</div> 
355    				<span style="text-transform:uppercase;">Diretoria de Cartografia e Acervo Fundiário</span> 
356    			</a> 
357            </div> 
358            <div style="width:49%;display: inline-block;vertical-align:top;padding:5px 0;"> 
359                <a href="/-/9408312-projetos-de-assentamentos"> 
360    				<div class="icon-wrapper"> 
361    					<i class="icon-mt-agricultura"></i> 
362    				</div> 
363    				<span style="text-transform:uppercase;">Diretoria Rural</span> 
364    			</a> 
365            </div> 
366        </div> 
367        <div class="row-fluid" style="text-align:center;"> 
368            <div style="width:49%;display: inline-block;vertical-align:top;padding:5px 0;"> 
369                <a href="/-/19171957-regularizacao-fundiaria-urbana"> 
370    				<div class="icon-wrapper"> 
371    					<i class="icon-mt-urbanismo"></i> 
372    				</div> 
373    				<span style="text-transform:uppercase;">Diretoria de Regularização Fundiária Urbana</span> 
374    			</a> 
375            </div> 
376            <div style="width:49%;display: inline-block;vertical-align:top;padding:5px 0;"> 
377                <a href="/-/18639998-certidao-administrativa"> 
378    				<div class="icon-wrapper"> 
379    					<i class="icon-mt-trabalho-4"></i> 
380    				</div> 
381    				<span style="text-transform:uppercase;">Diretoria de Adm. Sistêmica</span> 
382    			</a> 
383            </div> 
384        </div> 
385    </div> 
386     
387    <script type="text/javascript"> 
388        var serviceHeader = jQuery('.mt-service .header-service').clone(); 
389        var serviceContent = jQuery('.mt-service .asset-full-content').clone(); 
390        var serviceIcon = jQuery('.mt-service .cat-service-icon').clone(); 
391        var serviceList = jQuery('.mt-service .relateds').clone(); 
392        var lifecycle = jQuery('.mt-service .lifecycle').clone(); 
393     
394        jQuery('.mt-service .asset-full-content').remove(); 
395     
396        if('${lifecycle}' != ''){ 
397            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>'); 
398        }else{ 
399            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>'); 
400
401        jQuery('#left-col').append(serviceIcon); 
402        jQuery('#left-col').append(serviceList); 
403        jQuery('#left-col').append(lifecycle); 
404        jQuery('#service-content').append(serviceContent); 
405     
406        jQuery('.mt-service .header-service').remove(); 
407        jQuery('.mt-service .asset-full-content .cat-service-icon').remove(); 
408        jQuery('.mt-service .asset-full-content .relateds').remove(); 
409        jQuery('.mt-service .asset-full-content .lifecycle').remove(); 
410        jQuery('#service-header').append(serviceHeader); 
411     
412        window.setTimeout( function(){ 
413            var search = document.querySelectorAll('.mt-search form')[0]; 
414            document.querySelectorAll('.pagetitle-content')[0].appendChild(search); 
415            document.querySelectorAll('.mt-search')[0].style.display = 'none'; 
416            document.querySelectorAll('.pagetitle-content select')[0].style.display = 'none'; 
417            document.querySelectorAll('.pagetitle-content form')[0].style.display = '-webkit-inline-box'; 
418            document.querySelectorAll('.pagetitle-content form')[0].style.marginLeft = '20px'; 
419            document.querySelectorAll('.pagetitle-content form')[0].style.marginBottom = '0'; 
420     
421            var x = document.querySelectorAll(".pagetitle-content input[type='image']")[0].src.replace("search.png", "search2.png"); 
422            document.querySelectorAll(".pagetitle-content input[type='image']")[0].src = x; 
423            document.querySelectorAll(".pagetitle-content input[type='image']")[0].style.marginLeft = "-34px"; 
424            document.querySelectorAll(".pagetitle-content input[type='image']")[0].style.background = "rgba(255,255,255,0.3)"; 
425            document.querySelectorAll(".pagetitle-content input[type='image']")[0].style.padding = "5px"; 
426            document.querySelectorAll(".pagetitle-content input[type='image']")[0].style.marginTop = "-2px"; 
427     
428            document.querySelectorAll('.pagetitle-content')[0].style.paddingBottom = '0'; 
429            document.querySelectorAll('.pagetitle-content')[0].style.paddingTop = '10px'; 
430     
431        }, 500 ); 
432    </script> 
433<#else> 
434    <style> 
435    .cat-service-icon{width:100%;text-align:center;color:#fff;background:#00AEEF !important;position:relative;} 
436    .line-link{border-top: 3px solid #00AEEF;position: absolute;right: -35px;top: 90px;height: 1px;width: 50px;} 
437    #service-content{margin-top:-5px;} 
438    #service-background{} 
439    #left-col{} 
440    .mt-service .asset-full-content{font-family:'Calibri';text-align: justify;margin-top: 55px;padding-right: 20px;} 
441    .attach-title { 
442       font-family: 'Nexa'; 
443       text-transform: uppercase; 
444       color: #fff; 
445       font-size: 14px; 
446       padding: 5px; 
447       background-color: #1255A6; 
448
449    .attach-content { 
450       margin-top: 3px; 
451       padding: 10px 0; 
452       border-top: 2px solid #1255A6; 
453
454    .orgao{font-family:'Calibri';    margin-top: 30px;} 
455    .brasao{font-family:'Nexa';text-transform:uppercase;text-align: center;} 
456    .brasao .icon-wrapper{border: 2px solid #fff; 
457        width: 34px; 
458        height: 34px; 
459        display: table !important; 
460        margin: 0 auto; 
461        padding: 5px;} 
462    .brasao i.service-icon{padding:0 !important;color:#fff;} 
463    .mini{font-size:.4em;} 
464    .sigla{font-family:'Nexa';color:#fff;text-transform:uppercase;} 
465    .line{display:block;font-size:14px;} 
466    .relateds{} 
467    .relateds ul{list-style: none;color: #fff;padding: 7px 10px 10px 0;margin: 0 0 0 10px;} 
468    .relateds ul li{border-bottom:1px solid #fff;line-height: 15px;padding-bottom: 5px;padding-top: 3px;} 
469    .relateds ul li a:hover{color:#009ae5;} 
470    .lifecycle{padding: 10px;background:#193177 !important;} 
471    .lifecycle .icon-wrapper i{font-size: 36px;display: table-cell;padding: 15px;} 
472    .lifecycle .row-fluid > div:hover{background:#5a70b0;} 
473    .service-title{background:#00AEEF;text-align;display: -webkit-inline-box;} 
474    .service-title h1{color:#fff;padding:20px;margin:0;text-transform:uppercase;font-size: 1.8em;display: inline-flex;} 
475    .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;} 
476    .service-lc-title small {font-size: 14px;line-height: 18px;margin-top: -40px;position: absolute;} 
477    .ico-service {border: 4px solid #fff;display: table !important;border-radius: 100%;padding: 10px;} 
478    .ico-service i {color:#fff;font-size:100px;padding:10px;display: table-cell !important;} 
479    .back-service{min-height: 200px !important;background-size: cover !important;padding: 15px;width: 48.1%;float: right;} 
480    .cor .icon-wrapper { 
481      border: 2px solid #fff; 
482      width: 68px; 
483      height: 68px; 
484      display: table !important; 
485      border-radius: 50px; 
486      margin: 0 auto; 
487      padding: 5px; 
488
489    .cor a, .cor .service-icon{color:#fff;} 
490    .cor a:hover{color:#fff;text-decoration:none;} 
491    .pagetitle-content input[type="text"] { 
492        color: #fff; 
493        background: rgba(255,255,255,0.3); 
494        border: 0; 
495        padding: 3px 5px; 
496        margin-top: 5px; 
497
498    .pagetitle-content .search-layout{display:none;} 
499    .pagetitle-content .control-group{margin-bottom:0;} 
500    .pagetitle-content .liferaytokenlist{display:none;} 
501    .pagetitle-content form{margin: 0;display: -webkit-inline-box;padding-left: 20px;} 
502    .taglib-header{display:none;} 
503    </style> 
504     
505     
506    <#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") /> 
507    <#assign ja = journalArticleLocalService.getArticle( groupId, .vars['reserved-article-id'].data ) /> 
508    <#assign resourceprimKey = ja.getResourcePrimKey() /> 
509    <#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") /> 
510    <#assign assetEntry = assetEntryLocalService.getEntry("com.liferay.journal.model.JournalArticle", resourceprimKey) /> 
511    <#assign categoryUtil = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService") /> 
512    <#assign categoryPorpertyService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryPropertyLocalService") /> 
513    <#assign assetCategories = categoryUtil.getAssetEntryAssetCategories(assetEntry.getEntryId()) /> 
514     
515    <#assign lifecycle = (httpUtil.getParameter(request["attributes"].CURRENT_COMPLETE_URL, 'ciclo'))!'' /> 
516     
517    <#if (lifecycle == 'cv_indcom') > 
518    	<#assign lifecycleLabel = 'indústria e comércio' /> 
519    <#elseif (lifecycle == 'cv_empinv') > 
520    	<#assign lifecycleLabel = 'empreendedorismo e investimentos' /> 
521    <#elseif (lifecycle == 'cv_agremp') > 
522    	<#assign lifecycleLabel = 'agricultura empresarial' /> 
523    <#elseif (lifecycle == 'cv_tur') > 
524    	<#assign lifecycleLabel = 'turismo' /> 
525    <#else > 
526        <#--  <#assign lifecycleLabel = ''/>  --> 
527    </#if> 
528     
529    <#assign jaTags = serviceLocator.findService("com.liferay.asset.kernel.service.AssetTagLocalService") /> 
530     
531    <#list jaTags.getAssetEntryAssetTags(assetEntry.entryId) as aeTag > 
532        <#if aeTag.name == lifecycle > 
533            <#assign tagId = aeTag.tagId /> 
534        </#if> 
535    </#list> 
536     
537    <#list assetCategories as category > 
538        <#if (category.name == "Diretoria de Cartografia e Acervo Fundiário") > 
539    		<#assign catIcon= "icon-mt-terra" /> 
540    	<#elseif (category.name == "Diretoria Rural") > 
541    		<#assign catIcon= "icon-mt-agricultura" /> 
542    	<#elseif (category.name == "Diretoria de Regularização Fundiária Urbana") > 
543    		<#assign catIcon= "icon-mt-urbanismo" /> 
544    	<#elseif (category.name == "Diretoria de Administração Sistêmica") > 
545    		<#assign catIcon= "icon-mt-trabalho-4" /> 
546    	<#elseif (category.name == "Atendimento ao Usuário") > 
547    		<#assign catIcon= "icon-mt-computador-2" /> 
548    	<#elseif (category.name == "Acesso à Informação") > 
549    		<#assign catIcon= "icon-info-sign" /> 
550    	<#elseif (category.name == "Ações e Programas") > 
551    		<#assign catIcon= "icon-eye-open" /> 
552    	<#elseif (category.name == "Aquisições") > 
553    		<#assign catIcon= "icon-th-large" /> 
554    	<#elseif (category.name == "Intermat") > 
555    		<#assign catIcon= "icon-mt-governo" /> 
556    	<#elseif (category.name == "Informações Cartográficas e Fundiárias") > 
557    		<#assign catIcon= "icon-mt-mt" /> 
558        </#if> 
559     
560    	<#assign catName = category.name /> 
561    	<#assign catId = (category.categoryId)!0 /> 
562        <#break> 
563    </#list> 
564     
565    <#if (lifecycle != '') > 
566        <#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") /> 
567     
568        <#-- MIGRACAO: Verificar posteriormente o numero magico da linha abaixo --> 
569        <#list assetEntryLocalService.getAssetTagAssetEntries(286987) as header > 
570            <#if (header.getTitle(locale)?lower_case == lifecycleLabel) > 
571                <#assign renderer = header.getAssetRenderer()  /> 
572                <#assign className = renderer.getClassName()  /> 
573                <#if className == "com.liferay.portlet.journal.model.JournalArticle"  > 
574     
575                    <#assign 
576                        jad = renderer.getArticle() 
577                        document = saxReaderUtil.read(jad.getContent()) 
578                        rootElement = document.getRootElement() 
579     
580                        xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='color']/dynamic-content") 
581                        color = (xPathSelector.selectSingleNode(rootElement).getStringValue())!"" 
582     
583                        xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='icon']/dynamic-content") 
584                        icon = (xPathSelector.selectSingleNode(rootElement).getStringValue())!"" 
585     
586                        xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='category']/dynamic-content") 
587                        category = (xPathSelector.selectSingleNode(rootElement).getStringValue())!"" 
588     
589                        xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='imagem']/dynamic-content") 
590                        imagem = (xPathSelector.selectSingleNode(rootElement).getStringValue())!"" 
591     
592                        xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='color_text']/dynamic-content") 
593                        style = (xPathSelector.selectSingleNode(rootElement).getStringValue())!"" 
594                    /> 
595     
596                    <style>.cor{background:${color};} .back-service{background: url(${imagem});}</style> 
597     
598                    <div class="row-fluid header-service" style="margin-top: -20px;"> 
599                        <div class="span12 cor contrast-cor1" style="padding-left: 2.5641%;"> 
600                            <div class="span12" style="padding:0;"> 
601                                <div style="float: left;margin-top: 4%;"> 
602                                <span style="display: -webkit-inline-box;"> 
603                                    <div class="ico-service"> 
604                                        <i class="${icon}"></i> 
605                                    </div> 
606                                </span> 
607                                <span class="service-lc-title">${category}<br/><small>Selecione a área relacionada ao serviço</small></span> 
608                                </div> 
609                                <!--<div class="back-service"> 
610                                </div>--> 
611                            </div> 
612                        </div> 
613                    </div> 
614                </#if> 
615                <#break> 
616            </#if> 
617        </#list> 
618    <#else> 
619        <style>.cor{background:#0071bb;}</style> 
620    </#if> 
621     
622    <div class="service-title"> 
623        <h1>${.vars['reserved-article-title'].data}</h1> 
624    </div> 
625     
626    <#if (image.getData()?trim != '') > 
627        <img style="margin-top:50px;" src="${image.getData()}" /> 
628    </#if> 
629    <br><br> 
630    ${full_text.getData()} 
631    <br><br> 
632     
633    <#if link_service.getData()?has_content > 
634        <span class="attach-title">Link do Serviço</span> 
635        <div class="attach-content row-fluid"><a href="${link_service.getData()}">${link_service.getData()}</a></div> 
636    <#elseif file.getData()?has_content > 
637        <span class="attach-title">Download</span> 
638        <div class="attach-content row-fluid"> 
639            <a href="${file.getData()}" download> 
640            	Clique aqui para baixar o arquivo 
641            </a> 
642        </div> 
643    </#if> 
644     
645    <div class="row-fluid orgao" style="display:none"> 
646        <div class="span6 brasao"> 
647            <a href="${site.getData()}"> 
648            <#if name.getData() == 'ses' > 
649                <img src="${theme_img_path!''}/brasoes/ses.png" /> 
650            <#elseif (name.getData() == 'secel') > 
651                <img src="${theme_img_path!''}/brasoes/secel.png" /> 
652            <#elseif (name.getData() == 'casacivil') > 
653                <img src="${theme_img_path!''}/brasoes/casacivil.png" /> 
654            <#elseif (name.getData() == 'casamilitar') > 
655                <img src="${theme_img_path!''}/brasoes/casamilitar.png" /> 
656            <#elseif (name.getData() == 'cge') > 
657                <img src="${theme_img_path!''}/brasoes/cge.png" /> 
658            <#elseif (name.getData() == 'gae') > 
659                <img src="${theme_img_path!''}/brasoes/gae.png" /> 
660            <#elseif (name.getData() == 'gcom') > 
661                <img src="${theme_img_path!''}/brasoes/gcom.png" /> 
662            <#elseif (name.getData() == 'gdr') > 
663                <img src="${theme_img_path!''}/brasoes/gdr.png" /> 
664            <#elseif (name.getData() == 'governadoria') > 
665                <img src="${theme_img_path!''}/brasoes/governadoria.png" /> 
666            <#elseif (name.getData() == 'gtcc') > 
667                <img src="${theme_img_path!''}/brasoes/gtcc.png" /> 
668            <#elseif (name.getData() == 'pge') > 
669                <img src="${theme_img_path!''}/brasoes/pge.png" /> 
670            <#elseif (name.getData() == 'seaf') > 
671                <img src="${theme_img_path!''}/brasoes/seaf.png" /> 
672            <#elseif (name.getData() == 'secid') > 
673                <img src="${theme_img_path!''}/brasoes/secid.png" /> 
674            <#elseif (name.getData() == 'seciteci') > 
675                <img src="${theme_img_path!''}/brasoes/seciteci.png" /> 
676            <#elseif (name.getData() == 'sedec') > 
677                <img src="${theme_img_path!''}/brasoes/sedec.png" /> 
678            <#elseif (name.getData() == 'seduc') > 
679                <img src="${theme_img_path!''}/brasoes/seduc.png" /> 
680            <#elseif (name.getData() == 'sefaz') > 
681                <img src="${theme_img_path!''}/brasoes/sefaz.png" /> 
682            <#elseif (name.getData() == 'seges') > 
683                <img src="${theme_img_path!''}/brasoes/seges.png" /> 
684            <#elseif (name.getData() == 'sejudh') > 
685                <img src="${theme_img_path!''}/brasoes/sejudh.png" /> 
686            <#elseif (name.getData() == 'sema') > 
687                <img src="${theme_img_path!''}/brasoes/sema.png" /> 
688            <#elseif (name.getData() == 'seplan') > 
689                <img src="${theme_img_path!''}/brasoes/seplan.png" /> 
690            <#elseif (name.getData() == 'sesp') > 
691                <img src="${theme_img_path!''}/brasoes/sesp.png" /> 
692            <#elseif (name.getData() == 'setas') > 
693                <img src="${theme_img_path!''}/brasoes/setas.png" /> 
694            <#elseif (name.getData() == 'sinfra') > 
695                <img src="${theme_img_path!''}/brasoes/sinfra.png" /> 
696            <#elseif (name.getData() == 'vicegov') > 
697                <img src="${theme_img_path!''}/brasoes/vice.png" /> 
698    		<#elseif (name.getData() == 'intermat') > 
699                <img src="${theme_img_path!''}/brasoes/intermat.png" /> 
700            <#else> 
701                <h3>${name.getData()}</h3> 
702            </#if> 
703            </a> 
704        </div> 
705        <div class="span6"> 
706     
707        </div> 
708    </div> 
709      
710    <#assign portalURL = themeDisplay.getPortalURL() /> 
711     
712    <div class="cat-service-icon cor" style="height:inherit;padding: 17px 0 10px;"> 
713        <div class="icon-wrapper"> 
714            <i class="service-icon ${catIcon!'icon-mt-mt'}"></i> 
715        </div> 
716        <h5 style="font-size:18px;font-weight:normal;text-transform:uppercase;">${catName!Categoria}</h5> 
717        <div class="line-link"></div> 
718        <#if lifecycle != '' > 
719            <a href="/servicos?ciclo=${lifecycle}"><i class="icon-arrow-left"></i> Serviços para ${lifecycleLabel}</a> 
720        <#else> 
721            <a href="/servicos"><i class="icon-arrow-left"></i> Todos os Serviços</a> 
722        </#if> 
723    </div> 
724     
725    <#assign assetLinkLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetLinkLocalService" ) /> 
726    <#assign currentArticleAssetEntry = assetEntryLocalService.getEntry("com.liferay.journal.model.JournalArticle", resourceprimKey) /> 
727    <#assign currentArticleAssetEntryEntryId = currentArticleAssetEntry.getEntryId() /> 
728    <#assign currentArticleRelatedLinks = assetLinkLocalService.getDirectLinks(currentArticleAssetEntryEntryId)/> 
729     
730    <div class="cor relateds"> 
731        <ul> 
732            <li>${ja.getTitle(locale)}</li> 
733            <#if lifecycle != '' > 
734                <#list assetEntryLocalService.getAssetTagAssetEntries(tagId) as link > 
735                    <#assign linkedArticle = journalArticleLocalService.getLatestArticle(link.getClassPK(), 0) /> 
736                    <#assign laTags = serviceLocator.findService("com.liferay.asset.kernel.service.AssetTagLocalService") /> 
737                    <#list categoryUtil.getAssetEntryAssetCategories(link.getEntryId()) as linkCat > 
738                        <#if linkCat.categoryId == catId && link.getEntryId() != assetEntry.getEntryId() > 
739    						<li><a href="/-/${linkedArticle.urlTitle}?ciclo=${lifecycle}">${linkedArticle.getTitle(locale)}</a></li> 
740    						<#break> 
741                        </#if> 
742                    </#list> 
743                </#list> 
744            <#else> 
745     
746                <#list assetEntryLocalService.getAssetCategoryAssetEntries(catId!0) as link > 
747                    <#assign linkedArticle = (journalArticleLocalService.getLatestArticle(link.getClassPK(), 0))! /> 
748                    <#assign laTags = serviceLocator.findService("com.liferay.asset.kernel.service.AssetTagLocalService") /> 
749     
750                    <#list categoryUtil.getAssetEntryAssetCategories(link.getEntryId()) as linkCat > 
751                        <#if (linkCat.categoryId == catId && link.getEntryId() != assetEntry.getEntryId()) > 
752                            <#if (link.visible) > 
753    							<li><a href="/-/${linkedArticle.urlTitle}">${linkedArticle.getTitle(locale)}</a> </li> 
754    							<#break> 
755                            </#if> 
756                        </#if> 
757                    </#list> 
758                </#list> 
759            </#if> 
760        </ul> 
761    </div> 
762     
763    <div class="lifecycle cor"> 
764        <div class="row-fluid" style="text-align:center;"> 
765            <div style="width:49%;display: inline-block;vertical-align:top;padding:5px 0;"> 
766                <a href="/-/3677382-atualizacao-cartografica"> 
767    				<div class="icon-wrapper"> 
768    					<i class="icon-mt-terra"></i> 
769    				</div> 
770    				<span style="text-transform:uppercase;">Diretoria de Cartografia e Acervo Fundiário</span> 
771    			</a> 
772            </div> 
773            <div style="width:49%;display: inline-block;vertical-align:top;padding:5px 0;"> 
774                <a href="/-/9408312-projetos-de-assentamentos"> 
775    				<div class="icon-wrapper"> 
776    					<i class="icon-mt-agricultura"></i> 
777    				</div> 
778    				<span style="text-transform:uppercase;">Diretoria Rural</span> 
779    			</a> 
780            </div> 
781        </div> 
782        <div class="row-fluid" style="text-align:center;"> 
783            <div style="width:49%;display: inline-block;vertical-align:top;padding:5px 0;"> 
784                <a href="/-/19171957-regularizacao-fundiaria-urbana"> 
785    				<div class="icon-wrapper"> 
786    					<i class="icon-mt-urbanismo"></i> 
787    				</div> 
788    				<span style="text-transform:uppercase;">Diretoria de Regularização Fundiária Urbana</span> 
789    			</a> 
790            </div> 
791            <div style="width:49%;display: inline-block;vertical-align:top;padding:5px 0;"> 
792                <a href="/-/18639998-certidao-administrativa"> 
793    				<div class="icon-wrapper"> 
794    					<i class="icon-mt-trabalho-4"></i> 
795    				</div> 
796    				<span style="text-transform:uppercase;">Diretoria de Adm. Sistêmica</span> 
797    			</a> 
798            </div> 
799        </div> 
800    </div> 
801     
802    <script type="text/javascript"> 
803        var serviceHeader = jQuery('.mt-service .header-service').clone(); 
804        var serviceContent = jQuery('.mt-service .asset-full-content').clone(); 
805        var serviceIcon = jQuery('.mt-service .cat-service-icon').clone(); 
806        var serviceList = jQuery('.mt-service .relateds').clone(); 
807        var lifecycle = jQuery('.mt-service .lifecycle').clone(); 
808     
809        jQuery('.mt-service .asset-full-content').remove(); 
810     
811        if('${lifecycle}' != ''){ 
812            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>'); 
813        }else{ 
814            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>'); 
815
816        jQuery('#left-col').append(serviceIcon); 
817        jQuery('#left-col').append(serviceList); 
818        jQuery('#left-col').append(lifecycle); 
819        jQuery('#service-content').append(serviceContent); 
820     
821        jQuery('.mt-service .header-service').remove(); 
822        jQuery('.mt-service .asset-full-content .cat-service-icon').remove(); 
823        jQuery('.mt-service .asset-full-content .relateds').remove(); 
824        jQuery('.mt-service .asset-full-content .lifecycle').remove(); 
825        jQuery('#service-header').append(serviceHeader); 
826     
827        window.setTimeout( function(){ 
828            var search = document.querySelectorAll('.mt-search form')[0]; 
829            document.querySelectorAll('.pagetitle-content')[0].appendChild(search); 
830            document.querySelectorAll('.mt-search')[0].style.display = 'none'; 
831            document.querySelectorAll('.pagetitle-content select')[0].style.display = 'none'; 
832            document.querySelectorAll('.pagetitle-content form')[0].style.display = '-webkit-inline-box'; 
833            document.querySelectorAll('.pagetitle-content form')[0].style.marginLeft = '20px'; 
834            document.querySelectorAll('.pagetitle-content form')[0].style.marginBottom = '0'; 
835     
836            var x = document.querySelectorAll(".pagetitle-content input[type='image']")[0].src.replace("search.png", "search2.png"); 
837            document.querySelectorAll(".pagetitle-content input[type='image']")[0].src = x; 
838            document.querySelectorAll(".pagetitle-content input[type='image']")[0].style.marginLeft = "-34px"; 
839            document.querySelectorAll(".pagetitle-content input[type='image']")[0].style.background = "rgba(255,255,255,0.3)"; 
840            document.querySelectorAll(".pagetitle-content input[type='image']")[0].style.padding = "5px"; 
841            document.querySelectorAll(".pagetitle-content input[type='image']")[0].style.marginTop = "-2px"; 
842     
843            document.querySelectorAll('.pagetitle-content')[0].style.paddingBottom = '0'; 
844            document.querySelectorAll('.pagetitle-content')[0].style.paddingTop = '10px'; 
845     
846        }, 500 ); 
847    </script> 
848</#if>