X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Finclude%2Fplview.trombi.tpl;h=8db07cf384853ad3e071436ad331484d7d0fcbf9;hb=ce0d7be772306674fadaf020511871aba1683816;hp=b5b301f9c3554c64b372c0e5913ea571e8152099;hpb=31821494a692c035262a32493aef6cb3e1f61579;p=platal.git diff --git a/templates/include/plview.trombi.tpl b/templates/include/plview.trombi.tpl index b5b301f..8db07cf 100644 --- a/templates/include/plview.trombi.tpl +++ b/templates/include/plview.trombi.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2008 Polytechnique.org *} +{* Copyright (C) 2003-2011 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -26,73 +26,29 @@

{else} - {section name=trombi loop=$set start=1} - {if $smarty.section.trombi.iteration % 3 == 1} + {section name=trombi loop=$set_keys start=0} + {if $smarty.section.trombi.index % 3 == 1} + {assign var=key_prev value=$set_keys[trombi.index_prev]} + {assign var=key_cur value=$set_keys[trombi]} + {assign var=key_next value=$set_keys[trombi.index_next]} - - - + {include file="include/plview.trombi.entry.tpl" profile=$set[$key_prev] photo=true} + {include file="include/plview.trombi.entry.tpl" profile=$set[$key_cur] photo=true} + {include file="include/plview.trombi.entry.tpl" profile=$set[$key_next] photo=true} - - - + {include file="include/plview.trombi.entry.tpl" profile=$set[$key_prev] photo=false} + {include file="include/plview.trombi.entry.tpl" profile=$set[$key_cur] photo=false} + {include file="include/plview.trombi.entry.tpl" profile=$set[$key_next] photo=false} - {elseif ($smarty.section.trombi.iteration % 3 == 0) && ($smarty.section.trombi.last)} + {elseif ($smarty.section.trombi.index % 3 == 0) && ($smarty.section.trombi.last)} + {assign var=key_cur value=$set_keys[trombi]} - + {include file="include/plview.trombi.entry.tpl" profile=$set[$key_cur] photo=true} - + {include file="include/plview.trombi.entry.tpl" profile=$set[$key_cur] photo=false} {/if}
- -  [ PHOTO ] - - {if $trombi_with_admin && hasPerm('admin')} - {icon name=wrench title="[admin]"} - {/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} - -