Page header file path:template/default/common/header.htm
header.htm file two times the files loaded are:
Template/default/common/header_common.htm
Global public File
|--This file contains the page title, the browser declaration, and the basic code that must exist globally, so it is not recommended that the novice modify this file
Template/default/common/header_diy.htm
DIY floating Layer menu loaded
Template/default/common/member/login_simple.htm
Top right corner mini-Login box (call this file when not logged in)
in addition to retaining
The code that the Ajax interactivity in the page must rely on:
- <div id= "append_parent" ></div><div id= "Ajaxwaitid" ></div>
The code required for the DIY feature:
- <!--{if $_get[' diy '] = = ' Yes ' && (curmodule = = ' topic ' | | $_g[' group ' [' Allowdiy ']) &&!empty ($_g[' sty Le ' [' tplfile '])}-->
- <!--{Template common/header_diy}-->
- <!--{/if}-->
- <!--{if curmodule = = ' topic ' && $topic && empty ($topic [' Useheader ') &&!empty ($_g[' style '] [ ' Tplfile ') && ($_g[' group '] [' Allowdiy '] | | $_g[' group ' [' Allowaddtopic '] && $topic [' uid '] = = $_g[' uid '] | | $_g[' group ' [' Allowmanagetopic '])}-->
- <a id= "DIY-TG" href= "Javascript:opendiy ();" title= "{lang open_diy}" class= "y" ></a>
- <!--{/if}-->
Page Header ad Calling code: placed on <div id= "HD" > above
- <!--{ad/headerbanner/wp a_h}-->
The current position of the navigation bar gets the code, must be placed in front of the logo code
- <!--{eval $mnid = Getcurrentnav ();} -
Second-level navigation call code: placed behind level two navigation code
- <!--{ad/subnavbanner/a_mu}-->
Page Header Search bar code, according to the structure of your template to put in the desired location
- <!--{Subtemplate common/pubsearchform}-->
Global Framework code, closed in the first line of the footer.htm file </div>
- <div id= "WP" class= "WP" >
In addition, the header file contains several plug-in embedded point code, as a complete discuz template, plug-in hooks must exist:
Top navigation left inset point:
- <!--{hook/global_cpnav_extra1}-->
Top Navigation right embedded point:
- <!--{hook/global_cpnav_extra2}-->
Top right sign-in status embed point (front of personal settings):
- <!--{hook/global_usernav_extra1}-->
Top right sign-in status embedding Point (Exit button front):
- <!--{hook/global_usernav_extra2}-->
Upper right Sign-in status embedding point (second row first bit):
- <!--{hook/global_usernav_extra3}-->
Global FooterEnd-of- page file path:template/default/common/footer.htm
The footer file takes on the important finishing work of the whole template, and if the necessary code is missing, it will also cause the whole program to not function properly!
Footer file First sentence (must exist):
- </div>
- PS: This closed tag is the page header file of the <div id= "WP" class= "WP" >
Webmaster Recommendation function Call Code:
- <!--{eval $focusid = Getfocus_rand ($_g[basescript]);} -
- <!--{if $focusid!== null}-->
- <!--{eval $focus = $_g[' cache ' [' Focus '] [' data '] [$FOCUSID];} -
- <div class= "Focus" id= "Sitefocus" >
- <div class= "BM" >
- <div class= "Bm_h cl" >
- <a href= "javascript:" onclick= "Setcookie (' Nofocus_$focusid ', 1, $_g[' cache '] [' Focus '] [' Cookie ']*3600); $ (' Sitefocus '). style.display= ' None ' "class=" y "title=" {lang close} ">{lang close}</a>
- </div>
- <div class= "Bm_c" >
- <DL class= "XLD cl Bbda" >
- <dt><a href= "{$focus [' url ']}" class= "Xi2" target= "_blank" > $focus [' Subject ']</a></dt>
- <!--{if $focus [image]}-->
- <dd class= "M" ><a href= "{$focus [' url ']}" target= "_blank" ></a></dd>
- <!--{/if}-->
- <dd> $focus [' Summary ']</dd>
- </dl>
- <p class= "Ptn HM" ><a href= "{$focus [' url ']}" class= "Xi2" target= "_blank" >{lang focus_show} »< /a></p>
- </div>
- </div>
- </div>
- <!--{/if}-->
Global footer AD Code invocation (must exist):
- <!--{ad/footerbanner/wp a_f/1}--><!--{ad/footerbanner/wp a_f/2}--><!--{ad/footerbanner/wp a_f/3}-- >
- <!--{ad/float/a_fl/1}--><!--{ad/float/a_fr/2}-->
- <!--{Ad/couplebanner/a_fl a_cb/1}--><!--{ad/couplebanner/a_fr a_cb/2}-->
- <!--{ad/cornerbanner/a_cn}-->
Footer Plugin Embedding point: (Must exist!) )
- <!--{hook/global_footer}-->
Page Footer Left frame copyright information (must exist)
- <div id= "Frt" >
- <p>powered by <strong><a href= "http://www.discuz.net" target= "_blank" >discuz!</a></ strong> <em>$_g[' Setting ' [' Version ']</em><!--{if!empty ($_g[' setting ' [' boardlicensed '])}-- > <a href= "http://license.comsenz.com/?pid=1&host=$_server[http_host]" target= "_blank" >Licensed</ a><!--{/if}--></p>
- <p class= "Xs0" >© 2001-2011 <a href= "http://www.comsenz.com" target= "_blank" >comsenz inc.</a></p>
- </div>
Footer with frame menu, record, execution time, statistical code
- <div id= "Flk" class= "Y" >
- <p>
- <!--{loop $_g[' setting ' [' Footernavs '] $nav}--><!--{if $nav [' Available '] && ($nav [' type '] & & (! $nav [' Level '] | | ($nav [' level '] = = 1 && $_g[' uid ']) | | ($nav [' level '] = = 2 && $_g[' Adminid '] > 0) | | ($nav [' level '] = = 3 && $_g[' adminid '] = = 1)) ||
- $nav [' type '] && ($nav [' id '] = = ' stat ' && $_g[' group ' [' Allowstatdata '] | | $nav [' id '] = = ' report ' &&A mp $_g[' UID ' | | $nav [' id '] = = ' Archiver ' | | $nav [' id '] = = ' mobile ')}--><!--{if $nav [' id '] = = ' mobile ' && $_g[' setting ' [' Mobile '] [' allowmobile ']! = 1}--><!--{eval continue;} --><!--{/if}--> $nav [Code]<span class= "pipe" >|</span><!--{/if}--><!--{/loop}-->
- <strong><a href= "$_g[' setting ' [' SiteURL ']" target= "_blank" >$_g[' setting ' [' SiteName ']</a><] /strong>
- <!--{if $_g[' setting ' [' ICP ']}--> (<a href= "http://www.miitbeian.gov.cn/" target= "_blank" >$_g["setting ' [' ICP ']</a>] <!--{/if}-->
- <!--{hook/global_footerlink}-->
- <!--{if $_g[' setting '] [' statcode ']}-->$_g[' setting ' [' Statcode ']<!--{/if}-->
- </p>
- <p class= "Xs0" >
- {lang Time_now}
- <span id= "Debuginfo" >
- <!--{if debuginfo ()}-->, processed in $_g[debuginfo][time] second (s), $_g[debuginfo][queries] Queries
- <!--{if $_g[' gzipcompress ']}-->, Gzip on<!--{/if}--><!--{if $_g[' memory ']}-->, <!--{echo Ucwords ($_g[' memory ')}--> on<!--{/if}-->.
- <!--{/if}-->
- </span>
- </p>
- </div>
User activity information Record code (must exist):
- <!--{eval updatesession ();} -
- PS: The lack of this code directly results in the user's online time and other information cannot be recorded
User upgrade information pop-up layer: (Top right corner of the page user Group connection popup)
- <!--{if $upgradecredit!== false}-->
- <div id= "G_upmine_menu" class= "Tip tip_3" style= "Display:none;" >
- <div class= "Tip_c" >
- {lang credits} $_g[member][credits], {lang thread_groupupgrade} $upgradecredit {lang credits}
- </div>
- <div class= "Tip_horn" ></div>
- </div>
- <!--{/if}-->
User short message, site mail send trigger code (must exist)
- <!--{if!$_g[' setting ' [' bbclosed ']}-->
- <!--{if $_g[uid] &&!isset ($_g[' cookie '] [' checkpm '])}-->
- <script type= "Text/javascript" src= "Home.php?mod=spacecp&ac=pm&op=checknewpm&rand=$_g[timestamp]" ></script>
- <!--{/if}-->
- <!--{if!isset ($_g[' cookie '] [' sendmail '])}-->
- <script type= "Text/javascript" src= "Home.php?mod=misc&ac=sendmail&rand=$_g[timestamp]" ></script >
- <!--{/if}-->
- <!--{/if}-->
Scripts required to use the DIY feature (must exist):
- <!--{if $_get[' diy '] = = ' Yes '}-->
- <!--{if (Curmodule = = ' topic ' | | $_g[' group '] [' allowdiy ']) && (Empty ($do) | | $do! = ' index ') &&!empty ( $_g[' style ' [' tplfile '])}-->
- <script type= "Text/javascript" src= "{$_g[setting][jspath]}common_diy.js? {Verhash} "></script>
- <script type= "Text/javascript" src= "{$_g[setting][jspath]}portal_diy.js? {Verhash} "></script>
- <!--{/if}-->
- <!--{if $space [' self '] && curmodule = = ' Space ' && $do = = ' Index '}-->
- <script type= "Text/javascript" src= "{$_g[setting][jspath]}common_diy.js? {Verhash} "></script>
- <script type= "Text/javascript" src= "{$_g[setting][jspath]}space_diy.js? {Verhash} "></script>
- <!--{/if}-->
- <!--{/if}-->
User Alert function Status change (must exist):
- <!--{if $_g[' member ' [' Newprompt '] && (empty ($_g[' cookie '] [' promptstate_ '. $_g[uid]]) | | $_g[' cookie ' [' Promptstate_ '. $_g[uid]]! = $_g[' member ' [' Newprompt ']) && $_g[' Gp_do ']! = ' notice '}-->
- <script type= "Text/javascript" >noticetitle ();</script>
- <!--{/if}-->
Roaming notification Trigger code: (Administrator popup roaming notification)
- <!--{eval userappprompt ();} -
Return to top floating menu
- <!--{if $_g[' basescript ']! = ' Userapp '}-->
- <span id= "scrolltop" onclick= "Window.scrollto (' 0 ', ' 0 ')" >{lang scrolltop}</span>
- <script type= "text/javascript" >_attachevent (window, ' scroll ', function () {Showtoplink ();}); </script>
- <!--{/if}-->
program function last processing code (must exist)
- <!--{eval output ();} -
- PS: Pseudo-static, module update, gzip, etc.
(GO) discuz Tutorial: The interface structure you must know before you create a site template (header footer template file)