<{if $type eq 'page'}>
<{include file="$theme_name/contents.tpl"}>
<{/if}>

<{if $type eq 'block'}>
<{if $xoBlocks.page_topcenter}>
<div id="centertpldiv">
<{include file="$theme_name/blockstpl.tpl" fromvar=$xoBlocks.page_topcenter  site=topcenter }>
</div>
<{/if}>
<{if $xoBlocks.page_topleft}>
<div id="toplefttpldiv">
<{include file="$theme_name/blockstpl.tpl" fromvar=$xoBlocks.page_topleft  site=topleft }>
</div>
<{/if}>

<{if $xoBlocks.page_topright}>
<div id="toprighttpldiv" >
<{include file="$theme_name/blockstpl.tpl" fromvar=$xoBlocks.page_topright site=topright}>
</div>
<{/if}>



<{if $tplvar.layout eq '5'  &&  (!$xoops_contents|strip || ($xoops_contents|strip == ' ')) }>   
<div id='bottomrlbox' class='bottomrlboxconter'>
<{include file="$theme_name/blockstpl.tpl" fromvar=$tplvar.b_canvas_right_top  site=right }>
</div>
<{/if}>





<{if $xoopsad && $xoops_banner != ""}><{$xoops_banner}><{/if}>

<{if $xoBlocks.page_bottomcenter}>
<div id="centertpldiv">
<{include file="$theme_name/blockstpl.tpl" fromvar=$xoBlocks.page_bottomcenter  site=bottomcenter }>
</div>
<{/if}>


<{if $xoBlocks.page_bottomleft}>
<div id="bottomlefttpldiv" >
<{include file="$theme_name/blockstpl.tpl" fromvar=$xoBlocks.page_bottomleft  site=bottomleft }>
</div>
<{/if}>


<{if $xoBlocks.page_bottomright}>
<div id="bottomrighttpldiv"  >
<{include file="$theme_name/blockstpl.tpl" fromvar=$xoBlocks.page_bottomright  site=bottomright }>
</div>
<{/if}>


<{/if}>





