do add analysis yas.js version
Showing
6 changed files
with
13 additions
and
1 deletions
@@ -118,6 +118,10 @@ class TemplateLayout implements View_Interface | @@ -118,6 +118,10 @@ class TemplateLayout implements View_Interface | ||
118 | } | 118 | } |
119 | // 应用版本号 | 119 | // 应用版本号 |
120 | $tpl_vars['version'] = $config->version; | 120 | $tpl_vars['version'] = $config->version; |
121 | + // JS统计代码的版本号 | ||
122 | + if (isset($config->yas->version)) { | ||
123 | + $tpl_vars['yas_version'] = $config->yas->version; | ||
124 | + } | ||
121 | 125 | ||
122 | // SEO相关的标题、关键词、描述内容信息 | 126 | // SEO相关的标题、关键词、描述内容信息 |
123 | if (!empty($tpl_vars['title_more'])) { | 127 | if (!empty($tpl_vars['title_more'])) { |
@@ -28,7 +28,7 @@ | @@ -28,7 +28,7 @@ | ||
28 | a.async=1; | 28 | a.async=1; |
29 | a.src=j; | 29 | a.src=j; |
30 | m.parentNode.insertBefore(a,m); | 30 | m.parentNode.insertBefore(a,m); |
31 | - })(window,document,'script','http://cdn.yoho.cn/yas-jssdk/1.0.13.2/yas.js','_yas'); | 31 | + })(window,document,'script','http://cdn.yoho.cn/yas-jssdk/{{yas_version}}/yas.js','_yas'); |
32 | </script> | 32 | </script> |
33 | {{> layout/use}} | 33 | {{> layout/use}} |
34 | {{> layout/analysis}} | 34 | {{> layout/analysis}} |
@@ -51,6 +51,8 @@ application.assets.path = ROOT_PATH "/assets" | @@ -51,6 +51,8 @@ application.assets.path = ROOT_PATH "/assets" | ||
51 | 51 | ||
52 | ; 应用的版本号 | 52 | ; 应用的版本号 |
53 | application.version = "1.2.0" | 53 | application.version = "1.2.0" |
54 | +; JS统计代码的版本号 | ||
55 | +application.yas.version = "1.0.13.2" | ||
54 | 56 | ||
55 | ; 网站SEO信息 | 57 | ; 网站SEO信息 |
56 | application.seo.title = "Yoho!Buy有货 | 潮流购物逛不停" | 58 | application.seo.title = "Yoho!Buy有货 | 潮流购物逛不停" |
@@ -51,6 +51,8 @@ application.assets.path = ROOT_PATH "/assets" | @@ -51,6 +51,8 @@ application.assets.path = ROOT_PATH "/assets" | ||
51 | 51 | ||
52 | ; 应用的版本号 | 52 | ; 应用的版本号 |
53 | application.version = "1.2.0" | 53 | application.version = "1.2.0" |
54 | +; JS统计代码的版本号 | ||
55 | +application.yas.version = "1.0.13.2" | ||
54 | 56 | ||
55 | ; 网站SEO信息 | 57 | ; 网站SEO信息 |
56 | application.seo.title = "Yoho!Buy有货 | 潮流购物逛不停" | 58 | application.seo.title = "Yoho!Buy有货 | 潮流购物逛不停" |
@@ -51,6 +51,8 @@ application.assets.path = ROOT_PATH "/assets" | @@ -51,6 +51,8 @@ application.assets.path = ROOT_PATH "/assets" | ||
51 | 51 | ||
52 | ; 应用的版本号 | 52 | ; 应用的版本号 |
53 | application.version = "1.2.0" | 53 | application.version = "1.2.0" |
54 | +; JS统计代码的版本号 | ||
55 | +application.yas.version = "1.0.13.2" | ||
54 | 56 | ||
55 | ; 网站SEO信息 | 57 | ; 网站SEO信息 |
56 | application.seo.title = "Yoho!Buy有货 | 潮流购物逛不停" | 58 | application.seo.title = "Yoho!Buy有货 | 潮流购物逛不停" |
@@ -51,6 +51,8 @@ application.assets.path = ROOT_PATH "/assets" | @@ -51,6 +51,8 @@ application.assets.path = ROOT_PATH "/assets" | ||
51 | 51 | ||
52 | ; 应用的版本号 | 52 | ; 应用的版本号 |
53 | application.version = "1.2.0" | 53 | application.version = "1.2.0" |
54 | +; JS统计代码的版本号 | ||
55 | +application.yas.version = "1.0.13.2" | ||
54 | 56 | ||
55 | ; 网站SEO信息 | 57 | ; 网站SEO信息 |
56 | application.seo.title = "Yoho!Buy有货 | 潮流购物逛不停" | 58 | application.seo.title = "Yoho!Buy有货 | 潮流购物逛不停" |
-
Please register or login to post a comment