{eval} // JSON-LD Structured Data for SEO if (isset($moduleid) && $moduleid == 21 && isset($itemid)) { $jsonld = array( "@context" => "https://schema.org", "@type" => "Article", "headline" => $title, "description" => $introduce ? $introduce : mb_substr(strip_tags($content), 0, 200, 'UTF-8'), "datePublished" => date('c', $addtime), "dateModified" => isset($edittime) ? date('c', $edittime) : date('c', $addtime), "mainEntityOfPage" => array( "@type" => "WebPage", "@id" => $linkurl ) ); // Add image if available if (isset($thumb) && $thumb) { $jsonld["image"] = array( "@type" => "ImageObject", "url" => $thumb, "width" => 800, "height" => 600 ); } // Add author if available if (isset($username) && $username) { $jsonld["author"] = array( "@type" => "Person", "name" => $username ); } // Check if it's a FAQ article if (isset($content) && strpos($content, '
') !== false) { // Parse FAQ Q&A from content preg_match_all('/

(.*?)<\/h2>\s*

(.*?)<\/p>/s', $content, $matches, PREG_SET_ORDER); if (!empty($matches)) { $jsonld["@type"] = "FAQPage"; $jsonld["mainEntity"] = array(); foreach ($matches as $match) { $jsonld["mainEntity"][] = array( "@type" => "Question", "name" => strip_tags($match[1]), "acceptedAnswer" => array( "@type" => "Answer", "text" => strip_tags($match[2]) ) ); } // Remove fields not applicable to FAQPage unset($jsonld["articleBody"]); } } echo '' . "\n"; } {/eval}

图库浏览完毕

重新浏览
推荐图库
1 / 3

真石漆岗亭

2022-05-02 13900
真石漆岗亭
  • gangting
    加关注1
  • 不锈钢岗亭,治安岗亭,保安岗亭,售货岗亭,收费岗亭,形象岗亭,移动卫生间,不锈钢加工安装
举报收藏 0打赏 1评论 0
更多>推荐图库
更多>相关问答
暂无问答,点这里提问
更多>相关评论
暂时没有评论,来说点什么吧