footer.html 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. {if empty($footer_off)}
  2. <div class="text-center footer" style="margin:10px 0; width:100%; text-align:center; word-break:break-all;">
  3. {if !empty($_W['page']['footer'])}
  4. {$_W['page']['footer']}
  5. {else}
  6. {if IMS_FAMILY == 'v'}<a href="http://www.w7.cc">关于微擎</a>&nbsp;&nbsp;<a href="https://bbs.5g-yun.com">微擎帮助</a>{/if}
  7. {/if}
  8. &nbsp;&nbsp;{$_W['setting']['copyright']['statcode']}
  9. </div>
  10. {/if}
  11. {if $_GPC['c'] == 'home' && $_GPC['a'] == 'page'}
  12. {if $bottom_menu}
  13. {data func="site_quickmenu"}{/data}
  14. {/if}
  15. {else}
  16. {if $_GPC['m'] != 'paycenter'}
  17. {data func="site_quickmenu"}{/data}
  18. {/if}
  19. {/if}
  20. </div>
  21. <style>
  22. h5{color:#555;}
  23. </style>
  24. <?php
  25. $_share['title'] = !empty($_share['title']) ? $_share['title'] : $_W['account']['name'];
  26. $_share['imgUrl'] = !empty($_share['imgUrl']) ? $_share['imgUrl'] : '';
  27. if(isset($_share['content'])){
  28. $_share['desc'] = $_share['content'];
  29. unset($_share['content']);
  30. }
  31. $_share['desc'] = !empty($_share['desc']) ? $_share['desc'] : '';
  32. $_share['desc'] = preg_replace('/\s/i', '', str_replace(' ', '', cutstr(str_replace('&nbsp;', '', ihtmlspecialchars(strip_tags($_share['desc']))), 60)));
  33. if(empty($_share['link'])) {
  34. $_share['link'] = '';
  35. $query_string = $_SERVER['QUERY_STRING'];
  36. if(!empty($query_string)) {
  37. parse_str($query_string, $query_arr);
  38. $query_arr['u'] = $_W['member']['uid'];
  39. $query_string = http_build_query($query_arr);
  40. $_share['link'] = $_W['siteroot'].'app/index.php?'. $query_string;
  41. }
  42. }
  43. ?>
  44. <script type="text/javascript">
  45. $(function(){
  46. wx.config(jssdkconfig);
  47. var $_share = {php echo json_encode($_share);};
  48. if(typeof sharedata == 'undefined'){
  49. sharedata = $_share;
  50. } else {
  51. sharedata['title'] = sharedata['title'] || $_share['title'];
  52. sharedata['desc'] = sharedata['desc'] || $_share['desc'];
  53. sharedata['link'] = sharedata['link'] || $_share['link'];
  54. sharedata['imgUrl'] = sharedata['imgUrl'] || $_share['imgUrl'];
  55. }
  56. if(sharedata.imgUrl == ''){
  57. var _share_img = $('body img:eq(0)').attr("src");
  58. if(_share_img){
  59. sharedata['imgUrl'] = util.tomedia(_share_img);
  60. }
  61. }
  62. if(sharedata.imgUrl == ""){
  63. sharedata.imgUrl = window.sysinfo.attachurl + 'images/global/wechat_share.jpg';
  64. }
  65. if(sharedata.desc == ''){
  66. var _share_content = util.removeHTMLTag($('body').html());
  67. if(typeof _share_content == 'string'){
  68. sharedata.desc = _share_content.replace($_share['title'], '')
  69. }
  70. }
  71. wx.ready(function () {
  72. wx.onMenuShareAppMessage(sharedata);
  73. wx.onMenuShareTimeline(sharedata);
  74. wx.onMenuShareQQ(sharedata);
  75. wx.onMenuShareWeibo(sharedata);
  76. });
  77. {if $controller == 'site' && $action == 'site'}
  78. $('#category_show').click(function(){
  79. $('.head .order').toggleClass('hide');
  80. return false;
  81. });
  82. //文章点击和分享加积分
  83. {if !empty($_GPC['u'])}
  84. var url = "{php echo url('site/site/handsel/', array('id' => $detail['id'], 'action' => 'click', 'u' => $_GPC['u']), true);}";
  85. $.post(url, function(dat){});
  86. {/if}
  87. sharedata.success = function(){
  88. var url = "{php echo url('site/site/handsel/', array('id' => $detail['id'], 'action' => 'share'));}";
  89. $.post(url, function(dat){});
  90. }
  91. {/if}
  92. if ($('.js-quickmenu').size() > 0) {
  93. // var h = $('.js-quickmenu .nav-home').height()+20+'px';
  94. // $('body').css("padding-bottom",h);
  95. // $('body .mui-content').css("bottom",h);
  96. } else if($('.nav-menu-app').size() > 0) {
  97. var h = $('.nav-menu-app').height()+'px';
  98. $('body').css("padding-bottom",h);
  99. $('.mui-content').css('bottom',h);
  100. } else {
  101. $('body').css("padding-bottom", "0");
  102. $('.mui-content').css('bottom', "0");
  103. }
  104. });
  105. </script>
  106. <script type="text/javascript" src="{$_W['siteroot']}app/index.php?i={$_W['uniacid']}&c=utility&a=visit&do=showjs&m={$_W['current_module']['name']}"></script>
  107. </body>
  108. </html>