【discuzx2】header.htm模板文件深入分析
- <!--{subtemplate common/header_common}-->
- <!-- 站点标题 -->
- <meta name="application-name" content="$_G['setting']['bbname']" />
- <!-- 站点标题 -->
- <meta name="msapplication-tooltip" content="$_G['setting']['bbname']" />
- <!-- 门户 -->
- <!--{if $_G['setting']['portalstatus']}--><meta name="msapplication-task" content="name=$_G['setting']['navs'][1]['navname'];action-uri={echo !empty($_G['setting']['domain']['app']['portal']) ? 'http://'.$_G['setting']['domain']['app']['portal'] : $_G[siteurl].'portal.php'};icon-uri={$_G[siteurl]}{IMGDIR}/portal.ico" /><!--{/if}-->
- <!-- 论坛 -->
- <meta name="msapplication-task" content="name=$_G['setting']['navs'][2]['navname'];action-uri={echo !empty($_G['setting']['domain']['app']['forum']) ? 'http://'.$_G['setting']['domain']['app']['forum'] : $_G[siteurl].'forum.php'};icon-uri={$_G[siteurl]}{IMGDIR}/bbs.ico" />
- <!-- 群组 -->
- <!--{if $_G['setting']['groupstatus']}--><meta name="msapplication-task" content="name=$_G['setting']['navs'][3]['navname'];action-uri={echo !empty($_G['setting']['domain']['app']['group']) ? 'http://'.$_G['setting']['domain']['app']['group'] : $_G[siteurl].'group.php'};icon-uri={$_G[siteurl]}{IMGDIR}/group.ico" /><!--{/if}-->
- <!-- 家园 -->
- <!--{if helper_access::check_module('feed')}--><meta name="msapplication-task" content="name=$_G['setting']['navs'][4]['navname'];action-uri={echo !empty($_G['setting']['domain']['app']['home']) ? 'http://'.$_G['setting']['domain']['app']['home'] : $_G[siteurl].'home.php'};icon-uri={$_G[siteurl]}{IMGDIR}/home.ico" /><!--{/if}-->
- <!--{if $_G['basescript'] == 'forum' && $_G['setting']['archiver']}-->
- <!-- 站点地图 --><!--站点地图-->
- <link rel="archives" title="$_G['setting']['bbname']" href="{$_G[siteurl]}archiver/" />
- <!--{/if}-->
- <!--{if !empty($rsshead)}-->$rsshead<!--{/if}-->
- <!--{if widthauto()}-->
- <link rel="stylesheet" id="css_widthauto" type="text/css" href="data/cache/style_{STYLEID}_widthauto.css?{VERHASH}" />
- <script type="text/javascript">HTMLNODE.className += ' widthauto'</script>
- <!--{/if}-->
- <!-- 选择加载js文件 -->
- <!--{if $_G['basescript'] == 'forum' || $_G['basescript'] == 'group'}-->
- <script type="text/javascript" src="{$_G[setting][jspath]}forum.js?{VERHASH}"></script>
- <!--{elseif $_G['basescript'] == 'home' || $_G['basescript'] == 'userapp'}-->
- <script type="text/javascript" src="{$_G[setting][jspath]}home.js?{VERHASH}"></script>
- <!--{elseif $_G['basescript'] == 'portal'}-->
- <script type="text/javascript" src="{$_G[setting][jspath]}portal.js?{VERHASH}"></script>
- <!--{/if}-->
- <!-- 当diy时,会加载此js文件 -->
- <!--{if $_G['basescript'] != 'portal' && $_GET['diy'] == 'yes' && check_diy_perm($topic)}-->
- <script type="text/javascript" src="{$_G[setting][jspath]}portal.js?{VERHASH}"></script>
- <!--{/if}-->
- <!-- 当diy时,会加载此公共的css样式文件 -->
- <!--{if $_GET['diy'] == 'yes' && check_diy_perm($topic)}-->
- <link rel="stylesheet" type="text/css" id="diy_common" href="data/cache/style_{STYLEID}_css_diy.css?{VERHASH}" />
- <!--{/if}-->
- </head>
- <!-- id="nv_forum" class="pg_index" -->
- <body id="nv_{$_G[basescript]}" class="pg_{CURMODULE}{if $_G['basescript'] === 'portal' && CURMODULE === 'list' && !empty($cat)} {$cat['bodycss']}{/if}" onkeydown="if(event.keyCode==27) return false;">
- <div id="append_parent"></div><div id="ajaxwaitid"></div>
- <!--{if $_GET['diy'] == 'yes' && check_diy_perm($topic)}-->
- <!--{template common/header_diy}--><!-- diy面板模板 -->
- <!--{/if}-->
- <!--{if check_diy_perm($topic)}-->
- <!--{block diynav}-->
- <a id="diy-tg" href="javascript:openDiy();" title="{lang open_diy}" class="xi1 xw1" onmouseover="showMenu(this.id)"><img src="{STATICURL}image/diy/panel-toggle.png" alt="DIY" /></a>
- <div id="diy-tg_menu" style="display: none;">
- <ul>
- <li><a href="javascript:saveUserdata('diy_advance_mode', '');openDiy();" class="xi2">{lang header_diy_mode_simple}</a></li>
- <li><a href="javascript:saveUserdata('diy_advance_mode', '1');openDiy();" class="xi2">{lang header_diy_mode_adv}</a></li>
- </ul>
- </div>
- <!--{/block}-->
- <!--{/if}-->
- <!--{if CURMODULE == 'topic' && $topic && empty($topic['useheader']) && check_diy_perm($topic)}-->
- $diynav
- <!--{/if}-->
- <!--{if empty($topic) || $topic['useheader']}-->
- <!--{if $_G['setting']['mobile']['allowmobile'] && (!$_G['setting']['cacheindexlife'] && !$_G['setting']['cachethreadon'] || $_G['uid']) && ($_GET['diy'] != 'yes' || !$_GET['inajax']) && ($_G['mobile'] != '' && $_G['cookie']['mobile'] == '' && $_GET['mobile'] != 'no')}-->
- <div class="xi1 bm bm_c">
- {lang your_mobile_browser}<a href="{$_G['siteurl']}forum.php?mobile=yes">{lang go_to_mobile}</a> <span class="xg1">|</span> <a href="$_G['setting']['mobile']['nomobileurl']">{lang to_be_continue}</a>
- </div>
- <!--{/if}-->
- <div id="toptb" class="cl">
- <!--{hook/global_cpnav_top}-->
- <div class="wp">
- <div class="z">
- <!-- 顶部导航-居左 -->
- <!--{loop $_G['setting']['topnavs'][0] $nav}-->
- <!--{if $nav['available'] && (!$nav['level'] || ($nav['level'] == 1 && $_G['uid']) || ($nav['level'] == 2 && $_G['adminid'] > 0) || ($nav['level'] == 3 && $_G['adminid'] == 1))}-->$nav[code]<!--{/if}-->
- <!--{/loop}-->
- <!-- 没起作用 -->
- <!--{hook/global_cpnav_extra1}-->
- </div>
- <div class="y">
- <a id="switchblind" href="javascript:;" onclick="toggleBlind(this)" title="{lang switch_blind}" class="switchblind">{lang switch_blind}</a>
- <!--{hook/global_cpnav_extra2}-->
- <!-- 顶部导航-居右 -->
- <!--{loop $_G['setting']['topnavs'][1] $nav}-->
- <!--{if $nav['available'] && (!$nav['level'] || ($nav['level'] == 1 && $_G['uid']) || ($nav['level'] == 2 && $_G['adminid'] > 0) || ($nav['level'] == 3 && $_G['adminid'] == 1))}-->$nav[code]<!--{/if}-->
- <!--{/loop}-->
- <!-- 切换到宽版 -->
- <!--{if empty($_G['disabledwidthauto']) && $_G['setting']['switchwidthauto']}-->
- <a href="javascript:;" onclick="widthauto(this)"><!--{if widthauto()}-->{lang switch_narrow}<!--{else}-->{lang switch_wide}<!--{/if}--></a>
- <!--{/if}-->
- <!-- 切换风格 -->
- <!--{if $_G['uid'] && !empty($_G['style']['extstyle'])}--><a id="sslct" href="javascript:;" onmouseover="delayShow(this, function() {showMenu({'ctrlid':'sslct','pos':'34!'})});">{lang changestyle}</a><!--{/if}-->
- <!-- 打开diy面板 -->
- <!--{if check_diy_perm($topic)}-->
- $diynav
- <!--{/if}-->
- </div>
- </div>
- </div>
- <!--{if !IS_ROBOT}-->
- <!--{if $_G['uid'] && !empty($_G['style']['extstyle'])}-->
- <div id="sslct_menu" class="cl p_pop" style="display: none;">
- <!--{if !$_G[style][defaultextstyle]}--><span class="sslct_btn" onclick="extstyle('')" title="{lang default}"><i></i></span><!--{/if}-->
- <!--{loop $_G['style']['extstyle'] $extstyle}-->
- <span class="sslct_btn" onclick="extstyle('$extstyle[0]')" title="$extstyle[1]"><i style='background:$extstyle[2]'></i></span>
- <!--{/loop}-->
- </div>
- <!--{/if}-->
- <div id="qmenu_menu" class="p_pop {if !$_G['uid']}blk{/if}" style="display: none;">
- <!--{if $_G['uid']}-->
- <ul>
- <!--{loop $_G['setting']['mynavs'] $nav}-->
- <!--{if $nav['available'] && (!$nav['level'] || ($nav['level'] == 1 && $_G['uid']) || ($nav['level'] == 2 && $_G['adminid'] > 0) || ($nav['level'] == 3 && $_G['adminid'] == 1))}-->
- <li>$nav[code]</li>
- <!--{/if}-->
- <!--{/loop}-->
- </ul>
- <!--{elseif $_G[connectguest]}-->
- <div class="ptm pbw hm">
- {lang connect_fill_profile_to_visit}
- </div>
- <!--{else}-->
- <div class="ptm pbw hm">
- {lang my_nav_login}
- </div>
- <!--{/if}-->
- </div>
- <!--{/if}-->
- <!-- 内置广告位 -->
- <!--{ad/headerbanner/wp a_h}-->
- <div id="hd">
- <div class="wp">
- <div class="hdc cl">
- <!--{eval $mnid = getcurrentnav();}-->
- <!-- 社区动力logo图:"static/image/common/logo.png" -->
- <h2><!--{if !isset($_G['setting']['navlogos'][$mnid])}--><a href="{if $_G['setting']['domain']['app']['default']}http://{$_G['setting']['domain']['app']['default']}/{else}./{/if}" title="$_G['setting']['bbname']">{$_G['style']['boardlogo']}</a><!--{else}-->$_G['setting']['navlogos'][$mnid]<!--{/if}--></h2>
- <!--{if $_G['uid']}-->
- <div id="um">
- <!-- 头像 -->
- <div class="avt y"><a href="home.php?mod=space&uid=$_G[uid]"><!--{avatar($_G[uid],small)}--></a></div>
- <p>
- <!-- 当前登录用户名,如:admin -->
- <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>
- <!--{if $_G['group']['allowinvisible']}-->
- <!-- 当前登录状态,如:在线、隐身 -->
- <span id="loginstatus">
- <a id="loginstatusid" href="member.php?mod=switchstatus" title="{lang login_switch_invisible_mode}" onclick="ajaxget(this.href, 'loginstatus');return false;" class="xi2"></a>
- </span>
- <!--{/if}-->
- <!--{hook/global_usernav_extra1}-->
- <!-- 设置 -->
- <span class="pipe">|</span><!--{hook/global_usernav_extra4}--><a href="home.php?mod=spacecp">{lang setup}</a>
- <!-- 消息 -->
- <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>
- <!-- 提醒 -->
- <span class="pipe">|</span><a href="home.php?mod=space&do=notice" id="myprompt"{if $_G[member][newprompt]} class="new"{/if}>{lang remind}<!--{if $_G[member][newprompt]}-->($_G[member][newprompt])<!--{/if}--></a><span id="myprompt_check"></span>
- <!--{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}-->
- <!--{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))}-->
- <!-- 门户管理 -->
- <span class="pipe">|</span><a href="portal.php?mod=portalcp"><!--{if $_G['setting']['portalstatus'] }-->{lang portal_manage}<!--{else}-->{lang portal_block_manage}<!--{/if}--></a>
- <!--{/if}-->
- <!--{if $_G['uid'] && $_G['group']['radminid'] > 1}-->
- <span class="pipe">|</span><a href="forum.php?mod=modcp&fid=$_G[fid]" target="_blank">{lang forum_manager}</a>
- <!--{/if}-->
- <!--{if $_G['uid'] && $_G['adminid'] == 1 && $_G['setting']['cloud_status']}-->
- <span class="pipe">|</span><a href="admin.php?frames=yes&action=cloud&operation=applist" target="_blank">{lang cloudcp}</a>
- <!--{/if}-->
- <!-- 管理中心 -->
- <!--{if $_G['uid'] && getstatus($_G['member']['allowadmincp'], 1)}-->
- <span class="pipe">|</span><a href="admin.php" target="_blank">{lang admincp}</a>
- <!--{/if}-->
- <!--{hook/global_usernav_extra2}-->
- <!-- 退出 -->
- <span class="pipe">|</span><a href="member.php?mod=logging&action=logout&formhash={FORMHASH}">{lang logout}</a>
- </p>
- <p>
- <!--{hook/global_usernav_extra3}-->
- <!--{eval $upgradecredit = $_G['uid'] && $_G['group']['grouptype'] == 'member' && $_G['group']['groupcreditslower'] != 999999999 ? $_G['group']['groupcreditslower'] - $_G['member']['credits'] : false;}-->
- <!-- 积分: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>
- <!-- 用户组:管理员 -->
- <span class="pipe">|</span>{lang usergroup}: <a href="home.php?mod=spacecp&ac=usergroup"{if $upgradecredit !== 'false'} id="g_upmine" class="xi2" onmouseover="delayShow(this, showUpgradeinfo)"{/if}>$_G[group][grouptitle]</a>
- </p>
- </div>
- <!--{elseif !empty($_G['cookie']['loginuser'])}-->
- <p>
- <strong><a id="loginuser" class="noborder"><!--{echo dhtmlspecialchars($_G['cookie']['loginuser'])}--></a></strong>
- <span class="pipe">|</span><a href="member.php?mod=logging&action=login" onclick="showWindow('login', this.href)">{lang activation}</a>
- <span class="pipe">|</span><a href="member.php?mod=logging&action=logout&formhash={FORMHASH}">{lang logout}</a>
- </p>
- <!--{elseif !$_G[connectguest]}-->
- <!--{template member/login_simple}-->
- <!--{else}-->
- <div id="um">
- <div class="avt y"><!--{avatar(0,small)}--></div>
- <p>
- <strong class="vwmy qq">{$_G[member][username]}</strong>
- <!--{hook/global_usernav_extra1}-->
- <span class="pipe">|</span><a href="member.php?mod=logging&action=logout&formhash={FORMHASH}">{lang logout}</a>
- </p>
- <p>
- <a href="home.php?mod=spacecp&ac=credit&showcredit=1">{lang credits}: 0</a>
- <span class="pipe">|</span>{lang usergroup}: $_G[group][grouptitle]
- </p>
- </div>
- <!--{/if}-->
- </div>
- <div id="nv">
- <!-- 快捷导航 -->
- <a href="javascript:;" id="qmenu" onmouseover="showMenu({'ctrlid':'qmenu','pos':'34!','ctrlclass':'a','duration':2});">{lang my_nav}</a>
- <!-- 导航,如:门户、论坛、掏帖、家园、群组、广播、导读 -->
- <ul>
- <!--{loop $_G['setting']['navs'] $nav}-->
- <!--{if $nav['available'] && (!$nav['level'] || ($nav['level'] == 1 && $_G['uid']) || ($nav['level'] == 2 && $_G['adminid'] > 0) || ($nav['level'] == 3 && $_G['adminid'] == 1))}--><li {if $mnid == $nav[navid]}class="a" {/if}$nav[nav]></li><!--{/if}-->
- <!--{/loop}-->
- </ul>
- <!--{hook/global_nav_extra}-->
- </div>
- <!--{if !empty($_G['setting']['plugins']['jsmenu'])}-->
- <ul class="p_pop h_pop" id="plugin_menu" style="display: none">
- <!--{loop $_G['setting']['plugins']['jsmenu'] $module}-->
- <!--{if !$module['adminid'] || ($module['adminid'] && $_G['adminid'] > 0 && $module['adminid'] >= $_G['adminid'])}-->
- <li>$module[url]</li>
- <!--{/if}-->
- <!--{/loop}-->
- </ul>
- <!--{/if}-->
- $_G[setting][menunavs]
- <div id="mu" class="cl">
- <!--{if $_G['setting']['subnavs']}-->
- <!--{loop $_G[setting][subnavs] $navid $subnav}-->
- <!--{if $_G['setting']['navsubhover'] || $mnid == $navid}-->
- <ul class="cl {if $mnid == $navid}current{/if}" id="snav_$navid" style="display:{if $mnid != $navid}none{/if}">
- $subnav
- </ul>
- <!--{/if}-->
- <!--{/loop}-->
- <!--{/if}-->
- </div>
- <!-- 内置广告位 -->
- <!--{ad/subnavbanner/a_mu}-->
- <!-- 导航下的搜索框 -->
- <!--{subtemplate common/pubsearchform}-->
- </div>
- </div>
- <!--{hook/global_header}-->
- <!--{/if}-->
- <div id="wp" class="wp">
- <!--{subtemplate common/header_common}-->
- <!-- 站点标题 -->
- <meta name="application-name" content="$_G['setting']['bbname']" />
- <!-- 站点标题 -->
- <meta name="msapplication-tooltip" content="$_G['setting']['bbname']" />
- <!-- 门户 -->
- <!--{if $_G['setting']['portalstatus']}--><meta name="msapplication-task" content="name=$_G['setting']['navs'][1]['navname'];action-uri={echo !empty($_G['setting']['domain']['app']['portal']) ? 'http://'.$_G['setting']['domain']['app']['portal'] : $_G[siteurl].'portal.php'};icon-uri={$_G[siteurl]}{IMGDIR}/portal.ico" /><!--{/if}-->
- <!-- 论坛 -->
- <meta name="msapplication-task" content="name=$_G['setting']['navs'][2]['navname'];action-uri={echo !empty($_G['setting']['domain']['app']['forum']) ? 'http://'.$_G['setting']['domain']['app']['forum'] : $_G[siteurl].'forum.php'};icon-uri={$_G[siteurl]}{IMGDIR}/bbs.ico" />
- <!-- 群组 -->
- <!--{if $_G['setting']['groupstatus']}--><meta name="msapplication-task" content="name=$_G['setting']['navs'][3]['navname'];action-uri={echo !empty($_G['setting']['domain']['app']['group']) ? 'http://'.$_G['setting']['domain']['app']['group'] : $_G[siteurl].'group.php'};icon-uri={$_G[siteurl]}{IMGDIR}/group.ico" /><!--{/if}-->
- <!-- 家园 -->
- <!--{if helper_access::check_module('feed')}--><meta name="msapplication-task" content="name=$_G['setting']['navs'][4]['navname'];action-uri={echo !empty($_G['setting']['domain']['app']['home']) ? 'http://'.$_G['setting']['domain']['app']['home'] : $_G[siteurl].'home.php'};icon-uri={$_G[siteurl]}{IMGDIR}/home.ico" /><!--{/if}-->
- <!--{if $_G['basescript'] == 'forum' && $_G['setting']['archiver']}-->
- <!-- 站点地图 --><!--站点地图-->
- <link rel="archives" title="$_G['setting']['bbname']" href="{$_G[siteurl]}archiver/" />
- <!--{/if}-->
- <!--{if !empty($rsshead)}-->$rsshead<!--{/if}-->
- <!--{if widthauto()}-->
- <link rel="stylesheet" id="css_widthauto" type="text/css" href="data/cache/style_{STYLEID}_widthauto.css?{VERHASH}" />
- <script type="text/javascript">HTMLNODE.className += ' widthauto'</script>
- <!--{/if}-->
- <!-- 选择加载js文件 -->
- <!--{if $_G['basescript'] == 'forum' || $_G['basescript'] == 'group'}-->
- <script type="text/javascript" src="{$_G[setting][jspath]}forum.js?{VERHASH}"></script>
- <!--{elseif $_G['basescript'] == 'home' || $_G['basescript'] == 'userapp'}-->
- <script type="text/javascript" src="{$_G[setting][jspath]}home.js?{VERHASH}"></script>
- <!--{elseif $_G['basescript'] == 'portal'}-->
- <script type="text/javascript" src="{$_G[setting][jspath]}portal.js?{VERHASH}"></script>
- <!--{/if}-->
- <!-- 当diy时,会加载此js文件 -->
- <!--{if $_G['basescript'] != 'portal' && $_GET['diy'] == 'yes' && check_diy_perm($topic)}-->
- <script type="text/javascript" src="{$_G[setting][jspath]}portal.js?{VERHASH}"></script>
- <!--{/if}-->
- <!-- 当diy时,会加载此公共的css样式文件 -->
- <!--{if $_GET['diy'] == 'yes' && check_diy_perm($topic)}-->
- <link rel="stylesheet" type="text/css" id="diy_common" href="data/cache/style_{STYLEID}_css_diy.css?{VERHASH}" />
- <!--{/if}-->
- </head>
- <!-- id="nv_forum" class="pg_index" -->
- <body id="nv_{$_G[basescript]}" class="pg_{CURMODULE}{if $_G['basescript'] === 'portal' && CURMODULE === 'list' && !empty($cat)} {$cat['bodycss']}{/if}" onkeydown="if(event.keyCode==27) return false;">
- <div id="append_parent"></div><div id="ajaxwaitid"></div>
- <!--{if $_GET['diy'] == 'yes' && check_diy_perm($topic)}-->
- <!--{template common/header_diy}--><!-- diy面板模板 -->
- <!--{/if}-->
- <!--{if check_diy_perm($topic)}-->
- <!--{block diynav}-->
- <a id="diy-tg" href="javascript:openDiy();" title="{lang open_diy}" class="xi1 xw1" onmouseover="showMenu(this.id)"><img src="{STATICURL}image/diy/panel-toggle.png" alt="DIY" /></a>
- <div id="diy-tg_menu" style="display: none;">
- <ul>
- <li><a href="javascript:saveUserdata('diy_advance_mode', '');openDiy();" class="xi2">{lang header_diy_mode_simple}</a></li>
- <li><a href="javascript:saveUserdata('diy_advance_mode', '1');openDiy();" class="xi2">{lang header_diy_mode_adv}</a></li>
- </ul>
- </div>
- <!--{/block}-->
- <!--{/if}-->
- <!--{if CURMODULE == 'topic' && $topic && empty($topic['useheader']) && check_diy_perm($topic)}-->
- $diynav
- <!--{/if}-->
- <!--{if empty($topic) || $topic['useheader']}-->
- <!--{if $_G['setting']['mobile']['allowmobile'] && (!$_G['setting']['cacheindexlife'] && !$_G['setting']['cachethreadon'] || $_G['uid']) && ($_GET['diy'] != 'yes' || !$_GET['inajax']) && ($_G['mobile'] != '' && $_G['cookie']['mobile'] == '' && $_GET['mobile'] != 'no')}-->
- <div class="xi1 bm bm_c">
- {lang your_mobile_browser}<a href="{$_G['siteurl']}forum.php?mobile=yes">{lang go_to_mobile}</a> <span class="xg1">|</span> <a href="$_G['setting']['mobile']['nomobileurl']">{lang to_be_continue}</a>
- </div>
- <!--{/if}-->
- <div id="toptb" class="cl">
- <!--{hook/global_cpnav_top}-->
- <div class="wp">
- <div class="z">
- <!-- 顶部导航-居左 -->
- <!--{loop $_G['setting']['topnavs'][0] $nav}-->
- <!--{if $nav['available'] && (!$nav['level'] || ($nav['level'] == 1 && $_G['uid']) || ($nav['level'] == 2 && $_G['adminid'] > 0) || ($nav['level'] == 3 && $_G['adminid'] == 1))}-->$nav[code]<!--{/if}-->
- <!--{/loop}-->
- <!-- 没起作用 -->
- <!--{hook/global_cpnav_extra1}-->
- </div>
- <div class="y">
- <a id="switchblind" href="javascript:;" onclick="toggleBlind(this)" title="{lang switch_blind}" class="switchblind">{lang switch_blind}</a>
- <!--{hook/global_cpnav_extra2}-->
- <!-- 顶部导航-居右 -->
- <!--{loop $_G['setting']['topnavs'][1] $nav}-->
- <!--{if $nav['available'] && (!$nav['level'] || ($nav['level'] == 1 && $_G['uid']) || ($nav['level'] == 2 && $_G['adminid'] > 0) || ($nav['level'] == 3 && $_G['adminid'] == 1))}-->$nav[code]<!--{/if}-->
- <!--{/loop}-->
- <!-- 切换到宽版 -->
- <!--{if empty($_G['disabledwidthauto']) && $_G['setting']['switchwidthauto']}-->
- <a href="javascript:;" onclick="widthauto(this)"><!--{if widthauto()}-->{lang switch_narrow}<!--{else}-->{lang switch_wide}<!--{/if}--></a>
- <!--{/if}-->
- <!-- 切换风格 -->
- <!--{if $_G['uid'] && !empty($_G['style']['extstyle'])}--><a id="sslct" href="javascript:;" onmouseover="delayShow(this, function() {showMenu({'ctrlid':'sslct','pos':'34!'})});">{lang changestyle}</a><!--{/if}-->
- <!-- 打开diy面板 -->
- <!--{if check_diy_perm($topic)}-->
- $diynav
- <!--{/if}-->
- </div>
- </div>
- </div>
- <!--{if !IS_ROBOT}-->
- <!--{if $_G['uid'] && !empty($_G['style']['extstyle'])}-->
- <div id="sslct_menu" class="cl p_pop" style="display: none;">
- <!--{if !$_G[style][defaultextstyle]}--><span class="sslct_btn" onclick="extstyle('')" title="{lang default}"><i></i></span><!--{/if}-->
- <!--{loop $_G['style']['extstyle'] $extstyle}-->
- <span class="sslct_btn" onclick="extstyle('$extstyle[0]')" title="$extstyle[1]"><i style='background:$extstyle[2]'></i></span>
- <!--{/loop}-->
- </div>
- <!--{/if}-->
- <div id="qmenu_menu" class="p_pop {if !$_G['uid']}blk{/if}" style="display: none;">
- <!--{if $_G['uid']}-->
- <ul>
- <!--{loop $_G['setting']['mynavs'] $nav}-->
- <!--{if $nav['available'] && (!$nav['level'] || ($nav['level'] == 1 && $_G['uid']) || ($nav['level'] == 2 && $_G['adminid'] > 0) || ($nav['level'] == 3 && $_G['adminid'] == 1))}-->
- <li>$nav[code]</li>
- <!--{/if}-->
- <!--{/loop}-->
- </ul>
- <!--{elseif $_G[connectguest]}-->
- <div class="ptm pbw hm">
- {lang connect_fill_profile_to_visit}
- </div>
- <!--{else}-->
- <div class="ptm pbw hm">
- {lang my_nav_login}
- </div>
- <!--{/if}-->
- </div>
- <!--{/if}-->
- <!-- 内置广告位 -->
- <!--{ad/headerbanner/wp a_h}-->
- <div id="hd">
- <div class="wp">
- <div class="hdc cl">
- <!--{eval $mnid = getcurrentnav();}-->
- <!-- 社区动力logo图:"static/image/common/logo.png" -->
- <h2><!--{if !isset($_G['setting']['navlogos'][$mnid])}--><a href="{if $_G['setting']['domain']['app']['default']}http://{$_G['setting']['domain']['app']['default']}/{else}./{/if}" title="$_G['setting']['bbname']">{$_G['style']['boardlogo']}</a><!--{else}-->$_G['setting']['navlogos'][$mnid]<!--{/if}--></h2>
- <!--{if $_G['uid']}-->
- <div id="um">
- <!-- 头像 -->
- <div class="avt y"><a href="home.php?mod=space&uid=$_G[uid]"><!--{avatar($_G[uid],small)}--></a></div>
- <p>
- <!-- 当前登录用户名,如:admin -->
- <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>
- <!--{if $_G['group']['allowinvisible']}-->
- <!-- 当前登录状态,如:在线、隐身 -->
- <span id="loginstatus">
- <a id="loginstatusid" href="member.php?mod=switchstatus" title="{lang login_switch_invisible_mode}" onclick="ajaxget(this.href, 'loginstatus');return false;" class="xi2"></a>
- </span>
- <!--{/if}-->
- <!--{hook/global_usernav_extra1}-->
- <!-- 设置 -->
- <span class="pipe">|</span><!--{hook/global_usernav_extra4}--><a href="home.php?mod=spacecp">{lang setup}</a>
- <!-- 消息 -->
- <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>
- <!-- 提醒 -->
- <span class="pipe">|</span><a href="home.php?mod=space&do=notice" id="myprompt"{if $_G[member][newprompt]} class="new"{/if}>{lang remind}<!--{if $_G[member][newprompt]}-->($_G[member][newprompt])<!--{/if}--></a><span id="myprompt_check"></span>
- <!--{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}-->
- <!--{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))}-->
- <!-- 门户管理 -->
- <span class="pipe">|</span><a href="portal.php?mod=portalcp"><!--{if $_G['setting']['portalstatus'] }-->{lang portal_manage}<!--{else}-->{lang portal_block_manage}<!--{/if}--></a>
- <!--{/if}-->
- <!--{if $_G['uid'] && $_G['group']['radminid'] > 1}-->
- <span class="pipe">|</span><a href="forum.php?mod=modcp&fid=$_G[fid]" target="_blank">{lang forum_manager}</a>
- <!--{/if}-->
- <!--{if $_G['uid'] && $_G['adminid'] == 1 && $_G['setting']['cloud_status']}-->
- <span class="pipe">|</span><a href="admin.php?frames=yes&action=cloud&operation=applist" target="_blank">{lang cloudcp}</a>
- <!--{/if}-->
- <!-- 管理中心 -->
- <!--{if $_G['uid'] && getstatus($_G['member']['allowadmincp'], 1)}-->
- <span class="pipe">|</span><a href="admin.php" target="_blank">{lang admincp}</a>
- <!--{/if}-->
- <!--{hook/global_usernav_extra2}-->
- <!-- 退出 -->
- <span class="pipe">|</span><a href="member.php?mod=logging&action=logout&formhash={FORMHASH}">{lang logout}</a>
- </p>
- <p>
- <!--{hook/global_usernav_extra3}-->
- <!--{eval $upgradecredit = $_G['uid'] && $_G['group']['grouptype'] == 'member' && $_G['group']['groupcreditslower'] != 999999999 ? $_G['group']['groupcreditslower'] - $_G['member']['credits'] : false;}-->
- <!-- 积分: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>
- <!-- 用户组:管理员 -->
- <span class="pipe">|</span>{lang usergroup}: <a href="home.php?mod=spacecp&ac=usergroup"{if $upgradecredit !== 'false'} id="g_upmine" class="xi2" onmouseover="delayShow(this, showUpgradeinfo)"{/if}>$_G[group][grouptitle]</a>
- </p>
- </div>
- <!--{elseif !empty($_G['cookie']['loginuser'])}-->
- <p>
- <strong><a id="loginuser" class="noborder"><!--{echo dhtmlspecialchars($_G['cookie']['loginuser'])}--></a></strong>
- <span class="pipe">|</span><a href="member.php?mod=logging&action=login" onclick="showWindow('login', this.href)">{lang activation}</a>
- <span class="pipe">|</span><a href="member.php?mod=logging&action=logout&formhash={FORMHASH}">{lang logout}</a>
- </p>
- <!--{elseif !$_G[connectguest]}-->
- <!--{template member/login_simple}-->
- <!--{else}-->
- <div id="um">
- <div class="avt y"><!--{avatar(0,small)}--></div>
- <p>
- <strong class="vwmy qq">{$_G[member][username]}</strong>
- <!--{hook/global_usernav_extra1}-->
- <span class="pipe">|</span><a href="member.php?mod=logging&action=logout&formhash={FORMHASH}">{lang logout}</a>
- </p>
- <p>
- <a href="home.php?mod=spacecp&ac=credit&showcredit=1">{lang credits}: 0</a>
- <span class="pipe">|</span>{lang usergroup}: $_G[group][grouptitle]
- </p>
- </div>
- <!--{/if}-->
- </div>
- <div id="nv">
- <!-- 快捷导航 -->
- <a href="javascript:;" id="qmenu" onmouseover="showMenu({'ctrlid':'qmenu','pos':'34!','ctrlclass':'a','duration':2});">{lang my_nav}</a>
- <!-- 导航,如:门户、论坛、掏帖、家园、群组、广播、导读 -->
- <ul>
- <!--{loop $_G['setting']['navs'] $nav}-->
- <!--{if $nav['available'] && (!$nav['level'] || ($nav['level'] == 1 && $_G['uid']) || ($nav['level'] == 2 && $_G['adminid'] > 0) || ($nav['level'] == 3 && $_G['adminid'] == 1))}--><li {if $mnid == $nav[navid]}class="a" {/if}$nav[nav]></li><!--{/if}-->
- <!--{/loop}-->
- </ul>
- <!--{hook/global_nav_extra}-->
- </div>
- <!--{if !empty($_G['setting']['plugins']['jsmenu'])}-->
- <ul class="p_pop h_pop" id="plugin_menu" style="display: none">
- <!--{loop $_G['setting']['plugins']['jsmenu'] $module}-->
- <!--{if !$module['adminid'] || ($module['adminid'] && $_G['adminid'] > 0 && $module['adminid'] >= $_G['adminid'])}-->
- <li>$module[url]</li>
- <!--{/if}-->
- <!--{/loop}-->
- </ul>
- <!--{/if}-->
- $_G[setting][menunavs]
- <div id="mu" class="cl">
- <!--{if $_G['setting']['subnavs']}-->
- <!--{loop $_G[setting][subnavs] $navid $subnav}-->
- <!--{if $_G['setting']['navsubhover'] || $mnid == $navid}-->
- <ul class="cl {if $mnid == $navid}current{/if}" id="snav_$navid" style="display:{if $mnid != $navid}none{/if}">
- $subnav
- </ul>
- <!--{/if}-->
- <!--{/loop}-->
- <!--{/if}-->
- </div>
- <!-- 内置广告位 -->
- <!--{ad/subnavbanner/a_mu}-->
- <!-- 导航下的搜索框 -->
- <!--{subtemplate common/pubsearchform}-->
- </div>
- </div>
- <!--{hook/global_header}-->
- <!--{/if}-->
- <div id="wp" class="wp">
posted on 2017-06-28 23:35 alleyonine 阅读(274) 评论(0) 编辑 收藏 举报