zblogPHP站点的页面判断函数如何写?

  1. {if $type==’index’&&$page==’1′}  /*判断首页*/
  2. {if $type==’category’}  /*判断分类页*/
  3. {if $type==’article’}  /*判断日志页,不含独立页面,{if $article.Type==ZC_POST_TYPE_ARTICLE}(另一方案)*/
  4. {if $type==’page’}  /*判断独立页面*/
  5. {if $type==’author’}  /*判断用户页*/
  6. {if $type==’date‘}  /*判断日期页*/
  7. {if $type==’tag’}  /*判断标签页*/

答案来自:Z-Blog Wiki

© 版权声明
THE END
喜欢就支持一下吧