陈忠岩个人博客-一个生活在这个现实社会的小角色在讲述他的故事!

当前位置:首页 - 代码 - 正文

君子好学,自强不息!

【discuzx3.4】footer.htm模板代码分析

2018-09-06 | 代码 | 陈忠岩 | 146°c
A+ A-
 </div>
<!--{if empty($topic) || ($topic[usefooter])}-->
        <!--{eval $focusid = getfocus_rand($_G[basescript]);}-->
        <!--{if $focusid !== null}-->
                <!--{eval $focus = $_G['cache']['focus']['data'][$focusid];}-->
                <!--{eval $focusnum = count($_G['setting']['focus'][$_G[basescript]]);}-->
                <div class="focus" id="sitefocus">
                        <div class="bm">
                                <div class="bm_h cl">
                                        <a href="javascript:;" onclick="setcookie('nofocus_$_G[basescript]', 1, $_G['cache']['focus']['cookie']*3600);$('sitefocus').style.display='none'" class="y" title="{lang close}">{lang close}</a>
                                        <h2>
                                                <!--{if $_G['cache']['focus']['title']}-->{$_G['cache']['focus']['title']}<!--{else}-->{lang focus_hottopics}<!--{/if}-->
                                                <span id="focus_ctrl" class="fctrl"><img src="{IMGDIR}/pic_nv_prev.gif" alt="{lang footer_previous}" title="{lang footer_previous}" id="focusprev" class="cur1" onclick="showfocus('prev');" /> <em><span id="focuscur"></span>/$focusnum</em> <img src="{IMGDIR}/pic_nv_next.gif" alt="{lang footer_next}" title="{lang footer_next}" id="focusnext" class="cur1" onclick="showfocus('next')" /></span>
                                        </h2>
                                </div>
                                <div class="bm_c" id="focus_con">
                                </div>
                        </div>
                </div>
                <!--{eval $focusi = 0;}-->
                <!--{loop $_G['setting']['focus'][$_G[basescript]] $id}-->
                                <div class="bm_c" style="display: none" id="focus_$focusi">
                                        <dl class="xld cl bbda">
                                                <dt><a href="{$_G['cache']['focus']['data'][$id]['url']}" class="xi2" target="_blank">$_G['cache']['focus']['data'][$id]['subject']</a></dt>
                                                <!--{if $_G['cache']['focus']['data'][$id][image]}-->
                                                <dd class="m"><a href="{$_G['cache']['focus']['data'][$id]['url']}" target="_blank"><img src="{$_G['cache']['focus']['data'][$id]['image']}" alt="$_G['cache']['focus']['data'][$id]['subject']" /></a></dd>
                                                <!--{/if}-->
                                                <dd>$_G['cache']['focus']['data'][$id]['summary']</dd>
                                        </dl>
                                        <p class="ptn cl"><a href="{$_G['cache']['focus']['data'][$id]['url']}" class="xi2 y" target="_blank">{lang focus_show} &#187;</a></p>
                                </div>
                <!--{eval $focusi ++;}-->
                <!--{/loop}-->
                <script type="text/javascript">
                        var focusnum = $focusnum;
                        if(focusnum < 2) {
                                $('focus_ctrl').style.display = 'none';
                        }
                        if(!$('focuscur').innerHTML) {
                                var randomnum = parseInt(Math.round(Math.random() * focusnum));
                                $('focuscur').innerHTML = Math.max(1, randomnum);
                        }
                        showfocus();
                        var focusautoshow = window.setInterval('showfocus(\'next\', 1);', 5000);
                </script>
        <!--{/if}-->

        <!--{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}-->

        <!--{hook/global_footer}-->
        <div id="ft" class="wp cl">
<!--底部右侧导航信息-->
                <div id="flk" class="y">
                        <p>
                                <!--{if $_G['setting']['site_qq']}--><a href="http://wpa.qq.com/msgrd?v=3&uin=$_G['setting']['site_qq']&site=$_G['setting']['bbname']&menu=yes&from=discuz" target="_blank" title="QQ"><img src="{IMGDIR}/site_qq.jpg" alt="QQ" /></a><span class="pipe">|</span><!--{/if}-->
                                <!--{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' && $_G['uid'] || $nav['id'] == 'archiver' || $nav['id'] == 'mobile' || $nav['id'] == 'darkroom'))}-->$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  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 C::memory()->type}-->, <!--{echo C::memory()->type}--> On<!--{/if}-->.
                                <!--{/if}-->
                                </span>
                        </p>
                </div>
<!--底部左侧版权信息-->
                <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">&#169; 2001-2017 <a  target="_blank">Comsenz Inc.</a></p>
                </div>
                <!--{eval updatesession();}-->
                <!--{if $_G['uid'] && $_G['group']['allowinvisible']}-->
                        <script type="text/javascript">
                        var invisiblestatus = '<!--{if $_G['session']['invisible']}-->{lang login_invisible_mode}<!--{else}-->{lang login_normal_mode}<!--{/if}-->';
                        var loginstatusobj = $('loginstatusid');
                        if(loginstatusobj != undefined && loginstatusobj != null) loginstatusobj.innerHTML = invisiblestatus;
                        </script>
                <!--{/if}-->
        </div>
<!--{/if}-->

<!--{if !$_G['setting']['bbclosed'] && !$_G['member']['freeze'] && !$_G['member']['groupexpiry']}-->
        <!--{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 $_G[uid] && helper_access::check_module('follow') && !isset($_G['cookie']['checkfollow'])}-->
        <script type="text/javascript" src="home.php?mod=spacecp&ac=follow&op=checkfeed&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}-->

<!--{if $_GET['diy'] == 'yes'}-->
        <!--{if check_diy_perm($topic) && (empty($do) || $do != 'index')}-->
                <script type="text/javascript" src="{$_G[setting][jspath]}common_diy.js?{VERHASH}"></script>
                <script type="text/javascript" src="{$_G[setting][jspath]}portal_diy{if !check_diy_perm($topic, 'layout')}_data{/if}.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}-->
<!--{if $_G['uid'] && $_G['member']['allowadmincp'] == 1 && empty($_G['cookie']['pluginnotice'])}-->
        <div class="focus plugin" id="plugin_notice"></div>
        <script type="text/javascript">pluginNotice();</script>
<!--{/if}-->
<!--{if !$_G['setting']['bbclosed'] && !$_G['member']['freeze'] && !$_G['member']['groupexpiry'] && $_G['setting']['disableipnotice'] != 1 && $_G['uid'] && !empty($_G['cookie']['lip'])}-->
        <div class="focus plugin" id="ip_notice"></div>
        <script type="text/javascript">ipNotice();</script>
<!--{/if}-->
<!--{if $_G['member']['newprompt'] && (empty($_G['cookie']['promptstate_'.$_G[uid]]) || $_G['cookie']['promptstate_'.$_G[uid]] != $_G['member']['newprompt']) && $_GET['do'] != 'notice'}-->
        <script type="text/javascript">noticeTitle();</script>
<!--{/if}-->

<!--{if ($_G[member][newpm] || $_G[member][newprompt]) && empty($_G['cookie']['ignore_notice'])}-->
        <script type="text/javascript" src="{$_G[setting][jspath]}html5notification.js?{VERHASH}"></script>
        <script type="text/javascript">
        var h5n = new Html5notification();
        if(h5n.issupport()) {
                <!--{if $_G[member][newpm] && $_GET[do] != 'pm'}-->
                h5n.shownotification('pm', '$_G[siteurl]home.php?mod=space&do=pm', '<!--{avatar($_G[uid],small,true)}-->', '{lang newpm_subject}', '{lang newpm_notice_info}');
                <!--{/if}-->
                <!--{if $_G[member][newprompt] && $_GET[do] != 'notice'}-->
                                <!--{loop $_G['member']['category_num'] $key $val}-->
                                        <!--{eval $noticetitle = lang('template', 'notice_'.$key);}-->
                                        h5n.shownotification('notice_$key', '$_G[siteurl]home.php?mod=space&do=notice&view=$key', '<!--{avatar($_G[uid],small,true)}-->', '$noticetitle ($val)', '{lang newnotice_notice_info}');
                                <!--{/loop}-->
                <!--{/if}-->
        }
        </script>
<!--{/if}-->
<!--返回顶部-->
<div id="scrolltop">
        <!--{if $_G[fid] && $_G['mod'] == 'viewthread'}-->
        <span><a href="forum.php?mod=post&action=reply&fid=$_G[fid]&tid=$_G[tid]&extra=$_GET[extra]&page=$page{if $_GET[from]}&from=$_GET[from]{/if}" onclick="showWindow('reply', this.href)" class="replyfast" title="{lang fastreply}"><b>{lang fastreply}</b></a></span>
        <!--{/if}-->
        <span hidefocus="true"><a title="{lang scrolltop}" onclick="window.scrollTo('0','0')" class="scrolltopa" ><b>{lang scrolltop}</b></a></span>
        <!--{if $_G[fid]}-->
        <span>
                <!--{if $_G['mod'] == 'viewthread'}-->
                <a href="forum.php?mod=forumdisplay&fid=$_G[fid]" hidefocus="true" class="returnlist" title="{lang return_list}"><b>{lang return_list}</b></a>
                <!--{else}-->
                <a href="forum.php" hidefocus="true" class="returnboard" title="{lang return_forum}"><b>{lang return_forum}</b></a>
                <!--{/if}-->
        </span>
        <!--{/if}-->
</div>
<script type="text/javascript">_attachEvent(window, 'scroll', function () { showTopLink(); });checkBlind();</script>
<!--{if isset($_G['makehtml'])}-->
        <script type="text/javascript" src="{$_G[setting][jspath]}html2dynamic.js?{VERHASH}"></script>
        <script type="text/javascript">
                var html_lostmodify = {TIMESTAMP};
                htmlGetUserStatus();
                <!--{if isset($_G['htmlcheckupdate'])}-->
                htmlCheckUpdate();
                <!--{/if}-->
        </script>
<!--{/if}-->
<!--{eval output();}-->
</body>
</html>


本文来源:陈忠岩个人博客

本文地址:http://www.chenzhongyan.com/Code/176.html

关注我们:微信搜索“chen_zhongyan”添加我为好友

版权声明:如无特别注明,转载请注明本文地址!

发表评论

必填

选填

选填

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。


你好,朋友
真是美好的一天!
    最新文章 | 随机文章 | 热评文章
  • 陈忠岩个人博客
  • 巴彦生活网
  • 好DJ舞曲网
  • 订阅本站的 RSS 2.0 新闻聚合