模板组件:header_meta.tpl 头部meta共用文件

<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="renderer" content="webkit">
<link rel="shortcut icon" href="{$root}favicon.ico" type="image/x-icon" />
<link rel="stylesheet" href="{$public_path}bootstrap/3.3.5/css/bootstrap.min.css">
<link rel="stylesheet" href="{$tpl_path}system.css?{%feifeicms_version}">
<script type="text/javascript">var cms = {
root:"{$root}",urlhtml:"{$Think.config.url_html}",sid:"{$site_sid}",id:"{$vod_id}{$news_id}{$special_id}",userid:"{$site_user_id}",username:"{$site_user_name}",userforum:"{$Think.config.user_forum}",page:"{$list_page|default=1}",domain_m:"{$site_domain_m}"
};</script><script type="text/javascript" src="{$public_path}jquery/1.11.3/jquery.min.js"></script>
<script type="text/javascript" src="{$public_path}bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script type="text/javascript" src="{$public_path}js/system.js?{%feifeicms_version}"></script>
<!--[if lt IE 9]>
<script src="{$public_path}html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="{$public_path}respond/1.4.2/respond.min.js"></script>
<![endif]-->
模板开发基础组件,加载系统必须的CSS与JS,每个模板都需要加载,调用方法
<include file="Block:header_meta" />

0 个评论

要回复文章请先登录注册