Authored by hf

do add analysis yas.js version

... ... @@ -118,6 +118,10 @@ class TemplateLayout implements View_Interface
}
// 应用版本号
$tpl_vars['version'] = $config->version;
// JS统计代码的版本号
if (isset($config->yas->version)) {
$tpl_vars['yas_version'] = $config->yas->version;
}
// SEO相关的标题、关键词、描述内容信息
if (!empty($tpl_vars['title_more'])) {
... ...
... ... @@ -28,7 +28,7 @@
a.async=1;
a.src=j;
m.parentNode.insertBefore(a,m);
})(window,document,'script','http://cdn.yoho.cn/yas-jssdk/1.0.13.2/yas.js','_yas');
})(window,document,'script','http://cdn.yoho.cn/yas-jssdk/{{yas_version}}/yas.js','_yas');
</script>
{{> layout/use}}
{{> layout/analysis}}
... ...
... ... @@ -51,6 +51,8 @@ application.assets.path = ROOT_PATH "/assets"
; 应用的版本号
application.version = "1.2.0"
; JS统计代码的版本号
application.yas.version = "1.0.13.2"
; 网站SEO信息
application.seo.title = "Yoho!Buy有货 | 潮流购物逛不停"
... ...
... ... @@ -51,6 +51,8 @@ application.assets.path = ROOT_PATH "/assets"
; 应用的版本号
application.version = "1.2.0"
; JS统计代码的版本号
application.yas.version = "1.0.13.2"
; 网站SEO信息
application.seo.title = "Yoho!Buy有货 | 潮流购物逛不停"
... ...
... ... @@ -51,6 +51,8 @@ application.assets.path = ROOT_PATH "/assets"
; 应用的版本号
application.version = "1.2.0"
; JS统计代码的版本号
application.yas.version = "1.0.13.2"
; 网站SEO信息
application.seo.title = "Yoho!Buy有货 | 潮流购物逛不停"
... ...
... ... @@ -51,6 +51,8 @@ application.assets.path = ROOT_PATH "/assets"
; 应用的版本号
application.version = "1.2.0"
; JS统计代码的版本号
application.yas.version = "1.0.13.2"
; 网站SEO信息
application.seo.title = "Yoho!Buy有货 | 潮流购物逛不停"
... ...