|
|
|
|
@ -3802,13 +3802,21 @@ class Information extends CI_Controller
|
|
|
|
|
}
|
|
|
|
|
//社媒分享图片
|
|
|
|
|
$data["OGIMAGE"] = "";
|
|
|
|
|
$meta_addon_picture = get_meta($information->ic_id, 'meta_addon_picture_mobile');
|
|
|
|
|
if (!empty($information->ic_photo)) {
|
|
|
|
|
if (strpos($information->ic_photo, "mybeijingchina.com") != false) {
|
|
|
|
|
if (strpos($information->ic_photo, "trainspread.com") != false) {
|
|
|
|
|
$full_ic_photo = $information->ic_photo;
|
|
|
|
|
} else {
|
|
|
|
|
$full_ic_photo = $this->config->item('site_image_url') . $information->ic_photo;
|
|
|
|
|
}
|
|
|
|
|
$data["OGIMAGE"] = '<meta property="og:image" content="' . $full_ic_photo . '"><meta property="og:image:secure_url" content="' . $full_ic_photo . '"><meta property="og:image:width" content="800"><meta property="og:image:height" content="450">';
|
|
|
|
|
}else if (!empty($meta_addon_picture)){
|
|
|
|
|
if (strpos($meta_addon_picture, "trainspread.com") != false) {
|
|
|
|
|
$full_ic_photo = $meta_addon_picture;
|
|
|
|
|
} else {
|
|
|
|
|
$full_ic_photo = $this->config->item('site_image_url') . $meta_addon_picture;
|
|
|
|
|
}
|
|
|
|
|
$data["OGIMAGE"] = '<meta property="og:image" content="' . $full_ic_photo . '"><meta property="og:image:secure_url" content="' . $full_ic_photo . '"><meta property="og:image:width" content="800"><meta property="og:image:height" content="450">';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//结构化标签
|
|
|
|
|
|