Page 404 - 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 73, column 26] ---- 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 73, column 24] ----
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 <a href="${cur_menuHeader_linkMenu.IDSectionOptions.getData()}" class="header__itens" id="Item${cur_menuHeader_linkMenu.IDSectionOptions.getData()}">
74 ${cur_menuHeader_linkMenu.nameSection.getData()}</a>
75 </#list>
76 </#if>
77 </div>
78 <div class="hero__buttons <#if isGH == 'true'>d-block</#if>">
79 <#assign registerLink = buttonName.ButtonRedirect.getFriendlyUrl()>
80 <#assign loginLink = buttonGetIn.buttonRedirectGetIn.getFriendlyUrl()>
81
82 <#if buttonName.LinkToPageRelativebtn1?? && buttonName.LinkToPageRelativebtn1.getData() != "">
83 <#assign registerLink = buttonName.LinkToPageRelativebtn1.getData()>
84 </#if>
85
86 <#if buttonGetIn.LinkToPageRelativeURL?? && buttonGetIn.LinkToPageRelativeURL.getData() != "">
87 <#assign loginLink = buttonGetIn.LinkToPageRelativeURL.getData()>
88 </#if>
89
90 <#-- sky+ conditions -->
91 <#if notShowContent == 'true'>
92 <#assign registerLink = 'https://www.skymais.com.br/cadastrar'>
93 <#assign loginLink = 'https://www.skymais.com.br/acessar'>
94 </#if>
95
96 <#if registerLink != "">
97 <a class="button button__primary bordered <#if isGH == 'true'>mb-0 granHermano__link</#if>" href="${registerLink}">${buttonName.getData()}</a>
98 </#if>
99 <#if loginLink != "">
100 <a class="button button__blur bordered" href="${loginLink}">${buttonGetIn.getData()}</a>
101 </#if>
102 </div>
103 </div>
104</div>
105</nav>
106<script>
107 if (!document.title.includes("404")) {
108 require_acc(['home']);
109 }
110
111$("#imgHeader").attr(
112 "src",
113 "${substituirCaminhoCDN(imgLogoHeader.getData())}"
114);
115
116 let ga4TrackingObjectParams = {
117 'v_client_id': 'not logged',
118 'v_language': 'es',
119 'v_app_name': 'dgo-web'
120 }
121
122 $(window).ready(() => {
123 if (location.pathname.includes(pageHome)) {
124 ga4Tracking('pages', 'home',
125 {'v_page_name': 'login/login',
126 ...ga4TrackingObjectParams,
127 'hash': 'p-010.011.000.000.000.000'}
128 );
129 }
130 });
131
132 $(".site-header .hero__buttons a").on( "click", function() {
133 idElement = "Button-" + $( this ).text().replace(/[\r\n]/gm, '').replaceAll(" ", "-").trim();
134 handleAddTopHomeGTM(idElement, userGTM, sessionGTM);
135
136 if ($(this).is(":last-child") && location.pathname.includes(pageHome)) {
137 ga4Tracking('interactions', 'home',
138 {'v_category': 'login:login',
139 'v_action': 'navigation',
140 'v_label': 'enter-login',
141 ...ga4TrackingObjectParams,
142 'hash': 'e-010.011.001.000.000.052'}
143 );
144 }
145 });
146
147const toggleLoaderHome = function (show, message = '') {
148 var jQueryRef = $ ? $ : jQuery;
149
150 if (show) {
151 jQueryRef("#loader-dtvgo").addClass("show");
152 jQueryRef('.loader-text').html(message);
153 jQueryRef('#loader-dtvgo').css("z-index", "9999");
154 } else {
155 jQueryRef("#loader-dtvgo").removeClass("show");
156 }
157}
158
159
160document.addEventListener("DOMContentLoaded", function(event) {
161 setTimeout(function(){
162 toggleLoaderHome(false)
163 }, 7000);
164 });
165
166<#-- sky+ -->
167<#if notShowContent == 'true'>
168$(window).scroll(function () {
169 let scroll = $(window).scrollTop(),
170 headerButtons = document.querySelector(".header .hero__buttons")
171
172 if (scroll > 500 && !headerButtons.classList.contains("buttons_active")){
173 headerButtons.classList.add("buttons_active")
174 } else if (scroll < 501 && headerButtons.classList.contains("buttons_active")) {
175 headerButtons.classList.remove("buttons_active")
176 }
177});
178</#if>
179</script>