aitomic-m-search
v2.0.0
Published
A template of modal search form.
Downloads
42
Readme
A template of modal search form.
How to install:
Import {latte} block of search control into desired place (for example to header in '@layout.default.latte') using macro
{import '../path-to-latte-template'}
and declare this block as{include #m-search}
. Between macros{import}
and{include}
redefine template of used blocks like this and pass variables for CSS classes of label:{block #headerSearch} {define #searchIcon} <i class="o-header1__icon a-icon-search" aria-hidden="true"></i> {/define} {include #m-search, searchClass => 'o-header1__search'} {/block}
Block of search form include into '@layout.default.latte' at the end of
{block #aiLayout}
and pass variable for CSS class of status:{include #m-search-form, searchStatus => 'jq_search_status'}
Define search translation:
{block #searchFormTitle}{_"Search"}{/block}