vr-shopxo-source/app/index/view/default/public/header.html

122 lines
6.3 KiB
HTML
Raw Normal View History

2018-12-28 10:58:37 +00:00
<!DOCTYPE html>
<html>
<head>
2021-07-18 15:42:10 +00:00
<meta charset="{{:MyConfig('shopxo.default_charset', 'utf-8')}}" />
2018-12-28 10:58:37 +00:00
<title>{{$home_seo_site_title}}</title>
2019-05-05 03:29:55 +00:00
<meta name="keywords" content="{{$home_seo_site_keywords}}" />
<meta name="description" content="{{$home_seo_site_description}}" />
2020-08-24 15:39:14 +00:00
<meta name="generator" content="{{$my_url}}" />
2018-12-28 10:58:37 +00:00
<meta name="application-name" content="{{$home_seo_site_title}}" />
<meta name="msapplication-tooltip" content="{{$home_seo_site_title}}" />
2020-08-24 15:39:14 +00:00
<meta name="msapplication-starturl" content="{{$my_url}}" />
<link rel="shortcut icon" type="image/x-icon" href="{{$public_host}}favicon.ico" />
2018-12-28 10:58:37 +00: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')}}">
2021-10-23 10:23:43 +00:00
<link rel="apple-touch-icon" href="{{:AttachmentPathViewHandle(MyC('home_site_logo_square'))}}">
<link rel="apple-touch-icon-precomposed" href="{{:AttachmentPathViewHandle(MyC('home_site_logo_square'))}}">
2018-12-28 10:58:37 +00:00
2020-08-24 15:39:14 +00:00
<link rel="stylesheet" type="text/css" href="{{$public_host}}static/common/lib/assets/css/amazeui.css?v={{:MyC('home_static_cache_version')}}" />
<link rel="stylesheet" type="text/css" href="{{$public_host}}static/common/lib/amazeui-switch/amazeui.switch.css?v={{:MyC('home_static_cache_version')}}" />
<link rel="stylesheet" type="text/css" href="{{$public_host}}static/common/lib/amazeui-chosen/amazeui.chosen.css?v={{:MyC('home_static_cache_version')}}" />
<link rel="stylesheet" type="text/css" href="{{$public_host}}static/common/lib/cropper/cropper.min.css?v={{:MyC('home_static_cache_version')}}" />
<link rel="stylesheet" type="text/css" href="{{$public_host}}static/common/lib/amazeui-tagsinput/amazeui.tagsinput.css?v={{:MyC('home_static_cache_version')}}" />
2018-12-28 10:58:37 +00:00
2020-08-24 15:39:14 +00:00
<link rel="stylesheet" type="text/css" href="{{$public_host}}static/common/css/common.css?v={{:MyC('home_static_cache_version')}}" />
2021-06-22 13:45:29 +00:00
<link rel="stylesheet" type="text/css" href="{{$public_host}}static/index/{{$default_theme}}/css/common.css?v={{:MyC('home_static_cache_version')}}" />
2019-04-30 08:27:01 +00:00
{{if !empty($plugins_css)}}
2020-08-24 15:39:14 +00:00
<link rel="stylesheet" type="text/css" href="{{$public_host}}static/{{$plugins_css}}?v={{:MyC('home_static_cache_version')}}" />
2021-06-22 13:45:29 +00:00
{{/if}}
{{if isset($is_load_layout) and $is_load_layout eq 1}}
<link rel="stylesheet" type="text/css" href="{{$public_host}}static/common/css/layout.css?v={{:MyC('home_static_cache_version')}}" />
{{/if}}
{{if isset($is_load_layout_admin) and $is_load_layout_admin eq 1}}
<link rel="stylesheet" type="text/css" href="{{$public_host}}static/common/css/layout.admin.css?v={{:MyC('home_static_cache_version')}}" />
2019-04-30 08:27:01 +00:00
{{/if}}
2018-12-28 10:58:37 +00:00
{{if !empty($module_css)}}
2020-08-24 15:39:14 +00:00
<link rel="stylesheet" type="text/css" href="{{$public_host}}static/{{$module_css}}?v={{:MyC('home_static_cache_version')}}" />
2018-12-28 10:58:37 +00:00
{{/if}}
2019-02-15 14:57:26 +00:00
<!-- css钩子 -->
2019-02-17 04:52:06 +00:00
{{if !empty($plugins_css_data) and is_array($plugins_css_data)}}
2019-02-15 14:57:26 +00:00
{{foreach $plugins_css_data as $hook}}
2019-08-13 11:28:44 +00:00
{{if !empty($hook) and is_string($hook)}}
2020-09-03 15:05:45 +00:00
{{if substr($hook, 0, 4) eq 'http'}}
<link rel="stylesheet" type="text/css" href="{{$hook}}?v={{:MyC('home_static_cache_version')}}" />
{{else /}}
<link rel="stylesheet" type="text/css" href="{{$public_host}}{{$hook}}?v={{:MyC('home_static_cache_version')}}" />
{{/if}}
2019-02-19 10:39:42 +00:00
{{elseif is_array($hook) /}}
{{foreach $hook as $hook_css}}
2019-08-13 11:28:44 +00:00
{{if !empty($hook_css) and is_string($hook_css)}}
2020-08-24 15:39:14 +00:00
{{if substr($hook_css, 0, 4) eq 'http'}}
<link rel="stylesheet" type="text/css" href="{{$hook_css}}?v={{:MyC('home_static_cache_version')}}" />
{{else /}}
<link rel="stylesheet" type="text/css" href="{{$public_host}}{{$hook_css}}?v={{:MyC('home_static_cache_version')}}" />
{{/if}}
2019-02-19 13:53:25 +00:00
{{/if}}
2019-02-19 10:39:42 +00:00
{{/foreach}}
2019-02-15 14:57:26 +00:00
{{/if}}
{{/foreach}}
{{/if}}
2018-12-28 10:58:37 +00:00
<script type="text/javascript">
2020-08-24 15:39:14 +00:00
var __root__ = '{{$public_host}}';
2022-03-19 14:56:50 +00:00
var __my_http__ = '{{$my_http}}';
2020-08-24 15:39:14 +00:00
var __my_url__ = '{{$my_url}}';
2020-12-08 09:42:28 +00:00
var __my_public_url__ = '{{$my_public_url}}';
2020-08-24 15:39:14 +00:00
var __public__ = '{{$public_host}}';
2018-12-28 10:58:37 +00:00
var __default_theme__ = '{{$default_theme}}';
2021-07-18 15:42:10 +00:00
var __modal_login_url__ = '{{:MyUrl("index/user/modallogininfo")}}';
var __attachment_host__ = '{{$attachment_host}}';
2019-04-16 07:57:17 +00:00
var __seo_url_suffix__ = '{{:MyC("home_seo_url_html_suffix", "html", true)}}';
2018-12-28 10:58:37 +00:00
var __user_id__ = {{if empty($user['id'])}}0{{else /}}{{$user.id}}{{/if}};
2020-09-17 14:22:37 +00:00
var __currency_symbol__ = '{{$currency_symbol}}';
2021-08-31 08:05:18 +00:00
var __is_mobile__ = '{{if IsMobile()}}1{{else}}0{{/if}}';
2022-04-24 06:50:38 +00:00
var __env_max_input_vars_count__ = '{{$env_max_input_vars_count}}';
2018-12-28 10:58:37 +00:00
</script>
2019-02-15 06:06:24 +00:00
<!-- 公共header内钩子 -->
2019-02-17 05:30:52 +00:00
{{if !empty($plugins_common_header_data) and is_array($plugins_common_header_data)}}
{{foreach $plugins_common_header_data as $hook}}
2019-02-15 06:06:24 +00:00
{{if is_string($hook) or is_int($hook)}}
{{$hook|raw}}
{{/if}}
{{/foreach}}
{{/if}}
2018-12-28 10:58:37 +00:00
</head>
2021-07-18 15:42:10 +00:00
<body {{if in_array(MiniAppEnv(), MyConfig('shopxo.mini_app_type_list'))}}class="mini-app-env"{{/if}}>
2019-02-15 14:57:26 +00:00
<!-- css钩子 -->
2022-03-09 03:46:56 +00:00
{{if (!isset($page_pure) or $page_pure neq 1) and (!isset($is_header) or $is_header eq 1)}}
2021-11-19 03:30:15 +00:00
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
<div class="plugins-tag">
<span>plugins_css</span>
</div>
{{/if}}
2019-02-15 14:57:26 +00:00
{{/if}}
2019-02-15 06:06:24 +00:00
<!-- 公共header内钩子 -->
2022-03-09 03:46:56 +00:00
{{if (!isset($page_pure) or $page_pure neq 1) and (!isset($is_header) or $is_header eq 1)}}
2021-11-19 03:30:15 +00:00
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
<div class="plugins-tag">
<span>plugins_common_header</span>
</div>
{{/if}}
2019-02-15 06:06:24 +00:00
{{/if}}
2018-12-28 10:58:37 +00:00
2019-02-09 01:15:23 +00:00
<!-- 公共顶部钩子 -->
2022-03-09 03:46:56 +00:00
{{if (!isset($page_pure) or $page_pure neq 1) and (!isset($is_header) or $is_header eq 1)}}
2021-11-19 03:30:15 +00:00
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
<div class="plugins-tag">
<span>plugins_view_common_top</span>
</div>
{{/if}}
{{if !empty($plugins_view_common_top_data) and is_array($plugins_view_common_top_data)}}
{{foreach $plugins_view_common_top_data as $hook}}
{{if is_string($hook) or is_int($hook)}}
{{$hook|raw}}
{{/if}}
{{/foreach}}
{{/if}}
2018-12-28 10:58:37 +00:00
{{/if}}