文章出處

CMS5.0以上版本使用:

<stl:if type="IsUserLoggin">
    <stl:successtemplate>
        歡迎"{user.displayName}"
        <stl:a href="{stl.HomeUrl}">用戶中心</stl:a>
        <stl:a href="{stl.LogoutUrl}">退出</stl:a>
    </stl:successtemplate>
    <stl:failuretemplate>
        <stl:a href="{stl.LoginUrl}">登陸</stl:a>
        <stl:a href="{stl.RegisterUrl}">注冊</stl:a>
    </stl:failuretemplate>
</stl:if>
CMS5.0以下版本使用:
 
<stl:if type="isAnonymous">
   <stl:yes>
    <span class="login_bar">
    <stl:action type="login" class="top_a1 j_login_btn">登錄</stl:action>
    <stl:action type="register" class="top_a1 j_reg_btn">注冊</stl:action>
    </span> 
   </stl:yes>
    <stl:no>
{user.displayName}
<stl:action type="logout" class="top_a1">退出</stl:action>
   </stl:no>
</stl:if>

文章列表


不含病毒。www.avast.com
arrow
arrow
    全站熱搜
    創作者介紹
    創作者 大師兄 的頭像
    大師兄

    IT工程師數位筆記本

    大師兄 發表在 痞客邦 留言(0) 人氣()