<div id="buttons-container">
    <a href="?random=1"><span
                class="button-icon-top thought-random"></span><strong>{$Page->translate('Lire une pensée au hasard')}</strong></a>
    {if $Site->Language['code']!='de'}
        {if isset($smarty.get.bc) && $smarty.get.bc=='index'}
            <a href="#" onclick="window.history.back();"><span
                        class="button-icon-top thought-index"></span><strong>{$Page->translate('Retourner à l\'index alphabétique')}</strong></a>
        {else}
            <a href="{$Page->compile('[thoughtindex:url]')}"><span
                        class="button-icon-top thought-index"></span><strong>{$Page->translate('Consulter l\'index alphabétique')}</strong></a>
        {/if}
    {/if}
    <a href="#"><span class="button-icon-top thought-bydate bydate"><input type="input" style="visibility: hidden;"
                                                                           id="date"
                                                                           data-start="{$Page->getThoughtInterval('min')}"
                                                                           data-end="{$Page->getThoughtInterval('max')}"></span><strong
                class="bydate">{$Page->translate('Rechercher une pensée par date')}</strong>
    </a>
    <a href="{$Page->compile('[thoughtoftheday:url]')}"><span
                class="button-icon-top thought-day"></span><strong>{$Page->translate('Revenir à la pensée du jour')}</strong>
    </a>
    <a href="#" id="button-prefered"><span
                class="button-icon-top {if isset($smarty.get.prefered) && $smarty.get.prefered} selected{/if} thought-prefered"></span><strong>{$Page->translate('Pensées préférées')}</strong>
    </a>
</div>

<div id="search" class="thought-search">
    <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('Recherche par mots clés ...')}"
               type="text" value="{$Page->raw($smarty.get.q)}"/>
        <input type="hidden" name="d" value="thoughts"/>
        <input type="hidden" name="language" value="">
        <input type="hidden" name="sort" value="0">
        <input type="hidden" name="prefered" id="prefered"
               value="{if isset($smarty.get.prefered) && $smarty.get.prefered}1{else}0{/if}">
        <input type="hidden" name="template" value="list.thought">
        <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>
    <p style="text-align: right">
        {if $Page->searchcount>0 }{$Page->searchcount} {$Page->translate('pensées',array(), $Page->searchcount)}
    </p>
    {/if}
</div>