This commit is contained in:
make
2026-01-11 16:14:58 +08:00
parent ebbf6c1237
commit 222454acef
6 changed files with 20 additions and 18 deletions

View File

@@ -14,7 +14,7 @@
<meta name="format-detection" content="telephone=no,email=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<link rel="apple-touch-icon" href="{site:cfg code='PUBLIC_STATIC_DOMAIN' encode='false'/}/template/videoboku//images/favicon.png">
<link rel="apple-touch-icon" href="{$TpStyle.favicon}">
{// PWA 支持Chrome/安卓)和 SEO 不是强关联 }
<meta name="theme-color" content="#000000">
<meta name="mobile-web-app-capable" content="yes">
@@ -26,7 +26,7 @@
<meta name="keywords" content='{block name="keywords"}{/block}'>
<meta name="description" content='{block name="description"}{/block}'>
<link rel="shortcut icon" href="{site:cfg code='PUBLIC_STATIC_DOMAIN' encode='false'/}/template/videoboku//images/favicon.png" type="image/x-icon">
<link rel="shortcut icon" href="{$TpStyle.favicon}" type="image/svg+xml">
<link rel="preload" href="{site:cfg code='PUBLIC_STATIC_DOMAIN' encode='false'/}/template/videoboku/css/mytheme-font.css" type="text/css">
<link rel="preload" href="{site:cfg code='PUBLIC_STATIC_DOMAIN' encode='false'/}/template/videoboku/css/mytheme-ui.css" type="text/css">

View File

@@ -13,7 +13,7 @@
<meta name="format-detection" content="telephone=no,email=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<link rel="apple-touch-icon" href="{site:cfg code='PUBLIC_STATIC_DOMAIN' encode='false'/}/template/videodadi/img/favicon.ico">
<link rel="apple-touch-icon" href="{$TpStyle.favicon}">
{// PWA 支持Chrome/安卓)和 SEO 不是强关联 }
<meta name="theme-color" content="#000000">
<meta name="mobile-web-app-capable" content="yes">
@@ -23,7 +23,8 @@
<title>{block name="title"}{/block}</title>
<meta name="keywords" content='{block name="keywords"}{/block}'>
<meta name="description" content='{block name="description"}{/block}'>
<link rel="shortcut icon" href="{site:cfg code='PUBLIC_STATIC_DOMAIN' encode='false'/}/template/videodadi/img/favicon.ico" type="image/x-icon">
<!-- <link rel="shortcut icon" href="{site:cfg code='PUBLIC_STATIC_DOMAIN' encode='false'/}/template/videodadi/img/favicon.ico" type="image/x-icon"> -->
<link rel="shortcut icon" href="{$TpStyle.favicon}" type="image/svg+xml">
<!-- <link href="/public/layer/need/layer.css" rel="stylesheet"> -->
{// 提前加载 CSS }
<link rel="preload" href="{site:cfg code='PUBLIC_STATIC_DOMAIN' encode='false'/}/template/videodadi/font/iconfont-min.css" type="text/css">

View File

@@ -14,7 +14,7 @@
<meta name="format-detection" content="telephone=no,email=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<link rel="apple-touch-icon" href="{site:cfg code='PUBLIC_STATIC_DOMAIN' encode='false'/}/template/videodingzhu/images/favicon.ico">
<link rel="apple-touch-icon" href="{$TpStyle.favicon}">
{// PWA 支持Chrome/安卓)和 SEO 不是强关联 }
<meta name="theme-color" content="#000000">
<meta name="mobile-web-app-capable" content="yes">
@@ -26,7 +26,7 @@
<meta name="keywords" content='{block name="keywords"}{/block}'>
<meta name="description" content='{block name="description"}{/block}'>
<link rel="shortcut icon" href="{site:cfg code='PUBLIC_STATIC_DOMAIN' encode='false'/}/template/videodingzhu/images/favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="{$TpStyle.favicon}" type="image/svg+xml">
<link rel="preload" href="{site:cfg code='PUBLIC_STATIC_DOMAIN' encode='false'/}/template/videodingzhu/css/plugins.css" type="text/css">
<link rel="preload" href="{site:cfg code='PUBLIC_STATIC_DOMAIN' encode='false'/}/template/videodingzhu/css/global.css" type="text/css">

View File

@@ -14,7 +14,7 @@
<meta name="format-detection" content="telephone=no,email=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<link rel="apple-touch-icon" href="{site:cfg code='PUBLIC_STATIC_DOMAIN' encode='false'/}/template/videolaoniu/images/favicon.png">
<link rel="apple-touch-icon" href="{$TpStyle.favicon}">
{// PWA 支持Chrome/安卓)和 SEO 不是强关联 }
<meta name="theme-color" content="#000000">
<meta name="mobile-web-app-capable" content="yes">
@@ -26,7 +26,7 @@
<meta name="keywords" content='{block name="keywords"}{/block}'>
<meta name="description" content='{block name="description"}{/block}'>
<link rel="shortcut icon" href="{site:cfg code='PUBLIC_STATIC_DOMAIN' encode='false'/}/template/videolaoniu/images/favicon.png" type="image/x-icon">
<link rel="shortcut icon" href="{$TpStyle.favicon}" type="image/svg+xml">
<link rel="preload" type="text/css" href="{site:cfg code='PUBLIC_STATIC_DOMAIN' encode='false'/}/template/videolaoniu/css/global.css">
<link rel="preload" type="text/css" href="{site:cfg code='PUBLIC_STATIC_DOMAIN' encode='false'/}/template/videolaoniu/css/style.css">

View File

@@ -14,7 +14,7 @@
<meta name="format-detection" content="telephone=no,email=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<link rel="apple-touch-icon" href="{site:cfg code='PUBLIC_STATIC_DOMAIN' encode='false'/}/template/videonunu/img/favicon.ico">
<link rel="apple-touch-icon" href="{$TpStyle.favicon}">
{// PWA 支持Chrome/安卓)和 SEO 不是强关联 }
<meta name="theme-color" content="#000000">
<meta name="mobile-web-app-capable" content="yes">
@@ -26,7 +26,7 @@
<meta name="keywords" content='{block name="keywords"}{/block}'>
<meta name="description" content='{block name="description"}{/block}'>
<link rel="shortcut icon" href="{site:cfg code='PUBLIC_STATIC_DOMAIN' encode='false'/}/template/videonunu/img/favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="{$TpStyle.favicon}" type="image/svg+xml">
<link rel="preload" href="{site:cfg code='PUBLIC_STATIC_DOMAIN' encode='false'/}/template/videonunu/font/iconfont.css" type="text/css">
<link rel="preload" href="{site:cfg code='PUBLIC_STATIC_DOMAIN' encode='false'/}/template/videonunu/css/stui_block.css" type="text/css">

View File

@@ -103,8 +103,7 @@ class SiteContext
$this->DomainModel = DomainModel::getDomainOnCacheByDomain($strDomain);
$this->TpStyle = SiteStyle::getConfig();
$this->UrlBuilder = new UrlBuilder($this->TpStyle);
if (empty($this->DomainModel)) {
throw new HttpException(404, 'Site config not Found');
@@ -112,6 +111,9 @@ class SiteContext
$this->TemplatesModel = TemplatesModel::getTemplateOnCacheByTId($this->DomainModel->t_id);
$this->TpStyle = SiteStyle::getConfig();
$this->UrlBuilder = new UrlBuilder($this->TpStyle);
if (empty($this->TemplatesModel)) {
throw new HttpException(500, 'Site template not Found');
}
@@ -184,15 +186,12 @@ class SiteContext
View::assign("strYouQingLiangJieTemp", $strYouQingLiangJieTemp);
}
// 视频站点需要信息
$strEmail = SystemConfigModel::getValByCode('YOU_XIANG');
// 1. 站点 DNA
$TpStyle = $this->TpStyle;
define('SITE_SEED', $TpStyle['seed']); // 你已有的站点 seed
// 3. 构建本域名 CSS合并并替换 __PFX__
$strCssUrl = CssBuilder::build(
$TpStyle['css_files'],
@@ -210,9 +209,11 @@ class SiteContext
View::assign('TpStyle', $TpStyle);
View::assign('strTpCss', $strCssUrl);
View::assign('strTpJs', $strJsUrl);
View::assign('strEmail', $strEmail);
// View::assign('Url', new UrlBuilder($TpStyle));
// 视频站点需要信息
$strEmail = SystemConfigModel::getValByCode('YOU_XIANG');
View::assign('strEmail', $strEmail);
$vod_list = $this->DomainModel;
View::assign('vod_list', $vod_list);