<body id="<{$xoops_dirname}>" class="<{$xoops_langcode}> <{$browser}> <{$themefolder}> <{if $smarty.get.iframe eq '1'}>iframetrue<{/if}>">
<!-- GTM-noscript --> 
<{$tplvar.gtm.gtmnoscript}>
<div id="toplayerdiv" class="<{if !$contentstrue}>indexpage<{else}>centerpage<{/if}>">
<{$tplvar.popupadsbox}><{$tplvar.lowerrightadox}>
<{if $smarty.get.iframe eq ''}>
<hgroup id="topheaderdiv">
<{include file="$theme_name/descriptiontpl.tpl"}> 
<{include file="$theme_name/keywordstpl.tpl"}> 
<{include file="$theme_name/searchtpl.tpl"}> 
</hgroup> 
<{include file="$theme_name/menutpl.tpl" menuid=rmenufloat}> 
<{include file="$theme_name/headertpl.tpl"}> 
<{/if}>
<{if $tplvar.layout eq '4'  &&  (!$xoops_contents|strip || ($xoops_contents|strip == ' ')) }>   
<div id='bottomrlbox' class='bottomrlboxtop'>
<{include file="$theme_name/blockstpl.tpl" fromvar=$tplvar.b_canvas_right_top  site=right }>
</div>
<{/if}>
<div id="tpl-content">
<{if $xoops_contents|strip && ($xoops_contents|strip != ' ') }>             
<{include file="$theme_name/$pagetpl" type=page}>
<{else}>
<!--內容區塊開始-->
<section>
<div id="xo-page" >
<{include file="$theme_name/$pagetpl" type=block}>
<div id='sidedivbox'>
<{if ($tplvar.layout neq '3' && $tplvar.layout neq '4')  &&  $xoBlocks.canvas_left }>
<{include file="$theme_name/blockstpl.tpl" fromvar=$xoBlocks.canvas_left  site=left }>
<{/if}>
<{include file="$theme_name/menutpl.tpl" menuid=barbox}> 
</div>
</div>  
</section>
<{/if}>
</div>
<{if $smarty.get.iframe eq ''}>
<div id='bottombox' <{if !$tplvar.b_canvas_right ||  ($xoops_contents|strip && ($xoops_contents|strip != ' '))}>class='bottomboxrdivfalse'<{/if}>>
<div id="bottomboxfootimg" ></div>
<{if $tplvar.b_canvas_right  &&  (!$xoops_contents|strip || ($xoops_contents|strip == ' ')) }>   
<div id='bottomrlbox'>
<{if $tplvar.layout eq '4'}>
<{include file="$theme_name/blockstpl.tpl" fromvar=$tplvar.b_canvas_right_bottom  site=right }>
<{else}>
<{include file="$theme_name/blockstpl.tpl" fromvar=$xoBlocks.canvas_right  site=right }>
<{/if}>
</div>
<{assign var=canvas_right_type value=true}>
<{/if}>
<{include file="$theme_name/bottomdiv.tpl"}>
<{include file="$theme_name/footertpl.tpl"}>
</div>
<{/if}>
<{include file="$theme_name/informationtpl.tpl"}> 
 <!-- 載入佈景所需的js --> 
<{include file="$theme_js/jstpl.tpl" jid=bottom}>
</div>
</body>