78 lines
3.0 KiB
HTML
78 lines
3.0 KiB
HTML
<!DOCTYPE html>
|
||
<html>
|
||
<head>
|
||
<meta charset="utf-8">
|
||
{block name="title"}<title>{$basic_config['website_seo_title']['value']}</title>{/block}
|
||
{block name="seo"}
|
||
<meta name="keywords" content="{$basic_config['website_seo_keyword']['value']}" />
|
||
<meta name="description" content="{$basic_config['website_seo_description']['value']}" />
|
||
{/block}
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||
<link rel="stylesheet" type="text/css" href="__CSS__/public.css" />
|
||
<link rel="stylesheet" type="text/css" href="__CSS__/font.css" />
|
||
<link rel="stylesheet" type="text/css" href="__CSS__/style.css" />
|
||
<!-- <link rel="stylesheet" type="text/css" href="__CSS__/fonts.css" /> -->
|
||
<link rel="stylesheet" type="text/css" href="__CSS__/header.css" />
|
||
<link rel="stylesheet" type="text/css" href="__CSS__/footer.css" />
|
||
{block name="style"}{/block}
|
||
<link rel="stylesheet" href="__JS__/swiper-bundle9.4.1.min.css" />
|
||
<script src="__JS__/jquery-3.6.0.min.js"></script>
|
||
<script type="text/javascript" src="__JS__/swiper-bundle9.4.1.min.js"></script>
|
||
<!-- Matomo -->
|
||
<script>
|
||
var _paq = window._paq = window._paq || [];
|
||
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
|
||
_paq.push(['trackPageView']);
|
||
_paq.push(['enableLinkTracking']);
|
||
(function() {
|
||
var u="//analytics.f2b211.com/";
|
||
_paq.push(['setTrackerUrl', u+'matomo.php']);
|
||
_paq.push(['setSiteId', '2']);
|
||
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
||
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
|
||
})();
|
||
</script>
|
||
<!-- End Matomo Code -->
|
||
</head>
|
||
<body>
|
||
<noscript>
|
||
<!-- Matomo Image Tracker-->
|
||
<img referrerpolicy="no-referrer-when-downgrade" src="https://analytics.f2b211.com/matomo.php?idsite=2&rec=1" style="border:0" alt="" />
|
||
<!-- End Matomo -->
|
||
</noscript>
|
||
{block name="header"}
|
||
{include file="public/header"/}
|
||
{/block}
|
||
{block name="main"}{/block}
|
||
{block name="footer"}
|
||
{include file="public/footer"/}
|
||
{/block}
|
||
{block name="script"}{/block}
|
||
<script>
|
||
$(window).ready(function () {
|
||
// 为所有站内链接,添加标识
|
||
// 使用mtpl=1参数标识解决ipad访问站点时,从pc重定向到mobile每次页面都会pc - mobile闪现问题
|
||
var LURL = new URL(window.location.href);
|
||
if (LURL.searchParams.get('mtpl') == 1) {
|
||
$('a').each(function () {
|
||
var href = $(this).attr('href');
|
||
if (href) {
|
||
var origin = LURL.origin;
|
||
if (href.indexOf('http') == -1) {
|
||
href = new URL(href, origin);
|
||
href.searchParams.set('mtpl', '1');
|
||
$(this).attr('href', href);
|
||
} else {
|
||
href = new URL(href);
|
||
if (href.origin == origin) {
|
||
href.searchParams.set('mtpl', '1');
|
||
$(this).attr('href', href);
|
||
}
|
||
}
|
||
}
|
||
})
|
||
}
|
||
})
|
||
</script>
|
||
</body>
|
||
</html> |