Discuz! 官方站

 找回密码
 立即注册

QQ登录

只需一步,快速开始

腾讯云市场年终大促! 虚拟主机低至20元/月,Discuz X3.4论坛系统免费用
搜索
查看: 2250|回复: 0

[素材] 【discuzx3.4】header_userstatus.htm模板代码分析

[复制链接]
发表于 2018-1-9 11:11:16 | 显示全部楼层 |阅读模式
腾讯云市场年终大促!Discuz x3.4论坛系统免费用,虚拟主机低至20元/月,爆款小程序1元起
  1. <!--{if $_G['uid']}-->
  2. <div id="um">
  3. <!-- 头像 -->
  4.         <div class="avt y"><a href="home.php?mod=space&uid=$_G[uid]"><!--{avatar($_G[uid],small)}--></a></div>
  5.         <p>
  6. <!-- 当前登录用户名,如:admin|判断是否用QQ登陆 -->
  7.                 <strong class="vwmy{if $_G['setting']['connect']['allow'] && $_G[member][conisbind]} qq{/if}"><a href="home.php?mod=space&uid=$_G[uid]" target="_blank" title="{lang visit_my_space}">{$_G[member][username]}</a></strong>
  8.                 <!--{if $_G['group']['allowinvisible']}-->
  9. <!-- 当前登录状态,如:在线、隐身 -->
  10.                 <span id="loginstatus">
  11.                         <a id="loginstatusid" href="member.php?mod=switchstatus" title="{lang login_switch_invisible_mode}" onclick="ajaxget(this.href, 'loginstatus');return false;" class="xi2"></a>
  12.                 </span>
  13.                 <!--{/if}-->
  14.                 <!--{hook/global_usernav_extra1}-->
  15.                 <span class="pipe">|</span><!--{hook/global_usernav_extra4}--><a href="javascript:;" id="myitem" class="showmenu" onmouseover="showMenu({'ctrlid':'myitem'});">{lang myitem}</a>
  16. <!-- 用户设置 -->
  17.                 <span class="pipe">|</span><a href="home.php?mod=spacecp">{lang setup}</a>
  18. <!--用户消息-->
  19.                 <span class="pipe">|</span><a href="home.php?mod=space&do=pm" id="pm_ntc"{if $_G[member][newpm]} class="new"{/if}>{lang pm_center}</a>
  20. <!-- 用户提醒 -->
  21.                 <span class="pipe">|</span><a href="home.php?mod=space&do=notice" id="myprompt" class="a showmenu{if $_G[member][newprompt]} new{/if}" onmouseover="showMenu({'ctrlid':'myprompt'});">{lang remind}<!--{if $_G[member][newprompt]}-->($_G[member][newprompt])<!--{/if}--></a><span id="myprompt_check"></span>
  22.                 <!--{if empty($_G['cookie']['ignore_notice']) && ($_G[member][newpm] || $_G[member][newprompt_num][follower] || $_G[member][newprompt_num][follow] || $_G[member][newprompt])}--><script language="javascript">delayShow($('myprompt'), function() {showMenu({'ctrlid':'myprompt','duration':3})});</script><!--{/if}-->
  23.                 <!--{if $_G['setting']['taskon'] && !empty($_G['cookie']['taskdoing_'.$_G['uid']])}--><span class="pipe">|</span><a href="home.php?mod=task&item=doing" id="task_ntc" class="new">{lang task_doing}</a><!--{/if}-->
  24.                 <!--{if ($_G['group']['allowmanagearticle'] || $_G['group']['allowpostarticle'] || $_G['group']['allowdiy'] || getstatus($_G['member']['allowadmincp'], 4) || getstatus($_G['member']['allowadmincp'], 6) || getstatus($_G['member']['allowadmincp'], 2) || getstatus($_G['member']['allowadmincp'], 3))}-->
  25. <!-- 门户管理 -->
  26.                         <span class="pipe">|</span><a href="portal.php?mod=portalcp"><!--{if $_G['setting']['portalstatus'] }-->{lang portal_manage}<!--{else}-->{lang portal_block_manage}<!--{/if}--></a>
  27.                 <!--{/if}-->
  28. <!-- 管理中心 -->
  29.                 <!--{if $_G['uid'] && $_G['group']['radminid'] > 1}-->
  30.                         <span class="pipe">|</span><a href="forum.php?mod=modcp&fid=$_G[fid]" target="_blank">{lang forum_manager}</a>
  31.                 <!--{/if}-->
  32. <!--后台管理-->
  33.                 <!--{if $_G['uid'] && getstatus($_G['member']['allowadmincp'], 1)}-->
  34.                         <span class="pipe">|</span><a href="admin.php" target="_blank">{lang admincp}</a>
  35.                 <!--{/if}-->
  36.                 <!--{hook/global_usernav_extra2}-->
  37. <!-- 退出 -->
  38.                 <span class="pipe">|</span><a href="member.php?mod=logging&action=logout&formhash={FORMHASH}">{lang logout}</a>
  39.         </p>
  40.         <p>
  41.                 <!--{hook/global_usernav_extra3}-->
  42. <!-- 积分:43 -->
  43.                 <a href="home.php?mod=spacecp&ac=credit&showcredit=1" id="extcreditmenu"{if !$_G[setting][bbclosed]} onmouseover="delayShow(this, showCreditmenu);" class="showmenu"{/if}>{lang credits}: $_G[member][credits]</a>
  44. <!-- 用户组:管理员 -->
  45.                 <span class="pipe">|</span><a href="home.php?mod=spacecp&ac=usergroup" id="g_upmine" class="showmenu" onmouseover="delayShow(this, showUpgradeinfo)">{lang usergroup}: $_G[group][grouptitle]<!--{if $_G[member]['freeze']}--><span class="xi1">({lang freeze})</span><!--{/if}--></a>
  46.         </p>
  47. </div>
  48. <!--{elseif !empty($_G['cookie']['loginuser'])}-->
  49. <p>
  50.         <strong><a id="loginuser" class="noborder"><!--{echo dhtmlspecialchars($_G['cookie']['loginuser'])}--></a></strong>
  51.         <span class="pipe">|</span><a href="member.php?mod=logging&action=login" onclick="showWindow('login', this.href)">{lang activation}</a>
  52.         <span class="pipe">|</span><a href="member.php?mod=logging&action=logout&formhash={FORMHASH}">{lang logout}</a>
  53. </p>
  54. <!--{elseif !$_G[connectguest]}-->
  55.         <!--{template member/login_simple}-->
  56. <!--{else}-->
  57. <div id="um">
  58.         <div class="avt y"><!--{avatar(0,small)}--></div>
  59.         <p>
  60.                 <strong class="vwmy qq">{$_G[member][username]}</strong>
  61.                 <!--{hook/global_usernav_extra1}-->
  62.                 <span class="pipe">|</span><a href="member.php?mod=logging&action=logout&formhash={FORMHASH}">{lang logout}</a>
  63.         </p>
  64.         <p>
  65.                 <a href="home.php?mod=spacecp&ac=credit&showcredit=1">{lang credits}: 0</a>
  66.                 <span class="pipe">|</span>{lang usergroup}: $_G[group][grouptitle]
  67.         </p>
  68. </div>
  69. <!--{/if}-->
复制代码

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

腾讯云市场年终大促!Discuz X3.4论坛系统免费用,虚拟主机低至20元/月,爆款小程序1元起!

QQ|小黑屋|Discuz! 官方站 ( 粤B2-20090059-165 )star

GMT+8, 2019-12-10 07:20

Powered by Discuz! X3.3

Copyright © 2001-2019 Tencent Cloud.

快速回复 返回顶部 返回列表