{include file="includes/header.html"}
Here you are : {navigate to="current"} {loop type="auth" name="auth_test" context="front" roles="CUSTOMER"}

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'}{intl l='Thelia, solution e-commerce libre'}{/images}
{intl l='An internationalized string'}
jQuery data:

Category loop example

Conditional example #1

{ifloop rel="catloop2"} Hey ! Loop catloop2 is not empty: {/ifloop} {elseloop rel="catloop2"}

Loop catloop2 is empty

{/elseloop}

Conditional example #2

{ifloop rel="catloop3"} Loop catloop3 is not empty: {/ifloop} {elseloop rel="catloop3"}

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}
{/for}

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}
{include file="includes/footer.html"}