base.html 1.5 KB

123456789101112131415161718192021222324
  1. <!DOCTYPE html>
  2. <html>
  3. <head >
  4. <meta charset="utf-8">
  5. <meta name="description" content="{$meta_description|default=''}">
  6. <meta name="keywords" content="{$meta_keywords|default=''}">
  7. <meta content="yes" name="apple-mobile-web-app-capable">
  8. <meta content="telephone=no" name="format-detection">
  9. <meta content="email=no" name="format-detection">
  10. <meta content="black" name="apple-mobile-web-app-status-bar-style">
  11. <title>{$title|default=''}<?php echo C('SITE_TITLE'); ?></title>
  12. <script>!function(e){function t(){e.rem=m.getBoundingClientRect().width/16,m.style.fontSize=e.rem+"px"}var i,n=e.navigator.appVersion.match(/iphone/gi)?e.devicePixelRatio:1,a=1/n,m=document.documentElement,r=document.createElement("meta");if(e.dpr=n,e.addEventListener("resize",function(){clearTimeout(i),i=setTimeout(t,300)},!1),e.addEventListener("pageshow",function(e){e.persisted&&(clearTimeout(i),i=setTimeout(t,300))},!1),m.setAttribute("data-dpr",n),r.setAttribute("name","viewport"),r.setAttribute("content","initial-scale="+a+", maximum-scale="+a+", minimum-scale="+a+", user-scalable=no"),m.firstElementChild)m.firstElementChild.appendChild(r);else{var d=document.createElement("div");d.appendChild(r),document.write(d.innerHTML)}t()}(window)</script>
  13. <script src="/Common/js/jquery/jquery-2.0.3.min.js"></script>
  14. <link rel="stylesheet" href="__PUBLIC__/css/style.css">
  15. <block name="head_script"></block>
  16. </head>
  17. <body>
  18. <block name="content"></block>
  19. <block name="foot_script"></block>