Skip to content

Commit

Permalink
fix(prettyblocks): migrating pre_header to theme
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreimus committed Nov 18, 2024
1 parent 81f55b3 commit f76bba2
Showing 1 changed file with 1 addition and 38 deletions.
39 changes: 1 addition & 38 deletions templates/element/block/pre_header.tpl
Original file line number Diff line number Diff line change
@@ -1,38 +1 @@
<div class="header__banner">
<div class="container pre_header">
<div class="row ">
<div class="position-absolute d-none d-md-block banner-store-select">
<div class="row dropdown">
<span class="dropdown-toggle dropdownMenuButton1" type="button" id="dropdownMenuButton1"
data-bs-toggle="dropdown" aria-expanded="false">
{if isset($block['fields']['shop_menu']['button_label'])}
{$block['fields']['shop_menu']['button_label']}
{/if}
</span>
<ul class="dropdown-menu" aria-labelledby="dropdownMenuButton1">
{foreach from=$block['fields']['shop_menu']['shops'] item=item}
<li>
<a class="dropdown-item d-flex gap-3" href="{$item['link']['href']}" target="_blank">
<div class="logo col-6">
{logo name=$item['icon']}
</div>
<div class="col-6 text-wrap">{$item['link']['label']}</div>
</a>
<li>
{/foreach}
</ul>
</div>
</div>
<div class="wrapper-itemes d-flex justify-content-center align-items-center header-banner pre_header__reassurance">
{foreach from=$block['fields']['reassurances'] item=item}
<div class="item d-flex justify-content-center align-items-center gap-2 pre_header__reassurance__item">
<div class="icon pre_header__reassurance__item__icon">
{icon name=$item['icon']}
</div>
<div class="pre_header__reassurance__item__text">{$item['text']|unescape:'html' nofilter}</div>
</div>
{/foreach}

</div>
</div>
</div>
{include file='components/pre_header.tpl'}

0 comments on commit f76bba2

Please sign in to comment.