各位老师,如何在文章页面中判断当前的分类?
我当前有一个需求,就是在各个分类中,显示不一样的广告。需要做一个判断来进行区分
{php}$content_cid = $gdata['cid'];{/php} {if:$content_cid ==1} 分类1广告 {elseif:$content_cid ==2} 分类2广告 {elseif:$content_cid ==3} 分类3广告 {else} 其他分类广告 {/if}