X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Finclude%2Fplview.trombi.tpl;h=15d9db0da2a1ab7e450815372704c8d7249c4798;hb=42ec0fe2dd9e21554460f71ec886eda546ef9cbe;hp=f4127d3e95b66c2af54be68bc8498069b60021aa;hpb=684195f33b11e3067200dd3a9e14304bd7d04463;p=platal.git diff --git a/templates/include/plview.trombi.tpl b/templates/include/plview.trombi.tpl index f4127d3..15d9db0 100644 --- a/templates/include/plview.trombi.tpl +++ b/templates/include/plview.trombi.tpl @@ -26,75 +26,29 @@

{else} - {section name=trombi loop=$set start=0} + {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.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_display}){/if} - - - - {$set[trombi].name_display}{if $trombi_with_promo} ({$set[trombi].promo_display}){/if} - - - {if $set[trombi.index_next]} - - {$set[trombi.index_next].name_display}{if $trombi_with_promo} ({$set[trombi.index_next].promo_display}){/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_display}){/if} - -