欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

theme主题 学习

shiping1 的头像
上次我们说的page.tlp.php 就是负责排版的
这个node.tpl.php文件主要是输出content,比如文字列表
1)phpTemplate 安装在 themes/engines 目录下

php主题包含的文件
1)example.info文件
主题的注册文件 让drupal发现
name = MyGarland  ;主题名称
description = Tableless, recolorable, multi-column, fluid width theme (default).
version = VERSION
core = 6.x
engine = phptemplate
stylesheets[all][] = style.css
stylesheets[print][] = print.css

; Information added by drupal.org packaging script on 2012-02-29
version = "6.25"
project = "drupal"
datestamp = "1330534547"

2).tpl.php 文件 多个
3)css文件 多个
4)js文件 多个
5) template.php 对输出内容进行处理,主要是对主题钩子函数的调用
即便没有钩子函数,也要写个空的template.php ,,以保证目录的完整
6) 子主题文件夹 里面包含相同的结构
普通分类: