栏目名称 :{$t.name}
栏目链接 :{$t.url}
目录名称 :{$t.dirname}
缩略图 :{dr_thumb($t.thumb)}
缩略图原图 :{dr_get_file($t.thumb)}
缩略图判断 :{if $t.thumb}{dr_get_file($t.thumb)}{else}/static/assets/images/nopic.gif{/if}
栏目内容 :{$t.content}
栏目内容截取 :{dr_strcut(dr_clearhtml($t.content), 200, '...')}
栏目SEO信息 :
{php $my=dr_share_cat_value($t.id, 'setting');}
{$my.seo.list_title}
{$my.seo.list_keywords}
{$my.seo.list_description}
是否有下级 :{if $t.child}{/if}
首页高亮 :{if $indexc} class="active"{/if}
栏目高亮 :{if IS_SHARE && $catid && dr_in_array($catid, $t.catids)} class="active"{/if}
判断所属页面 :
{if IS_SHARE && \Phpcmf\Service::L('Router')->uri() =="category/index"}
栏目页
{elseif IS_SHARE && \Phpcmf\Service::L('Router')->uri() =="show/index"}
内容页
{elseif $indexc}
首页
{else}
其他页
{/if}
指定栏目名称 :{dr_share_cat_value(1, 'name')}
指定栏目链接 :{dr_share_cat_value(1, 'url')}
外部地址新窗口打开 :{if $t.tid == 2} target="_blank"{/if}