add GH preview css; not array

mobile-first
lyt 6 years ago
parent 90e8b1d3b2
commit fc9d587776

@ -701,7 +701,7 @@ $config['css_source_tbt'] = 'https://www.tibetguru.com/css/style.css';
$config['css_source_mbj'] = 'https://www.mybeijingchina.com/css/layout.css';
$config['css_source_yz'] = 'https://www.yangtzeriver.org/css/css3/bootstrap/bootstrap.css';
$config['css_source_ah'] = 'https://www.asiahighlights.com/min/?f=/css/global.min.css,/js/bootstrap-datepicker/css/bootstrap-datepicker3.standalone.css,/css/basic.css,/css/homepage.css,/css/contact.css,/css/tailor-make.css,/css/tour.css,/css/tour-detail.css,/css/inquiry-form.css,/css/missing.css';
$config['css_source_gh'] = ['https://www.globalhighlights.com/css/global.css','https://www.globalhighlights.com/css/footer.css'];
$config['css_source_gh'] = 'https://www.globalhighlights.com/css/global.css';

@ -201,8 +201,8 @@
//加载预览样式
function load_preview_css() {
// $("iframe.ke-edit-iframe").contents().find("head").append('<?php // echo $this->config->item("css_source_" . $this->config->item("site_code")); ?><style>.drop1{height:auto !important;} .photoRight img{max-width:100%;height:auto !important;}</style>');
// $("iframe.ke-edit-iframe").contents().find(".ke-content").css({"max-width": "1024px", "margin-left": "auto", "margin-right": "auto"});
$("iframe.ke-edit-iframe").contents().find("head").append('<?php echo $this->config->item("css_source_" . $this->config->item("site_code")); ?><style>.drop1{height:auto !important;} .photoRight img{max-width:100%;height:auto !important;}</style>');
$("iframe.ke-edit-iframe").contents().find(".ke-content").css({"max-width": "1024px", "margin-left": "auto", "margin-right": "auto"});
}

@ -205,8 +205,8 @@
//加载预览样式
function load_preview_css(){
// $("iframe.ke-edit-iframe").contents().find("head").append('<?php // echo $this->config->item("css_source_".$this->config->item("site_code")); ?><style>.drop1{height:auto !important;} .photoRight img{max-width:100%;height:auto !important;}</style>');
// $("iframe.ke-edit-iframe").contents().find(".ke-content").css({"max-width":"1024px","margin-left":"auto","margin-right":"auto"});
$("iframe.ke-edit-iframe").contents().find("head").append('<?php echo $this->config->item("css_source_".$this->config->item("site_code")); ?><style>.drop1{height:auto !important;} .photoRight img{max-width:100%;height:auto !important;}</style>');
$("iframe.ke-edit-iframe").contents().find(".ke-content").css({"max-width":"1024px","margin-left":"auto","margin-right":"auto"});
}

Loading…
Cancel
Save