官网页面代码仅为演示,非实时更新,请以压缩包内模板代码为准。
公用页脚,必须包含3个部分的代码。
<?php $db = GLOBALS('db');?>
<?php $starttime = GLOBALS('starttime');?>
<?php $time = GLOBALS('time');?>
<?php $ip = GLOBALS('ip');?>
<?php $useragent = GLOBALS('useragent');?>
<?php $forumlist = GLOBALS('forumlist');?>
<?php $forumarr = GLOBALS('forumarr');?>
<?php $fid = GLOBALS('fid');?>
<?php $conf = GLOBALS('conf');?>
<?php $config = GLOBALS('config');?>
<?php $static_version = $conf['static_version'];?>
<!--{hook footer_start.htm}-->
<?php echo xn_debug_info(); ?>
第二部分代码
<!--[if ltg IE 9]>
<script>window.location = '<?php echo url('browser');?>';</script>
<![endif]-->
<!--{hook footer_js_before.htm}-->
<?php $browser = get__browser();?>
<?php if('ie' == $browser['name']) { ?>
<script src="<?php echo view_path();?>js/es6-shim.js<?php echo $static_version;?>"></script>
<?php } ?>
<script src="<?php echo $conf['path'];?>lang/<?php echo $conf['lang'];?>/lang.js<?php echo $static_version;?>"></script>
<script src="<?php echo view_path();?>js/jquery.min.js<?php echo $static_version;?>"></script>
<script src="<?php echo view_path();?>js/popper.min.js<?php echo $static_version;?>"></script>
<script src="<?php echo view_path();?>js/bootstrap.min.js<?php echo $static_version;?>"></script>
<script src="<?php echo view_path();?>js/xiuno.js<?php echo $static_version;?>"></script>
<script src="<?php echo view_path();?>js/bootstrap-plugin.js<?php echo $static_version;?>"></script>
<script src="<?php echo view_path();?>js/async.min.js<?php echo $static_version;?>"></script>
<script src="<?php echo view_path();?>js/form.js<?php echo $static_version;?>"></script>
<script>
var debug = DEBUG = <?php echo DEBUG; ?>;
var url_rewrite_on = <?php echo $conf['url_rewrite_on'];?>;
var url_path = '<?php echo $conf['path'];?>';
var forumarr = <?php echo xn_json_encode($forumarr);?>;
var fid = <?php echo $fid;?>;
var uid = <?php echo intval($uid);?>;
var gid = <?php echo intval($gid);?>;
xn.options.water_image_url = '<?php echo view_path(),$conf['logo_water_url'];?>'; /*水印图片 / watermark image*/
</script>
<script src="<?php echo view_path();?>js/wellcms.js<?php echo $static_version;?>"></script>
<!-- 图片赖加载需要的自己删掉注释
<script src="<?php echo view_path();?>js/echo.min.js<?php echo $static_version;?>"></script>
<script>
(function ($) {
path = "<?php echo $conf['path'];?>";
$("body img").each(function(k, v){var img = $("img").get(k).outerHTML;img = img.replace('src', 'data-echo');$(this).replaceWith(img);});
})(jQuery);
echo.init({offset: 100,throttle: 250,unload: false});
</script>
-->
<!-- 滚动到顶 Scroll to Top Button 如果自己写代码,scroll-to-top 这个class加上就可以 -->
<a class="scroll-to-top rounded" href="javascript:void(0);">
<i class="icon-angle-up"></i>
</a>
<!-- 滚动到底 Scroll to bottom Button 如果自己写代码,scroll-to-bottom 这个class加上就可以 -->
<a class="scroll-to-bottom rounded" href="javascript:void(0);" style="display: inline;">
<i class="icon-angle-down"></i>
</a>
<!--{hook footer_js_after.htm}-->
第三部分代码
<!-- 计划任务,这个必须包含在页脚 --> <?php echo cron_run();?>
加载自己的js文件
<script src="<?php echo view_path();?>template/demo/js/****.js<?php echo $static_version;?>"></script>
路径中的demo和***替换成自己的目录和文件名
具体可参照官方默认文件
样式文件 view/htm/footer_nav.inc.htm
公用页脚 view/htm/footer.inc.htm