Xoops 雜記‎ > ‎Xoops 之 FAQ‎ > ‎

Theme

xoops原始theme的基本架構:
  <!-- Start Header -->
<table cellspacing="0">
    <tr id="header">
        <td id="headerlogo"><a href="<{xoAppUrl /}>" title="<{$xoops_sitename}>"><img src="<{xoImgUrl xoops-logo.png}>" alt="<{$xoops_sitename}>" /></a></td>
        <td id="headerbanner"><{$xoops_banner}></td>
    </tr>
    <tr>
        <td id="headerbar" colspan="2">&nbsp;</td>
    </tr>
</table>
<!-- End header -->
 

<{if $xoops_showlblock}>
 <td id="leftcolumn">
  <{foreach item=block from=$xoBlocks.canvas_left}>
  <{includeq file="$theme_name/theme_blockleft.html"}>
  <{/foreach}>
 </td>
<{/if}>

中-左上
<td id="centerLcolumn">
<!-- Start center-left blocks loop -->
 <{foreach item=block from=$xoBlocks.page_topleft}>
  <{includeq file="$theme_name/theme_blockcenter_l.html"}>
 <{/foreach}>
<!-- End center-left blocks loop -->
</td>
中-右上
<td id="centerRcolumn">
<!-- Start center-right blocks loop -->
 <{foreach item=block from=$xoBlocks.page_topright}>
  <{includeq file="$theme_name/theme_blockcenter_r.html"}
 <{/foreach}>
<!-- End center-right blocks loop -->

</td>
中-上
<!-- Start center-center blocks loop -->
<{foreach item=block from=$xoBlocks.page_topcenter}>
 <{includeq file="$theme_name/theme_blockcenter_c.html"}>
<{/foreach}>
                        <!-- End center-center blocks loop -->

中-左下
<td id="bottomLcolumn">
<{foreach from=$xoBlocks.page_bottomleft item=block}>
<{include file="$theme_name/theme_blockcenter_l.html"}>
<{/foreach}>
</td>
中-右下
<td id="bottomRcolumn">
<{foreach from=$xoBlocks.page_bottomright item=block}>
<{include file="$theme_name/theme_blockcenter_r.html"}>
<{/foreach}>
</td>

中-下
<{if $xoBlocks.page_bottomcenter}>
                        <tr>
                            <td id="bottomCcolumn" colspan="2">
                            <{foreach from=$xoBlocks.page_bottomcenter item=block}>
                                <{include file="$theme_name/theme_blockcenter_c.html"}>
                            <{/foreach}>
                            </td>
                        </tr>
                    <{/if}>

<!-- Start right blocks loop -->
<{foreach item=block from=$xoBlocks.canvas_right}>
<{includeq file="$theme_name/theme_blockright.html"}>
<{/foreach}>
<!-- End right blocks loop -->

 <!-- Start footer -->
<table cellspacing="0">
<tr id="footerbar">
    <td><{$xoops_footer}></td>
</tr>
</table>
<!-- End footer -->