X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Finclude%2Fplview.trombi.tpl;h=b5b301f9c3554c64b372c0e5913ea571e8152099;hb=7f12e3b4113791f3372f11572a205925d7bb6b97;hp=e97375eb66c2629c6bbb25225a02fae99d197f88;hpb=cd5bd7dca7db6a980e6d3223aa5f43e0e1742acc;p=platal.git diff --git a/templates/include/plview.trombi.tpl b/templates/include/plview.trombi.tpl index e97375e..b5b301f 100644 --- a/templates/include/plview.trombi.tpl +++ b/templates/include/plview.trombi.tpl @@ -25,34 +25,78 @@ Aucun des camarades concernés n'a de photographie sur sa fiche

{else} - - {iterate from=$set item=p} - {cycle values="1,2,3" assign="loop"} - {if $loop eq "1"} +
+ {section name=trombi loop=$set start=1} + {if $smarty.section.trombi.iteration % 3 == 1} - {/if} - + + - {if $loop eq "3"} + + + + + + + {elseif ($smarty.section.trombi.iteration % 3 == 0) && ($smarty.section.trombi.last)} + + + + + + + {/if} - {/iterate} - {if $loop neq "3"} - {if $lopp eq "1"} - - {/if} - - {/if} + {/section}
- -  [ PHOTO ] + + +  [ PHOTO ] {if $trombi_with_admin && hasPerm('admin')} - {icon name=wrench title="[admin]"} + {icon name=wrench title="[admin]"} {/if} -
- - {$p.name_display}{if $trombi_with_promo} ({$p.promo}){/if} +
+ +  [ PHOTO ] + {if $trombi_with_admin && hasPerm('admin')} + {icon name=wrench title="[admin]"} + {/if} + + {if $set[trombi.index_next]} + +  [ PHOTO ] + + {if $trombi_with_admin && hasPerm('admin')} + {icon name=wrench title="[admin]"} + {/if} + {/if}
+ + {$set[trombi.index_prev].name_display}{if $trombi_with_promo} ({$set[trombi.index_prev].promo}){/if} + + + + {$set[trombi].name_display}{if $trombi_with_promo} ({$set[trombi].promo}){/if} + + + {if $set[trombi.index_next]} + + {$set[trombi.index_next].name_display}{if $trombi_with_promo} ({$set[trombi.index_next].promo}){/if} + + {/if} +
+ +  [ PHOTO ] + + {if $trombi_with_admin && hasPerm('admin')} + {icon name=wrench title="[admin]"} + {/if} +
+ + {$set[trombi].name_display}{if $trombi_with_promo} ({$set[trombi].promo}){/if} + +
{/if}