SueamCMS/0.1的模板标签简介 - Sueam CMS
SueamCMS/0.1的模板标签简介
  SueamCMS/0.1的模板标签简介:
  1、网站全局变量及函数:
  {$site_name}  网站名称
  {$site_title}  网站标题
  {$site_url}  网站URL
  {$site_dir}  网站目录
  {$site_tpl}  网站模板
  {$site_skin}  网站模板目录
  {$site_keys}  网站关键词
  {$site_desc}  网站描述
  {$site_copy}  版权信息
  {$site_cert}  备案编号
  {@loop_list(type,num)}  文章列表循环开始
    {$this_id}  文章ID
    {$this_pic}  缩略图片
    {$this_name}  文章标题
    {$this_time}  发布时间
  {/loop_this}  文章列表循环结束

  2、文章列表变量及函数:
  {$this_type}  文章分类名称
  {$this_dir}  文章分类目录
  {@loop_this}  文章列表循环开始
    {$this_id}  文章ID
    {$this_pic}  缩略图片
    {$this_name}  文章标题
    {$this_time}  发布时间
  {/loop_this}  文章列表循环结束
  {$show_page}  文章列表分页

  3、文章内容变量:
  {$this_id}  文章ID
  {$this_pic}  缩略图片
  {$this_name}  文章标题
  {$this_info}  文章内容
  {$this_time}  发布时间

  4、留言列表变量及函数:
  {$this_type}  留言分类名称
  {$this_dir}  留言分类目录
  {@loop_this}  留言列表循环开始
    {$this_id}  留言ID
    {$this_name}  留言标题
    {$this_post}  留言内容
    {$this_time}  留言时间
    {$this_reply}  回复内容
    {$this_rtime}  回复时间
  {/loop_this}  留言列表循环结束
  {$show_page}  留言列表分页

  5、其他控制语句:
  {@include(tpl)}  模板包含
  { @if(test) }then{ /if }  if控制语句