TaoLer/view/taoler/index/public/base.html

39 lines
1.2 KiB
HTML
Raw Normal View History

2020-01-01 13:17:19 +08:00
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>{block name="title"}标题{/block}</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="keywords" content="{block name="keywords"}关键词{/block}">
<meta name="description" content="{block name="description"}描述{/block}">
2020-05-29 18:17:46 +08:00
<link rel="stylesheet" href="/static/layui/css/layui.css" charset="utf-8">
2020-01-01 13:17:19 +08:00
<link rel="stylesheet" href="/static/res/css/global.css" charset="utf-8">
2020-05-29 18:17:46 +08:00
<style>
/*5+ 引擎环境下自动隐藏无关元素*/
.html5plus .html5plus-hide {
display: none
2020-06-02 17:41:56 +08:00
}
{if strpos($Request.SERVER.HTTP_USER_AGENT,"Html5Plus") !== false}
html body{margin-top: 1px;}
{/if}
2020-05-29 18:17:46 +08:00
</style>
<script src="/static/share/plusShare.js" type="text/javascript" charset="utf-8"></script>
2020-01-01 13:17:19 +08:00
</head>
<body >
2020-05-29 18:17:46 +08:00
<script>
if(navigator.userAgent.indexOf("Html5Plus") > -1) {
document.body.classList.add("html5plus");
}
</script>
2020-06-02 17:41:56 +08:00
{if strpos($Request.SERVER.HTTP_USER_AGENT,"Html5Plus") === false}
2020-01-01 13:17:19 +08:00
{include file="public/header" /}
2020-06-02 17:41:56 +08:00
{/if}
2020-01-01 13:17:19 +08:00
{block name="column"}导航{/block}
{block name="content"}内容{/block}
{include file="public/footer" /}
{include file="public/js" /}
{block name="script"}{/block}
</body>
</html>