Files
shopxo/application/index/view/default/public/header.html

98 lines
5.1 KiB
HTML
Raw Normal View History

2018-12-28 18:58:37 +08:00
<!DOCTYPE html>
<html>
<head>
2018-12-29 13:13:09 +08:00
<meta charset="{{:config('shopxo.default_charset', 'utf-8')}}" />
2018-12-28 18:58:37 +08:00
<title>{{$home_seo_site_title}}</title>
2019-05-05 11:29:55 +08:00
<meta name="keywords" content="{{$home_seo_site_keywords}}" />
<meta name="description" content="{{$home_seo_site_description}}" />
2019-10-16 15:06:46 +08:00
<meta name="generator" content="{{$Think.__MY_URL__}}" />
2018-12-28 18:58:37 +08:00
<meta name="application-name" content="{{$home_seo_site_title}}" />
<meta name="msapplication-tooltip" content="{{$home_seo_site_title}}" />
2019-10-16 15:06:46 +08:00
<meta name="msapplication-starturl" content="{{$Think.__MY_URL__}}" />
<link rel="shortcut icon" type="image/x-icon" href="{{$Think.__MY_PUBLIC_URL__}}favicon.ico" />
2018-12-28 18:58:37 +08:00
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1, maximum-scale=1">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-title" content="{{:MyC('home_site_name')}}">
2019-10-16 15:06:46 +08:00
<link rel="apple-touch-icon" href="{{:AttachmentPathViewHandle(MyC('home_site_desktop_icon'))}}">
<link rel="apple-touch-icon-precomposed" href="{{:AttachmentPathViewHandle(MyC('home_site_desktop_icon'))}}">
2018-12-28 18:58:37 +08:00
2019-01-11 17:35:35 +08:00
<link rel="stylesheet" type="text/css" href="{{$Think.__MY_ROOT_PUBLIC__}}static/common/lib/assets/css/amazeui.css?v={{:MyC('home_static_cache_version')}}" />
<link rel="stylesheet" type="text/css" href="{{$Think.__MY_ROOT_PUBLIC__}}static/common/lib/amazeui-switch/amazeui.switch.css?v={{:MyC('home_static_cache_version')}}" />
<link rel="stylesheet" type="text/css" href="{{$Think.__MY_ROOT_PUBLIC__}}static/common/lib/amazeui-chosen/amazeui.chosen.css?v={{:MyC('home_static_cache_version')}}" />
<link rel="stylesheet" type="text/css" href="{{$Think.__MY_ROOT_PUBLIC__}}static/common/lib/cropper/cropper.min.css?v={{:MyC('home_static_cache_version')}}" />
2019-05-23 17:57:23 +08:00
<link rel="stylesheet" type="text/css" href="{{$Think.__MY_ROOT_PUBLIC__}}static/common/lib/amazeui-tagsinput/amazeui.tagsinput.css?v={{:MyC('home_static_cache_version')}}" />
2018-12-28 18:58:37 +08:00
2019-01-11 17:35:35 +08:00
<link rel="stylesheet" type="text/css" href="{{$Think.__MY_ROOT_PUBLIC__}}static/common/css/common.css?v={{:MyC('home_static_cache_version')}}" />
<link rel="stylesheet" type="text/css" href="{{$Think.__MY_ROOT_PUBLIC__}}static/index/{{$default_theme}}/css/common.css?v={{:MyC('home_static_cache_version')}}" />
2019-04-30 16:27:01 +08:00
{{if !empty($plugins_css)}}
<link rel="stylesheet" type="text/css" href="{{$Think.__MY_ROOT_PUBLIC__}}static/{{$plugins_css}}?v={{:MyC('home_static_cache_version')}}" />
{{/if}}
2018-12-28 18:58:37 +08:00
{{if !empty($module_css)}}
2019-01-11 17:35:35 +08:00
<link rel="stylesheet" type="text/css" href="{{$Think.__MY_ROOT_PUBLIC__}}static/{{$module_css}}?v={{:MyC('home_static_cache_version')}}" />
2018-12-28 18:58:37 +08:00
{{/if}}
2019-02-15 22:57:26 +08:00
<!-- css钩子 -->
2019-02-17 12:52:06 +08:00
{{if !empty($plugins_css_data) and is_array($plugins_css_data)}}
2019-02-15 22:57:26 +08:00
{{foreach $plugins_css_data as $hook}}
2019-08-13 19:28:44 +08:00
{{if !empty($hook) and is_string($hook)}}
2019-02-15 22:57:26 +08:00
<link rel="stylesheet" type="text/css" href="{{$hook}}?v={{:MyC('home_static_cache_version')}}" />
2019-02-19 18:39:42 +08:00
{{elseif is_array($hook) /}}
{{foreach $hook as $hook_css}}
2019-08-13 19:28:44 +08:00
{{if !empty($hook_css) and is_string($hook_css)}}
2019-02-19 21:53:25 +08:00
<link rel="stylesheet" type="text/css" href="{{$hook_css}}?v={{:MyC('home_static_cache_version')}}" />
{{/if}}
2019-02-19 18:39:42 +08:00
{{/foreach}}
2019-02-15 22:57:26 +08:00
{{/if}}
{{/foreach}}
{{/if}}
2018-12-28 18:58:37 +08:00
<script type="text/javascript">
2019-01-11 17:35:35 +08:00
var __root__ = '{{$Think.__MY_ROOT_PUBLIC__}}';
2019-10-16 15:06:46 +08:00
var __my_url__ = '{{$Think.__MY_URL__}}';
2019-01-11 17:35:35 +08:00
var __public__ = '{{$Think.__MY_ROOT_PUBLIC__}}';
2018-12-28 18:58:37 +08:00
var __default_theme__ = '{{$default_theme}}';
2019-01-03 17:19:26 +08:00
var __modal_login_url__ = '{{:Url("index/user/modallogininfo")}}';
var __attachment_host__ = '{{$attachment_host}}';
2019-04-16 15:57:17 +08:00
var __seo_url_suffix__ = '{{:MyC("home_seo_url_html_suffix", "html", true)}}';
2018-12-28 18:58:37 +08:00
var __user_id__ = {{if empty($user['id'])}}0{{else /}}{{$user.id}}{{/if}};
2020-02-04 17:18:14 +08:00
var __price_symbol__ = '{{$price_symbol}}';
2018-12-28 18:58:37 +08:00
</script>
2019-02-15 14:06:24 +08:00
<!-- 公共header内钩子 -->
2019-02-17 13:30:52 +08:00
{{if !empty($plugins_common_header_data) and is_array($plugins_common_header_data)}}
{{foreach $plugins_common_header_data as $hook}}
2019-02-15 14:06:24 +08:00
{{if is_string($hook) or is_int($hook)}}
{{$hook|raw}}
{{/if}}
{{/foreach}}
{{/if}}
2018-12-28 18:58:37 +08:00
</head>
2019-12-16 15:06:22 +08:00
<body {{if in_array(MiniAppEnv(), config('shopxo.mini_app_type_list'))}}class="mini-app-env"{{/if}}>
2019-02-15 22:57:26 +08:00
<!-- css钩子 -->
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true and (!isset($is_header) or $is_header eq 1)}}
<div class="plugins-tag">
<span>plugins_css</span>
</div>
{{/if}}
2019-02-15 14:06:24 +08:00
<!-- 公共header内钩子 -->
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true and (!isset($is_header) or $is_header eq 1)}}
<div class="plugins-tag">
2019-02-17 13:30:52 +08:00
<span>plugins_common_header</span>
2019-02-15 14:06:24 +08:00
</div>
{{/if}}
2018-12-28 18:58:37 +08:00
2019-02-09 09:15:23 +08:00
<!-- 公共顶部钩子 -->
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true and (!isset($is_header) or $is_header eq 1)}}
2019-02-09 09:15:23 +08:00
<div class="plugins-tag">
2019-02-14 23:23:19 +08:00
<span>plugins_view_common_top</span>
2019-02-09 09:15:23 +08:00
</div>
{{/if}}
2019-02-14 23:23:19 +08:00
{{if !empty($plugins_view_common_top_data) and is_array($plugins_view_common_top_data) and (!isset($is_header) or $is_header eq 1)}}
{{foreach $plugins_view_common_top_data as $hook}}
2019-02-09 09:15:23 +08:00
{{if is_string($hook) or is_int($hook)}}
{{$hook|raw}}
{{/if}}
{{/foreach}}
2018-12-28 18:58:37 +08:00
{{/if}}