diff --git a/application/config/config.php b/application/config/config.php index eb0ef45a..7f11c37a 100644 --- a/application/config/config.php +++ b/application/config/config.php @@ -691,7 +691,7 @@ $config['project_state'] = array( //是否开启权限控制 $config['check_access'] = TRUE; //权限管理超级管理 -$config['access_super_manage'] = array('ycc', 'lmr', 'lyj', 'cyc', 'zp'); +$config['access_super_manage'] = array('ycc', 'lmr', 'lyj', 'rz', 'zp'); //编辑器预览样式路径 $config['css_source_cht'] = 'https://data.chinahighlights.com/css/min.php?f=/public/css/global.min.css,/css/festival-detail.css'; diff --git a/application/controllers/information.php b/application/controllers/information.php index 922a69b5..c4cce1ae 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -1148,11 +1148,26 @@ class Information extends CI_Controller $breadcrumb_data = $this->Information_model->get_path_exclude_self($information->is_id, $information->is_path); $ads_by_google = !empty(get_meta($information->ic_id, 'meta_google_ad_article')); $data['ads_by_google'] = $ads_by_google; - $data['author'] = $this->Operator_model->get_author_nikename($information->ic_author); //获取作者信息 + $author = $this->Operator_model->get_author_nikename($information->ic_author); //获取作者信息 + $data['author'] = $author; $data['breadcrumb_data'] = $breadcrumb_data; $template_H1 = $this->load->view($template_path . '-h1', $data, TRUE); $template = str_replace('', $template_H1, $template); - + // 结构化标签:Article + $article_structured_data_content = $this->load->view( + $template_path . '-structured-data-article', + array('information' => $information, 'author' => $author), + true); + $template = str_replace('', $article_structured_data_content, $template); + // 结构化标签:BreadcrumbList + $breadcrumb_structured_data_content = $this->load->view( + $template_path . '-structured-data-breadcrumb', + array('breadcrumb_data' => $breadcrumb_data, 'information' => $information), + true); + $template = str_replace( + '', + $breadcrumb_structured_data_content, + $template); //推荐信息或者产品 //信息推荐 diff --git a/application/views/mobile_first/ah-pc.php b/application/views/mobile_first/ah-pc.php index 2beb3855..eed8f2c7 100644 --- a/application/views/mobile_first/ah-pc.php +++ b/application/views/mobile_first/ah-pc.php @@ -298,6 +298,110 @@ + + + + + + - \ No newline at end of file diff --git a/application/views/mobile_first/ah-structured-data-article.php b/application/views/mobile_first/ah-structured-data-article.php new file mode 100644 index 00000000..2b03ebbe --- /dev/null +++ b/application/views/mobile_first/ah-structured-data-article.php @@ -0,0 +1,28 @@ + \ No newline at end of file diff --git a/application/views/mobile_first/ah-structured-data-breadcrumb.php b/application/views/mobile_first/ah-structured-data-breadcrumb.php new file mode 100644 index 00000000..99083f6b --- /dev/null +++ b/application/views/mobile_first/ah-structured-data-breadcrumb.php @@ -0,0 +1,28 @@ + \ No newline at end of file diff --git a/application/views/mobile_first/ah.php b/application/views/mobile_first/ah.php index 8c9dfbe8..1a41f23f 100644 --- a/application/views/mobile_first/ah.php +++ b/application/views/mobile_first/ah.php @@ -268,5 +268,110 @@ + + + + + + \ No newline at end of file diff --git a/application/views/mobile_first/gh-pc.php b/application/views/mobile_first/gh-pc.php index 87f244e7..cf2d2b79 100644 --- a/application/views/mobile_first/gh-pc.php +++ b/application/views/mobile_first/gh-pc.php @@ -14,6 +14,7 @@ + @@ -35,29 +36,7 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= - +