{include file=$localizer->getPath("part/header.tpl")}
<div id="flash" class="{$Page->flash.class}">{$Page->flash.text}</div>
<div id="search" class="no-responsive">
    <form id="search" name="internalsearch" method="get" action="{$Page->convertUri2Url('search')}"
          ENCTYPE="application/x-www-form-urlencoded">
        <input name="q" id="prosvetaquery" placeholder="{$Page->translate('Chercher un article ...')}"
               type="text" size="50" value="{$smarty.get.q}"/>
        <a href="#" id="button-prefered" class="button-prefered{if isset($smarty.get.prefered) && $smarty.get.prefered} selected{/if}">{$Page->translate('Posts préférés')}</a>
        <input type="hidden" name="d" value="articles"/>
        <input type="hidden" name="sort" value="0">
        <input type="hidden" name="bypage" value="50">
        <input type="hidden" id="prefered" name="prefered" value="{if isset($smarty.get.prefered) && $smarty.get.prefered}1{else}0{/if}">
        <button id="btnsearch_bandeau" class="button_search" type="submit"><i class="fa-search"></i></button>
        <button id="btn_help" type="submit"><i class="fa-help-circled"></i></button>
    </form>
</div>
