|
|
|
@ -111,6 +111,11 @@ class Information extends CI_Controller
|
|
|
|
|
//is_id 信息结构ID,
|
|
|
|
|
public function copy_by_is_id($src_is_id, $dest_is_id)
|
|
|
|
|
{
|
|
|
|
|
if (empty ($src_is_id) || empty ($src_is_id)) {
|
|
|
|
|
echo 'need 2 is_id';
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$data = array();
|
|
|
|
|
if ($src_is_id == $dest_is_id || empty ($src_is_id) || empty ($dest_is_id)) {
|
|
|
|
|
return false;
|
|
|
|
@ -917,7 +922,7 @@ class Information extends CI_Controller
|
|
|
|
|
$parsed_photo = $information->ic_photo;
|
|
|
|
|
$parsed_photo_url = parse_url($information->ic_photo);
|
|
|
|
|
if (
|
|
|
|
|
(!isset($parsed_photo_url['host']) || !isset($parsed_photo_url['scheme'])) && isset($parsed_photo_url['path'])
|
|
|
|
|
(!isset ($parsed_photo_url['host']) || !isset ($parsed_photo_url['scheme'])) && isset ($parsed_photo_url['path'])
|
|
|
|
|
) {
|
|
|
|
|
$parsed_photo = 'https://images.chinahighlights.com' . $parsed_photo_url['path'];
|
|
|
|
|
}
|
|
|
|
@ -1713,7 +1718,7 @@ class Information extends CI_Controller
|
|
|
|
|
|
|
|
|
|
// 未勾选In Article 广告时,加入标签 <meta name="ezoic" content="noads"/>,让 ezoic 识别出该页面不展示广告。
|
|
|
|
|
$meta_google_ad_article = get_meta($information->ic_id, 'meta_google_ad_article');
|
|
|
|
|
if (empty($meta_google_ad_article) || !$meta_google_ad_article) {
|
|
|
|
|
if (empty ($meta_google_ad_article) || !$meta_google_ad_article) {
|
|
|
|
|
$template = str_replace(
|
|
|
|
|
'<!--@Meta-Ezoic-NoAds@-->',
|
|
|
|
|
'<meta name="ezoic" content="noads"/>',
|
|
|
|
|