<body id="<{$xoops_dirname}>" class="<{$xoops_langcode}> <{$browser}> <{$themefolder}> <{if $smarty.get.iframe eq '1'}>iframetrue<{/if}>">
<noscript><div class="alert alert-danger text-center" role="alert"><{$smarty.const._THEME_GB_09}></div></noscript>
<!-- 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}>
<!--內容區塊開始-->
<main>
<section id="xo-page" >
<{include file="$theme_name/$pagetpl" type=block}>
<div id='sidedivbox'>
<{if ($tplvar.layout neq '3' && $tplvar.layout neq '4' && $tplvar.layout neq '5')  &&  $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>
</section>  
</main>
<{/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' || $tplvar.layout eq '5'}>
<{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>