zblogPHP侧边栏规则和判断方法
分类:zblog教程
83
zblogphp1.6版本之前的侧边栏都只有5个,即{template:sidebar}、{template:sidebar2}、{template:sidebar3}、{template:sidebar4}、{template:sidebar5}
在模块管理中分别对应默认侧栏、侧栏2、侧栏3、侧栏4、侧栏5
zblogPHP1.6版本新增了几个增加到了9个侧边栏,大大丰富了各种cms和专题页面的侧栏可能性,如何对不同类型的页面判断为不同的侧边栏,其实也很简单
{if $type=='index'}
{template:sidebar} {elseif $type=='category'}
{template:sidebar2} {elseif $type=='article'}
{template:sidebar3} {elseif $type=='page'}
{template:sidebar4} {else}
{template:sidebar5} {/if}最新发布
-
zblog响应式自媒体博客主题63号
2026-04-08 -
zblog响应式资讯门户主题62号
2026-04-05 -
zblog响应式文章自媒体资讯主题61号
2026-04-01 -
zblog响应式自媒体资讯主题60号
2026-03-30 -
zblog响应式门户文章资讯主题59号
2026-03-29
热门文章
-
ZBLOG精品手赚APP应用下载主题19号
1225 -
zblog响应式机器设备企业主题10号
1220 -
zblog响应式生活分类信息主题2号
939 -
zblog响应式机械企业外贸主题6号
321 -
简洁大气zblog响应式文章主题52号
307