{if condition="$Think.cookie.name == null"}
<a data-toggle="modal" data-target="#loginModal" class="login" rel="nofollow">Hi,请登录</a> <a href="javascript:;" class="register" rel="nofollow">我要注册</a> <a href="" rel="nofollow">找回密码</a>
{else}
[{$Think.cookie.name|decrypt=$Think.const.SALT}]已登录 <a href='{:url("index/Login/goout")}'>退出</a> <a href='{:url("blog/index/index")}'>个人中心</a>
{/if}