|
|
@ -1380,6 +1380,11 @@ class Information extends CI_Controller
|
|
|
|
if (!empty ($meta_addon_js)) {
|
|
|
|
if (!empty ($meta_addon_js)) {
|
|
|
|
$template = str_replace('<!--@ADDON-JS@-->', '<script src="' . $meta_addon_js . '"></script>', $template);
|
|
|
|
$template = str_replace('<!--@ADDON-JS@-->', '<script src="' . $meta_addon_js . '"></script>', $template);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$meta_index_set = get_meta($information->ic_id, 'meta_index_set');
|
|
|
|
|
|
|
|
if (!empty ($meta_index_set)) {
|
|
|
|
|
|
|
|
$template = str_replace('<!--@Meta_Robots@-->', '<meta name="robots" content="' . $meta_index_set . '" />', $template);
|
|
|
|
|
|
|
|
}
|
|
|
|
//设置内容图片缓加载
|
|
|
|
//设置内容图片缓加载
|
|
|
|
$lazy_content = $this->html_optimize_lib->set_lazy_loader($information->ic_content, 'https://data.chinahighlights.com/grey.gif');
|
|
|
|
$lazy_content = $this->html_optimize_lib->set_lazy_loader($information->ic_content, 'https://data.chinahighlights.com/grey.gif');
|
|
|
|
$template = str_replace('<!--@CUSTOM-CONENT@-->', $lazy_content, $template);
|
|
|
|
$template = str_replace('<!--@CUSTOM-CONENT@-->', $lazy_content, $template);
|
|
|
@ -2004,6 +2009,11 @@ class Information extends CI_Controller
|
|
|
|
if (!empty ($meta_addon_js)) {
|
|
|
|
if (!empty ($meta_addon_js)) {
|
|
|
|
$template = str_replace('<!--@ADDON-JS@-->', '<script src="' . $meta_addon_js . '"></script>', $template);
|
|
|
|
$template = str_replace('<!--@ADDON-JS@-->', '<script src="' . $meta_addon_js . '"></script>', $template);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$meta_index_set = get_meta($information->ic_id, 'meta_index_set');
|
|
|
|
|
|
|
|
if (!empty ($meta_index_set)) {
|
|
|
|
|
|
|
|
$template = str_replace('<!--@Meta_Robots@-->', '<meta name="robots" content="' . $meta_index_set . '" />', $template);
|
|
|
|
|
|
|
|
}
|
|
|
|
//设置内容图片缓加载
|
|
|
|
//设置内容图片缓加载
|
|
|
|
$lazy_content = $this->html_optimize_lib->set_lazy_loader($information->ic_content, 'https://data.chinahighlights.com/grey.gif');
|
|
|
|
$lazy_content = $this->html_optimize_lib->set_lazy_loader($information->ic_content, 'https://data.chinahighlights.com/grey.gif');
|
|
|
|
$template = str_replace('<!--@CUSTOM-CONENT@-->', $lazy_content, $template);
|
|
|
|
$template = str_replace('<!--@CUSTOM-CONENT@-->', $lazy_content, $template);
|
|
|
@ -2367,6 +2377,11 @@ class Information extends CI_Controller
|
|
|
|
if (!empty ($meta_addon_js)) {
|
|
|
|
if (!empty ($meta_addon_js)) {
|
|
|
|
$template = str_replace('<!--@ADDON-JS@-->', '<script src="' . $meta_addon_js . '"></script>', $template);
|
|
|
|
$template = str_replace('<!--@ADDON-JS@-->', '<script src="' . $meta_addon_js . '"></script>', $template);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$meta_index_set = get_meta($information->ic_id, 'meta_index_set');
|
|
|
|
|
|
|
|
if (!empty ($meta_index_set)) {
|
|
|
|
|
|
|
|
$template = str_replace('<!--@Meta_Robots@-->', '<meta name="robots" content="' . $meta_index_set . '" />', $template);
|
|
|
|
|
|
|
|
}
|
|
|
|
//设置内容图片缓加载
|
|
|
|
//设置内容图片缓加载
|
|
|
|
$lazy_content = $this->html_optimize_lib->set_lazy_loader($information->ic_content, 'https://data.asiahighlights.com/grey.gif');
|
|
|
|
$lazy_content = $this->html_optimize_lib->set_lazy_loader($information->ic_content, 'https://data.asiahighlights.com/grey.gif');
|
|
|
|
$template = str_replace('<!--@CUSTOM-CONENT@-->', $lazy_content, $template);
|
|
|
|
$template = str_replace('<!--@CUSTOM-CONENT@-->', $lazy_content, $template);
|
|
|
|