header.php 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. <?php echo '周末设计商业模板保护!请购买正版模板, 客服QQ: 125422921 , http://www.wfdsoft.com/ ';exit;?>
  2. <!--{subtemplate common/header_common}-->
  3. <meta name="application-name" content="$_G['setting']['bbname']" />
  4. <meta name="msapplication-tooltip" content="$_G['setting']['bbname']" />
  5. <!--{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}-->
  6. <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" />
  7. <!--{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}-->
  8. <!--{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}-->
  9. <!--{if $_G['basescript'] == 'forum' && $_G['setting']['archiver']}-->
  10. <link rel="archives" title="$_G['setting']['bbname']" href="{$_G[siteurl]}archiver/" />
  11. <!--{/if}-->
  12. <!--{if !empty($rsshead)}-->$rsshead<!--{/if}-->
  13. <!--{if widthauto()}-->
  14. <link rel="stylesheet" id="css_widthauto" type="text/css" href='{$_G['setting']['csspath']}{STYLEID}_widthauto?{VERHASH}' />
  15. <script type="text/javascript">HTMLNODE.className += ' widthauto'</script>
  16. <!--{/if}-->
  17. <!--{if $_G['basescript'] == 'forum' || $_G['basescript'] == 'group'}-->
  18. <script type="text/javascript" src="{$_G[setting][jspath]}forum.js?{VERHASH}"></script>
  19. <!--{elseif $_G['basescript'] == 'home' || $_G['basescript'] == 'userapp'}-->
  20. <script type="text/javascript" src="{$_G[setting][jspath]}home.js?{VERHASH}"></script>
  21. <!--{/if}-->
  22. <!--{if $_G['basescript'] != 'portal' || $_GET['diy'] == 'yes' && check_diy_perm($topic)}-->
  23. <script type="text/javascript" src="{$_G[setting][jspath]}portal.js?{VERHASH}"></script>
  24. <!--{/if}-->
  25. <!--{if $_GET['diy'] == 'yes' && check_diy_perm($topic)}-->
  26. <link rel="stylesheet" type="text/css" id="diy_common" href="{$_G['setting']['csspath']}{STYLEID}_css_diy.css?{VERHASH}" />
  27. <!--{/if}-->
  28. </head>
  29. <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;" >
  30. <div id="append_parent"></div><div id="ajaxwaitid"></div>
  31. <!--{if $_GET['diy'] == 'yes' && check_diy_perm($topic)}-->
  32. <!--{template common/header_diy}-->
  33. <!--{/if}-->
  34. <!--{if check_diy_perm($topic)}-->
  35. <!--{template common/header_diynav}-->
  36. <!--{/if}-->
  37. <!--{if CURMODULE == 'topic' && $topic && empty($topic['useheader']) && check_diy_perm($topic)}-->
  38. $diynav
  39. <!--{/if}-->
  40. <!--{if empty($topic) || $topic['useheader']}-->
  41. <!--{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')}-->
  42. <div class="xi1 bm bm_c">
  43. {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>
  44. </div>
  45. <!--{/if}-->
  46. <!--{if $_G['setting']['shortcut'] && $_G['member'][credits] >= $_G['setting']['shortcut']}-->
  47. <div id="shortcut">
  48. <span><a href="javascript:;" id="shortcutcloseid" title="{lang close}">{lang close}</a></span>
  49. {lang shortcut_notice}
  50. <a href="javascript:;" id="shortcuttip">{lang shortcut_add}</a>
  51. </div>
  52. <script type="text/javascript">setTimeout(setShortcut, 2000);</script>
  53. <!--{/if}-->
  54. <div id="toptb" class="cl" style="display:none;">
  55. <!--{hook/global_cpnav_top}-->
  56. </div>
  57. <!--{if !IS_ROBOT}-->
  58. <!--{if $_G['uid']}-->
  59. <ul id="myprompt_menu" class="p_pop mt23" style="display: none;">
  60. <li><a href="home.php?mod=space&do=pm" id="pm_ntc" style="background-repeat: no-repeat; background-position: 0 50%;"><em class="prompt_news{if empty($_G[member][newpm])}_0{/if}"></em>{lang pm_center}</a></li>
  61. <li><a href="home.php?mod=follow&do=follower"><em class="prompt_follower{if empty($_G[member][newprompt_num][follower])}_0{/if}"></em><!--{lang notice_interactive_follower}-->{if $_G[member][newprompt_num][follower]}($_G[member][newprompt_num][follower]){/if}</a></li>
  62. <!--{if $_G[member][newprompt] && $_G[member][newprompt_num][follow]}-->
  63. <li><a href="home.php?mod=follow"><em class="prompt_concern"></em><!--{lang notice_interactive_follow}-->($_G[member][newprompt_num][follow])</a></li>
  64. <!--{/if}-->
  65. <!--{if $_G[member][newprompt]}-->
  66. <!--{loop $_G['member']['category_num'] $key $val}-->
  67. <li><a href="home.php?mod=space&do=notice&view=$key"><em class="notice_$key"></em><!--{echo lang('template', 'notice_'.$key)}-->(<span class="rq">$val</span>)</a></li>
  68. <!--{/loop}-->
  69. <!--{/if}-->
  70. <!--{if empty($_G['cookie']['ignore_notice'])}-->
  71. <li class="ignore_noticeli"><a href="javascript:;" onClick="setcookie('ignore_notice', 1);hideMenu('myprompt_menu')" title="{lang temporarily_to_remind}"><em class="ignore_notice"></em></a></li>
  72. <!--{/if}-->
  73. </ul>
  74. <!--{/if}-->
  75. <!--{if $_G['uid'] && !empty($_G['style']['extstyle'])}-->
  76. <div id="sslct_menu" class="cl p_pop" style="display: none;">
  77. <!--{if !$_G[style][defaultextstyle]}--><span class="sslct_btn" onClick="extstyle('')" title="{lang default}"><i></i></span><!--{/if}-->
  78. <!--{loop $_G['style']['extstyle'] $extstyle}-->
  79. <span class="sslct_btn" onClick="extstyle('$extstyle[0]')" title="$extstyle[1]"><i style='background:$extstyle[2]'></i></span>
  80. <!--{/loop}-->
  81. </div>
  82. <!--{/if}-->
  83. <!--{/if}-->
  84. <!--{ad/headerbanner/wp a_h}-->
  85. <div id="hd" style="background:#FFF; height:60px; border-bottom:1px solid #E6E6E6; "><div class="clear"></div>
  86. <div id="week_nav">
  87. <div class="wk_navwp">
  88. <div class="wk_lonav">
  89. <div class="wk_logo">
  90. <!--{eval $mnid = getcurrentnav();}-->
  91. <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>
  92. </div>
  93. <div class="wk_inav">
  94. <ul class="nav">
  95. <!--{loop $_G['setting']['navs'] $nav}-->
  96. <!--{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}-->
  97. <!--{/loop}-->
  98. </ul>
  99. <!--{hook/global_nav_extra}-->
  100. </div>
  101. </div>
  102. <div class="wk_idl">
  103. <div class="week-header-log">
  104. <ul class="week-log">
  105. <li class="log-dd-trigger" style="display:block;">
  106. <a>
  107. <span class="user_avatar">
  108. <!--{avatar($_G[uid],small)}-->
  109. </span>
  110. <img class="week-arrow" src="$_G['style']['styleimgdir']/log-arrow.png" width="10" height="6" >
  111. </a>
  112. <div class="u-box" style="display:none;"></div>
  113. <!--{template common/header_userstatus}-->
  114. </li>
  115. </ul>
  116. </div>
  117. </div>
  118. </div>
  119. </div>
  120. </div>
  121. <script type="text/javascript">
  122. window.jQuery && !window.handleHeaderProduct && (window.handleHeaderProduct = function() {
  123. FOM(".log-dd-trigger").hover(function() {
  124. FOM(".u-box").show(), FOM(".log-dropdown").show()
  125. }, function() {
  126. FOM(".u-box").hide(), FOM(".log-dropdown").hide()
  127. });
  128. }());
  129. </script>
  130. <!--{if !empty($_G['setting']['plugins']['jsmenu'])}-->
  131. <ul class="p_pop h_pop" id="plugin_menu" style="display: none">
  132. <!--{loop $_G['setting']['plugins']['jsmenu'] $module}-->
  133. <!--{if !$module['adminid'] || ($module['adminid'] && $_G['adminid'] > 0 && $module['adminid'] >= $_G['adminid'])}-->
  134. <li>$module[url]</li>
  135. <!--{/if}-->
  136. <!--{/loop}-->
  137. </ul>
  138. <!--{/if}-->
  139. <div class="sub_nav"> $_G[setting][menunavs] </div>
  140. <div id="mu" class="cl">
  141. <div class="wp">
  142. <!--{if $_G['setting']['subnavs']}-->
  143. <!--{loop $_G[setting][subnavs] $navid $subnav}-->
  144. <!--{if $_G['setting']['navsubhover'] || $mnid == $navid}-->
  145. <style>#mu {width:100%; overflow:hidden; background:#F2F2F2; display:block; }</style>
  146. <ul class="cl {if $mnid == $navid}current{/if}" id="snav_$navid" style="display:{if $mnid != $navid}none{/if}">
  147. $subnav
  148. </ul>
  149. <!--{/if}-->
  150. <!--{/loop}-->
  151. <!--{/if}-->
  152. </div>
  153. </div>
  154. <!--{ad/subnavbanner/a_mu}-->
  155. <!--{hook/global_header}-->
  156. <!--{/if}-->
  157. <!--{if $wk_nav}--><script type="text/javascript" src="$_G['style'][styleimgdir]/js/week_nav.js"></script><!--{/if}-->
  158. <div id="wp" class="wp">