{// 引用头部文件,通常把通用的html代码块放到一个文件里面,使用include标签引用。} {include file="common/head"}
{include file="common/menu"} {hkcms:adv name="sub" itemid="1"}
{$Cate.title}
{// 面包屑导航,symbol 是分隔符,class是html class,赋值给a标签,更多参数前往手册查看}
{hkcms:breadcrumb class="active_a" symbol=" / " /}
{/hkcms:adv}
{// $Cate变量每个栏目页面都有,里面的字段是栏目管理里面的字段} {if $Cate.parent_id}
{hkcms:channel name="$Cate['parent_id']"}{$item.title}{/hkcms:channel}
{else /}
{$Cate.title}
{/if}
{if $Cate.parent_id} {// 如果当前栏目为子级则获取同级栏目} {hkcms:channel name="$Cate['id']" type="peer" ismenu="1" currentstyle="active"}
{$item.title}
{/hkcms:channel} {else /} {// 一级栏目时则显示下级栏目} {hkcms:channel name="$Cate['id']" type="son" ismenu="1"}
{$item.title}
{/hkcms:channel} {/if}
{// 获取当前栏目下的内容数据,公司荣誉图文信息,$Cate['num']是栏目管理里面控制分页大小,默认10} {hkcms:content catid="$Cate['id']" num="$Cate['num']" page="1"}
{$item.title}
{/hkcms:content}
{hkcms:contentpage item="home,pre,pageno,next,last,info" mobile_item="pre,pageno,next" pre="«" next="»" /}
{include file="common/footer"}