Initial commit: is_searchbar out of the box. v3.0.1

This commit is contained in:
Isabelle Anno
2025-11-19 13:26:29 +01:00
committed by Isabelle
commit e9a487dd01
53 changed files with 7103 additions and 0 deletions

View File

@ -0,0 +1,7 @@
{extends file="catalog/_partials/miniatures/product.tpl"}
{block name='product_miniature_item_class'}product-miniature--smaller{/block}
{block name='product_form'}{/block}
{block name='quick_view'}{/block}
{block name='product_flags'}{/block}
{block name='product_reviews'}{/block}

View File

@ -0,0 +1,27 @@
<div class="search-result">
{if $products}
<div class="search-result__products row">
{foreach from=$products item=$product}
{include file="module:is_searchbar/views/templates/front/product.tpl"}
{/foreach}
</div>
{if $moreResults}
<div class="search-result__bottom">
<a href="{$moreResults}" class="btn btn-block btn-outline-secondary btn-sm">
{l
s='Show the remaining %qty% products'
sprintf=[
'%qty%' => $moreResultsCount
]
d='Modules.Issearchbar.Searchresult'
}
</a>
</div>
{/if}
{else}
<div class="search-result__not-result">
{l s='There are no matching results' d='Modules.Issearchbar.Searchresult'}
</div>
{/if}
</div>

View File

@ -0,0 +1,25 @@
<div class="header-top__block header-top__block--search col">
<div id="_desktop_search_from" class="d-none d-md-block">
<form class="search-form js-search-form" data-search-controller-url="{$ajax_search_url}" method="get" action="{$search_controller_url}">
<div class="search-form__form-group">
<input type="hidden" name="controller" value="search">
<input class="js-search-input search-form__input form-control"
placeholder="{l s='Enter what you are looking for' d='Modules.Issearchbar.Form'}"
type="text"
name="s"
value="{$search_string}">
<button type="submit" class="search-form__btn btn">
<span class="material-icons">search</span>
</button>
</div>
</form>
</div>
<a role="button" class="search-toggler header-top__link d-block d-md-none" data-toggle="modal" data-target="#saerchModal">
<div class="header-top__icon-container">
<span class="header-top__icon material-icons">search</span>
</div>
</a>
</div>