garancia/themes/default/mobile/livredor.tpl
2016-10-10 15:24:25 +02:00

28 lines
966 B
Smarty
Executable File

{capture name=path}{l s='Livre d\'or'}{/capture}
{include file="$tpl_dir./breadcrumb.tpl"}
<div class="borderGreen">
<h1>[{l s='Livre d\'or'}]</h1>
<div>
{foreach from=$generationlivredor item=livredorParent key=compteur}
{if $livredorParent.children|@count>0 || $livredorParent.items|@count>0}
{if $livredorParent.items|@count>0}
<div class="tiroir">
<h3 class="item{$compteur}"><span class="uppercase">{$livredorParent.title}</span></h3>
<div class="hidden texte">
{foreach from=$livredorParent.items item=livredorItem}
<p>«{$livredorItem.phrase}» {$livredorItem.prenom} {$livredorItem.nom|truncate:1:"."}{if $livredorItem.departement}{l s='Dép. '} {$livredorItem.departement}{/if}</p><br/>&nbsp;
{/foreach}
</div>
</div>
{/if}
{/if}
{/foreach}
</div>
</div>
<script type="text/javascript">
{literal}
$(document).ready(function(){
$('.tiroir:first-child').next().click();
});
{/literal}
</script>