O melhor dos esportes e do entretenimento | DGO - DGO
Um erro ocorreu enquanto processava o modelo.
The following has evaluated to null or missing: ==> cur_menuHeader_linkMenu.IDSectionOptions [in template "20101#20128#141970" at line 78, column 68] ---- 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: ${cur_menuHeader_linkMenu.IDSectionOp... [in template "20101#20128#141970" at line 78, column 66] ----
1<#function substituirCaminhoCDN(caminho)>
2 <#assign indice = caminho?last_index_of("/documents") + 1>
3 <#assign novoCaminho = caminho?substring(indice)>
4
5 <#return themeDisplay.getCDNBaseURL() + "/" + novoCaminho>
6</#function>
7
8<style>
9 @media (max-width: 1176px) {
10 .hero__buttons {
11 display: none !important;
12 }
13 }
14
15 @media (max-width:991px) {
16 .gran-hermano .header .hero__buttons .granHermano__link {
17 background: none;
18 color: #00acec;
19 text-align: right;
20 }
21 }
22
23 .gran-hermano .header .hero__buttons {
24 display: block !important;
25 min-width: auto!important;
26 }
27
28 .dtvgo .header .header__logo img {
29 height: 40px !important;
30 }
31
32.site-header .header .header__item a:hover {
33 color: #a3a3a3;
34 }
35
36 .site-header .header .header__item .active {
37 color: #00acec;
38 }
39
40 #senna_surface1{
41 padding-right: 0 !important;
42 }
43</style>
44
45<#assign serviceContext = staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext() />
46<#assign themeDisplay = serviceContext.getThemeDisplay() />
47<#assign currentUrl = themeDisplay.getPortalURL() + themeDisplay.getURLCurrent() />
48<#assign notShowContent = 'false' />
49<#assign isGH = 'false' />
50
51<#if currentUrl?contains('/br/') && currentUrl?contains('/inicio')>
52 <#assign notShowContent = 'true' />
53</#if>
54
55<#if currentUrl?contains('/granhermano')>
56 <#assign isGH = 'true' />
57</#if>
58
59<nav class="site-header">
60 <div class="header">
61 <div>
62 <div class="header__logo mx-auto mx-md-0">
63 <#if (imgLogoHeader.getData())?? && imgLogoHeader.getData() != "">
64 <img alt="${imgLogoHeader.getAttribute("alt")}"
65 data-fileentryid="${imgLogoHeader.getAttribute("fileEntryId")}"
66 id="imgHeader"/>
67 </#if>
68 </div>
69
70 <div class="header__item d-none d-md-inline-block">
71 <#if notShowContent == 'false' && menuHeader.linkMenu.getSiblings()?has_content>
72 <#list menuHeader.linkMenu.getSiblings() as cur_menuHeader_linkMenu>
73
74 <#if cur_menuHeader_linkMenu.IDSectionManual?? && cur_menuHeader_linkMenu.IDSectionManual.getData() != "">
75 <#assign idSection = cur_menuHeader_linkMenu.IDSectionManual.getData() />
76 </#if>
77
78 <a href="${cur_menuHeader_linkMenu.IDSectionOptions.getData()}" class="header__itens" id="Item${cur_menuHeader_linkMenu.IDSectionOptions.getData()}">
79 ${cur_menuHeader_linkMenu.nameSection.getData()}</a>
80 </#list>
81 </#if>
82 </div>
83 <div class="hero__buttons <#if isGH == 'true'>d-block</#if>">
84 <#assign registerLink = buttonName.ButtonRedirect.getFriendlyUrl()>
85 <#assign loginLink = buttonGetIn.buttonRedirectGetIn.getFriendlyUrl()>
86
87 <#if buttonName.LinkToPageRelativebtn1?? && buttonName.LinkToPageRelativebtn1.getData() != "">
88 <#assign registerLink = buttonName.LinkToPageRelativebtn1.getData()>
89 </#if>
90
91 <#if buttonGetIn.LinkToPageRelativeURL?? && buttonGetIn.LinkToPageRelativeURL.getData() != "">
92 <#assign loginLink = buttonGetIn.LinkToPageRelativeURL.getData()>
93 </#if>
94
95 <#-- sky+ conditions -->
96 <#if notShowContent == 'true'>
97 <#assign registerLink = 'https://www.skymais.com.br/cadastrar'>
98 <#assign loginLink = 'https://www.skymais.com.br/acessar'>
99 </#if>
100 <#if currentUrl?contains('utm')>
101 <#assign utmParams = currentUrl?split('?')[1]>
102 <#if registerLink?contains('?')>
103 <#assign registerLink = registerLink + '&' + utmParams>
104 <#else>
105 <#assign registerLink = registerLink + '?' + utmParams>
106 </#if>
107 <#if loginLink?contains('?')>
108 <#assign loginLink = loginLink + '&' + utmParams>
109 <#else>
110 <#assign loginLink = loginLink + '?' + utmParams>
111 </#if>
112 </#if>
113
114 <#if registerLink != "">
115 <a class="button button__primary bordered <#if isGH == 'true'>mb-0 granHermano__link</#if>" href="${registerLink}">${buttonName.getData()}</a>
116 </#if>
117
118 <#if loginLink != "">
119 <a class="button button__blur bordered" href="${loginLink}">${buttonGetIn.getData()}</a>
120 </#if>
121
122
123 </div>
124 </div>
125</div>
126</nav>
127<script>
128 if (!document.title.includes("404")) {
129 require_acc(['home']);
130 }
131
132$("#imgHeader").attr(
133 "src",
134 "${substituirCaminhoCDN(imgLogoHeader.getData())}"
135);
136
137 let ga4TrackingObjectParams = {
138 'section': 'home',
139 'v_client_id': 'not logged',
140 'v_language': 'es',
141 'v_app_name': 'dgo-web'
142 }
143
144 $(window).ready(() => {
145 if (location.pathname.includes(pageHome)) {
146 let dataLayer = {
147 "event": "interactions",
148 "eventParams": {
149 'v_page_name': 'login/login',
150 ...ga4TrackingObjectParams,
151 'hash': 'p-010.011.000.000.000.000'
152 }
153 }
154 window.dataLayer.push(dataLayer);
155 }
156
157 // Adiciona parâmetros utm aos links dos botões se presentes na URL
158 let currentUrl = window.location.href;
159
160 if (currentUrl.includes('utm')) {
161 let utmParams = currentUrl.split('?')[1];
162
163 // Seleciona todos os botões para add parâmetros
164 let buttons = $('.site-header .hero__buttons a, .hero__content .hero__buttons a, .button__mobile-generator a');
165
166 buttons.map(function() {
167 let link = $(this).attr('href');
168 if (link) {
169 // Adiciona os parâmetros utm corretamente ao link
170 link = link.includes('?') ? link + '&' + utmParams : link + '?' + utmParams;
171 $(this).attr('href', link);
172 }
173 });
174 }
175
176 });
177
178 $(".site-header .hero__buttons a").on( "click", function() {
179 idElement = "Button-" + $( this ).text().replace(/[\r\n]/gm, '').replaceAll(" ", "-").trim();
180 handleAddTopHomeGTM(idElement, userGTM, sessionGTM);
181
182 if ($(this).is(":last-child") && location.pathname.includes(pageHome)) {
183 let dataLayer = {
184 "event": "interactions",
185 "eventParams": {
186 'v_category': 'login:login',
187 'v_action': 'navigation',
188 'v_label': 'enter-login',
189 ...ga4TrackingObjectParams,
190 'hash': 'e-010.011.001.000.000.052'
191 }
192 }
193 window.dataLayer.push(dataLayer);
194 }
195 });
196
197const toggleLoaderHome = function (show, message = '') {
198 var jQueryRef = $ ? $ : jQuery;
199
200 if (show) {
201 jQueryRef("#loader-dtvgo").addClass("show");
202 jQueryRef('.loader-text').html(message);
203 jQueryRef('#loader-dtvgo').css("z-index", "9999");
204 } else {
205 jQueryRef("#loader-dtvgo").removeClass("show");
206 }
207}
208
209
210document.addEventListener("DOMContentLoaded", function(event) {
211 setTimeout(function(){
212 toggleLoaderHome(false)
213 }, 7000);
214 });
215
216<#-- sky+ -->
217<#if notShowContent == 'true'>
218$(window).scroll(function () {
219 let scroll = $(window).scrollTop(),
220 headerButtons = document.querySelector(".header .hero__buttons")
221
222 if (scroll > 500 && !headerButtons.classList.contains("buttons_active")){
223 headerButtons.classList.add("buttons_active")
224 } else if (scroll < 501 && headerButtons.classList.contains("buttons_active")) {
225 headerButtons.classList.remove("buttons_active")
226 }
227});
228</#if>
229</script>