[{d3modcfgcheck modid="d3_extsearch"}][{/d3modcfgcheck}]

[{if $mod_d3_extsearch && false == $oModCfg_d3_extsearch->isThemeIdMappedTo('mobile')}]
    [{if $oView->showSearch()}]
        [{if $oModCfg_d3_extsearch->isThemeIdMappedTo('flow')}]
            <form class="form search" role="form" action="[{$oViewConf->getSelfActionLink()}]" method="get" name="search" id="search" onSubmit="d3_extsearch_popup.popup.load();">
                [{$oViewConf->getHiddenSid()}]
                <input type="hidden" name="cl" value="search">

                [{block name="dd_widget_header_search_form_inner"}]
                    <div class="input-group">
                        [{block name="header_search_field"}]
                            <input class="form-control" type="text" id="searchParam" name="searchparam" value="[{$oView->getSearchParamForHtml()}]" placeholder="[{oxmultilang ident="SEARCH"}]">
                        [{/block}]

                        [{block name="dd_header_search_button"}]
                            <span class="input-group-btn">
                            <button type="submit" class="btn btn-primary" title="[{oxmultilang ident="SEARCH_SUBMIT"}]">
                                <i class="fa fa-search"></i>
                            </button>
                        </span>
                        [{/block}]
                    </div>
                [{/block}]
            </form>
        [{else}]
            [{oxscript include="js/widgets/oxinnerlabel.js" priority=10}]
            [{oxscript add="$( '#searchParam' ).oxInnerLabel();"}]
            <form class="search" action="[{$oViewConf->getSelfActionLink()}]" method="get" name="search" id="search" onSubmit="d3_extsearch_popup.popup.load();">
                <div class="searchBox">
                    [{$oViewConf->getHiddenSid()}]
                    <input type="hidden" name="cl" value="search">
                    [{block name="header_search_field"}]
                        <label for="searchParam" class="innerLabel">[{oxmultilang ident="SEARCH"}]</label>
                        <input class="textbox" type="text" id="searchParam" name="searchparam" value="[{$oView->getSearchParamForHtml()}]">
                    [{/block}]
                    <input class="searchSubmit" type="submit" value="">
                </div>
            </form>
        [{/if}]
    [{/if}]
[{else}]
    [{$smarty.block.parent}]
[{/if}]