zblogPHP判断模板页面的IF

可能刚接触zblog模板的用户还不太清楚在zblogPHP主题模板制作需要用到哪些if,下面详细说明下:

{if $type=='index'&&$page=='1'}  /*判断首页*/
{template:index_default}
{elseif $type=='category'}  /*判断分类页*/
{$category.Name}
{elseif $type=='article'}  /*判断日志页,不含独立{$article.Title}
{template:index_artile}
{elseif $type=='page'}  /*判断独立页面*/
{template:index_page}
{elseif $type=='author'}  /*判断用户页*/
{$author.Name}/{$author.StaticName}
{elseif $type=='date'}  /*判断日期页*/
date- {$title}
{elseif $type=='tag'}  /*判断标签页*/
{$tag.Name}
{else}
{$title}
{/if}

以上种种if,都属于最基本的判断,在制作带有公共侧栏模板的时候特别需要这种判断,所以需要做zblog模板的要死记硬背.