人人商城

footer-gw.html 2.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. </div>
  2. </div>
  3. <script type="text/javascript">
  4. require(['bootstrap']);
  5. {if $_W['isfounder'] && !defined('IN_MESSAGE')}
  6. function checkupgrade() {
  7. require(['util'], function(util) {
  8. if (util.cookie.get('checkupgrade_sys')) {
  9. return;
  10. }
  11. $.getJSON("{url 'utility/checkupgrade/system'}", function(ret){
  12. if (ret && ret.message && ret.message.upgrade == '1') {
  13. $('body').prepend('<div id="upgrade-tips" class="upgrade-tips"><a href="./index.php?c=cloud&a=upgrade&">系统检测到新版本 '+ret.message.version+' ('+ ret.message.release +') ,请尽快更新!</a><span class="tips-close" style="background:#d03e14;" onclick="checkupgrade_hide();"><i class="fa fa-times-circle"></i></span></div>');
  14. if ($('#upgrade-tips-module').size()) {
  15. $('#upgrade-tips').css('top', '25px');
  16. }
  17. }
  18. });
  19. });
  20. }
  21. function checkupgrade_hide() {
  22. require(['util'], function(util) {
  23. util.cookie.set('checkupgrade_sys', 1, 3600);
  24. $('#upgrade-tips').hide();
  25. });
  26. }
  27. $(function(){
  28. checkupgrade();
  29. });
  30. {/if}
  31. {if $_W['uid']}
  32. function checknotice() {
  33. $.post("{php echo url('utility/notice')}", {}, function(data){
  34. var data = $.parseJSON(data);
  35. $('#notice-container').html(data.notices);
  36. $('#notice-total').html(data.total);
  37. if(data.total > 0) {
  38. $('#notice-total').css('background', '#ff9900');
  39. } else {
  40. $('#notice-total').css('background', '');
  41. }
  42. setTimeout(checknotice, 60000);
  43. });
  44. }
  45. checknotice();
  46. {/if}
  47. </script>
  48. <div class="center-block footer" role="footer">
  49. <div class="text-center">
  50. {if empty($_W['setting']['copyright']['footerright'])}<a href="http://www.we7.cc">关于微擎</a>&nbsp;&nbsp;<a href="http://bbs.we7.cc">微擎论坛</a>&nbsp;&nbsp;<a href="http://wpa.b.qq.com/cgi/wpa.php?ln=1&key=XzkzODAwMzEzOV8xNzEwOTZfNDAwMDgyODUwMl8yXw">联系客服</a>{else}{$_W['setting']['copyright']['footerright']}{/if}{if !empty($_W['setting']['copyright']['statcode'])}{$_W['setting']['copyright']['statcode']}{/if}
  51. </div>
  52. <div class="text-center">
  53. {if empty($_W['setting']['copyright']['footerleft'])}Powered by <a href="http://www.we7.cc"><b>微擎</b></a> v{IMS_VERSION} &copy; 2014-2015 <a href="http://www.we7.cc">www.we7.cc</a>{else}{$_W['setting']['copyright']['footerleft']}{/if}
  54. </div>
  55. </div>
  56. </div>
  57. {if !empty($_W['setting']['copyright']['statcode'])}{$_W['setting']['copyright']['statcode']}{/if}
  58. </body>
  59. </html>