伊迩主题 YieerTheme

不一样的zblog主题模板!

模板语法

摘要:Z-BlogPHP 模板语法汇总完整文档: https://docs.zblogcn.com/php

Z-BlogPHP 模板语法汇总

完整文档: https://docs.zblogcn.com/php/

本页面构建地址: https://github.com/wdssmq/docs-zblogphp-tamplate-markup

system

{$host}
博客网址
{$name}
博客标题
{$subname}
博客副标题
{$theme}
主题名称
{$style}
样式名称
{$copyright}
版权说明
{$version}
Z-BlogPHP 版本号
{$zblogphp}
Z-BlogPHP 版本信息
{$zblogphphtml}
Z-BlogPHP 链接(长)
{$zblogphpabbrhtml}
Z-BlogPHP 链接(短)
{$language}
网站语言
{$header}
页面头部变量
{$footer}
页面尾部变量
{$type}
页面类型
{$page}
当前页面页码
{$socialcomment}
社会化评论区
{$cookiespath}
cookie的路径
{$path}
网站目录物理路径

tag

{$tag.Name}
标签名
{$tag.Url}
标签链接
{$tag.Count}
标签下文章数

cate

{$category.ID}
分类ID
{$category.Name}
分类名称
{$category.Alias}
分类别名
{$category.Url}
分类链接
{$category.Count}
分类文章数量
{$category.Intro}
分类摘要
{$category.Order}
分类序号
{$category.Level}
分类层级
{$category.RootID}
分类的顶级 ID
{$category.ParentID}
分类的上一级 ID
{$category.Parent}
分类的上一级类实例
{$category.SubCategorys}
子分类实例数组
{$category.Template}
分类所用模板
{$category.LogTemplate}
分类下文章所用模板
{$category.Metas.XXX}
分类扩展数据

author

{$author.Url}
用户页面链接
{$author.Name}
用户名
{$author.Alias}
用户别名
{$author.StaticName}
用户静态名
{$author.Level}
用户级别
{$author.LevelName}
用户级别名
{$author.Email}
用户邮箱
{$author.HomePage}
用户主页
{$author.Intro}
用户摘要
{$author.Avatar}
用户头像
{$author.Articles}
用户发表文章数
{$author.Pages}
用户创建页面数
{$author.Comments}
用户发表评论数
{$author.Uploads}
用户上传文件数

pagebar

{$pagebar.PageBarCount}
分页长度
{$pagebar.PageCount}
每页显示文章数量
{$pagebar.Name}
分页名称
{$pagebar.PageAll}
总页码数
{$pagebar.PageNow}
当前页码
{$pagebar.PageFirst}
起始页码
{$pagebar.PageLast}
尾页页码
{$pagebar.PagePrevious}
上一页 ID
{$pagebar.PageNext}
下一页 ID
{$pagebar.prevbutton}
上一页 Url
{$pagebar.nextbutton}
下一页 Url
{$pagebar.buttons}
页码关联数组

single

{$article.ID}
文章ID
{$article.Title}
文章标题
{$article.Alias}
文章别名
{$article.AliasFirst}
文章别名或标题
{$article.Url}
文章链接
{$article.IsTop}
文章是否置顶
{$article.TopType}
文章置顶类型
{$article.Intro}
文章摘要
{$article.Content}
文章正文
{$article.AllImages[0]}
文章第一张图片
{$article.ImageCount}
文章图片计数
{$article.Thumbs(640, 360, 1, false)[0]}
文章第一张图片的缩略图
{$article.Status}
文章状态(数字)
{$article.StatusName}
文章状态(名)
{$article.IsLock}
是否禁止评论
{$article.CommNums}
文章评论数
{$article.ViewNums}
文章浏览数
{$article.Time("PostTime","Y-m-d H:i:s")}
文章发布时间
{$article.Time("CreateTime","Y-m-d H:i:s")}
文章创建时间
{$article.Time("UpdateTime","Y-m-d H:i:s")}
文章更新时间
{$article.Category.XXX}
文章分类数据
{$article.Author.XXX}
文章作者数据
{$article.Tags}
文章标签数组
{$article.FirstTag}
第一个标签对象
{$article.TagsCount}
文章标签计数
{$article.TagsName}
逗号分隔的文章标签
{$article.Prev.Url}
上一篇URL
{$article.Next.Url}
下一篇URL
{$article.Prev.Title}
上一篇标题
{$article.Next.Title}
下一篇标题
{$article.Type}
文章类型
{$article.TypeName}
文章类型

comment

{$comment.ID}
评论ID
{$comment.FloorID}
评论楼号
{$comment.Level}
评论层级
{$comment.ParentID}
评论父ID
{$comment.RootID}
评论根ID
{$comment.LogID}
评论所属文章/页面ID
{$comment.Author.Name}
评论作者
{$comment.Author.HomePage}
评论作者网址
{$comment.Author.Email}
评论作者邮箱
{$comment.Author.Avatar}
评论作者头像地址
{$comment.Post.Url}
评论所属文章的链接
{$comment.Post.Title}
评论所属文章的标题
{$comment.Content}
评论正文
{$comment.IP}
评论者IP
{$comment.Agent}
评论者客户端信息
{$comment.Time(XXX)}
评论发布时间

module-content

{module:navbar}
导航栏
{module:calendar}
日历
{module:controlpanel}
控制面板
{module:catalog}
网站分类
{module:searchpanel}
搜索
{module:comments}
最新留言
{module:archives}
文章归档
{module:statistics}
站点信息
{module:favorite}
网站收藏
{module:link}
友情链接
{module:misc}
图标汇集
{module:authors}
作者列表
{module:previous}
最近发表
{module:tags}
Tags列表

module-by-name

{$modules["modName"].ID}
内部ID
{$modules["modName"].Name}
模块名称
{$modules["modName"].FileName}
文件名
{$modules["modName"].Content}
模块内容
{$modules["modName"].HtmlID}
htmlID
{$modules["modName"].Type}
模块类型
{$modules["modName"].MaxLi}
ul类型模块显示的最大列数
{$modules["modName"].Source}
模块属性
{$modules["modName"].IsHideTitle}
是否隐藏标题


相关阅读

建站!你有充足的理由选择我们

Z-BlogPHP是一款开源免费、小巧强大的博客程序与CMS建站系统
QQ客服 微信客服微信客服 主题模板 手机访问手机访问