模板文件
网站模板
网站模板目录在public/template/default/html中,静态资源当前目录。 需要注意的是PC和WAP模板文件名称需保持一致
名称 | 说明 |
---|---|
index.html | 首页模板 |
public_header.html | 头部通用模板 |
public_footer.html | 底部通用模板 |
public_banner.html | 幻灯片通用模板 |
public_left.html | 左边通用模板 |
list_article.html | 文章列表模板 |
show_article.html | 文章详情模板 |
cate_liuyan.html | 留言模板(表单) |
search.html | 搜索模板 |
通用模板继承
名称 | 文件名 | 调用代码 |
---|---|---|
头部通用模板 | public:header | {include file="public:header"/} |
底部通用模板 | public:footer | {include file="public:footer"/} |
备注: 所有自定义模板文件必须以下划线“_”区分建立。
模板目录设定