cartodb/lib/assets/javascripts/builder/embed/embed.tpl
2020-06-15 10:58:47 +08:00

22 lines
840 B
Smarty

<% if (showMenu && showLegends) { %>
<header class="CDB-Embed-header <% if (!showLegends) { %> CDB-Embed-header--shadow <% } %>">
<h1 class="CDB-Text CDB-Size-large u-ellipsis" title="<%= title %>"><%= title %></h1>
<% if (description) { %><div class="CDB-Embed-description CDB-Text CDB-Size-medium u-altTextColor" title="<%= description %>"><%= description %></div><% } %>
</header>
<% } %>
<% if (showLegends) { %>
<div class="CDB-Embed-tabs CDB-NavMenu js-tabs"></div>
<% } %>
<div class="CDB-Embed-content">
<div class="CDB-Embed-tab <% if (showMenu) { %> CDB-Embed-tab--menu <% } %> is-active js-embed-map"></div>
<% if (showLegends) { %>
<div class="CDB-Embed-tab CDB-Embed-legends js-embed-legends"></div>
<% } %>
</div>
<% if (showBanner) { %>
<div class="CDB-Embed-banner js-embed-banner"></div>
<% } %>