config.zml 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380
  1. <#--定义变量-->
  2. <#var upload.rootDir="./upload"/>
  3. <#var document.index="/document/tutorial/ui/index.htm"/>
  4. <#--定义包含文件-->
  5. <#include "/conf/mobile.zml"/>
  6. <#include "/conf/sidebar.zml"/>
  7. <#---------------------------------------------------->
  8. <#-- 以下为HEAD定义 --------------------------------->
  9. <#---------------------------------------------------->
  10. <#--头部起始-->
  11. <#function zhiqim_com_header()>
  12. <!DOCTYPE html>
  13. <html>
  14. <head>
  15. <title>${context.getContextName()}<#if Validates.isNotEmpty(title)>_${title}</#if></title>
  16. <meta charset="UTF-8">
  17. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  18. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  19. <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no"/>
  20. <meta name="Author" content="${context.getContextName()}" />
  21. <meta name="Keywords" content="<#if Validates.isNotEmpty(keyword)>${keyword} </#if>${context.getAttribute("keywords")}"/>
  22. <meta name="Description" content="<#if Validates.isNotEmpty(desc)>${desc}<#else>${context.getAttribute("description")}</#if>"/>
  23. ${Styles.src("/src/zhiqim.css")}
  24. ${Scripts.src("/src/zhiqim.js")}
  25. ${Scripts.src("/src/zhiqim_static.js")}
  26. ${Scripts.src("/src/zhiqim_static_util.js")}
  27. ${Scripts.src("/src/zhiqim_query.js")}
  28. ${Scripts.src("/src/zhiqim_md5.js")}
  29. ${Scripts.src("/src/zhiqim_dialog.js")}
  30. ${Scripts.src("/src/zhiqim_ajax.js")}
  31. ${Scripts.src("/src/zhiqim_calendar.js")}
  32. ${Scripts.src("/src/zhiqim_form.js")}
  33. ${Scripts.src("/src/zhiqim_drag.js")}
  34. ${Scripts.src("/src/zhiqim_dropdown.js")}
  35. ${Scripts.src("/src/zhiqim_tabnav.js")}
  36. ${Scripts.src("/src/zhiqim_floater.js")}
  37. ${Scripts.src("/src/zhiqim_editable.js")}
  38. ${Scripts.src("/src/zhiqim_upload.js")}
  39. ${Scripts.src("/src/zhiqim_uploadmult.js")}
  40. ${Styles.src(context.getRootPath("/zinc/www/main.css"))}
  41. ${zhiqim_account_www_header_autoLogin()}
  42. <script>
  43. Z.onload(function()
  44. {
  45. Z(".sidebar-child p.hasChild").click(function()
  46. {
  47. Z(this).next("ul").slideToggle().siblings("ul").slideUp();
  48. });
  49. });
  50. </script>
  51. <#if Strings.startsWith(request.getPathInContext(), "/knowledgeLibrary/")>
  52. ${Scripts.src(context.getRootPath("/zinc/www/zhiqim_scrolltotop.js"))}
  53. </#if>
  54. <#if Strings.startsWith(request.getPathInContext(), "/document/")>
  55. ${Scripts.src(context.getRootPath("/zinc/www/zhiqim_scrolltotop.js"))}
  56. </#if>
  57. </head>
  58. <body>
  59. </#function>
  60. <#--自动登录-->
  61. <#function zhiqim_account_www_header_autoLogin()>
  62. <script>
  63. Z.onload(function()
  64. {
  65. <#var isRemember = request.getCookie("isRemember")/>
  66. <#var userAccount = request.getCookie("userAccount")/>
  67. <#var userPass = request.getCookie("userPass")/>
  68. <#if request.getSessionUser()==null && Validates.isNotEmpty(isRemember) && Validates.isNotEmpty(userAccount) && Validates.isNotEmpty(userPass)>
  69. var ajax = new Z.Ajax();
  70. ajax.setClassName("UserPassportPresenter");
  71. ajax.setMethodName("login");
  72. ajax.addParam("userAccount", '${userAccount}');
  73. ajax.addParam("userPass", '${userPass}');
  74. ajax.addParam("isRemember", '${isRemember}');
  75. ajax.addParam("isAuto", 'on');
  76. ajax.setSuccess(function(){Z.l.reload();});
  77. ajax.execute();
  78. </#if>
  79. });
  80. </script>
  81. </#function>
  82. <#--顶部导航-->
  83. <#function zhiqim_com_topnav(nav)>
  84. <!--pc-->
  85. <div class="topnav"<#if htmlOverflowHidden> style="padding-right:17px;"</#if>>
  86. <div id="logo" class="logo z-text-center"><img src="/zinc/www/images/logo_z.png"/></div>
  87. <div class="logoname z-text-left"><img src="/zinc/www/images/logo_zhiqimeng.png"/></div>
  88. <div class="topnavleft">
  89. <div class="nav <#if nav=="index">active</#if>" onclick="Z.L.href('${context.getRootPath("/index.htm")}');">首页</div>
  90. <div class="nav <#if nav=="product">active</#if>" onclick="Z.L.href('${context.getRootPath("/product/www/index.htm")}');">产品</div>
  91. <div class="nav <#if Strings.startsWith(request.getPathInContext(), "/knowledgeLibrary/")>active</#if>" onclick="Z.L.href('${context.getRootPath("/knowledgeLibrary/studyResource/newElement.htm")}');">文库</div>
  92. <div class="nav <#if nav=="gallery">active</#if>" onclick="Z.L.href('${context.getRootPath("/gallery/index.htm")}');">图库</div>
  93. <div class="nav <#if Strings.startsWith(request.getPathInContext(), "/gitcan/")>active</#if>" onclick="Z.L.href('${context.getRootPath("/gitcan/index.htm")}');">蚕云</div>
  94. <div class="nav <#if nav=="task">active</#if>" onclick="Z.L.href('${context.getRootPath("/task/index.htm")}');">任务</div>
  95. <div class="nav <#if nav=="site">active</#if>" onclick="Z.L.href('${context.getRootPath("/minisite/index.htm")}');">微站</div>
  96. </div>
  97. <div class="topnavright">
  98. <!--
  99. <div class="query z-h50 z-text-center">
  100. <input type="text" class="z-input"><i class="z-font z-query z-px18"></i>
  101. </div>
  102. -->
  103. <div class="navcray z-w140 z-h50 z-text-center z-pointer" onclick="Z.L.href('${context.getRootPath(document.index)}');">知启蒙开源框架</div>
  104. <div class="nav z-w80 z-h50 z-text-center z-pointer" onclick="Z.L.href('${context.getRootPath("/document/faq/index.htm")}');">帮助</div>
  105. <#if request.hasSessionUser(ZacSessionUser.class)>
  106. <div class="nav z-w80 z-h50 z-text-center z-pointer" onclick="Z.L.href('/account/index.htm');">
  107. <#if UserPassportDao.certify(request.getSessionUser(ZacSessionUser.class).getUserId())>
  108. <image class="z-bd-rd50p z-mg-b5" src="${sessionUser.getUserAvatar()}" style="border:2.2px solid #fff;width:45px;height:45px;">
  109. <span style="position:absolute;top:13px;<#if nav=="index">right:110px;<#else>right:93px;</#if>"><image src="/zinc/zhiqim_account/www/certify.png" title="已实名认证"></span>
  110. <#else>
  111. <image class="z-bd-rd50p" src="${sessionUser.getUserAvatar()}" style="width:42px;height:42px;">
  112. </#if>
  113. </div>
  114. <div class="nav z-w80 z-h50 z-text-center z-pointer" onclick="Z.L.href('/logout.htm');">退出</div>
  115. <#else>
  116. <div class="nav z-w80 z-h50 z-text-center z-pointer" onclick="Z.L.href('/login.htm?to=${Urls.encodeUTF8(request.getRequestURI())}');">登录</div>
  117. <div class="nav z-w80 z-h50 z-text-center z-pointer" onclick="Z.L.href('/register.htm');">注册</div>
  118. </#if>
  119. </div>
  120. </div>
  121. <!--顶部导航固定的55px边距-->
  122. <div class="topnav-margin"></div>
  123. </#function>
  124. <#--面包屑 -->
  125. <#function zhiqim_com_breadcrumb(first, second, third)>
  126. <div class="breadcrumb z-h40 z-lh40 z-bg-white z-bd-b">
  127. 当前位置:&nbsp;&nbsp;${first}&nbsp;&nbsp;>>&nbsp;&nbsp;${second}&nbsp;&nbsp;>>&nbsp;&nbsp;<span style="color:#078ce9;">${third}</span></span>
  128. </div>
  129. </#function>
  130. <#--主页脚注-->
  131. <#function zhiqim_com_footer()>
  132. <#if request.getPathInContext() == "/index.htm">
  133. <!--脚注-->
  134. <div class="footer">
  135. <div class="footer-wrap">
  136. <ul>
  137. <li class="fproduct">
  138. <span class="z-bold z-pd-l10">介绍</span>
  139. <p><a href="${context.getRootPath("/document/bestcase/index.htm")}" target="_blank" >快速入门</a></p>
  140. <p><a href="${context.getRootPath("http://www.zhiqim.com/gitcan/commonDownload.htm")}" target="_blank" >资源下载</a></p>
  141. </li>
  142. <li class="fhelp">
  143. <span class="z-bold z-pd-l10">帮助</span>
  144. <p class="z-pd-l10">QQ群:<a href="https://jq.qq.com/?_wv=1027&k=45JKHGg">458171582</a></p>
  145. </li>
  146. <li class="fabout">
  147. <span class="z-bold z-pd-l10">关于</span>
  148. <p><a href="http://www.zhiqimeng.com/introduction.htm" target="_blank" >关于知启蒙</a></p>
  149. <p><a href="http://www.zhiqimeng.com/recruitment.htm" target="_blank" >加入我们</a></p>
  150. </li>
  151. <li class="abountus">
  152. <p class="z-pd-l10">Add:湖南省长沙市岳麓区佑母塘路799号</p>
  153. <p style="padding-left:53px;">钰龙佳园二期综合楼3栋1610室</p>
  154. <p class="z-pd-l10">Tel:0731-89871610 </p>
  155. <p class="z-pd-l10">Mail:webmaster@zhiqim.com </p>
  156. </li>
  157. <li>
  158. <p class="z-pd-l10"><img src="${context.getRootPath("/zinc/www/images/code.jpg")}"></p>
  159. </li>
  160. </ul>
  161. </div>
  162. </div>
  163. <div class="footer-cp">
  164. <div class="footer-cp-wrap">
  165. <div class="footer-text">
  166. Copyright © 2015 湖南知启蒙科技有限公司 版权所有 <a href="http://www.miitbeian.gov.cn/" target="_blank">湘ICP备17004906号-3</a>
  167. <span class="z-show-ib z-mg-r10 z-mg-l10">|</span>
  168. <span><a target="_blank" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=43010402000590"><img src="/zinc/www/images/icon_bei.png"><span class="z-mg-l3">湘公网安备 43010402000590号</span></a></span>
  169. </div>
  170. </div>
  171. </div>
  172. </#if>
  173. </body>
  174. </html>
  175. </#function>
  176. <#--上一章下一章-->
  177. <#function zhiqim_com_chapter(prevUrl, nextUrl)>
  178. <#if prevUrl != null || nextUrl != null>
  179. <div class="z-relative-left z-w100p z-bd-t z-mg-t20 z-mg-b20 z-pd-t20">
  180. <#if prevUrl != null>
  181. <button class="z-button z-xlarge z-w200 z-h50 z-mg-r10" onclick="location.href='${prevUrl}'">上一章</button>
  182. </#if>
  183. <#if nextUrl != null>
  184. <button class="z-button z-xlarge z-blue z-w200 z-h50" onclick="location.href='${nextUrl}'">下一章</button>
  185. </#if>
  186. </div>
  187. </#if>
  188. </#function>
  189. <#--内容转载-->
  190. <#function zhiqim_com_content_source()>
  191. <div class="z-w100p z-float-left z-mg-t20 z-text-right" style="padding-right:80px;">
  192. <span class="z-px14">--内容来源于w3cSchool,如有侵权,请联系删除!</span>
  193. </div>
  194. </#function>
  195. <#--------------------------------------------------------------------->
  196. <#-- 移动端函数定义 -->
  197. <#--------------------------------------------------------------------->
  198. <#--头部-->
  199. <#function zhiqim_com_mobile_header()>
  200. <!DOCTYPE html>
  201. <html>
  202. <head>
  203. <title>${context.getContextName()}<#if Validates.isNotEmpty(title)>_${title}</#if></title>
  204. <meta charset="UTF-8">
  205. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  206. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  207. <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no"/>
  208. <meta name="Author" content="${context.getContextName()}" />
  209. <meta name="Keywords" content="<#if Validates.isNotEmpty(keyword)>${keyword} </#if>${context.getAttribute("keywords")}"/>
  210. <meta name="Description" content="<#if Validates.isNotEmpty(desc)>${desc}<#else>${context.getAttribute("description")}</#if>"/>
  211. <link rel="icon" type="image/x-icon" href="/favicon.ico">
  212. <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
  213. ${Styles.src(context.getRootPath("/zinc/mobile/zhiqim.mobile_v1.4.0.r2018010101.css"))}
  214. ${Scripts.src(context.getRootPath("/zinc/mobile/zhiqim.mobile_v1.4.0.r2018010101.min.js"))}
  215. ${Styles.src(context.getRootPath("/zinc/mobile/zhiqim_account_v1.4.0.r2018042501.mobile.css"))}
  216. ${Scripts.src(context.getRootPath("/zinc/mobile/zhiqim_account_v1.4.0.r2018042501.mobile.js"))}
  217. ${Styles.src(context.getRootPath("/zinc/mobile/mainmobile.css"))}
  218. </head>
  219. <body>
  220. </#function>
  221. <#--顶部导航-->
  222. <#function zhiqim_com_mobile_topnav(name)>
  223. <!-- 顶部导航 -->
  224. <div class="z-bar-top zi-bd-none">
  225. <div class="top-left">
  226. <div class="top-logo z-mg-l-10"><img src="${context.getRootPath("/zinc/mobile/images/logo_z.png")}"/></div>
  227. <div class="top-logoname"><img src="${context.getRootPath("/zinc/mobile/images/logo_zhiqimeng.png")}"/></div>
  228. </div>
  229. <div class="top-right z-rem24">
  230. <#if request.hasSessionUser(ZacSessionUser.class)>
  231. <a class="top-login-btn z-mg-r15" href="${context.getRootPath("https://www.zhiqim.com/account/index.htm")}"><i class="z-font z-customer z-color-white"></i></a>
  232. <#else>
  233. <a class="top-login-btn z-mg-r15" href="${context.getRootPath("https://www.zhiqim.com/login.htm")}"><i class="z-font z-customer z-color-white"></i></a>
  234. </#if>
  235. <a href="javascript:void(0);" ontouchend="Account.mainnav(event);"><i class="z-font z-list z-color-white"></i></a>
  236. </div>
  237. </div>
  238. <!-- 顶部弹出主导航 -->
  239. <div id="zm_mainNav" class="z-popup">
  240. <div class="z-popup-bg"></div>
  241. <div class="z-popup-main">
  242. <div class="z-popup-title">
  243. <span class="z-color-white">功能菜单</span>
  244. <div class="z-popup-cancel"><i class="z-font z-arrowhead-right z-color-white"></i></div>
  245. </div>
  246. <div class="z-popup-content z-pd-l5 z-pd-r5">
  247. <p onclick="Z.L.href('${context.getRootPath("/index.htm")}');"><i class="z-font z-house z-mg-r5"></i>首页</p>
  248. <p onclick="Z.L.href('${context.getRootPath("/product/mobile/index.htm")}');"><i class="z-font z-image-text z-mg-r5"></i>产品</p>
  249. <p onclick="Z.L.href('${context.getRootPath("/document/bestcase/index.htm")}');"><i class="z-font z-text z-mg-r5"></i>文库</p>
  250. <p onclick="Z.L.href('${context.getRootPath("https://www.zhiqim.com/gitcan/index.htm")}');"><i class="z-font z-cloud z-mg-r5"></i>蚕云</p>
  251. <p onclick="Z.L.href('${context.getRootPath("https://www.zhiqim.com/gallery/index.htm")}');"><i class="z-font z-picture z-mg-r5"></i>图库</p>
  252. <p onclick="Z.L.href('${context.getRootPath("https://www.zhiqim.com/account/index.htm")}');"><i class="z-font z-customer z-mg-r5"></i>账户中心</p>
  253. <ul id="MENU_0010" style="display: block;">
  254. <li class="z-relative" onclick="Z.L.href('${context.getRootPath("https://www.zhiqim.com/login.htm")}');"><i class="z-font z-config z-mg-r5"></i>登录</li>
  255. <li class="z-relative" onclick="Z.L.href('${context.getRootPath("https://www.zhiqim.com/register.htm")}');"><i class="z-font z-add z-mg-r5"></i>注册</li>
  256. <li class="z-relative" onclick="Z.L.href('${context.getRootPath("https://www.zhiqim.com/forgetPass.htm")}');"><i class="z-font z-lock z-mg-r5"></i>忘记密码</li>
  257. </ul>
  258. </div>
  259. </div>
  260. </div>
  261. </div>
  262. </#function>
  263. <#--脚注-->
  264. <#function zhiqim_com_mobile_footer()>
  265. <div class="m-footer">
  266. <div class="m-footer-wrap">Copyright © 2015 知启蒙 版权所有</div>
  267. </div>
  268. </body>
  269. </html>
  270. </#function>
  271. <#--右边浮动图标-->
  272. <#function zhiqim_com_fixedicon()>
  273. <script>
  274. window._bd_share_config = {
  275. "common": {
  276. "bdSnsKey": {},
  277. "bdText": encodeURIComponent('${title}'),
  278. "bdMini": 1,
  279. "bdMiniList": false,
  280. "bdPic": "",
  281. "bdStyle": 0,
  282. "bdSize": 16
  283. },
  284. "share": {}
  285. };
  286. with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='/static/api/js/share.js'];
  287. </script>
  288. <style>
  289. .bdsharebuttonbox{text-align:center;padding:0px;margin:0px!important;}
  290. .bdshare-button-style0-16 a, .bdshare-button-style0-16 .bds_more {color:#999;cursor: pointer;margin: 6px 6px 6px 0!important;}
  291. .bdshare-button-style0-16 a:hover {color:#00a2eb;}
  292. .bdshare-button-style0-16 a, .bdshare-button-style0-16 .bds_more {float: left;font-size: 14px;padding:4px 15px;height:45px;background-image: none;background-repeat: no-repeat;cursor: pointer;margin:0!important;}
  293. </style>
  294. <#-- 右边浮动-->
  295. <div id="share" class="fixedright">
  296. <ul>
  297. <li><i class="fixedicon collection"></i><br><span class="z-lh20">收藏</span></li>
  298. <li><i class="fixedicon consultant"></i><br><span class="z-lh20">客服</span></li>
  299. <li><i class="fixedicon praise"></i><br><span class="z-lh20">点赞</span></li>
  300. <li class="bdsharebuttonbox"><a class="bds-weixin z-lh20" data-cmd="weixin"><i class="fixedicon wechat z-event-none"></i><br>微信</a></li>
  301. <li class="bdsharebuttonbox"><a class="bds-qzone z-lh20" data-cmd="qzone"><i class="fixedicon qq z-event-none"></i><br>QQ</a></li>
  302. <li class="bdsharebuttonbox"><a class="bds-tsina z-lh20" data-cmd="tsina"><i class="fixedicon microblog z-event-none"></i><br>微博</a></li>
  303. </ul>
  304. </div>
  305. </#function>
  306. <#--重写account顶部导航-->
  307. <#function zhiqim_account_www_topnav(name)>
  308. <#var path = request.getPathInContext()/>
  309. <#var doc = Strings.startsWith(path, "/document/")/>
  310. <#var product = Strings.startsWith(path, "/product/")/>
  311. <#var git = Strings.startsWith(path, "/gitcan/")/>
  312. <#var gallery = Strings.startsWith(path, "/gallery/")/>
  313. <#var task = Strings.startsWith(path, "/task/")/>
  314. <#var site = Strings.startsWith(path, "/minisite/")/>
  315. <#var account = Strings.startsWith(path, "/account/")/>
  316. <#var index = !doc && !product && !git && !gallery && !task && !site && !account/>
  317. <style>
  318. .topnav .topnavright .navcray {float:left;height:55px;line-height:55px;font-size:14px;border-left:1px solid #008bd2;background-color:#08c2c0;}
  319. .topnav .topnavright .navcray:hover {background-color:#1fcdcb; color:#fff;}
  320. </style>
  321. <!--顶部导航-->
  322. <div class="topnav" style="${htmlOverflowHidden?"padding-right:17px":""}">
  323. <div id="logo" class="logo z-text-center"><img src="${context.getRootPath("/zinc/zhiqim_account/logo_z.png")}"/></div>
  324. <div class="logoname z-text-left"><img src="${context.getRootPath("/zinc/zhiqim_account/logo_zhiqimeng.png")}"/></div>
  325. <div class="topnavleft">
  326. <div class="nav ${index?"active":""}" onclick="Z.L.href('${context.getRootPath("/index.htm")}');">首页</div>
  327. <div class="nav ${product?"active":""}" onclick="Z.L.href('${context.getRootPath("/product/www/index.htm")}');">产品</div>
  328. <div class="nav ${doc?"active":""}" onclick="Z.L.href('${context.getRootPath("/knowledgeLibrary/studyResource/newElement.htm")}');">文库</div>
  329. <div class="nav ${gallery?"active":""}" onclick="Z.L.href('${context.getRootPath("/gallery/index.htm")}');">图库</div>
  330. <div class="nav ${git?"active":""}${account?"active":""}" onclick="Z.L.href('${context.getRootPath("/gitcan/index.htm")}');">蚕云</div>
  331. <div class="nav ${task?"active":""}" onclick="Z.L.href('${context.getRootPath("/task/index.htm")}');">任务</div>
  332. <div class="nav ${site?"active":""}" onclick="Z.L.href('${context.getRootPath("/minisite/index.htm")}');">微站</div>
  333. </div>
  334. <div class="topnavright">
  335. <!--
  336. <div class="query z-relative-left z-h50">
  337. <input class="z-input"><i class="z-font z-query z-px18"></i>
  338. </div>
  339. -->
  340. <div class="navcray z-w140 z-h50 z-text-center z-pointer" onclick="Z.L.href('${context.getRootPath("/document/bestcase/index.htm")}');">知启蒙开源框架</div>
  341. <div class="nav z-w80 z-h50 z-text-center z-pointer" onclick="Z.L.href('${context.getRootPath("/document/faq/index.htm")}');">帮助</div>
  342. <#if request.hasSessionUser(ZacSessionUser.class)>
  343. <div class="nav z-w80 z-h50 z-text-center z-pointer" onclick="Z.L.href('${context.getRootPath("/account/index.htm")}');">
  344. <#if UserPassportDao.certify(request.getSessionUser(ZacSessionUser.class).getUserId())>
  345. <image class="z-bd-rd50p z-mg-b5" src="${sessionUser.getUserAvatar()}" style="border:2.2px solid #fff;width:45px;height:45px;">
  346. <span style="position:absolute;top:13px;right:93px;"><image src="/zinc/zhiqim_account/www/certify.png" title="已实名认证"></span>
  347. <#else>
  348. <image class="z-bd-rd50p" src="${sessionUser.getUserAvatar()}" style="width:42px;height:42px;">
  349. </#if>
  350. </div>
  351. <div class="nav z-w80 z-h50 z-text-center z-pointer" onclick="Z.L.href('${context.getRootPath("/logout.htm")}');">退出</div>
  352. <#else>
  353. <div class="nav z-w80 z-h50 z-text-center z-pointer" onclick="Z.L.href('/login.htm?to=${Urls.encodeUTF8(request.getRequestURI())}');">登录</div>
  354. <div class="nav z-w80 z-h50 z-text-center z-pointer" onclick="Z.L.href('${context.getRootPath("/register.htm")}');">注册</div>
  355. </#if>
  356. </div>
  357. </div>
  358. <!--顶部导航固定的55px边距-->
  359. <div class="topnav-margin"></div>
  360. </#function>