1<#-- === PRÉ-ATRIBUIÇÕES === -->
2<#assign
3 imagemFundo = Imagem_de_fundo.getData()!""
4 imagemFundoAlt = Imagem_de_fundo.getAttribute("alt")!""
5 imagemFundoId = Imagem_de_fundo.getAttribute("fileEntryId")!""
6
7 marcaImg = Marca.getData()!""
8 marcaAlt = Marca.getAttribute("alt")!""
9 marcaId = Marca.getAttribute("fileEntryId")!""
10
11 tag = Tag.getData()!""
12 nomeSubsite = Nome_do_subsite.getData()!""
13 urlSubsite = URL_base_do_subsite.getData()!""
14/>
15<#-- Flags -->
16<#assign
17 hasImagemFundo = imagemFundo?has_content
18 hasMarca = marcaImg?has_content
19 hasTag = tag?has_content
20 hasNomeSubsite = nomeSubsite?has_content
21 hasLink = urlSubsite?has_content
22/>
23
24<#-- === IMAGEM DE FUNDO === -->
25<#if hasImagemFundo>
26 <img
27 class="embp_unidades_banner_img"
28 src="${imagemFundo}"
29 alt="${htmlUtil.escapeAttribute(imagemFundoAlt!nomeSubsite)}"
30 data-fileentryid="${imagemFundoId}"
31 />
32</#if>
33
34<div class="container-fluid container-fluid-max-xl px-2">
35 <h1 class="embp_unidades_banner_title">
36
37 <#-- TAG -->
38 <#if hasTag>
39 <span>${tag}</span>
40 </#if>
41
42 <#-- NOME DO SUBSITE -->
43 <#if hasNomeSubsite>
44 <#if hasLink>
45 <a href="${urlSubsite?html}">
46 <span>${nomeSubsite}</span>
47 </a>
48 <#else>
49 <span>${nomeSubsite}</span>
50 </#if>
51 </#if>
52
53 </h1>
54</div>
55
56<#-- === MARCA ==== -->
57<#if hasMarca>
58 <#if hasLink>
59 <a
60 href="${urlSubsite?html}"
61 style="position: absolute; top: 50%; left: 50%; transform: translate(-50%, -30%);"
62 >
63 <img
64 src="${marcaImg}"
65 alt="${htmlUtil.escapeAttribute(marcaAlt!nomeSubsite)}"
66 data-fileentryid="${marcaId}"
67 style="max-height: 13rem;"
68 />
69 </a>
70 <#else>
71 <img
72 src="${marcaImg}"
73 alt="${htmlUtil.escapeAttribute(marcaAlt!nomeSubsite)}"
74 data-fileentryid="${marcaId}"
75 style="max-height: 13rem;"
76 />
77 </#if>
78</#if>