CH火车板块样式修改

hotfix/paypal-note
Jimmy Liow 3 years ago
parent 0c890e0f7f
commit 6c2b1c6f67

@ -990,6 +990,14 @@ class Information extends CI_Controller
$main_css_string = compress_css(GET_HTTP('https://proxy-data.chinahighlights.com/css/mobile-first.css')); $main_css_string = compress_css(GET_HTTP('https://proxy-data.chinahighlights.com/css/mobile-first.css'));
} }
$template = str_replace('<!--@MAIN-CSS@-->', '<style type="text/css">' . $main_css_string . '</style>', $template); $template = str_replace('<!--@MAIN-CSS@-->', '<style type="text/css">' . $main_css_string . '</style>', $template);
// /china-trains/ 节点
if ($information->is_parent_id == "278008234") {
$template = str_replace(
'<!--@CHINA-TRAINS-CSS@-->',
'<link href="https://proxy-data.chinahighlights.com/css/china-trains.css" rel="stylesheet">',
$template);
}
//额外样式 //额外样式
$meta_addon_css = get_meta($information->ic_id, 'meta_addon_css'); $meta_addon_css = get_meta($information->ic_id, 'meta_addon_css');
if (!empty($meta_addon_css)) { if (!empty($meta_addon_css)) {

@ -25,6 +25,7 @@
<link rel="dns-prefetch" href="https://www.google-analytics.com"> <link rel="dns-prefetch" href="https://www.google-analytics.com">
<!--@MAIN-CSS@--> <!--@MAIN-CSS@-->
<!--@ADDON-CSS@--> <!--@ADDON-CSS@-->
<!--@CHINA-TRAINS-CSS@-->
<!-- Google Tag Manager --> <!-- Google Tag Manager -->
<script>(function (w, d, s, l, i) { <script>(function (w, d, s, l, i) {
w[l] = w[l] || []; w[l] = w[l] || [];
@ -890,4 +891,4 @@ function validateNewsletterForm() {
<!--@STRUCTURED-DATA-ARTICLE-BLOCK@--> <!--@STRUCTURED-DATA-ARTICLE-BLOCK@-->
</body> </body>
</html> </html>

@ -22,6 +22,7 @@
<link rel="shortcut icon" href="https://data.chinahighlights.com/favicon.ico"> <link rel="shortcut icon" href="https://data.chinahighlights.com/favicon.ico">
<!--@MAIN-CSS@--> <!--@MAIN-CSS@-->
<!--@ADDON-CSS@--> <!--@ADDON-CSS@-->
<!--@CHINA-TRAINS-CSS@-->
<!-- Google Tag Manager --> <!-- Google Tag Manager -->
<script>(function (w, d, s, l, i) { <script>(function (w, d, s, l, i) {
w[l] = w[l] || []; w[l].push({ w[l] = w[l] || []; w[l].push({
@ -836,4 +837,4 @@ function validateNewsletterForm() {
<!--@STRUCTURED-DATA-ARTICLE-BLOCK@--> <!--@STRUCTURED-DATA-ARTICLE-BLOCK@-->
</body> </body>
</html> </html>

Loading…
Cancel
Save