TaoLer/view/taoler/index/public/base.html
2022-08-02 20:47:28 +08:00

67 lines
2.3 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="renderer" content="webkit">
<meta name="force-rendering" content="webkit">
<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}">
<meta property="og:type" content="article">
<meta property="og:site_name" content="{$sysInfo.webname}" />
<meta property="og:url" content="{$Request.domain}{$Request.url}">
{block name="ogtitle"} {/block}
{block name="ogdescription"} {/block}
{block name="ogimage"} {/block}
<meta name="applicable-device" content="pc,mobile">
<link rel="canonical" href="{$Request.domain}{$Request.url}">
<link rel="stylesheet" href="{$Request.domain}/static/layui/css/layui.css" charset="utf-8">
<link rel="stylesheet" href="{$Request.domain}/static/res/css/global.css" charset="utf-8">
{block name="link"}{/block}
<style>
/*5+ 引擎环境下自动隐藏无关元素*/
.html5plus .html5plus-hide {
display: none
}
{if strpos($Request.SERVER.HTTP_USER_AGENT,"Html5Plus") !== false}
html body{margin-top: 1px;}
{/if}
</style>
<script src="{$Request.domain}/static/share/plusShare.js" type="text/javascript" charset="utf-8"></script>
</head>
<body >
<script>
if(navigator.userAgent.indexOf("Html5Plus") > -1) {
document.body.classList.add("html5plus");
}
</script>
{if strpos($Request.SERVER.HTTP_USER_AGENT,"Html5Plus") === false}
{include file="public/header" /}
{/if}
{block name="column"}导航{/block}
{block name="content"}内容{/block}
{include file="public/footer" /}
<script>
layui.cache.page = '{$jspage}';
layui.cache.user = {
username: "{$user.name??'游客'}"
,uid: "{$user.id ?? -1}"
,avatar: '/static/res/images/avatar/00.jpg'
,experience: "{$user.point ?? ''}"
,sex: "{$user.sex ? '女':'男'}"
};
layui.config({
version: "3.0.0"
,base: '/static/res/mods/'
}).extend({
fly: 'index'
}).use('fly');
</script>
{block name="script"}{/block}
</body>
</html>