现在XOOPS走的是2.0x路线,从XOOPS 2.0.14开始,就有了底部(bottom)区块的功能.
由于各个风格设计者有的没有规范设计,在风格中没有写入底部(bottom)区块代码;我们不得不对风格进行细小的修改. 对比XOOPS发布的默认default风格,就可以发现在
代码后面有这样的代码:
<!-- Start bottom blocks loop -->
<{if $xoBlocks.page_bottomleft or $xoBlocks.page_bottomright or $xoBlocks.page_bottomcenter}>
<table cellspacing="0">
<{if $xoBlocks.page_bottomcenter}>
<tr><td id="bottomCcolumn" colspan="2">
<{foreach from=$xoBlocks.page_bottomcenter item=block}><{include file="default/theme_blockcenter_c.html"}><{/foreach}>
</td>
</tr>
<{/if}>
<{if $xoBlocks.page_bottomleft or $xoBlocks.page_bottomright}>
<tr>
<td id="bottomLcolumn">
<{foreach from=$xoBlocks.page_bottomleft item=block}><{include file="default/theme_blockcenter_l.html"}><{/foreach}>
</td>
<td id="bottomRcolumn">
<{foreach from=$xoBlocks.page_bottomright item=block}><{include file="default/theme_blockcenter_r.html"}><{/foreach}>
</td>
</tr>
<{/if}>
</table>
<{/if}>
<!-- End bottom blocks loop -->
所以要想使用底部区块,就要在风格文件theme.html里的
代码下加入上面的代码.
然后把default风格下style.css里的bottomCcolumn,bottomLcolumn,bottomRcolumn定义拷贝到修改风格里的style.css里. 这样就可以正常显示底部区块了,至于对区块的调整,那就自己对style.css修改拉.
注:请修改default/theme_blockcenter_c.html 等几个html文件路径。