eyou头部相关标签的调用
一级菜单导航
<li class="{eyou:eq name='$Request.param.m' value='Index'}hover{/eyou:eq}"> <a href="{eyou:global name='web_cmsurl' /}">首页</a> </li> {eyou:channel type="top" id="field" currentstyle="active"} <li class="{$field.currentstyle}"> <a href="{$field.typeurl}">{$field.typename}</a></li> {/eyou:channel
二级菜单导航
<li class="{eyou:eq name='$Request.param.m' value='Index'}hover{/eyou:eq}"> <a href="{eyou:global name='web_cmsurl' /}">首页</a> </li> {eyou:channel type="top" row="60" id="field" currentstyle="hover"} <li class="{$field.currentstyle}"><a href="{$field.typeurl}">{$field.typename}</a> {eyou:notempty name="$field.children"} <ul class="subnav"> eyou:channel name="$field.children" row="100" id="field2"} <li><a href="{$field2.typeurl}">{$field2.typename}</a></li> {/eyou:channel} </ul> {/eyou:notempty} </li> {/eyou:channel}
三级菜单导航
<li class="{eyou:eq name='$Request.param.m' value='Index'}hover{/eyou:eq}"> <a href="{eyou:global name='web_cmsurl' /}">首页</a></li> {eyou:channel type="top" row="60" id="field" currentstyle="hover"} <li class="{$field.currentstyle}"><a href="{$field.typeurl}">{$field.typename}</a> {eyou:notempty name="$field.children"} <ul class="subnav"> eyou:channel name="$field.children" row="100" id="field2"} <li><a href="{$field2.typeurl}">{$field2.typename}</a> {eyou:notempty name="$field2.children"} <ul class="subnav2"> {eyou:channel name="$field2.children" row="100" id="field3"} <li><a href="{$field2.typeurl}">{$field3.typename}</a> </li> {/eyou:channel} </ul> {/eyou:notempty} </li> {/eyou:channel} </ul> {/eyou:notempty} </li> {/eyou:channel}
指定菜单导航
<li class="{eyou:eq name='$Request.param.m' value='Index'}hover{/eyou:eq}"> <a href="{eyou:global name='web_cmsurl' /}">首页</a> </li> {eyou:channelartlist currentstyle="active" typeid='88,159'} <li class="{$field.currentstyle}"><a href="{eyou:field name='typeurl' /}"> {eyou:field name='typename' /}</a> {/eyou:channelartlist} typeid='',你指定的栏目ID,可多写。
登录注册链接
{eyou:user type='open'} {eyou:user type='cart'} <a href="{$field.url}" id="{$field.id}" >购物车</a> {$field.hidden} {/eyou:user} {eyou:user type='login'} <a href="{$field.url}" id="{$field.id}">登录</a> {$field.hidden} {/eyou:user} {eyou:user type='reg'} <a href="{$field.url}" id="{$field.id}">注册</a> {$field.hidden} {/eyou:user} {eyou:user type='logout'} <a href="{$field.url}" id="{$field.id}">退出</a> {$field.hidden} {/eyou:user} {/eyou:user}
用户登录后的头像
{eyou:user type='info'} <div id="{$field.id}"> <a id="{$field.url}" href=""><img id="{$field.head_pic}" /></a> {$field.hidden} </div> {/eyou:user}
多语言链接
{eyou:language type='default'} <a href="{$field.url}"><img src="{$field.logo}" alt="{$field.title}"> {$field.title}</a> {/eyou:language} type='default' 不包括当前语言,列出其它的语言 type='list' 包括当前语言全部列出
网站logo
<img src="{eyou:global name='web_logo' /}">