header.html 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <!DOCTYPE html>
  2. <html lang="zh-cn">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  6. <title>
  7. {if !empty($title)}
  8. {$title} -
  9. {elseif !empty($_W['page']['title'])}
  10. {$_W['page']['title']} -
  11. {/if}
  12. {if !empty($_W['page']['sitename'])}
  13. {$_W['page']['sitename']}
  14. {else}
  15. {$_W['account']['name']}
  16. {/if}
  17. {if IMS_FAMILY == 'v'}
  18. - Powered by WE7.CC
  19. {/if}
  20. </title>
  21. <meta name="format-detection" content="telephone=no, address=no">
  22. <meta name="apple-mobile-web-app-capable" content="yes" /> <!-- apple devices fullscreen -->
  23. <meta name="apple-touch-fullscreen" content="yes"/>
  24. <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
  25. <meta name="keywords" content="{if empty($_W['page']['keywords'])}{if IMS_FAMILY != 'x'}微擎,微信,微信公众平台,w7.cc{/if}{else}{$_W['page']['keywords']}{/if}" />
  26. <meta name="description" content="{if empty($_W['page']['description'])}{if IMS_FAMILY != 'x'}公众平台自助引擎(www.w7.cc),简称微擎,微擎是一款免费开源的微信公众平台管理系统,是国内最完善移动网站及移动互联网技术解决方案。{/if}{else}{$_W['page']['description']}{/if}" />
  27. <link rel="shortcut icon" href="{$_W['siteroot']}{$_W['config']['upload']['attachdir']}/{if !empty($_W['setting']['copyright']['icon'])}{$_W['setting']['copyright']['icon']}{else}images/global/wechat.jpg{/if}" />
  28. <script src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script>
  29. {if $_W['container'] == 'baidu'}
  30. <script src="https://xiongzhang.baidu.com/sdk/c.js?appid={$_W['account']['jssdkconfig']['appId']}&timestamp={$_W['account']['jssdkconfig']['timestamp']}&nonce_str={$_W['account']['jssdkconfig']['nonceStr']}&signature={$_W['account']['jssdkconfig']['signature']}&url={$_W['account']['jssdkconfig']['url']}"></script>
  31. {/if}
  32. <script type="text/javascript" src="{$_W['siteroot']}app/resource/js/app/util.js"></script>
  33. <script src="{$_W['siteroot']}app/resource/js/require.js"></script>
  34. <script type="text/javascript" src="{$_W['siteroot']}app/resource/js/lib/jquery-1.11.1.min.js?v=20160906"></script>
  35. <script type="text/javascript" src="{$_W['siteroot']}app/resource/js/lib/mui.min.js?v=20160906"></script>
  36. <script type="text/javascript" src="{$_W['siteroot']}app/resource/js/app/common.js?v=20160906"></script>
  37. <link href="{$_W['siteroot']}app/resource/css/bootstrap.min.css?v=20160906" rel="stylesheet">
  38. <link href="{$_W['siteroot']}app/resource/css/common.min.css?v=20160906" rel="stylesheet">
  39. <script type="text/javascript">
  40. if(navigator.appName == 'Microsoft Internet Explorer'){
  41. if(navigator.userAgent.indexOf("MSIE 5.0")>0 || navigator.userAgent.indexOf("MSIE 6.0")>0 || navigator.userAgent.indexOf("MSIE 7.0")>0) {
  42. alert('您使用的 IE 浏览器版本过低, 推荐使用 Chrome 浏览器或 IE8 及以上版本浏览器.');
  43. }
  44. }
  45. window.sysinfo = {
  46. {if !empty($_W['uniacid'])}'uniacid': '{$_W['uniacid']}',{/if}
  47. {if !empty($_W['acid'])}'acid': '{$_W['acid']}',{/if}{if !empty($_W['openid'])}'openid': '{$_W['openid']}',{/if}
  48. {if !empty($_W['uid'])}'uid': '{$_W['uid']}',{/if}
  49. 'siteroot': '{$_W['siteroot']}',
  50. 'siteurl': '{$_W['siteurl']}',
  51. 'attachurl': '{$_W['attachurl']}',
  52. 'attachurl_local': '{$_W['attachurl_local']}',
  53. 'attachurl_remote': '{$_W['attachurl_remote']}',
  54. {if defined('MODULE_URL')}'MODULE_URL': '{MODULE_URL}',{/if}
  55. 'cookie' : {'pre': '{$_W['config']['cookie']['pre']}'}
  56. };
  57. // jssdk config 对象
  58. jssdkconfig = {php echo json_encode($_W['account']['jssdkconfig']);} || {};
  59. // 是否启用调试
  60. jssdkconfig.debug = false;
  61. jssdkconfig.jsApiList = [
  62. 'checkJsApi',
  63. 'onMenuShareTimeline',
  64. 'onMenuShareAppMessage',
  65. 'onMenuShareQQ',
  66. 'onMenuShareWeibo',
  67. 'hideMenuItems',
  68. 'showMenuItems',
  69. 'hideAllNonBaseMenuItem',
  70. 'showAllNonBaseMenuItem',
  71. 'translateVoice',
  72. 'startRecord',
  73. 'stopRecord',
  74. 'onRecordEnd',
  75. 'playVoice',
  76. 'pauseVoice',
  77. 'stopVoice',
  78. 'uploadVoice',
  79. 'downloadVoice',
  80. 'chooseImage',
  81. 'previewImage',
  82. 'uploadImage',
  83. 'downloadImage',
  84. 'getNetworkType',
  85. 'openLocation',
  86. 'getLocation',
  87. 'hideOptionMenu',
  88. 'showOptionMenu',
  89. 'closeWindow',
  90. 'scanQRCode',
  91. 'chooseWXPay',
  92. 'openProductSpecificView',
  93. 'addCard',
  94. 'chooseCard',
  95. 'openCard',
  96. 'openAddress'
  97. ];
  98. </script>
  99. </head>
  100. <body>
  101. <div class="container container-fill">
  102. {if $_W['container'] !== 'wechat' && ($_GPC['c'] == 'mc' || $_GPC['c'] == 'activity')}
  103. <header class="mui-bar mui-bar-nav">
  104. <button class="mui-btn mui-btn-link mui-btn-nav mui-pull-left mui-action-back">
  105. <span class="mui-icon mui-icon-left-nav"></span>
  106. 返回
  107. </button>
  108. <h1 class="mui-title">{if !empty($title)}{$title}{elseif !empty($_W['page']['title'])}{$_W['page']['title']}{/if}</h1>
  109. </header>
  110. {/if}