ico
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user