<{assign var="i" value=0}> <{assign var="total" value=1}> <{if $xoBlocks.canvas_right}>
<{foreach item=block from=$xoBlocks.canvas_right}> <{if $i==0}>
<{/if}> <{if $block.content}>
<{if $block.title}><{if $xoops_isadmin}><{/if}> <{includeq file="$theme_name/tpl/blockTitle.html"}> <{/if}>
<{$block.content}>
<{/if}> <{assign var="i" value=$i+1}> <{assign var="total" value=$total+1}> <{if $i == 4 || $total==$count}>
<{assign var="i" value=0}> <{/if}> <{/foreach}>
<{/if}>