开发者新闻:RC3即将到来的主题结构变更
发布者:onokazu发布于2003/3/1 19:04:35 阅读量:15832RC3(即将在未来几日内发布)中对主题文件的处理方式发生了变化,同时还有几个命名规范的修改。
皮肤文件将不再包含在主题集中,而是分别作为主题文件存储在主题目录下,就像XOOPS 1.x中一样。只有模块模板文件包含在主题集中,因此从RC3开始,我们将把主题集重命名为模板集。
为什么做这样的改变?
主题文件的开发变得过于复杂,或者需要与模板和皮肤文件结合进行大量的工作。此外,将这些文件存储到数据库中使得频繁修改文件变得困难。我们还注意到,相较于模板文件,皮肤文件更频繁地被网站管理员修改。通过完全将它们分离成模板和主题集,我们希望不仅能够促进XOOP2的主题文件开发,也能使网站管理和维护更简单。
请继续阅读以获取详细信息...
结构变更
[u]XOOPS2 RC1-RC2[/u] [u]XOOPS2 RC3[/u]
skin.html (required, in DB) -> theme.html (required, stored under themes/)
skin_blockcenter_c.html (optional, in DB) -> theme_blockcenter_c.html (optional, under themes/)
skin_blockcenter_l.html (optional, in DB) -> theme_blockcenter_l.html (optional, under themes/)
skin_blockcenter_r.html (optional, in DB) -> theme_blockcenter_r.html (optional, under themes/)
skin_blockleft.html (optional, in DB) -> theme_blockleft.html (optional, under themes/)
skin_blockright.html (optional, in DB) -> theme_blockright.html (optional, under themes/)
image files (optional, in DB) -> image files (optional, under themes/)
module template files (optional, in DB) -> module template files (optional, in DB)
<{include file="db:skin_blockleft.html"}>
<{include file="db:skin_blockright.html"}>
<{include file="db:skin_blockcenter_c.html"}>
<{include file="db:skin_blockcenter_l.html"}>
<{include file="db:skin_blockcenter_r.html"}>
<{include file="your_theme_name/theme_blockleft.html"}>
<{include file="your_theme_name/theme_blockright.html"}>
<{include file="your_theme_name/theme_blockcenter_c.html"}>
<{include file="your_theme_name/theme_blockcenter_l.html"}>
<{include file="your_theme_name/theme_blockcenter_r.html"}>
<{$meta_xxx}> -> <{$xoops_meta_xxx}>
<{$footer}> -> <{$xoops_footer}>