Faça uma busca:
Buscar
Mais pesquisados
Preço dos combustíveis
Pré-Sal
Time Petrobras
Title
Destaques
Title
Brasil de Energia
Os jornalistas Francisco José e Diógenes Dantas atravessam o Brasil para falar sobre transição energética justa na série documental "Um Brasil de Energia"
O uso deste material é autorizado apenas para fins editoriais.
Mais recentes
Java method "com.liferay.journal.model.impl.JournalArticleImpl.getDocument()" threw an exception when invoked on com.liferay.journal.model.impl.JournalArticleImpl object "{\"mvccVersion\": 1, \"ctCollectionId\": 0, \"uuid\": \"d5475e12-55db-be1a-a173-1c4ab75f0973\", \"id\": 17168519, \"resourcePrimKey\": 17168495, \"groupId\": 10623376, \"companyId\": 20099, \"userId\": 11888211, \"userName\": \"Leonardo Bruno Pimenta Melo\", \"createDate\": \"Fri Apr 26 17:23:01 GMT 2024\", \"modifiedDate\": \"Fri Apr 26 17:28:00 GMT 2024\", \"externalReferenceCode\": \"a3d3dc4d-7ad5-63a3-4022-0b882a45e61c\", \"folderId\": 11451017, \"classNameId\": 0, \"classPK\": 0, \"treePath\": \"/10628776/11451017/\", \"articleId\": \"17168493\", \"version\": 1.1, \"urlTitle\": \"institucional/petrobras-retorna-r-274-bilhoes-para-o-pais-em-forma-de-dividendos-e-tributos-relativos-a-2023\", \"DDMStructureId\": 10628772, \"DDMTemplateKey\": \"\", \"defaultLanguageId\": \"pt_BR\", \"layoutUuid\": \"\", \"displayDate\": \"Fri Apr 26 16:56:00 GMT 2024\", \"expirationDate\": null, \"reviewDate\": null, \"indexable\": true, \"smallImage\": false, \"smallImageId\": 0, \"smallImageSource\": 1, \"smallImageURL\": \"\", \"lastPublishDate\": null, \"status\": 0, \"statusByUserId\": 11888211, \"statusByUserName\": \"Leonardo Bruno Pimenta Melo\", \"statusDate\": \"Fri Apr 26 17:28:00 GMT 2024\"}"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign xmlArticle = journalArticle.g... [in template "20099#20135#10832147" in function "getCardData" at line 52, column 5] ----
1<#-- Conteúdo Web -> Templates: Site de Crise - Include de templates-->
2<#-- include "${templatesPath}/1975602" -->
3
4<#-- Conteúdo Web -> Templates: Site de Crise - Funções gerais-->
5<#include "${templatesPath}/1975398" />
6
7<#assign journalArticleService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") />
8<#assign fileEntryService = staticUtil["com.liferay.document.library.kernel.service.DLFileEntryLocalServiceUtil"] />
9<#assign assetCategoryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService") />
10<#assign assetVocabularyService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetVocabularyService") />
11<#assign assetCategoryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService") />
12<#assign vocabularies = assetVocabularyService.getGroupVocabularies(groupId) />
13<#assign editoriaVocabulary = findVocabulary("Editorial", vocabularies) />
14
15
16
17<#function getFirstCategoryFromVocabulary entry vocabulary>
18 <#assign categories = assetCategoryLocalService.getCategories("com.liferay.journal.model.JournalArticle", entry.getClassPK()) />
19 <#list categories as category>
20 <#assign vocabulary = assetVocabularyService.getVocabulary(category.getVocabularyId()) />
21
22 <#if vocabulary.getVocabularyId() == category.getVocabularyId()>
23 <#return category>
24 </#if>
25 </#list>
26 <#return "">
27</#function>
28
29<#assign rootCss = "card-news_" + randomNumber(4586) />
30<#assign cardMap = {} />
31
32<#-- Função para obter os dados de um card no Web Content (Journal Article) -->
33<#function getCardData entry journalArticleLocalService fileEntryService cardMap>
34
35 <#assign editoria = getFirstCategoryFromVocabulary(entry, editoriaVocabulary) />
36 <#assign editoriaId = -1 />
37 <#if editoria?has_content>
38 <#assign editoriaId = editoria.getCategoryId() />
39 </#if>
40 <#if editoriaId == -1>
41 <#return {} />
42 </#if>
43 <#if cardMap[ editoriaId?string]??>
44 <#if cardMap[editoriaId?string]?size gt 7 >
45 <#return {} />
46 </#if>
47 </#if>
48
49 <#assign journalArticle = journalArticleLocalService.getLatestArticle(entry.getClassPK()) />
50 <#assign ddmStructure = journalArticle.getDDMStructure() />
51 <#assign fieldList = getFieldListByStructure(ddmStructure) />
52 <#assign xmlArticle = journalArticle.getDocument().getRootElement() />
53 <#assign ddmStructure = journalArticle.getDDMStructure() />
54
55 <#assign imagesGroup = getNodes(getIdFromFieldName(fieldList, "Imagem de destaque da notícia"), xmlArticle) />
56 <#assign image = "" />
57 <#list imagesGroup as imageGroup >
58 <#assign image = getMediaInfo(fieldList, imageGroup, "Imagem de destaque", fileEntryService) /> />
59 </#list>
60
61 <#assign title = getFieldValue(fieldList, xmlArticle, "Título de destaque da notícia") />
62
63 <#assign lastPublishDate = journalArticle.getDisplayDate()>
64 <#assign createDate = journalArticle.getCreateDate()>
65
66 <#assign editoria = getFirstCategoryFromVocabulary(entry, editoriaVocabulary) />
67 <#assign editoriaId = -1 />
68 <#if editoria?has_content>
69 <#assign editoriaId = editoria.getCategoryId() />
70 </#if>
71
72 <#assign review = getFieldValue(fieldList, xmlArticle, "Subtítulo") />
73
74 <#assign urlNews = "/">
75 <#if themeDisplay.getPortalURL()?contains("webserver")>
76 <#assign urlNews = themeDisplay.getPortalURL() + themeDisplay.getPathFriendlyURLPublic() + layout.getGroup().friendlyURL + "/w/" + journalArticle.getUrlTitle()>
77 <#else>
78 <#assign urlNews = "/w/" + journalArticle.getUrlTitle()>
79 </#if>
80
81 <#assign cardInfo = {"image": image,
82 "title": title,
83 "lastPublishDate": lastPublishDate,
84 "createDate" : createDate,
85 "editoriaId": editoriaId,
86 "urlNews": urlNews,
87 "review": review} />
88
89 <#if cardMap[editoriaId?string]??>
90 <#assign cardMap = cardMap + {editoriaId : cardMap[editoriaId?string] + [cardInfo]} />
91 <#else>
92 <#assign cardMap = cardMap + {editoriaId : [cardInfo]} />
93 </#if>
94
95 <#return cardInfo />
96
97</#function>
98
99
100<#macro renderCard cardData>
101 <#if !cardData["image"]??>
102 <#return />
103 </#if>
104
105 <div class="card ${rootCss}" category-id="${cardData.editoriaId}">
106 <#if cardData.image.url?has_content>
107 <img class="image" src="/o/adaptive-media/image/${cardData.image.fileEntryId}/Thumbnail-300x300/image" alt="${cardData.image.alt}"/>
108 </#if>
109 <div class="news-content">
110 <div class="head">
111 <p class="date">${formatDate(cardData.lastPublishDate)}</p>
112 <h2 class="title h4">${cardData.title}</h2>
113 <div class="bar"></div>
114 </div>
115 <div class="bottom-wrapper">
116 <div class="review-container">
117 ${cardData.review}
118 </div>
119 <div class="link-container">
120 <a class="link" href="${cardData.urlNews}" class="card-news-container">
121 <#if locale?lower_case == "pt_br"> Continuar lendo <#else> Keep reading </#if>
122 <span style="display: none">${randomNumber(10000)}</span> <#-- Devido ao ASESWEB -->
123 </a>
124 </div>
125 </div>
126 </div>
127 </div>
128
129</#macro>
130
131<#-- Renderizar Lista de cards -->
132<#if entries?has_content>
133 <#list entries as entry>
134 <#assign cardData = getCardData(entry journalArticleService fileEntryService cardMap) />
135 <@renderCard cardData/>
136 </#list>
137
138 <style>
139
140
141 .${rootCss} {
142 display: flex;
143 flex-direction: column;
144 width: 306px;
145 border-radius: 16px;
146 border: 1px solid var(--color-neutral-400, #EEE);
147 background: var(--color-neutral-100, #FFF);
148 margin: 0;
149 }
150
151 .${rootCss}:hover {
152 box-shadow: var(--box-shadow-neutral);
153 transition: box-shadow 300ms ease-in-out;
154 }
155
156 .${rootCss} .news-content {
157 padding: var(--space-md, 24px);
158 display: flex;
159 flex-direction: column;
160 height: 100%;
161 background: var(--color-background-card);
162 border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
163 }
164
165
166 .${rootCss} img {
167 background: lightgray 50% / cover no-repeat;
168 height: 170px;
169 width: 100%;
170 border-radius: 16px 16px 0 0;
171 /*transform: translateX(-1px);*/
172 object-fit: cover;
173 }
174
175 .${rootCss} .head {
176 display: flex;
177 flex-direction: column;
178 gap: var(--space-xxs, 8px);
179 }
180
181 .${rootCss} .head .date {
182 color: var(--color-neutral-800, #373737);
183 font-family: var(--font-family-base, "Petrobras Sans");
184 font-size: 14px;
185 font-style: normal;
186 font-weight: 400;
187 line-height: 160%; /* 19.2px */
188 }
189
190 .${rootCss} .head .title {
191 color: var(--color-neutral-800);
192 }
193
194 .${rootCss} .head .bar {
195 background-color: var(--color-secondary-solid-to-bright-200, #FDC82F);
196 height: 4px;
197 width: 20px;
198 margin: 12px 0 16px 0;
199 }
200
201 .${rootCss} .bottom-wrapper {
202 height: 100%;
203 display: flex;
204 flex-direction: column;
205 justify-content: space-between;
206 }
207
208 .${rootCss} .bottom-wrapper .review-container {
209 color: var(--color-neutral-800, #373737);
210 font-family: var(--font-family-base, "Petrobras Sans");
211 font-size: 16px;
212 font-style: normal;
213 font-weight: 400;
214 line-height: 160%; /* 22.4px */
215 }
216
217 .${rootCss} .bottom-wrapper .link-container {
218 flex: 0 1 auto;
219 }
220
221 .${rootCss} .bottom-wrapper .link-container .link {
222 color: var(--color-primary-solid-to-bright-200, var(--color-primary-medium));
223 font-family: var(--font-family-base, "Petrobras Sans");
224 font-size: 16px;
225 font-style: normal;
226 font-weight: 700;
227 line-height: 144%; /* 23.04px */
228 text-decoration-line: underline;
229 }
230
231 @media screen and (max-width: 1024px) {
232 .${rootCss} {
233 flex-direction: column;
234 /*gap: 16px;*/
235 min-width: 296px;
236 }
237
238 .${rootCss} img {
239 height: 140px;
240 }
241
242 .${rootCss} .head .date {
243 font-size: 12px;
244 }
245
246 .${rootCss} .head .title {}
247
248 .${rootCss} .head .bar {
249 width: 18px;
250 margin: 8px 0 16px 0;
251 }
252
253 .${rootCss} .review-container {
254 font-size: 14px;
255 }
256 }
257 </style>
258</#if>
Mais lidos
29/01/2024
Inscrições para concurso de nível técnico terminam na próxima quarta
30/01/2024
Petrobras apoia projetos de reciclagem no Rio e na Baixada Fluminense com capacidade de reaproveitar 600 toneladas de materiais por ano
31/01/2024
Petrobras destaca transição energética e ativos rentáveis em imersão com investidores em NY
26/01/2024
Petrobras bate recordes no primeiro ano da atual gestão
26/01/2024
Petrobras conclui primeira perfuração de poço exploratório na Margem Equatorial
30/01/2024
Petrobras amplia testes para produção de diesel com conteúdo renovável
26/01/2024
Petrobras informa sobre Reservas Provadas em 2023
30/01/2024
Repar bate recordes históricos de produção e vendas
Navegue por editoria
Java method "com.liferay.journal.model.impl.JournalArticleImpl.getDocument()" threw an exception when invoked on com.liferay.journal.model.impl.JournalArticleImpl object "{\"mvccVersion\": 1, \"ctCollectionId\": 0, \"uuid\": \"d5475e12-55db-be1a-a173-1c4ab75f0973\", \"id\": 17168519, \"resourcePrimKey\": 17168495, \"groupId\": 10623376, \"companyId\": 20099, \"userId\": 11888211, \"userName\": \"Leonardo Bruno Pimenta Melo\", \"createDate\": \"Fri Apr 26 17:23:01 GMT 2024\", \"modifiedDate\": \"Fri Apr 26 17:28:00 GMT 2024\", \"externalReferenceCode\": \"a3d3dc4d-7ad5-63a3-4022-0b882a45e61c\", \"folderId\": 11451017, \"classNameId\": 0, \"classPK\": 0, \"treePath\": \"/10628776/11451017/\", \"articleId\": \"17168493\", \"version\": 1.1, \"urlTitle\": \"institucional/petrobras-retorna-r-274-bilhoes-para-o-pais-em-forma-de-dividendos-e-tributos-relativos-a-2023\", \"DDMStructureId\": 10628772, \"DDMTemplateKey\": \"\", \"defaultLanguageId\": \"pt_BR\", \"layoutUuid\": \"\", \"displayDate\": \"Fri Apr 26 16:56:00 GMT 2024\", \"expirationDate\": null, \"reviewDate\": null, \"indexable\": true, \"smallImage\": false, \"smallImageId\": 0, \"smallImageSource\": 1, \"smallImageURL\": \"\", \"lastPublishDate\": null, \"status\": 0, \"statusByUserId\": 11888211, \"statusByUserName\": \"Leonardo Bruno Pimenta Melo\", \"statusDate\": \"Fri Apr 26 17:28:00 GMT 2024\"}"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign xmlArticle = journalArticle.g... [in template "20099#20135#11536932" in function "getCardData" at line 63, column 5] ----
1<#-- Conteúdo Web -> Templates: Site de Crise - Include de templates-->
2<#-- include "${templatesPath}/1975602" -->
3
4<#-- Conteúdo Web -> Templates: Site de Crise - Funções gerais-->
5<#include "${templatesPath}/1975398" />
6
7<#assign journalArticleService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") />
8<#assign fileEntryService = staticUtil["com.liferay.document.library.kernel.service.DLFileEntryLocalServiceUtil"] />
9<#assign assetCategoryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService") />
10<#assign assetVocabularyService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetVocabularyService") />
11<#assign assetCategoryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService") />
12<#assign vocabularies = assetVocabularyService.getGroupVocabularies(groupId) />
13<#assign editoriaVocabulary = findVocabulary("Editorial", vocabularies) />
14<#assign mediaVocabulary = findVocabulary("Multimidia", vocabularies) />
15
16<#-- Categoria para filtrar registros para idioma em inglês -->
17<#assign PAGE_ENGLISH_CATEGORY = 12780360 >
18
19<#assign assetEntryQuery = objectUtil('com.liferay.asset.kernel.service.persistence.AssetEntryQuery')>
20<#assign portalUtil = staticUtil["com.liferay.portal.kernel.util.PortalUtil"]>
21<#assign assetEntryLocalServiceUtil = objectUtil("com.liferay.asset.kernel.service.AssetEntryLocalServiceUtil").getService()>
22
23<#function getFirstCategoryFromVocabulary entry vocabulary>
24 <#assign categories = assetCategoryLocalService.getCategories("com.liferay.journal.model.JournalArticle", entry.getClassPK()) />
25 <#list categories as category>
26 <#assign vocabulary = assetVocabularyService.getVocabulary(category.getVocabularyId()) />
27
28 <#if vocabulary.getVocabularyId() == category.getVocabularyId()>
29 <#return category>
30 </#if>
31 </#list>
32 <#return "">
33</#function>
34
35<#assign rootCss = "card-news_" + randomNumber(4586) />
36<#assign cardMap = {} />
37
38<#-- Função para obter os dados de um card no Web Content (Journal Article) -->
39<#function getCardData entry journalArticleLocalService fileEntryService cardMap>
40
41 <#assign editoria = getFirstCategoryFromVocabulary(entry, editoriaVocabulary) />
42 <#assign editoriaId = -1 />
43 <#if editoria?has_content>
44 <#assign editoriaId = editoria.getCategoryId() />
45 </#if>
46 <#if editoriaId == -1>
47 <#return {} />
48 </#if>
49 <#if cardMap[ editoriaId?string]??>
50 <#if cardMap[editoriaId?string]?size gt 7 >
51 <#return {} />
52 </#if>
53 </#if>
54
55 <#assign journalArticle = journalArticleLocalService.getLatestArticle(entry.getClassPK()) />
56 <#assign structName = getStructName(journalArticle) />
57 <#if structName != "Agência de Notícias - Notícia">
58 <#return {}/>
59 </#if>
60
61 <#assign ddmStructure = journalArticle.getDDMStructure() />
62 <#assign fieldList = getFieldListByStructure(ddmStructure) />
63 <#assign xmlArticle = journalArticle.getDocument().getRootElement() />
64
65
66 <#assign imagesGroup = getNodes(getIdFromFieldName(fieldList, "Imagem de destaque da notícia"), xmlArticle) />
67 <#assign image = "" />
68 <#list imagesGroup as imageGroup >
69 <#assign image = getMediaInfo(fieldList, imageGroup, "Imagem de destaque", fileEntryService) /> />
70 </#list>
71
72 <#assign title = getFieldValue(fieldList, xmlArticle, "Título de destaque da notícia") />
73
74 <#assign lastPublishDate = journalArticle.getDisplayDate()>
75 <#assign createDate = journalArticle.getCreateDate()>
76
77 <#assign editoria = getFirstCategoryFromVocabulary(entry, editoriaVocabulary) />
78 <#assign editoriaId = -1 />
79 <#if editoria?has_content>
80 <#assign editoriaId = editoria.getCategoryId() />
81 </#if>
82
83 <#assign review = getFieldValue(fieldList, xmlArticle, "Subtítulo") />
84
85 <#assign urlNews = "/">
86 <#if themeDisplay.getPortalURL()?contains("webserver")>
87 <#assign urlNews = themeDisplay.getPortalURL() + themeDisplay.getPathFriendlyURLPublic() + layout.getGroup().friendlyURL + "/w/" + journalArticle.getUrlTitle()>
88 <#else>
89 <#assign urlNews = "/w/" + journalArticle.getUrlTitle()>
90 </#if>
91
92 <#assign cardInfo = {"image": image,
93 "title": title,
94 "lastPublishDate": lastPublishDate,
95 "createDate" : createDate,
96 "editoriaId": editoriaId,
97 "urlNews": urlNews,
98 "review": review} />
99
100 <#if cardMap[editoriaId?string]??>
101 <#assign cardMap = cardMap + {editoriaId : cardMap[editoriaId?string] + [cardInfo]} />
102 <#else>
103 <#assign cardMap = cardMap + {editoriaId : [cardInfo]} />
104 </#if>
105
106 <#return cardInfo />
107
108</#function>
109
110
111<#macro renderCard cardData>
112 <#if !cardData["image"]??>
113 <#return />
114 </#if>
115
116 <div class="card ${rootCss}" category-id="${cardData.editoriaId}">
117 <#if cardData.image.url?has_content>
118 <img class="image" src="/o/adaptive-media/image/${cardData.image.fileEntryId}/Thumbnail-300x300/image" alt="${cardData.image.alt}"/>
119 </#if>
120 <div class="news-content">
121 <div class="head">
122 <p class="date">${formatDate(cardData.lastPublishDate)}</p>
123 <h2 class="title h4">${cardData.title}</h2>
124 <div class="bar"></div>
125 </div>
126 <div class="bottom-wrapper">
127 <div class="review-container">
128 ${cardData.review}
129 </div>
130 <div class="link-container">
131 <a class="link" href="${cardData.urlNews}" class="card-news-container">
132 <#if locale?lower_case == "pt_br"> Continuar lendo <#else> Keep reading </#if>
133 <span style="display: none">${randomNumber(10000)}</span> <#-- Devido ao ASESWEB -->
134 </a>
135 </div>
136 </div>
137 </div>
138 </div>
139
140</#macro>
141
142
143
144<#function getAssetEntries portalUtil assetEntryLocalServiceUtil vocabulary>
145 <#attempt >
146 <#assign groupId = themeDisplay.getScopeGroupId()>
147 <#assign companyId = themeDisplay.getCompanyId()>
148 <#assign realUserId = themeDisplay.getDefaultUserId() />
149 <#assign className = "com.liferay.journal.model.JournalArticle">
150 <#assign classNameId = portalUtil.getClassNameId(className)>
151
152 <#assign assetEntryQuery = objectUtil('com.liferay.asset.kernel.service.persistence.AssetEntryQuery') />
153 ${assetEntryQuery.setClassNameIds([classNameId]) }
154 ${assetEntryQuery.setEnd(8)}
155 <#assign notAllCategoryIds = [] />
156 <#list mediaVocabulary.getCategories() as category>
157 <#assign notAllCategoryIds += [category.getCategoryId()] />
158 </#list>
159 ${assetEntryQuery.setNotAllCategoryIds(notAllCategoryIds)}
160
161 <#assign allAssets = []/>
162 <#list vocabulary.getCategories() as category>
163 <#if locale?lower_case == "pt_br">
164 ${assetEntryQuery.setAllCategoryIds([category.getCategoryId()])}
165 <#else>
166 ${assetEntryQuery.setAllCategoryIds([category.getCategoryId(), PAGE_ENGLISH_CATEGORY])}
167 </#if>
168 <#assign ents = assetEntryLocalServiceUtil.getEntries(assetEntryQuery) />
169 <#assign allAssets = allAssets + ents />
170 </#list>
171
172 <#return allAssets />
173 <#recover >
174 <#return [] />
175 </#attempt>
176</#function>
177
178
179
180<#assign allAssets = getAssetEntries(portalUtil, assetEntryLocalServiceUtil, editoriaVocabulary) />
181
182<#-- Renderizar Lista de cards -->
183<#if allAssets?has_content>
184
185 <#list allAssets?sort_by("publishDate")?reverse as assetEntry>
186 <#assign cardData = getCardData(assetEntry journalArticleService fileEntryService cardMap) />
187 <@renderCard cardData/>
188 </#list>
189
190 <style>
191 .${rootCss} {
192 display: flex;
193 flex-direction: column;
194 width: 306px;
195 border-radius: 16px;
196 border: 1px solid var(--color-neutral-400, #EEE);
197 background: var(--color-neutral-100, #FFF);
198 margin: 0;
199 }
200
201 .${rootCss}:hover {
202 box-shadow: var(--box-shadow-neutral);
203 transition: box-shadow 300ms ease-in-out;
204 }
205
206 .${rootCss} .news-content {
207 border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
208 background: var(--color-background-card);
209 padding: var(--space-md, 24px);
210 display: flex;
211 flex-direction: column;
212 height: 100%;
213 }
214
215 .${rootCss} img {
216 background: lightgray 50% / cover no-repeat;
217 height: 170px;
218 width: 100%;
219 border-radius: 16px 16px 0 0;
220 /*transform: translateX(-1px);*/
221 object-fit: cover;
222 }
223
224 .${rootCss} .head {
225 display: flex;
226 flex-direction: column;
227 gap: var(--space-xxs, 8px);
228 }
229
230 .${rootCss} .head .date {
231 color: var(--color-neutral-800, #373737);
232 font-family: var(--font-family-base, "Petrobras Sans");
233 font-size: 14px;
234 font-style: normal;
235 font-weight: 400;
236 line-height: 160%; /* 19.2px */
237 }
238
239 .${rootCss} .head .title {
240 color: var(--color-neutral-800);
241 }
242
243 .${rootCss} .head .bar {
244 background-color: var(--color-secondary-medium, #FDC82F);
245 height: 4px;
246 width: 20px;
247 margin: 12px 0 16px 0;
248 }
249
250 .${rootCss} .bottom-wrapper {
251 height: 100%;
252 display: flex;
253 flex-direction: column;
254 justify-content: space-between;
255 }
256
257 .${rootCss} .bottom-wrapper .review-container {
258 color: var(--color-neutral-800, #373737);
259 font-family: var(--font-family-base, "Petrobras Sans");
260 font-size: 16px;
261 font-style: normal;
262 font-weight: 400;
263 line-height: 160%; /* 22.4px */
264 }
265
266 .${rootCss} .bottom-wrapper .link-container {
267 flex: 0 1 auto;
268 }
269
270 .${rootCss} .bottom-wrapper .link-container .link {
271 color: var(--color-primary-solid-to-bright-200, var(--color-primary-medium));
272 font-family: var(--font-family-base, "Petrobras Sans");
273 font-size: 16px;
274 font-style: normal;
275 font-weight: 700;
276 line-height: 144%; /* 23.04px */
277 text-decoration-line: underline;
278 }
279
280
281 @media screen and (max-width: 1024px) {
282 .${rootCss} {
283 flex-direction: column;
284 gap: 16px;
285 min-width: 296px;
286 }
287
288 .${rootCss} img {
289 height: 140px;
290 }
291
292 .${rootCss} .head .date {
293 font-size: 12px;
294 }
295
296 .${rootCss} .head .title {
297 }
298
299 .${rootCss} .head .bar {
300 width: 18px;
301 margin: 8px 0 16px 0;
302 }
303
304 .${rootCss} .review-container {
305 font-size: 14px;
306 }
307 }
308 </style>
309</#if>
Navegue por conteúdo multimídia
Discurso da ministra da Cultura, Margareth Menezes, no lançamento da Seleção + ...
Publicado em 26/02/2024 às 13:09:00
Vídeo
Discurso do presidente da República, Luiz Inácio Lula da Silva, no lançament + ...
Publicado em 24/02/2024 às 01:32:00
Vídeo
Discurso do presidente da Petrobras, Jean Paul Prates, no lançamento da Sele + ...
Publicado em 24/02/2024 às 01:29:00
Vídeo
Seleção Petrobras Cultural-Novos Eixos - Gerente setorial de Patrocínio Cult + ...
Publicado em 23/02/2024 às 19:28:00
Vídeo
Utilize nossa busca para encontrar o que procura
Faça uma busca:
Buscar
Mais pesquisados
Preço dos combustíveis
Pré-Sal
Time Petrobras
Java method "com.liferay.journal.model.impl.JournalArticleImpl.getDocument()" threw an exception when invoked on com.liferay.journal.model.impl.JournalArticleImpl object "{\"mvccVersion\": 1, \"ctCollectionId\": 0, \"uuid\": \"e676f63b-3777-4c00-5a1d-7f604a04072c\", \"id\": 12613261, \"resourcePrimKey\": 10628951, \"groupId\": 10623376, \"companyId\": 20099, \"userId\": 873837, \"userName\": \"Gefersom Lima\", \"createDate\": \"Tue Oct 31 18:45:56 GMT 2023\", \"modifiedDate\": \"Fri Jan 26 22:15:39 GMT 2024\", \"externalReferenceCode\": \"7748054\", \"folderId\": 10628763, \"classNameId\": 0, \"classPK\": 0, \"treePath\": \"/10628763/\", \"articleId\": \"7748054\", \"version\": 1.3, \"urlTitle\": \"configuracao-de-rodape\", \"DDMStructureId\": 10628806, \"DDMTemplateKey\": \"\", \"defaultLanguageId\": \"pt_BR\", \"layoutUuid\": \"\", \"displayDate\": \"Tue Oct 31 18:43:00 GMT 2023\", \"expirationDate\": null, \"reviewDate\": null, \"indexable\": false, \"smallImage\": false, \"smallImageId\": 0, \"smallImageSource\": 1, \"smallImageURL\": \"\", \"lastPublishDate\": null, \"status\": 0, \"statusByUserId\": 873856, \"statusByUserName\": \"Wagner de Melo Reck\", \"statusDate\": \"Fri Jan 26 22:15:39 GMT 2024\"}"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign xmlArticle = article.getDocum... [in template "20099#20135#2683802" in function "extractFooterInfo" at line 30, column 3] - Reached through: @renderSacInfoDates entry, journalArt... [in template "20099#20135#2683802" at line 83, column 5] ----
1<#--
2Widget templates can be used to modify the look of a
3specific application.
4
5Please use the right panel to quickly add commonly used variables.
6Autocomplete is also available and can be invoked by typing "${".
7-->
8
9<#include "${templatesPath}/1975398" />
10
11<#assign journalArticleService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") />
12<#assign fileEntryService = staticUtil["com.liferay.document.library.kernel.service.DLFileEntryLocalServiceUtil"] />
13
14<#function extractFooterInfo curEntry journalArticleService fileEntryService >
15 <#if !curEntry?? >
16 <#return {}>
17 </#if>
18
19 <#assign article = journalArticleService.getLatestArticle(curEntry.getClassPK()) />
20 <#if !article??>
21 <#return {}>
22 </#if>
23
24 <#assign ddmStructure = article.getDDMStructure()>
25 <#if !ddmStructure??>
26 <#return {}>
27 </#if>
28
29 <#assign fieldList = getFieldListByStructure(ddmStructure) />
30 <#assign xmlArticle = article.getDocument().getRootElement() />
31
32
33 <#assign iconInformation = getMediaInfo(fieldList, xmlArticle, "Acesso à Informação - Imagem", fileEntryService) />
34 <#assign iconSac = getMediaInfo(fieldList, xmlArticle, "SAC Imagem", fileEntryService) />
35 <#assign sacLabel = getFieldValue(fieldList, xmlArticle, "SAC - Rótulo") />
36 <#assign sacNumber = getFieldValue(fieldList, xmlArticle, "SAC - Número") />
37 <#assign informationLabel = getFieldValue(fieldList, xmlArticle, "Acesso à Informação") />
38 <#assign transparencyLabel = getFieldValue(fieldList, xmlArticle, "Portal da Transparencia - Rótulo") />
39 <#assign transparencyLink = getFieldValue(fieldList, xmlArticle, "Portal da Transparencia - Link") />
40
41
42 <#return {
43 "iconInformation": iconInformation,
44 "iconSac" : iconSac,
45 "sacLabel" : sacLabel,
46 "sacNumber" : sacNumber,
47 "informationLabel": informationLabel,
48 "transparencyLabel": transparencyLabel,
49 "transparencyLink": transparencyLink
50 }>
51
52</#function>
53
54
55<#macro renderSacInfoDates entry journalArticleService fileEntryService >
56 <#assign info = extractFooterInfo(entry journalArticleService fileEntryService) />
57 <div class="footer-informations">
58 <div class="sac-information icons-container">
59
60 <img alt="${info.iconSac.alt}" src="${info.iconSac.url}"/>
61 <div class="icons-texts">
62 <p class="button-xs-regular" >${info.sacLabel}</p>
63 <p class="button-xs-bold">${info.sacNumber}</p>
64 </div>
65 </div>
66
67 <div class="logo-informations icons-container">
68 <img alt="${info.iconInformation.alt}" src="${info.iconInformation.url}"/>
69 <div class="icons-texts">
70 <p class="button-xs-regular">
71 ${info.informationLabel}
72 </p>
73 <a class="button-xs-bold" open="_blank"
74 href='${info.transparencyLink}'>
75 ${info.transparencyLabel}
76 </a>
77 </div>
78 </div>
79 </div>
80</#macro>
81
82<#if entry?has_content>
83 <@renderSacInfoDates entry journalArticleService fileEntryService />
84</#if>
85
86
87<style>
88
89 .footer-informations {
90 display: flex;
91 justify-content: center;
92 align-items: center;
93 }
94
95 .footer-informations .icons-container img {
96 width: 29px;
97 height: 29px;
98 margin: 5px 8px 0 0;
99 }
100
101 .footer-informations .icons-container {
102 color: var(--color-text-primary-default);
103 display: flex;
104 }
105
106 .footer-informations .logo-informations {
107 padding-left: calc(var(--space-lg)/2);
108 display: flex;
109 }
110
111 .footer-informations .icons-container .icons-texts * {
112 color: var(--color-text-primary-default);
113 }
114
115 .footer-informations .sac-information .icons-texts {
116 border-right: 1px solid var(--border-color-light);
117 }
118
119
120 .footer-informations .icons-container .icons-texts {
121 padding-right: calc(var(--space-lg)/2);
122 display: flex;
123 flex-direction: column;
124
125 }
126
127 @media screen and (max-width: 767px) {
128
129 .footer-informations {
130 flex-direction: column;
131 }
132
133 .footer-informations .icons-container {
134 margin-bottom: 16px !important;
135 }
136
137 .footer-informations .sac-information .icons-texts {
138 border-right: none;
139 }
140
141 .footer-informations .logo-informations {
142 margin-bottom: 16px;
143 padding: 0;
144 }
145
146 }
147
148</style>
- Assessoria de Imprensa
- Categorias
- Acesse também
Java method "com.liferay.journal.model.impl.JournalArticleImpl.getDocument()" threw an exception when invoked on com.liferay.journal.model.impl.JournalArticleImpl object "{\"mvccVersion\": 1, \"ctCollectionId\": 0, \"uuid\": \"e676f63b-3777-4c00-5a1d-7f604a04072c\", \"id\": 12613261, \"resourcePrimKey\": 10628951, \"groupId\": 10623376, \"companyId\": 20099, \"userId\": 873837, \"userName\": \"Gefersom Lima\", \"createDate\": \"Tue Oct 31 18:45:56 GMT 2023\", \"modifiedDate\": \"Fri Jan 26 22:15:39 GMT 2024\", \"externalReferenceCode\": \"7748054\", \"folderId\": 10628763, \"classNameId\": 0, \"classPK\": 0, \"treePath\": \"/10628763/\", \"articleId\": \"7748054\", \"version\": 1.3, \"urlTitle\": \"configuracao-de-rodape\", \"DDMStructureId\": 10628806, \"DDMTemplateKey\": \"\", \"defaultLanguageId\": \"pt_BR\", \"layoutUuid\": \"\", \"displayDate\": \"Tue Oct 31 18:43:00 GMT 2023\", \"expirationDate\": null, \"reviewDate\": null, \"indexable\": false, \"smallImage\": false, \"smallImageId\": 0, \"smallImageSource\": 1, \"smallImageURL\": \"\", \"lastPublishDate\": null, \"status\": 0, \"statusByUserId\": 873856, \"statusByUserName\": \"Wagner de Melo Reck\", \"statusDate\": \"Fri Jan 26 22:15:39 GMT 2024\"}"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign xmlArticle = article.getDocum... [in template "20099#20135#2683780" in function "extractFooterInfo" at line 31, column 3] - Reached through: @renderConfigFooterDates entry, journ... [in template "20099#20135#2683780" at line 82, column 5] ----
1<#--
2Widget templates can be used to modify the look of a
3specific application.
4
5Please use the right panel to quickly add commonly used variables.
6Autocomplete is also available and can be invoked by typing "${".
7-->
8
9<#include "${templatesPath}/1975398" />
10
11<#assign journalArticleService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") />
12
13<#function extractFooterInfo curEntry journalArticleService >
14 <#if !curEntry?? >
15 <#return {} />
16 </#if>
17
18 <#assign article = journalArticleService.getLatestArticle(curEntry.getClassPK()) />
19 <#if !article??>
20 <#return {} />
21 </#if>
22
23 <#assign ddmStructure = article.getDDMStructure() />
24 <#if !ddmStructure??>
25 <#return {} />
26 </#if>
27
28 <#assign productCategories = [] />
29
30 <#assign fieldList = getFieldListByStructure(ddmStructure) />
31 <#assign xmlArticle = article.getDocument().getRootElement() />
32
33
34 <#assign cookiesLabel = getFieldValue(fieldList, xmlArticle, "Definições de Cookies - Rótulo") />
35 <#assign copyrightMessage = getFieldValue(fieldList, xmlArticle, "Mensagem de Copyright") />
36
37 <#assign linkItemGroupXMLList = getNodesByLabel(fieldList, xmlArticle, "Links do rodapé")>
38 <#assign linksAndLabels = []>
39 <#list linkItemGroupXMLList as linkItemGroupXML>
40 <#assign obj = {
41 "link": getFieldValue(fieldList, linkItemGroupXML, "Link"),
42 "label": getFieldValue(fieldList, linkItemGroupXML, "Rótulo")
43 } />
44 <#assign linksAndLabels = linksAndLabels + [obj] />
45 </#list>
46 <#return {
47 "linksAndLabels": linksAndLabels,
48 "cookiesLabel" : cookiesLabel,
49 "copyrightMessage": copyrightMessage
50 } />
51</#function>
52
53
54<#macro renderConfigFooterDates entry journalArticleService >
55 <#assign info = extractFooterInfo(entry journalArticleService) />
56
57
58 <div class="fragment-footer breakpoint" id="pet-fragment-footer">
59
60 <div class="petrobras-footer col-1-12 md-col-1-8 sm-col-1-4">
61 <div class="footer-other-links-container">
62 <div class="footer-links">
63 <a class="menu-item-footer button-sm-regular ot-sdk-show-settings" id="ot-sdk-btn" target="_blank" tabindex="0">${info.cookiesLabel} </a>
64 <#list info.linksAndLabels as link>
65 <a class="button-sm-regular" open="_blank"
66 href='${link.link}'
67 tabindex="0">
68 ${link.label}
69 </a>
70 </#list>
71 </div>
72 <p class="footer_copyright button-sm-regular">${info.copyrightMessage}</p>
73 </div>
74 </div>
75
76
77 </div>
78
79</#macro>
80
81<#if entry?has_content>
82 <@renderConfigFooterDates entry journalArticleService />
83</#if>
84
85
86<style>
87
88
89 .petrobras-footer * {
90 margin: 0;
91 padding: 0;
92 }
93
94 .petrobras-footer {
95 display: flex;
96 justify-content: space-between;
97 font-family: var(--font-family-base);
98 width: 100%;
99 background: var(--color-background-default-level-02)
100 }
101
102
103 .petrobras-footer .footer-other-links-container {
104 display: flex;
105 justify-content: space-between;
106 gap: 16px;
107 width: 100%;
108 margin: var(--space-xl) 0 !important;
109 }
110
111 .petrobras-footer .footer-other-links-container .footer-links {
112 display: flex;
113 gap: var(--space-md);
114 }
115
116 .petrobras-footer .footer-other-links-container .footer-links p,
117 .petrobras-footer .footer-other-links-container .footer-links a {
118 color: var(--color-text-primary-default);
119 }
120
121 /*Cookies button*/
122 .petrobras-footer .footer-other-links-container .footer-links
123 #ot-sdk-btn.ot-sdk-show-settings, #ot-sdk-btn.optanon-show-settings {
124 color: var(--color-text-primary-default);
125 border: none;
126 padding: 0;
127 font-size: var(--font-size-xxxs);
128 line-height: var(--line-height-lg);
129 }
130
131 .petrobras-footer .footer-other-links-container .footer-links
132 #ot-sdk-btn.ot-sdk-show-settings:hover, #ot-sdk-btn.optanon-show-settings:hover {
133 background: transparent;
134 color: var(--color-neutral-800);
135 }
136
137
138 .petrobras-footer .footer-other-links-container .footer_copyright {
139 color: var(--color-neutral-dark-to-bright-300, var(--color-neutral-600));
140 }
141
142
143
144 @media (max-width: 1200px) {
145
146 .petrobras-footer .footer-other-links-container {
147 display: flex;
148 flex-direction: column;
149 margin: 48px auto 55px auto;
150 align-items: center;
151 text-align: center;
152 justify-content: flex-start;
153 gap: var(--space-md);
154 }
155
156 .petrobras-footer .footer-other-links-container p {
157 margin-left: 0;
158 }
159
160 .petrobras-footer .footer-other-links-container .footer-links {
161 display: flex;
162 flex-direction: column;
163 gap: var(--space-md);
164 }
165
166
167 .petrobras-footer .footer-other-links-container .footer-links a,
168 .petrobras-footer .footer-other-links-container .footer-links p {
169 margin-left: 0;
170 }
171
172 }
173
174 @media (max-width: 767px) {
175
176 .petrobras-footer .footer-other-links-container .footer_copyright {
177 padding-bottom: 25px;
178 }
179 }
180
181</style>
Canais
Idioma
Acessibilidade
Busca
Faça uma busca:
Buscar
Mais pesquisados
Preço dos combustíveis
Pré-Sal
Time Petrobras