Publicador de Conteúdos e Mídias

Um erro ocorreu enquanto processava o modelo.
The following has evaluated to null or missing:
==> artigoFieldSet.imagem_do_artigoFieldSet.imagem_do_artigo.credito_da_imagem  [in template "20154#20194#22146" at line 435, column 14]

----
Tip: It's the step after the last dot that caused this error, not those before it.
----
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: #if artigoFieldSet.imagem_do_artigoFi...  [in template "20154#20194#22146" at line 435, column 9]
----
1<#-- Retrieve the friendlyURL --> 
2<#-- <#assign serviceContext = staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext()> 
3<#assign themeDisplay = serviceContext.getThemeDisplay() />  --> 
4<#assign layout = themeDisplay.getLayout() /> 
5<#assign friendlyURL = layout.getGroup().getFriendlyURL() > 
6 
7<#-- Retrieve the published date meta data field of the web content --> 
8<#assign displaydate = .vars['reserved-article-display-date'].data> 
9<#assign modifiedDate = .vars['reserved-article-modified-date'].data> 
10<#assign displaytitle = .vars['reserved-article-title'].data> 
11<#assign displayTags = .vars['reserved-article-asset-tag-names'].data> 
12<#assign dateDayFormat = "dd" /> 
13<#assign dateMonthFormat = "MMM" /> 
14<#assign dateYearFormat = "yyyy" /> 
15 
16<#assign companyLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.CompanyLocalService")> 
17 
18<#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")> 
19 
20<#assign groupLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.GroupLocalService")> 
21 
22<#assign catLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService" )> 
23 
24<#assign tagLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetTagLocalService" )> 
25 
26<#assign assetLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService" )> 
27 
28<#assign assetEntryQuery = objectUtil("com.liferay.asset.kernel.service.persistence.AssetEntryQuery") /> 
29 
30<#assign getterUtil = staticUtil["com.liferay.portal.kernel.util.GetterUtil"] /> 
31 
32<#assign currentArticle = JournalArticleLocalService.getArticle(getterUtil.getLong(groupId),.vars['reserved-article-id'].data)> 
33 
34<#assign currentArticleResourcePrimKey = currentArticle.getResourcePrimKey()> 
35 
36<#assign categoriesList = catLocalService.getCategories("com.liferay.journal.model.JournalArticle", currentArticleResourcePrimKey)/> 
37 
38<#assign asset = assetLocalService.getEntry("com.liferay.journal.model.JournalArticle", currentArticleResourcePrimKey)/> 
39<#--  <#assign categoriesList = catLocalService.getCategories("com.liferay.portlet.journal.model.JournalArticle", currentArticleResourcePrimKey)/>  --> 
40 
41<#-- <#assign articleCatIds = catLocalService.getCategoryIds("com.liferay.portlet.journal.model.JournalArticle", currentArticleResourcePrimKey)/> 
42 --> 
43<#assign articleCatIds = []> 
44<#list categoriesList as category> 
45   
46    <#assign articleCatIds = articleCatIds + [category.getCategoryId()]> 
47 
48  <#assign companyId = category.getCompanyId() /> 
49  <#assign groupId = category.getGroupId() /> 
50</#list> 
51 
52<#-- Parametros da query de assets --> 
53<#assign VOID = assetEntryQuery.setAnyCategoryIds(articleCatIds) /> 
54<#assign VOID = assetEntryQuery.setClassName("com.liferay.journal.model.JournalArticle") /> 
55<#assign VOID = assetEntryQuery.setEnd(4) /> 
56<#assign VOID = assetEntryQuery.setStart(-1) /> 
57<#assign VOID = assetEntryQuery.setOrderByCol1("publishDate") /> 
58 
59<#assign assetsFromCategories = assetLocalService.getEntries(assetEntryQuery) /> 
60 
61<#assign assetEntry = assetLocalService.fetchEntry("com.liferay.journal.model.JournalArticle", currentArticleResourcePrimKey)/> 
62 
63<#-- Save the original page locale for later --> 
64<#assign originalLocale = .locale> 
65 
66<#-- Set the page locale to the portals default locale --> 
67<#setting locale = localeUtil.getDefault()> 
68 
69<#-- Parse the date to a date object --> 
70<#assign displaydate = displaydate?datetime("EEE, d MMM yyyy HH:mm:ss Z")> 
71<#assign modifiedDate = modifiedDate?datetime("EEE, d MMM yyyy HH:mm:ss Z")> 
72 
73<#-- Url para pagina de tags por categoria --> 
74<#assign vocabularyService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetVocabularyLocalService")> 
75 
76<#-- Set the page locale back to the original page locale --> 
77<#assign locale = originalLocale> 
78 
79<#-- Noticia--> 
80<#assign targetViewUrl = "conteudo-aberto" /> 
81<#assign targetFriendlyURL = "noticias-por-categoria" /> 
82 
83<#-- Video--> 
84<#assign targetFriendlyURLVideo = "videos-por-categoria" /> 
85<#assign targetViewUrlVideo = "video-aberto" /> 
86 
87<#-- Blog--> 
88<#assign targetFriendlyURLBlog = "noticias-do-blog-por-categoria" /> 
89<#assign targetViewUrlBlog = "postagens" /> 
90 
91<#switch friendlyURL > 
92    <#case "/campus-gaspar"> 
93        <#-- targetPortletIds --> 
94        <#assign targetPortletID = "aqui" /> 
95        <#assign targetPortletIDVideo = "aqui" /> 
96        <#assign targetPortletIDBlog = "aqui" /> 
97        <#break> 
98    <#default> 
99        <#-- targetPortletIds --> 
100        <#assign targetPortletID = "1UWKZAkiOauK" /> 
101        <#assign targetPortletIDVideo = "vZPnNKXPMtme" /> 
102        <#assign targetPortletIDBlog = "qYC5Mt2Bw6wv" /> 
103</#switch> 
104 
105<#assign newsBlog = false> 
106 
107<#list categoriesList as category> 
108    <#if category.getName() == "Blog"> 
109        <#assign newsBlog = true> 
110        <#break> 
111    </#if> 
112</#list> 
113 
114<#--Chapéu --> 
115<#assign assetRenderer = assetEntry.getAssetRenderer() /> 
116<#assign article = currentArticle /> 
117<#assign document = saxReaderUtil.read(article.getContent())/> 
118<#assign rootElement = document.getRootElement() /> 
119<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='artigoFieldSet']") /> 
120<#assign nome_chapeu = "" /> 
121 
122<#if xPathSelector.selectSingleNode(rootElement).selectSingleNode("dynamic-element[@name='nome_chapeu']")?? > 
123    <#assign nome_chapeu = xPathSelector.selectSingleNode(rootElement).selectSingleNode("dynamic-element[@name='nome_chapeu']").getStringValue() /> 
124</#if> 
125 
126 
127<#assign hasZero = false > 
128<#list categoriesList as category > 
129        <#if category.name != "Destaque Portal" && category.name != "Notícias" && category.getName() !=  "Manchete Portal"  && category.getName() != "Noticia" && category.getName() != "Vídeo" && category.getName() != "Destaque Todos os sites" && category.getName() != "Manchete Todos os sites" && category.name != "Manchete Câmpus São José" && category.name != "Manchete Câmpus São Lourenço do Oeste" && category.name != "Manchete Câmpus São Miguel do Oeste" && category.name != "Manchete Câmpus Tubarão" && category.name != "Manchete Câmpus Urupema" && category.name != "Manchete Câmpus Xanxerê" && category.name != "Destaque Câmpus Florianópolis" && category.name != "Destaque Câmpus Florianópolis-Continente" && category.name != "Destaque Câmpus Garopaba" && category.name != "Destaque Câmpus Gaspar" && category.name != "Destaque Câmpus Itajaí" && category.name != "Destaque Câmpus Jaraguá" && category.name != "Destaque Câmpus Joinville" && category.name != "Destaque Câmpus Lages" && category.name != "Destaque Câmpus Palhoça Bilíngue" && category.name != "Destaque Câmpus São Carlos" && category.name != "Destaque Câmpus Tubarão" && category.name != "Destaque Câmpus Urupema" && category.name != "Destaque Câmpus Xanxerê" && category.name != "Manchete Câmpus Garopaba" && category.name != "Manchete Câmpus Gaspar" && category.name != "Manchete Câmpus Itajaí" && category.name != "Manchete Câmpus Lages" && category.name != "Manchete Câmpus Palhoça Bilíngue" && category.name != "Manchete Câmpus São Carlos" && category.name != "Manchete Câmpus Jaraguá" && category.name != "Manchete Câmpus Joinville" && category.name != "Manchete Câmpus Criciúma" && category.name != "Manchete Câmpus Florianópolis" && category.name != "Manchete Câmpus Florianópolis-Continente" && category.name != "Destaque Câmpus Araranguá" && category.name != "Destaque Câmpus Caçador" && category.name != "Destaque Câmpus Canoinhas" && category.name != "Destaque Câmpus Chapecó" && category.name != "Destaque Câmpus Criciúma" && category.name != "Destaque Câmpus São José" && category.name != "Destaque Câmpus São Lourenço do Oeste" && category.name != "Destaque Câmpus São Miguel do Oeste" && category.name != "Manchete Câmpus Araranguá" && category.name != "Manchete Câmpus Caçador" && category.name != "Manchete Câmpus Canoinhas" && category.name != "Manchete Câmpus Chapecó" && category.name != "Blog" > 
130        <#assign categoryIndex = category_index /> 
131        <#assign isZero =  (categoryIndex == 0)> 
132        <#if (isZero) > 
133          <#assign hasZero = true > 
134          <#break> 
135        </#if> 
136    </#if> 
137</#list> 
138 
139<#assign hasFirst = false > 
140<#list categoriesList as category > 
141        <#if category.name != "Destaque Portal" && category.name != "Notícias" && category.getName() !=  "Manchete Portal"  && category.getName() != "Noticia" && category.getName() != "Vídeo" && category.getName() != "Destaque Todos os sites" && category.getName() != "Manchete Todos os sites" && category.name != "Manchete Câmpus São José" && category.name != "Manchete Câmpus São Lourenço do Oeste" && category.name != "Manchete Câmpus São Miguel do Oeste" && category.name != "Manchete Câmpus Tubarão" && category.name != "Manchete Câmpus Urupema" && category.name != "Manchete Câmpus Xanxerê" && category.name != "Destaque Câmpus Florianópolis" && category.name != "Destaque Câmpus Florianópolis-Continente" && category.name != "Destaque Câmpus Garopaba" && category.name != "Destaque Câmpus Gaspar" && category.name != "Destaque Câmpus Itajaí" && category.name != "Destaque Câmpus Jaraguá" && category.name != "Destaque Câmpus Joinville" && category.name != "Destaque Câmpus Lages" && category.name != "Destaque Câmpus Palhoça Bilíngue" && category.name != "Destaque Câmpus São Carlos" && category.name != "Destaque Câmpus Tubarão" && category.name != "Destaque Câmpus Urupema" && category.name != "Destaque Câmpus Xanxerê" && category.name != "Manchete Câmpus Garopaba" && category.name != "Manchete Câmpus Gaspar" && category.name != "Manchete Câmpus Itajaí" && category.name != "Manchete Câmpus Lages" && category.name != "Manchete Câmpus Palhoça Bilíngue" && category.name != "Manchete Câmpus São Carlos" && category.name != "Manchete Câmpus Jaraguá" && category.name != "Manchete Câmpus Joinville" && category.name != "Manchete Câmpus Criciúma" && category.name != "Manchete Câmpus Florianópolis" && category.name != "Manchete Câmpus Florianópolis-Continente" && category.name != "Destaque Câmpus Araranguá" && category.name != "Destaque Câmpus Caçador" && category.name != "Destaque Câmpus Canoinhas" && category.name != "Destaque Câmpus Chapecó" && category.name != "Destaque Câmpus Criciúma" && category.name != "Destaque Câmpus São José" && category.name != "Destaque Câmpus São Lourenço do Oeste" && category.name != "Destaque Câmpus São Miguel do Oeste" && category.name != "Manchete Câmpus Araranguá" && category.name != "Manchete Câmpus Caçador" && category.name != "Manchete Câmpus Canoinhas" && category.name != "Manchete Câmpus Chapecó" && category.name != "Blog" > 
142        <#assign categoryIndex = category_index /> 
143        <#assign isFirst =  (categoryIndex == 1)> 
144        <#if (isFirst) > 
145          <#assign hasFirst = true > 
146          <#break> 
147        </#if> 
148    </#if> 
149</#list> 
150 
151<#assign hasSecond = false > 
152<#list categoriesList as category > 
153        <#if category.name != "Destaque Portal" && category.name != "Notícias" && category.getName() !=  "Manchete Portal"  && category.getName() != "Noticia" && category.getName() != "Vídeo" && category.getName() != "Destaque Todos os sites" && category.getName() != "Manchete Todos os sites" && category.name != "Manchete Câmpus São José" && category.name != "Manchete Câmpus São Lourenço do Oeste" && category.name != "Manchete Câmpus São Miguel do Oeste" && category.name != "Manchete Câmpus Tubarão" && category.name != "Manchete Câmpus Urupema" && category.name != "Manchete Câmpus Xanxerê" && category.name != "Destaque Câmpus Florianópolis" && category.name != "Destaque Câmpus Florianópolis-Continente" && category.name != "Destaque Câmpus Garopaba" && category.name != "Destaque Câmpus Gaspar" && category.name != "Destaque Câmpus Itajaí" && category.name != "Destaque Câmpus Jaraguá" && category.name != "Destaque Câmpus Joinville" && category.name != "Destaque Câmpus Lages" && category.name != "Destaque Câmpus Palhoça Bilíngue" && category.name != "Destaque Câmpus São Carlos" && category.name != "Destaque Câmpus Tubarão" && category.name != "Destaque Câmpus Urupema" && category.name != "Destaque Câmpus Xanxerê" && category.name != "Manchete Câmpus Garopaba" && category.name != "Manchete Câmpus Gaspar" && category.name != "Manchete Câmpus Itajaí" && category.name != "Manchete Câmpus Lages" && category.name != "Manchete Câmpus Palhoça Bilíngue" && category.name != "Manchete Câmpus São Carlos" && category.name != "Manchete Câmpus Jaraguá" && category.name != "Manchete Câmpus Joinville" && category.name != "Manchete Câmpus Criciúma" && category.name != "Manchete Câmpus Florianópolis" && category.name != "Manchete Câmpus Florianópolis-Continente" && category.name != "Destaque Câmpus Araranguá" && category.name != "Destaque Câmpus Caçador" && category.name != "Destaque Câmpus Canoinhas" && category.name != "Destaque Câmpus Chapecó" && category.name != "Destaque Câmpus Criciúma" && category.name != "Destaque Câmpus São José" && category.name != "Destaque Câmpus São Lourenço do Oeste" && category.name != "Destaque Câmpus São Miguel do Oeste" && category.name != "Manchete Câmpus Araranguá" && category.name != "Manchete Câmpus Caçador" && category.name != "Manchete Câmpus Canoinhas" && category.name != "Manchete Câmpus Chapecó" && category.name != "Blog" > 
154        <#assign categoryIndex = category_index /> 
155        <#assign hasSecond =  (categoryIndex == 2)> 
156        <#if (hasSecond) > 
157          <#assign hasSecond = true > 
158          <#break> 
159        </#if> 
160    </#if> 
161</#list> 
162 
163<#assign hasThird = false > 
164<#list categoriesList as category > 
165        <#if category.name != "Destaque Portal" && category.name != "Notícias" && category.getName() !=  "Manchete Portal"  && category.getName() != "Noticia" && category.getName() != "Vídeo" && category.getName() != "Destaque Todos os sites" && category.getName() != "Manchete Todos os sites" && category.name != "Manchete Câmpus São José" && category.name != "Manchete Câmpus São Lourenço do Oeste" && category.name != "Manchete Câmpus São Miguel do Oeste" && category.name != "Manchete Câmpus Tubarão" && category.name != "Manchete Câmpus Urupema" && category.name != "Manchete Câmpus Xanxerê" && category.name != "Destaque Câmpus Florianópolis" && category.name != "Destaque Câmpus Florianópolis-Continente" && category.name != "Destaque Câmpus Garopaba" && category.name != "Destaque Câmpus Gaspar" && category.name != "Destaque Câmpus Itajaí" && category.name != "Destaque Câmpus Jaraguá" && category.name != "Destaque Câmpus Joinville" && category.name != "Destaque Câmpus Lages" && category.name != "Destaque Câmpus Palhoça Bilíngue" && category.name != "Destaque Câmpus São Carlos" && category.name != "Destaque Câmpus Tubarão" && category.name != "Destaque Câmpus Urupema" && category.name != "Destaque Câmpus Xanxerê" && category.name != "Manchete Câmpus Garopaba" && category.name != "Manchete Câmpus Gaspar" && category.name != "Manchete Câmpus Itajaí" && category.name != "Manchete Câmpus Lages" && category.name != "Manchete Câmpus Palhoça Bilíngue" && category.name != "Manchete Câmpus São Carlos" && category.name != "Manchete Câmpus Jaraguá" && category.name != "Manchete Câmpus Joinville" && category.name != "Manchete Câmpus Criciúma" && category.name != "Manchete Câmpus Florianópolis" && category.name != "Manchete Câmpus Florianópolis-Continente" && category.name != "Destaque Câmpus Araranguá" && category.name != "Destaque Câmpus Caçador" && category.name != "Destaque Câmpus Canoinhas" && category.name != "Destaque Câmpus Chapecó" && category.name != "Destaque Câmpus Criciúma" && category.name != "Destaque Câmpus São José" && category.name != "Destaque Câmpus São Lourenço do Oeste" && category.name != "Destaque Câmpus São Miguel do Oeste" && category.name != "Manchete Câmpus Araranguá" && category.name != "Manchete Câmpus Caçador" && category.name != "Manchete Câmpus Canoinhas" && category.name != "Manchete Câmpus Chapecó" && category.name != "Blog" > 
166        <#assign categoryIndex = category_index /> 
167        <#assign  hasThird =  (categoryIndex == 3)> 
168        <#if (hasThird) > 
169          <#assign hasThird = true > 
170          <#break> 
171        </#if> 
172    </#if> 
173</#list> 
174 
175<#assign chapeuCategory = ""/> 
176<#assign hasCategory = false> 
177 
178<#list categoriesList as category > 
179        <#if category.name != "Destaque Portal" && category.name != "Notícias" && category.getName() !=  "Manchete Portal"  && category.getName() != "Noticia" && category.getName() != "Vídeo" && category.getName() != "Destaque Todos os sites" && category.getName() != "Manchete Todos os sites" && category.name != "Manchete Câmpus São José" && category.name != "Manchete Câmpus São Lourenço do Oeste" && category.name != "Manchete Câmpus São Miguel do Oeste" && category.name != "Manchete Câmpus Tubarão" && category.name != "Manchete Câmpus Urupema" && category.name != "Manchete Câmpus Xanxerê" && category.name != "Destaque Câmpus Florianópolis" && category.name != "Destaque Câmpus Florianópolis-Continente" && category.name != "Destaque Câmpus Garopaba" && category.name != "Destaque Câmpus Gaspar" && category.name != "Destaque Câmpus Itajaí" && category.name != "Destaque Câmpus Jaraguá" && category.name != "Destaque Câmpus Joinville" && category.name != "Destaque Câmpus Lages" && category.name != "Destaque Câmpus Palhoça Bilíngue" && category.name != "Destaque Câmpus São Carlos" && category.name != "Destaque Câmpus Tubarão" && category.name != "Destaque Câmpus Urupema" && category.name != "Destaque Câmpus Xanxerê" && category.name != "Manchete Câmpus Garopaba" && category.name != "Manchete Câmpus Gaspar" && category.name != "Manchete Câmpus Itajaí" && category.name != "Manchete Câmpus Lages" && category.name != "Manchete Câmpus Palhoça Bilíngue" && category.name != "Manchete Câmpus São Carlos" && category.name != "Manchete Câmpus Jaraguá" && category.name != "Manchete Câmpus Joinville" && category.name != "Manchete Câmpus Criciúma" && category.name != "Manchete Câmpus Florianópolis" && category.name != "Manchete Câmpus Florianópolis-Continente" && category.name != "Destaque Câmpus Araranguá" && category.name != "Destaque Câmpus Caçador" && category.name != "Destaque Câmpus Canoinhas" && category.name != "Destaque Câmpus Chapecó" && category.name != "Destaque Câmpus Criciúma" && category.name != "Destaque Câmpus São José" && category.name != "Destaque Câmpus São Lourenço do Oeste" && category.name != "Destaque Câmpus São Miguel do Oeste" && category.name != "Manchete Câmpus Araranguá" && category.name != "Manchete Câmpus Caçador" && category.name != "Manchete Câmpus Canoinhas" && category.name != "Manchete Câmpus Chapecó" && category.name != "Blog" > 
180        <#assign hasCategory = true> 
181        <#assign hasChapeu = (nome_chapeu?trim?upper_case == category.name?upper_case) > 
182        <#if (hasChapeu) > 
183          <#assign chapeuCategory = category/> 
184          <#break> 
185        </#if> 
186        <#assign categoryIndex = category_index /> 
187        <#if (!hasChapeu) > 
188          <#if (hasZero) > 
189            <#if  (categoryIndex  == 0) > 
190              <#assign chapeuCategory = category/> 
191            </#if> 
192          </#if> 
193          <#if (hasFirst == true && hasZero == false) > 
194            <#if  categoryIndex  == 1 > 
195              <#assign chapeuCategory = category/> 
196            </#if> 
197          </#if> 
198          <#if (hasSecond == true && hasFirst == false && hasZero == false) > 
199            <#if  (categoryIndex  == 2) > 
200              <#assign chapeuCategory = category/> 
201            </#if> 
202          </#if> 
203          <#if (hasThird == true && hasSecond == false && hasFirst == false && hasZero == false) > 
204            <#if  (categoryIndex  == 3) > 
205              <#assign chapeuCategory = category/> 
206            </#if> 
207          </#if> 
208          <#if (hasThird == false && hasSecond == false && hasFirst == false && hasZero == false) > 
209              <#assign chapeuCategory = category/> 
210          </#if> 
211        </#if> 
212    </#if> 
213</#list> 
214 
215<#assign typeArticleIsImage = (artigo.texto_da_imagem_do_artigo.tipo_de_artigo.getData() == "1") /> 
216<#assign typeArticleIsVideo = (artigo.texto_da_imagem_do_artigo.tipo_de_artigo.getData() == "2") /> 
217<#assign typeArticleIsImageGallery = (artigo.texto_da_imagem_do_artigo.tipo_de_artigo.getData() == "3") /> 
218<#assign webURL = false /> 
219<#assign chapeuName = nome_chapeu?upper_case /> 
220<#assign INSTANCE = "p_p_id=122_INSTANCE_pDpvw9aOr6wg&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&p_p_col_id=column-2&p_r_p_resetCur=true&p_r_p_categoryId" /> 
221 
222<#function getViewURL assetRenderer> 
223  <#local assetGroupFriendlyURL = groupLocalService.getGroup(assetRenderer.getGroupId()).getFriendlyURL() /> 
224  <#return "/web${assetGroupFriendlyURL}/w/${assetRenderer.getUrlTitle()}" /> 
225</#function> 
226 
227<div class="featured-news--article"> 
228 
229    <h2 class="news-focus__title mt-3"> 
230      ${displaytitle} 
231  </h2> 
232 
233</div> 
234 
235<div class="article__content"> 
236 
237  <h6> 
238    <#if categoriesList?size <= 3 > 
239      <#list categoriesList as category> 
240        <#if category.name != "Destaque Portal" && category.name != "Notícias" && category.getName() !=  "Manchete Portal"  && category.getName() != "Noticia" && category.getName() != "Vídeo" && category.getName() != "Destaque Todos os sites" && category.getName() != "Manchete Todos os sites" && category.name != "Manchete Câmpus São José" && category.name != "Manchete Câmpus São Lourenço do Oeste" && category.name != "Manchete Câmpus São Miguel do Oeste" && category.name != "Manchete Câmpus Tubarão" && category.name != "Manchete Câmpus Urupema" && category.name != "Manchete Câmpus Xanxerê" && category.name != "Destaque Câmpus Florianópolis" && category.name != "Destaque Câmpus Florianópolis-Continente" && category.name != "Destaque Câmpus Garopaba" && category.name != "Destaque Câmpus Gaspar" && category.name != "Destaque Câmpus Itajaí" && category.name != "Destaque Câmpus Jaraguá" && category.name != "Destaque Câmpus Joinville" && category.name != "Destaque Câmpus Lages" && category.name != "Destaque Câmpus Palhoça Bilíngue" && category.name != "Destaque Câmpus São Carlos" && category.name != "Destaque Câmpus Tubarão" && category.name != "Destaque Câmpus Urupema" && category.name != "Destaque Câmpus Xanxerê" && category.name != "Manchete Câmpus Garopaba" && category.name != "Manchete Câmpus Gaspar" && category.name != "Manchete Câmpus Itajaí" && category.name != "Manchete Câmpus Lages" && category.name != "Manchete Câmpus Palhoça Bilíngue" && category.name != "Manchete Câmpus São Carlos" && category.name != "Manchete Câmpus Jaraguá" && category.name != "Manchete Câmpus Joinville" && category.name != "Manchete Câmpus Criciúma" && category.name != "Manchete Câmpus Florianópolis" && category.name != "Manchete Câmpus Florianópolis-Continente" && category.name != "Destaque Câmpus Araranguá" && category.name != "Destaque Câmpus Caçador" && category.name != "Destaque Câmpus Canoinhas" && category.name != "Destaque Câmpus Chapecó" && category.name != "Destaque Câmpus Criciúma" && category.name != "Destaque Câmpus São José" && category.name != "Destaque Câmpus São Lourenço do Oeste" && category.name != "Destaque Câmpus São Miguel do Oeste" && category.name != "Manchete Câmpus Araranguá" && category.name != "Manchete Câmpus Caçador" && category.name != "Manchete Câmpus Canoinhas" && category.name != "Manchete Câmpus Chapecó" && category.name != "Blog" > 
241          <#assign vocabulary = vocabularyService.getVocabulary(category.vocabularyId)> 
242            <#if newsBlog == true> 
243                <#if (webURL) > 
244                    <#if (hasCategory) > 
245                         <a class="tag" href="/web/${targetFriendlyURLBlog}?${INSTANCE}=${chapeuCategory.getCategoryId()}">${chapeuCategory.name?upper_case}</a> 
246                         <#break> 
247                    </#if> 
248                <#else> 
249                     <#if (hasCategory) > 
250                        <a class="tag" href="/${targetFriendlyURLBlog}?${INSTANCE}=${chapeuCategory.getCategoryId()}">${chapeuCategory.name?upper_case}</a> 
251                        <#break>   
252                     </#if> 
253                </#if> 
254            <#else> 
255                <#if (typeArticleIsVideo) > 
256                    <#if (webURL) > 
257                        <#if (hasCategory) > 
258                            <a class="tag" href="/web/${targetFriendlyURLVideo}?${INSTANCE}=${chapeuCategory.getCategoryId()}">${chapeuCategory.name?upper_case}</a> 
259                            <#break> 
260                        </#if>  
261                    <#else> 
262                        <#if (hasCategory) > 
263                            <a class="tag" href="/${targetFriendlyURLVideo}?${INSTANCE}=${chapeuCategory.getCategoryId()}">${chapeuCategory.name?upper_case}</a> 
264                            <#break> 
265                        </#if> 
266                    </#if> 
267                <#else> 
268                   <#if (webURL) > 
269                        <#if (hasCategory) > 
270                            <a class="tag" href="/web/${targetFriendlyURL}?${INSTANCE}=${chapeuCategory.getCategoryId()}">${chapeuCategory.name?upper_case}</a> 
271                            <#break> 
272                        </#if> 
273                   <#else> 
274                        <#if (hasCategory) > 
275                            <a class="tag" href="/${targetFriendlyURL}?${INSTANCE}=${chapeuCategory.getCategoryId()}">${chapeuCategory.name?upper_case}</a> 
276                            <#break> 
277                        </#if> 
278                   </#if> 
279                </#if> 
280            </#if> 
281        </#if> 
282      </#list> 
283    <#else> 
284      <#list categoriesList as category> 
285        <#if category.name != "Destaque Portal" && category.name != "Notícias" && category.getName() !=  "Manchete Portal"  && category.getName() != "Noticia" && category.getName() != "Vídeo" && category.getName() != "Destaque Todos os sites" && category.getName() != "Manchete Todos os sites" && category.name != "Manchete Câmpus São José" && category.name != "Manchete Câmpus São Lourenço do Oeste" && category.name != "Manchete Câmpus São Miguel do Oeste" && category.name != "Manchete Câmpus Tubarão" && category.name != "Manchete Câmpus Urupema" && category.name != "Manchete Câmpus Xanxerê" && category.name != "Destaque Câmpus Florianópolis" && category.name != "Destaque Câmpus Florianópolis-Continente" && category.name != "Destaque Câmpus Garopaba" && category.name != "Destaque Câmpus Gaspar" && category.name != "Destaque Câmpus Itajaí" && category.name != "Destaque Câmpus Jaraguá" && category.name != "Destaque Câmpus Joinville" && category.name != "Destaque Câmpus Lages" && category.name != "Destaque Câmpus Palhoça Bilíngue" && category.name != "Destaque Câmpus São Carlos" && category.name != "Destaque Câmpus Tubarão" && category.name != "Destaque Câmpus Urupema" && category.name != "Destaque Câmpus Xanxerê" && category.name != "Manchete Câmpus Garopaba" && category.name != "Manchete Câmpus Gaspar" && category.name != "Manchete Câmpus Itajaí" && category.name != "Manchete Câmpus Lages" && category.name != "Manchete Câmpus Palhoça Bilíngue" && category.name != "Manchete Câmpus São Carlos" && category.name != "Manchete Câmpus Jaraguá" && category.name != "Manchete Câmpus Joinville" && category.name != "Manchete Câmpus Criciúma" && category.name != "Manchete Câmpus Florianópolis" && category.name != "Manchete Câmpus Florianópolis-Continente" && category.name != "Destaque Câmpus Araranguá" && category.name != "Destaque Câmpus Caçador" && category.name != "Destaque Câmpus Canoinhas" && category.name != "Destaque Câmpus Chapecó" && category.name != "Destaque Câmpus Criciúma" && category.name != "Destaque Câmpus São José" && category.name != "Destaque Câmpus São Lourenço do Oeste" && category.name != "Destaque Câmpus São Miguel do Oeste" && category.name != "Manchete Câmpus Araranguá" && category.name != "Manchete Câmpus Caçador" && category.name != "Manchete Câmpus Canoinhas" && category.name != "Manchete Câmpus Chapecó" && category.name != "Blog" > 
286          <#assign vocabulary = vocabularyService.getVocabulary(category.vocabularyId)> 
287          <#if newsBlog == true> 
288            <#if (webURL) > 
289                <#if (hasCategory) > 
290                    <a class="tag" href="/web/${targetFriendlyURLBlog}?${INSTANCE}=${chapeuCategory.getCategoryId()}">${chapeuCategory.name?upper_case}</a> 
291                    <#break> 
292                </#if>     
293            <#else> 
294                <#if (hasCategory) > 
295                    <a class="tag" href="/${targetFriendlyURLBlog}?${INSTANCE}=${chapeuCategory.getCategoryId()}">${chapeuCategory.name?upper_case}</a> 
296                    <#break> 
297                </#if> 
298            </#if> 
299          <#else> 
300                <#if (typeArticleIsVideo) > 
301                    <#if (webURL) > 
302                        <#if (hasCategory) > 
303                            <a class="tag" href="/web/${targetFriendlyURLVideo}?${INSTANCE}=${chapeuCategory.getCategoryId()}">${chapeuCategory.name?upper_case}</a> 
304                            <#break> 
305                        </#if> 
306                    <#else> 
307                        <#if (hasCategory) > 
308                            <a class="tag" href="/${targetFriendlyURLVideo}?${INSTANCE}=${chapeuCategory.getCategoryId()}">${chapeuCategory.name?upper_case}</a> 
309                            <#break> 
310                        </#if> 
311                    </#if> 
312                <#else> 
313                    <#if (webURL) > 
314                        <#if (hasCategory) > 
315                            <a class="tag" href="/web/${targetFriendlyURL}?${INSTANCE}=${chapeuCategory.getCategoryId()}">${chapeuCategory.name?upper_case}</a> 
316                            <#break> 
317                        </#if> 
318                    <#else> 
319                        <#if (hasCategory) >                         
320                            <a class="tag" href="/${targetFriendlyURL}?${INSTANCE}=${chapeuCategory.getCategoryId()}">${chapeuCategory.name?upper_case}</a> 
321                            <#break> 
322                        </#if> 
323                  </#if> 
324                </#if>                   
325            </#if> 
326        </#if> 
327      </#list> 
328    </#if> 
329 
330    <#if (!hasCategory)> 
331        <a class="tag">${chapeuName}</a>       
332    </#if> 
333 
334    <#assign displayDateMonth = displaydate?string["MMM"]?lower_case /> 
335    <#switch displayDateMonth> 
336      <#case "feb"> 
337        <#assign displayDateMonth = "fev" /> 
338        <#break> 
339      <#case "apr"> 
340        <#assign displayDateMonth = "abr" /> 
341        <#break> 
342      <#case "may"> 
343        <#assign displayDateMonth = "mai" /> 
344        <#break> 
345      <#case "aug"> 
346        <#assign displayDateMonth = "ago" /> 
347        <#break> 
348      <#case "sep"> 
349        <#assign displayDateMonth = "set" /> 
350        <#break> 
351      <#case "oct"> 
352        <#assign displayDateMonth = "out" /> 
353        <#break> 
354      <#default> 
355    </#switch> 
356 
357    <#assign modifiedDateMonth = modifiedDate?string["MMM"]?lower_case /> 
358    <#switch modifiedDateMonth> 
359      <#case "feb"> 
360        <#assign modifiedDateMonth = "fev" /> 
361        <#break> 
362      <#case "apr"> 
363        <#assign modifiedDateMonth = "abr" /> 
364        <#break> 
365      <#case "may"> 
366        <#assign modifiedDateMonth = "mai" /> 
367        <#break> 
368      <#case "aug"> 
369        <#assign modifiedDateMonth = "ago" /> 
370        <#break> 
371      <#case "sep"> 
372        <#assign modifiedDateMonth = "set" /> 
373        <#break> 
374      <#case "oct"> 
375        <#assign modifiedDateMonth = "out" /> 
376        <#break> 
377      <#default> 
378    </#switch> 
379 
380    <span>Data de Publicação: <b>${displaydate?string["dd"]} ${displayDateMonth} ${displaydate?string["yyyy"]} ${displaydate?string["HH"]}:${displaydate?string["mm"]}</b></span> 
381    <span>Data de Atualização: <b>${modifiedDate?string["dd"]} ${modifiedDateMonth} ${modifiedDate?string["yyyy"]} ${modifiedDate?string["HH"]}:${modifiedDate?string["mm"]}</b></span> 
382  </h6> 
383 
384 <#if artigoFieldSet.imagem_do_artigoFieldSet.imagem_do_artigo.getData()?has_content || artigo.id_do_video.getData()?has_content> 
385    <div class="image-feature"> 
386      <#if (typeArticleIsImageGallery) > 
387          <div id="myCarousel" class="carousel slide"> 
388            <!-- Carousel items --> 
389            <div class="carousel-inner"> 
390            <#if artigoFieldSet.imagem_do_artigoFieldSet.getSiblings()?has_content> 
391                <#list artigoFieldSet.imagem_do_artigoFieldSet.getSiblings() as cur_imagem> 
392                    <#if cur_imagem.credito_da_imagem?has_content> 
393                        <#assign credito_imagem = cur_imagem.credito_da_imagem.getData()/> 
394                        <#assign title_imagem = 'title="' + (credito_imagem !='')?string(credito_imagem, ' ') + '"' /> 
395                        <#if cur_imagem_index == 0> 
396                        <div class="active item"> 
397                            <img id="imagemDef" alt="${credito_imagem}" onclick="openModal();currentSlide(1)" class="image-slide imagemDef" src="${cur_imagem.imagem_do_artigo.getData()}"> 
398                        <#if credito_imagem != ''> 
399                            <div class="carousel-caption"> 
400                                <h6>${credito_imagem}</h6> 
401                            </div> 
402                        </#if> 
403                        </div> 
404                        <#else> 
405                        <div class="item"> 
406                        <img id="imagemDef" alt="${credito_imagem}" onclick="openModal();currentSlide(1)" class="image-slide imagemDef"  src="${cur_imagem.imagem_do_artigo.getData()}"> 
407                        <#if credito_imagem != ''> 
408                            <div class="carousel-caption"> 
409                                <h6>${credito_imagem}</h6> 
410                            </div> 
411                        </#if> 
412                        </div> 
413                        </#if> 
414                        </#if> 
415                  </#list> 
416                </#if> 
417            </div> 
418            <ol class="carousel-indicators"> 
419                <#if artigoFieldSet.imagem_do_artigoFieldSet.getSiblings()?has_content> 
420                    <#list artigoFieldSet.imagem_do_artigoFieldSet.getSiblings() as cur_imagem> 
421                        <#if cur_imagem_index == 0> 
422                        <li data-target="#myCarousel" data-slide-to="0" class="active"></li> 
423                        <#else> 
424                        <li data-target="#myCarousel" data-slide-to="${cur_imagem_index}"></li> 
425                        </#if> 
426                  </#list> 
427                </#if> 
428            </ol> 
429            <!-- Carousel nav --> 
430            <a class="carousel-control left" href="#myCarousel" data-slide="prev"></a> 
431            <a class="carousel-control right" href="#myCarousel" data-slide="next"></a> 
432          </div> 
433      <#elseif (typeArticleIsImage) > 
434        <img alt="${artigo.texto_da_imagem_do_artigo.getData()}" class="image-article" src="${artigoFieldSet.imagem_do_artigoFieldSet.imagem_do_artigo.getData()}"> 
435        <#if artigoFieldSet.imagem_do_artigoFieldSet.imagem_do_artigo.credito_da_imagem.getData() != " "> 
436          <h6>${artigoFieldSet.imagem_do_artigoFieldSet.imagem_do_artigo.credito_da_imagem.getData()}</h6> 
437      </#if> 
438      <#else> 
439        <iframe  width="100%" height="315" src="https://www.youtube.com/embed/${artigo.id_do_video.getData()}" frameborder="0" allowfullscreen></iframe> 
440      </#if> 
441      </div> 
442  </#if> 
443 
444 
445<#if (artigoFieldSet.imagem_do_artigoFieldSet.Image91782607.getData())?? && artigoFieldSet.imagem_do_artigoFieldSet.Image91782607.getData() != ""> 
446	<img alt="${artigoFieldSet.imagem_do_artigoFieldSet.Image91782607.getAttribute("alt")}" data-fileentryid="${artigoFieldSet.imagem_do_artigoFieldSet.Image91782607.getAttribute("fileEntryId")}" src="${artigoFieldSet.imagem_do_artigoFieldSet.Image91782607.getData()}" /> 
447</#if> 
448 
449 
450<#if artigoFieldSet.imagem_do_artigoFieldSet.Image91782607?has_content> 
451    <#if artigoFieldSet.imagem_do_artigoFieldSet.Image91782607.getData()?has_content || artigo.id_do_video.getData()?has_content> 
452      <div class="image-feature"> 
453        <#if (typeArticleIsImageGallery) > 
454            <div id="myCarousel" class="carousel slide"> 
455              <!-- Carousel items --> 
456              <div class="carousel-inner"> 
457              <#if artigoFieldSet.imagem_do_artigoFieldSet.Image91782607.getSiblings()?has_content> 
458                  <#list artigoFieldSet.imagem_do_artigoFieldSet.Image91782607.getSiblings() as cur_imagem> 
459                     
460										  
461                    <div class="active item"> 
462                      <img alt="" onclick="openModal();currentSlide(1)" class="image-slide" src="${cur_imagem.imagem_do_artigo.getData()}"> 
463                      
464                    </div> 
465                    <#else> 
466                    <div class="item"> 
467                      <img alt="" onclick="openModal();currentSlide(1)" class="image-slide" src="${cur_imagem.imagem_do_artigo.getData()}"> 
468                       
469                    </div>										 
470                    </#list> 
471                  </#if> 
472              </div> 
473              <ol class="carousel-indicators"> 
474                  <#if artigoFieldSet.imagem_do_artigoFieldSet.Image91782607.getSiblings()?has_content> 
475                      <#list artigoFieldSet.imagem_do_artigoFieldSet.Image91782607.getSiblings() as cur_imagem> 
476                          <#if cur_imagem_index == 0> 
477                          <li data-target="#myCarousel" data-slide-to="0" class="active"></li> 
478                          <#else> 
479                          <li data-target="#myCarousel" data-slide-to="${cur_imagem_index}"></li> 
480                          </#if> 
481                    </#list> 
482                  </#if> 
483              </ol> 
484              <!-- Carousel nav --> 
485              <a class="carousel-control left" href="#myCarousel" data-slide="prev"></a> 
486              <a class="carousel-control right" href="#myCarousel" data-slide="next"></a> 
487            </div> 
488        <#elseif (typeArticleIsImage) > 
489          <img alt="${artigo.texto_da_imagem_do_artigo.getData()}" class="image-article" src="${artigoFieldSet.imagem_do_artigoFieldSet.Image91782607.getData()}"> 
490          <#if artigoFieldSet.imagem_do_artigoFieldSet.Image91782607.credito_da_imagem.getData() != " "> 
491            <h6>${artigoFieldSet.imagem_do_artigoFieldSet.Image91782607.credito_da_imagem.getData()}</h6> 
492        </#if> 
493        <#else> 
494          <iframe  width="100%" height="315" src="https://www.youtube.com/embed/${artigo.id_do_video.getData()}" frameborder="0" allowfullscreen></iframe> 
495        </#if> 
496        </div> 
497    </#if> 
498  </#if> 
499 
500  ${artigo.conteudo_do_artigo.getData()} 
501  <p class="article__author"> 
502    ${autoria.descricao_da_autoria_do_artigo.getData()} 
503  </p> 
504 
505    <div class="share"> 
506        <p>COMPARTILHE</p> 
507    <#assign portalURL = companyLocalService.getCompany(companyId).getPortalURL(groupId)/> 
508    <#if newsBlog == true> 
509          <#assign newsViewURL = "/${targetViewUrlBlog}/-/asset_publisher/${targetPortletIDBlog}/content/id/${assetEntry.getEntryId()}" /> 
510            <a class="facebook" href="http://www.facebook.com/share.php?u=${portalURL?replace(':8080', '')}${newsViewURL}&title=Portal do IFSC - ${displaytitle}" target="_blank"></a> 
511            <a class="twitter" href="https://twitter.com/share?url=${portalURL?replace(':8080', '')}${newsViewURL};text=${displaytitle} #IFSC " target="_blank"></a> 
512    <#else> 
513        <#if (typeArticleIsVideo) > 
514          <#assign newsViewURL = "/${targetViewUrlVideo}/-/asset_publisher/${targetPortletIDVideo}/content/id/${assetEntry.getEntryId()}" /> 
515            <a class="facebook" href="http://www.facebook.com/share.php?u=${portalURL?replace(':8080', '')}${newsViewURL}&picture=https://i.ytimg.com/vi/${artigo.id_do_video.getData()}/hqdefault.jpg&title=Portal do IFSC - ${displaytitle}" target="_blank"></a> 
516            <a class="twitter" href="https://twitter.com/share?url=${portalURL?replace(':8080', '')}${newsViewURL};text=${displaytitle} #IFSC " target="_blank"></a> 
517        <#else> 
518          <#assign newsViewURL = "/${targetViewUrl}/-/asset_publisher/${targetPortletID}/content/id/${assetEntry.getEntryId()}" /> 
519            <a class="facebook" href="http://www.facebook.com/share.php?u=${portalURL?replace(':8080', '')}${newsViewURL}&title=Portal do IFSC - ${displaytitle}" target="_blank"></a> 
520            <a class="twitter" href="https://twitter.com/share?url=${portalURL?replace(':8080', '')}${newsViewURL};text=${displaytitle} #IFSC " target="_blank"></a> 
521 
522        </#if> 
523    </#if> 
524    </div> 
525 
526    <h6> 
527        <#list categoriesList as category> 
528        <#if category.name != "Destaque Portal" && category.name != "Notícias" && category.getName() !=  "Manchete Portal"  && category.getName() != "Noticia" && category.getName() != "Vídeo" && category.getName() != "Destaque Todos os sites" && category.getName() != "Manchete Todos os sites" && category.name != "Manchete Câmpus São José" && category.name != "Manchete Câmpus São Lourenço do Oeste" && category.name != "Manchete Câmpus São Miguel do Oeste" && category.name != "Manchete Câmpus Tubarão" && category.name != "Manchete Câmpus Urupema" && category.name != "Manchete Câmpus Xanxerê" && category.name != "Destaque Câmpus Florianópolis" && category.name != "Destaque Câmpus Florianópolis-Continente" && category.name != "Destaque Câmpus Garopaba" && category.name != "Destaque Câmpus Gaspar" && category.name != "Destaque Câmpus Itajaí" && category.name != "Destaque Câmpus Jaraguá" && category.name != "Destaque Câmpus Joinville" && category.name != "Destaque Câmpus Lages" && category.name != "Destaque Câmpus Palhoça Bilíngue" && category.name != "Destaque Câmpus São Carlos" && category.name != "Destaque Câmpus Tubarão" && category.name != "Destaque Câmpus Urupema" && category.name != "Destaque Câmpus Xanxerê" && category.name != "Manchete Câmpus Garopaba" && category.name != "Manchete Câmpus Gaspar" && category.name != "Manchete Câmpus Itajaí" && category.name != "Manchete Câmpus Lages" && category.name != "Manchete Câmpus Palhoça Bilíngue" && category.name != "Manchete Câmpus São Carlos" && category.name != "Manchete Câmpus Jaraguá" && category.name != "Manchete Câmpus Joinville" && category.name != "Manchete Câmpus Criciúma" && category.name != "Manchete Câmpus Florianópolis" && category.name != "Manchete Câmpus Florianópolis-Continente" && category.name != "Destaque Câmpus Araranguá" && category.name != "Destaque Câmpus Caçador" && category.name != "Destaque Câmpus Canoinhas" && category.name != "Destaque Câmpus Chapecó" && category.name != "Destaque Câmpus Criciúma" && category.name != "Destaque Câmpus São José" && category.name != "Destaque Câmpus São Lourenço do Oeste" && category.name != "Destaque Câmpus São Miguel do Oeste" && category.name != "Manchete Câmpus Araranguá" && category.name != "Manchete Câmpus Caçador" && category.name != "Manchete Câmpus Canoinhas" && category.name != "Manchete Câmpus Chapecó" && category.name != "Blog" > 
529          <#assign vocabulary = vocabularyService.getVocabulary(category.vocabularyId)> 
530            <#if newsBlog == true> 
531                  <#if (webURL) > 
532                    <#if (hasCategory) > 
533                        <a class="tag" href="/web/${targetFriendlyURLBlog}?${INSTANCE}=${category.getCategoryId()}">${category.name?upper_case}</a> 
534                    </#if> 
535                  <#else> 
536                    <#if (hasCategory) > 
537                        <a class="tag" href="/${targetFriendlyURLBlog}?${INSTANCE}=${category.getCategoryId()}">${category.name?upper_case}</a> 
538                    </#if> 
539                  </#if> 
540            <#else> 
541                  <#if (typeArticleIsVideo) > 
542                    <#if (webURL) > 
543                        <#if (hasCategory) > 
544                            <a class="tag" href="/web/${targetFriendlyURLVideo}?${INSTANCE}=${category.getCategoryId()}">${category.name?upper_case}</a> 
545                        </#if> 
546                    <#else> 
547                        <#if (hasCategory) > 
548                            <a class="tag" href="/${targetFriendlyURLVideo}?${INSTANCE}=${category.getCategoryId()}">${category.name?upper_case}</a> 
549                        </#if> 
550                    </#if>     
551                  <#else> 
552                    <#if (webURL) > 
553                        <#if (hasCategory) > 
554                            <a class="tag" href="/web/${targetFriendlyURL}?${INSTANCE}=${category.getCategoryId()}">${category.name?upper_case}</a> 
555                        </#if> 
556                    <#else> 
557                        <#if (hasCategory) > 
558                            <a class="tag" href="/${targetFriendlyURL}?${INSTANCE}=${category.getCategoryId()}">${category.name?upper_case}</a> 
559                        </#if> 
560                    </#if>                            
561                  </#if> 
562            </#if> 
563        </#if> 
564      </#list> 
565      <#if (!hasCategory)> 
566        <a class="tag">${chapeuName}</a>       
567      </#if> 
568    </h6> 
569 
570    <div class="lista-tags lista-tags mb-3 mt-3" > 
571      <#list asset.getTags() as tag> 
572          <span class="badge badge-pill badge-light">${tag.name}</span> 
573      </#list> 
574    </div> 
575 
576  <div class="recommended-news"> 
577 
578    <#if (assetsFromCategories?size gt 1) > 
579        <#if newsBlog == true> 
580            <h4>Post recomendados</h4> 
581        <#else> 
582            <#if (artigo.texto_da_imagem_do_artigo.tipo_de_artigo.getData() != "2")> 
583                <h4 class="class1">Últimas notícias</h4> 
584            <#else> 
585                <h4>Vídeos recomendados</h4> 
586            </#if> 
587         </#if> 
588      <#assign assetsPublished = 0 > 
589 
590      <#list assetsFromCategories as ra> 
591 
592        <#if assetsPublished == 3> 
593          <#break> 
594        </#if> 
595 
596        <#assign isRelated = false> 
597        <#assign pageUrl = ""> 
598        <#-- Migração Liferay 7.4  <#if request?has_content> 
599          <#assign pageUrl = request.attributes.CURRENT_URL?split("/")> 
600        </#if>  --> 
601        <#assign relatedAssetCategories = ra.getCategories()> 
602 
603        <#-- Se for um Article --> 
604        <#if (ra.getClassPK() != assetEntry.getClassPK()) > 
605            <#list relatedAssetCategories as category> 
606                <#if (category.name != "Cursos de Idiomas" && category.name != "Cursos Técnicos" && category.name != "Educação a Distância" && category.name != "Educação Jovens e Adultos" && category.name != "Graduação" && category.name != "Pós-graduação" && category.name != "Qualificação Profissional" && category.name != "Técnicos Integrados" && category.name != "Técnicos Concomitantes" && category.name != "Técnicos Subsequentes") > 
607                    <#attempt> 
608                      <#assign ja = JournalArticleLocalService.getLatestArticle(ra.getClassPK())> 
609                      <#assign viewURL = getViewURL(ja) /> 
610                      <#assign viewURLVideo = "/${targetViewUrlVideo}/-/asset_publisher/${targetPortletIDVideo}/content/id/${ra.getEntryId()}" /> 
611                      <#assign viewURLBlog = "/${targetViewUrlBlog}/-/asset_publisher/${targetPortletIDBlog}/content/id/${ra.getEntryId()}" /> 
612                      <#assign titulo = ja.getTitle(locale)> 
613                      <#assign data = ja.getDisplayDate()> 
614                      <#assign isRelated = true> 
615                    <#recover> 
616                    </#attempt> 
617                 </#if> 
618             </#list>        
619        </#if> 
620 
621        <#if (isRelated)> 
622          <article class="featured-news"> 
623            <h6> 
624              <#if relatedAssetCategories?size <= 3 > 
625                <#list relatedAssetCategories as relatedAssetCategorie> 
626                  <#if relatedAssetCategorie.name != "Destaque Portal" && relatedAssetCategorie.name != "Noticia" && relatedAssetCategorie.name != "Notícias" && relatedAssetCategorie.getName() !=  "Manchete Portal"  && relatedAssetCategorie.getName() != "Noticia" && relatedAssetCategorie.getName() != "Vídeo" && relatedAssetCategorie.getName() != "Destaque Todos os sites" && relatedAssetCategorie.getName() != "Manchete Todos os sites" && relatedAssetCategorie.name != "Manchete Câmpus São José" && relatedAssetCategorie.name != "Manchete Câmpus São Lourenço do Oeste" && relatedAssetCategorie.name != "Manchete Câmpus São Miguel do Oeste" && relatedAssetCategorie.name != "Manchete Câmpus Tubarão" && relatedAssetCategorie.name != "Manchete Câmpus Urupema" && relatedAssetCategorie.name != "Manchete Câmpus Xanxerê" && relatedAssetCategorie.name != "Destaque Câmpus Florianópolis" && relatedAssetCategorie.name != "Destaque Câmpus Florianópolis-Continente" && relatedAssetCategorie.name != "Destaque Câmpus Garopaba" && relatedAssetCategorie.name != "Destaque Câmpus Gaspar" && relatedAssetCategorie.name != "Destaque Câmpus Itajaí" && relatedAssetCategorie.name != "Destaque Câmpus Jaraguá" && relatedAssetCategorie.name != "Destaque Câmpus Joinville" && relatedAssetCategorie.name != "Destaque Câmpus Lages" && relatedAssetCategorie.name != "Destaque Câmpus Palhoça Bilíngue" && relatedAssetCategorie.name != "Destaque Câmpus São Carlos" && relatedAssetCategorie.name != "Destaque Câmpus Tubarão" && relatedAssetCategorie.name != "Destaque Câmpus Urupema" && relatedAssetCategorie.name != "Destaque Câmpus Xanxerê" && relatedAssetCategorie.name != "Manchete Câmpus Garopaba" && relatedAssetCategorie.name != "Manchete Câmpus Gaspar" && relatedAssetCategorie.name != "Manchete Câmpus Itajaí" && relatedAssetCategorie.name != "Manchete Câmpus Lages" && relatedAssetCategorie.name != "Manchete Câmpus Palhoça Bilíngue" && relatedAssetCategorie.name != "Manchete Câmpus São Carlos" && relatedAssetCategorie.name != "Manchete Câmpus Jaraguá" && relatedAssetCategorie.name != "Manchete Câmpus Joinville" && relatedAssetCategorie.name != "Manchete Câmpus Criciúma" && relatedAssetCategorie.name != "Manchete Câmpus Florianópolis" && relatedAssetCategorie.name != "Manchete Câmpus Florianópolis-Continente" && relatedAssetCategorie.name != "Destaque Câmpus Araranguá" && relatedAssetCategorie.name != "Destaque Câmpus Caçador" && relatedAssetCategorie.name != "Destaque Câmpus Canoinhas" && relatedAssetCategorie.name != "Destaque Câmpus Chapecó" && relatedAssetCategorie.name != "Destaque Câmpus Criciúma" && relatedAssetCategorie.name != "Destaque Câmpus São José" && relatedAssetCategorie.name != "Destaque Câmpus São Lourenço do Oeste" && relatedAssetCategorie.name != "Destaque Câmpus São Miguel do Oeste" && relatedAssetCategorie.name != "Manchete Câmpus Araranguá" && relatedAssetCategorie.name != "Manchete Câmpus Caçador" && relatedAssetCategorie.name != "Manchete Câmpus Canoinhas" && relatedAssetCategorie.name != "Manchete Câmpus Chapecó" > 
627                    <#assign vocabulary = vocabularyService.getVocabulary(relatedAssetCategorie.vocabularyId)> 
628                        <#if newsBlog == true> 
629                                <#if (webURL) > 
630                                    <#if (hasCategory) > 
631                                        <a class="tag" href="/web/${targetFriendlyURLBlog}?${INSTANCE}=${relatedAssetCategorie.getCategoryId()}">${relatedAssetCategorie.name?upper_case}</a> 
632                                        <#break> 
633                                    </#if> 
634                                <#else> 
635                                     <#if (hasCategory) > 
636                                        <a class="tag" href="/${targetFriendlyURLBlog}?${INSTANCE}=${relatedAssetCategorie.getCategoryId()}">${relatedAssetCategorie.name?upper_case}</a> 
637                                        <#break> 
638                                     </#if> 
639                                </#if> 
640                        <#else> 
641                            <#if (typeArticleIsVideo) > 
642                                <#if (webURL) > 
643                                    <#if (hasCategory) > 
644                                        <a class="tag" href="/web/${targetFriendlyURLVideo}?${INSTANCE}=${relatedAssetCategorie.getCategoryId()}">${relatedAssetCategorie.name?upper_case}</a> 
645                                        <#break> 
646                                    </#if> 
647                                <#else> 
648                                    <#if (hasCategory) > 
649                                        <a class="tag" href="/${targetFriendlyURLVideo}?${INSTANCE}=${relatedAssetCategorie.getCategoryId()}">${relatedAssetCategorie.name?upper_case}</a> 
650                                        <#break> 
651                                    </#if> 
652                                </#if> 
653                            <#else> 
654                                <#if (webURL) > 
655                                    <#if (hasCategory) > 
656                                        <a class="tag" href="/web/${targetFriendlyURL}?${INSTANCE}=${relatedAssetCategorie.getCategoryId()}">${relatedAssetCategorie.name?upper_case}</a> 
657                                        <#break> 
658                                    </#if> 
659                                <#else> 
660                                    <#if (hasCategory) > 
661                                        <a class="tag" href="/${targetFriendlyURL}?${INSTANCE}=${relatedAssetCategorie.getCategoryId()}">${relatedAssetCategorie.name?upper_case}</a> 
662                                        <#break> 
663                                    </#if> 
664                                </#if>    
665                          </#if> 
666                        </#if> 
667                  </#if> 
668                </#list> 
669              <#else> 
670                <#list relatedAssetCategories[0..2] as relatedAssetCategorie> 
671                  <#if relatedAssetCategorie.name != "Destaque Portal" && relatedAssetCategorie.name != "Noticia" && relatedAssetCategorie.name != "Notícias" && relatedAssetCategorie.getName() !=  "Manchete Portal"  && relatedAssetCategorie.getName() != "Noticia" && relatedAssetCategorie.getName() != "Vídeo" && relatedAssetCategorie.getName() != "Destaque Todos os sites" && relatedAssetCategorie.getName() != "Manchete Todos os sites" && relatedAssetCategorie.name != "Manchete Câmpus São José" && relatedAssetCategorie.name != "Manchete Câmpus São Lourenço do Oeste" && relatedAssetCategorie.name != "Manchete Câmpus São Miguel do Oeste" && relatedAssetCategorie.name != "Manchete Câmpus Tubarão" && relatedAssetCategorie.name != "Manchete Câmpus Urupema" && relatedAssetCategorie.name != "Manchete Câmpus Xanxerê" && relatedAssetCategorie.name != "Destaque Câmpus Florianópolis" && relatedAssetCategorie.name != "Destaque Câmpus Florianópolis-Continente" && relatedAssetCategorie.name != "Destaque Câmpus Garopaba" && relatedAssetCategorie.name != "Destaque Câmpus Gaspar" && relatedAssetCategorie.name != "Destaque Câmpus Itajaí" && relatedAssetCategorie.name != "Destaque Câmpus Jaraguá" && relatedAssetCategorie.name != "Destaque Câmpus Joinville" && relatedAssetCategorie.name != "Destaque Câmpus Lages" && relatedAssetCategorie.name != "Destaque Câmpus Palhoça Bilíngue" && relatedAssetCategorie.name != "Destaque Câmpus São Carlos" && relatedAssetCategorie.name != "Destaque Câmpus Tubarão" && relatedAssetCategorie.name != "Destaque Câmpus Urupema" && relatedAssetCategorie.name != "Destaque Câmpus Xanxerê" && relatedAssetCategorie.name != "Manchete Câmpus Garopaba" && relatedAssetCategorie.name != "Manchete Câmpus Gaspar" && relatedAssetCategorie.name != "Manchete Câmpus Itajaí" && relatedAssetCategorie.name != "Manchete Câmpus Lages" && relatedAssetCategorie.name != "Manchete Câmpus Palhoça Bilíngue" && relatedAssetCategorie.name != "Manchete Câmpus São Carlos" && relatedAssetCategorie.name != "Manchete Câmpus Jaraguá" && relatedAssetCategorie.name != "Manchete Câmpus Joinville" && relatedAssetCategorie.name != "Manchete Câmpus Criciúma" && relatedAssetCategorie.name != "Manchete Câmpus Florianópolis" && relatedAssetCategorie.name != "Manchete Câmpus Florianópolis-Continente" && relatedAssetCategorie.name != "Destaque Câmpus Araranguá" && relatedAssetCategorie.name != "Destaque Câmpus Caçador" && relatedAssetCategorie.name != "Destaque Câmpus Canoinhas" && relatedAssetCategorie.name != "Destaque Câmpus Chapecó" && relatedAssetCategorie.name != "Destaque Câmpus Criciúma" && relatedAssetCategorie.name != "Destaque Câmpus São José" && relatedAssetCategorie.name != "Destaque Câmpus São Lourenço do Oeste" && relatedAssetCategorie.name != "Destaque Câmpus São Miguel do Oeste" && relatedAssetCategorie.name != "Manchete Câmpus Araranguá" && relatedAssetCategorie.name != "Manchete Câmpus Caçador" && relatedAssetCategorie.name != "Manchete Câmpus Canoinhas" && relatedAssetCategorie.name != "Manchete Câmpus Chapecó" > 
672                    <#assign vocabulary = vocabularyService.getVocabulary(relatedAssetCategorie.vocabularyId)> 
673                    <#if newsBlog == true> 
674                        <#if (webURL) > 
675                            <#if (hasCategory) > 
676                               <a class="tag" href="/web/${targetFriendlyURLBlog}?${INSTANCE}=${relatedAssetCategorie.getCategoryId()}">${relatedAssetCategorie.name?upper_case}</a> 
677                                <#break> 
678                            </#if> 
679                        <#else> 
680                            <#if (hasCategory) > 
681                               <a class="tag" href="/${targetFriendlyURLBlog}?${INSTANCE}=${relatedAssetCategorie.getCategoryId()}">${relatedAssetCategorie.name?upper_case}</a> 
682                                <#break> 
683                            </#if> 
684                        </#if>        
685                    <#else> 
686                          <#if (typeArticleIsVideo) > 
687                                <#if (webURL) > 
688                                    <#if (hasCategory) > 
689                                        <a class="tag" href="/web/${targetFriendlyURLVideo}?${INSTANCE}=${relatedAssetCategorie.getCategoryId()}">${relatedAssetCategorie.name?upper_case}</a> 
690                                        <#break> 
691                                    </#if> 
692                                <#else> 
693                                    <#if (hasCategory) > 
694                                        <a class="tag" href="/${targetFriendlyURLVideo}?${INSTANCE}=${relatedAssetCategorie.getCategoryId()}">${relatedAssetCategorie.name?upper_case}</a> 
695                                        <#break> 
696                                    </#if> 
697                                </#if>     
698                          <#else> 
699                                <#if (webURL) > 
700                                    <#if (hasCategory) > 
701                                        <a class="tag" href="/web/${targetFriendlyURL}?${INSTANCE}=${relatedAssetCategorie.getCategoryId()}">${relatedAssetCategorie.name?upper_case}</a> 
702                                        <#break> 
703                                    </#if> 
704                                <#else> 
705                                    <#if (hasCategory) > 
706                                        <a class="tag" href="/${targetFriendlyURL}?${INSTANCE}=${relatedAssetCategorie.getCategoryId()}">${relatedAssetCategorie.name?upper_case}</a> 
707                                        <#break> 
708                                    </#if>                                     
709                                </#if>                                                                  
710                          </#if> 
711                     </#if> 
712                  </#if> 
713                </#list> 
714              </#if> 
715              <#if (!hasCategory)> 
716                 <a class="tag">${chapeuName}</a>       
717              </#if> 
718                <span> 
719                    <p>${ra.getPublishDate()?string["dd"]} ${ra.getPublishDate()?string["MMM"]?lower_case} ${ra.getPublishDate()?string["yyyy"]}</p> 
720                </span> 
721            </h6> 
722            <#if newsBlog == true> 
723                <#if (webURL) > 
724                    <a href="/web/${friendlyURL}${viewURLBlog}"> 
725                <#else> 
726                    <a href="${viewURLBlog}"> 
727                </#if> 
728 
729            <#else> 
730                <#if (artigo.texto_da_imagem_do_artigo.tipo_de_artigo.getData() != "2") > 
731                    <#if (webURL) > 
732                        <a href="/web/${friendlyURL}${viewURL}"> 
733                    <#else> 
734                        <a href="${viewURL}"> 
735                    </#if> 
736                <#else> 
737                    <#if (webURL) > 
738                        <a href="/web/${friendlyURL}${viewURLVideo}"> 
739                    <#else> 
740                        <a href="${viewURLVideo}"> 
741                    </#if> 
742                </#if> 
743            </#if> 
744              <h5>${titulo}</h5> 
745            </a> 
746          </article> 
747 
748          <#assign assetsPublished = assetsPublished + 1> 
749        </#if> 
750      </#list> 
751    </#if> 
752  </div> 
753</div> 
754 
755<div id="myModal" class="modal noticia_modal" style="display: none; height: fit-content;" > 
756  <div class="modal-content noticia_modal-content"> 
757    <span id="modalClose" class="close noticia_close">&times;</span> 
758    <img src="" id="modal-image" class="noticia_modal-image" /> 
759  </div> 
760</div> 
761<script> 
762// Get the gallery box 
763var imageList = document.getElementsByClassName("imagemDef"); 
764 
765// Get the modal image tag 
766var modal = document.getElementById("myModal"); 
767var modalClose = document.getElementById("modalClose"); 
768 
769var modalImage = document.getElementById("modal-image"); 
770console.log(imageList); 
771 
772for(i=0;i<=imageList.length;i++){ 
773if(imageList[i] != undefined){ 
774console.log(imageList[i]); 
775imageList[i].onclick = function (e) { 
776  var src = e.srcElement.src; 
777  modal.style.display = "block"; 
778  modalImage.src = src; 
779}; 
780
781
782// When the user clicks the big picture, set the image and open the modal 
783 
784modalClose.onclick = function (e) { 
785  modal.style.display = "none"; 
786}; 
787</script> 
788<style> 
789/* The Modal (background) */ 
790.noticia_modal { 
791  display: none; /* Hidden by default */ 
792  position: fixed; /* Stay in place */ 
793  z-index: 1; /* Sit on top */ 
794  left: 0; 
795  top: 0; 
796  width: 100%; /* Full width */ 
797  height: 100%; /* Full height */ 
798  overflow: auto; /* Enable scroll if needed */ 
799  background-color: rgb(0,0,0); /* Fallback color */ 
800  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ 
801
802 
803.noticia_modal-content { 
804  margin: auto; 
805  text-align: center; 
806
807 
808.noticia_modal-image { 
809  display: inline-block; 
810
811 
812/* The Close Button */ 
813.noticia_close { 
814  color: #000; 
815  display: block; 
816  font-size: 28px; 
817  font-weight: bold; 
818
819 
820.noticia_close:hover, 
821.noticia_close:focus { 
822  text-decoration: none; 
823  cursor: pointer; 
824
825 
826</style>