Pular para o conteúdo
Um erro ocorreu enquanto processava o modelo.
Error on line 9, column 5 in 20154#20194#22615489
pagina_atual?split("?")[2] is undefined.
It cannot be assigned to pagina_atual
1<link rel="stylesheet" href="/documents/20194/9430786/styles.css"> 
2<script src="/documents/20194/9430786/script.js"></script> 
3 
4<#assign pagina_atual = themeDisplay.getURLCurrent() > 
5<#assign link_site = "/web/detran-transparencia" > 
6<#assign titulo_pagina_atual = "" > 
7 
8<#if pagina_atual?contains("?")> 
9    <#assign pagina_atual = pagina_atual?split("?")[2] > 
10</#if> 
11<#if pagina_atual?contains("/web/")> 
12    <#assign pagina_atual = "/"+pagina_atual?split("/")[3] > 
13</#if> 
14 
15<#if entries?has_content> 
16	<#list entries as curPage> 
17		<#if pagina_atual == curPage.getFriendlyURL() > 
18		    <#assign titulo_pagina_atual = curPage.getName(locale) > 
19		    <#break> 
20		</#if> 
21	</#list> 
22</#if> 
23 
24<#assign nivel_1 = 1 > 
25<#assign nivel_2 = 1 > 
26<#assign nivel_3 = 1 > 
27 
28<#assign abrir_nivel_1 = 0 > 
29<#assign abrir_nivel_2 = 0 > 
30<#assign abrir_nivel_3 = 0 >  
31 
32<div id="cssmenu"> 
33	<#if entries?has_content> 
34		<ul> 
35		<#list entries as curPage> 
36			<#if pagina_atual == curPage.getFriendlyURL() > 
37				<#assign icone = "<i class='icon-play'></i>" > 
38				<#assign active = "active" > 
39			<#else> 
40				<#assign icone = " " > 
41				<#assign active = " " > 
42			</#if> 
43			 
44            <#if curPage.hasChildren() > 
45                <#assign hassub = "has-sub" > 
46            <#else> 
47                <#assign hassub = "" > 
48            </#if> 
49			 
50			<li class="${active} ${hassub}" id="nivel_1_${nivel_1}"> 
51				<#if curPage.getTarget() == 'target="_blank"' > 
52					<#assign target = 'target="_blank"' > 
53				<#else> 
54					<#assign target = "" > 
55				</#if> 
56				 
57				<a href="${link_site}${curPage.getFriendlyURL()}" ${target}> ${curPage.getName(locale)}</a> 
58				 
59				<#if curPage.hasChildren() > 
60					<ul id="nivel_1_${nivel_1}"> 
61						<#list curPage.getChildren() as child > 
62							<#if pagina_atual == child.getFriendlyURL() > 
63								<#assign icone = "<i class='icon-play'></i>" > 
64								<#assign active = "active" > 
65								 
66								<#assign abrir_nivel_1 = nivel_1 > 
67								<#assign abrir_nivel_2 = nivel_2 > 
68							<#else> 
69								<#assign icone = " " > 
70								<#assign active = " " > 
71							</#if> 
72							 
73                            <#if child.hasChildren() > 
74                                <#assign hassub = "has-sub" > 
75                            <#else> 
76                                <#assign hassub = "" > 
77                            </#if> 
78							 
79							<li class="${active} ${hassub}" id="nivel_2_${nivel_2}"> 
80								<#if child.getTarget() == 'target="_blank"' > 
81									<#assign target = 'target="_blank"' > 
82								<#else> 
83									<#assign target = "" > 
84								</#if> 
85							 
86								<a href="${link_site}${child.getFriendlyURL()}" ${target}> ${child.getName(locale)}</a> 
87								 
88								<#if child.hasChildren() > 
89									<ul id="nivel_2_${nivel_2}"> 
90										<#list child.getChildren() as child_2 > 
91											<#if pagina_atual == child_2.getFriendlyURL() > 
92												<#assign icone = "<i class='icon-play'></i>" > 
93												<#assign active = "active" > 
94												 
95												<#assign abrir_nivel_1 = nivel_1 > 
96												<#assign abrir_nivel_2 = nivel_2 > 
97												<#assign abrir_nivel_3 = nivel_3 > 
98											<#else> 
99												<#assign icone = " " > 
100												<#assign active = " " > 
101											</#if> 
102											<li class="${active}" id="nivel_3_${nivel_3}"> 
103												<#if child_2.getTarget() == 'target="_blank"' > 
104													<#assign target = 'target="_blank"' > 
105												<#else> 
106													<#assign target = "" > 
107												</#if> 
108												 
109												<a href="${link_site}${child_2.getFriendlyURL()}" $target> ${child_2.getName(locale)}</a> 
110												<#assign nivel_3 = nivel_3 + 1 > 
111											</li> 
112										</#list> 
113									</ul> 
114								</#if> 
115								<#assign nivel_2 = nivel_2 + 1 > 
116							</li> 
117						</#list> 
118					</ul> 
119				</#if> 
120				<#assign nivel_1 = nivel_1 + 1 > 
121			</li> 
122		</#list> 
123		</ul> 
124	</#if> 
125	 
126</div> 
127<#if abrir_nivel_3 != 0 > 
128	<script> 
129		jQuery("li#nivel_1_${abrir_nivel_1}").addClass("open"); 
130		jQuery("li#nivel_2_${abrir_nivel_2}").addClass("open"); 
131		jQuery("ul#nivel_1_${abrir_nivel_1}").attr("style", "display: block"); 
132		jQuery("ul#nivel_2_${abrir_nivel_2}").attr("style", "display: block"); 
133	</script> 
134<#elseif abrir_nivel_2 != 0 > 
135	<script> 
136		jQuery("li#nivel_1_${abrir_nivel_1}").addClass("open"); 
137		jQuery("ul#nivel_1_${abrir_nivel_1}").attr("style", "display: block"); 
138	</script> 
139</#if> 
140 
141<script> 
142    document.querySelector('.pagetitle-wrapper div').classList.add('pagetitle-content'); 
143    document.querySelector('.pagetitle-wrapper div').innerHTML = "${titulo_pagina_atual}"; 
144</script> 

23 de Setembro de 2021 às 16:43 | Licitações