{include file=$localizer->getPath("part/thought-buttons.tpl")}


<div class="results thoughts">
    {foreach from=$Result item=r key=myId }
        <div class="result" data-id="{$r.id}">
            <h3>{$r.title}</h3>
            <p class="date"><span>{$r.date}</span>&nbsp;
                <a class="like {if $r.selected}select{else}unselect{/if}" data-like="thought:{$r.id}"></a>
            </p>
            <div class="description">{$r.result}</div>
            <div class="content text" style="display: none">
                {$r.content}
                {if $r.book }
                    <div class="content thought_see"
                         style="display: none;">{$Page->translate('Voir aussi')} {$r.book}{if $r.chapter}, {$Page->translate('chapître')} {$r.chapter}{/if}</div>
                {/if}
            </div>
            {if $Session->isLogged()}
                <div class="content copy" style="display: none;"><a class="clipboard copy fa-docs" data-id="{$r.id}"
                                                                    data-object="thought"
                                                                    data-copied="{$Page->translate('Copié')}"
                                                                    href="#">{$Page->translate('Copier')}</a></div>
            {/if}
        </div>
    {/foreach}
</div>


{if count($pagination) > 0 }
    <div id="pages">
        {foreach from=$pagination item=p key=k}
            {if $k == 0 }{$trad.strPage}: {/if}
            {if $p.uri==''}
                <span class="page">{$p.numero}</span>
            {else}
                <a href="{$p.uri}" class="page">{$p.numero}</a>
            {/if}
        {/foreach}
    </div>
{/if}