{include file="includes/header.html"}
Customer is authentified :-)
{/loop} {elseloop rel="auth_test"}Customer is not authentified :-(
{/elseloop} An image from asset directory : {images file='assets/img/logo-thelia-34px.png'}Category loop example
Conditional example #1
{ifloop rel="catloop2"} Hey ! Loop catloop2 is not empty:Loop catloop2 is empty
{/elseloop}Conditional example #2
{ifloop rel="catloop3"} Loop catloop3 is not empty:Loop catloop3 is empty
{/elseloop} {elseloop rel="catloop2"}... but catloop2 is still empty :-)
{/elseloop}Traditional for loop
{for $index=5 to 12 step 1} Compteur = {$index}Some pagination
PAGE 1
PAGE 2
PAGE 1000
Some pagination with page choice
{assign var=current_page value=2}PAGE {$current_page} :
page choice
{pageloop rel="catloopwithpaginationchoice"} {if ${PAGE} != {$current_page}} {if {$PAGE} > {$current_page}-10 AND {$PAGE} < {$current_page}+10} {$PAGE} {/if} {if {$PAGE} == {$current_page}-10 OR {$PAGE} == {$current_page}+10} ... {/if} {if ({$PAGE} < {$current_page}-10 OR {$PAGE} > {$current_page}+10) AND ({$PAGE}%10 == 0 OR ${PAGE} == {$LAST} OR ${PAGE} == 1)} {$PAGE} {/if} {else} { {$PAGE} } {/if} {if {$PAGE} != {$LAST}} - {/if} {/pageloop}