{"id":31894,"date":"2024-11-25T14:54:12","date_gmt":"2024-11-25T06:54:12","guid":{"rendered":"https:\/\/fwq.ai\/blog\/31894\/"},"modified":"2024-11-25T14:54:12","modified_gmt":"2024-11-25T06:54:12","slug":"phpcms-v9%e7%9a%84%e6%a0%87%e7%ad%be%e6%b1%87%e6%80%bb","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/31894\/","title":{"rendered":"phpcms-v9\u7684\u6807\u7b7e\u6c47\u603b"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/052\/5ffcfb983b37d151.jpg\" class=\"aligncenter\" title=\"phpcms-v9\u7684\u6807\u7b7e\u6c47\u603b\u63d2\u56fe\" alt=\"phpcms-v9\u7684\u6807\u7b7e\u6c47\u603b\u63d2\u56fe\" \/><\/p>\n<p><strong>\u63a8\u8350\uff08\u514d\u8d39\uff09\uff1a<\/strong><\/p>\n<pre>{template \u201ccontent\u201d,\u201dheader\u201d}   \u2014\u2014\u2014-  \u8c03\u7528\u6839\u76ee\u5f55\u4e0bphpcms\templatecontentheader\u6587\u4ef6\n{CHARSET}  \u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014-\u5b57\u7b26\u96c6 \uff08gbk\u6216\u8005utf-8\uff09\n\n\n{if isset($SEO['title']) &amp;&amp; !empty($SEO['title'])}\n{$SEO['title']}{\/if}\n{$SEO['site_title']}\n{$SEO['keyword']}\n{$SEO['description']}\n\n\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2013\u6807\u9898\u548c\u6807\u9898seo\u4f18\u5316\n{CSS_PATH}  \u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2013\u5730\u5740\u66ff\u6362\u4e3a\u6839\u76ee\u5f55\u4e0bstaticscss\n{JS_PATH}\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2013\u5730\u5740\u66ff\u6362\u4e3a\u6839\u76ee\u5f55\u4e0bstaticsjs\n{pc:content  action=\u201dposition\u201d posid=\u201d9\u2033 order=\u201did\u201d num=\u201d10\u2033 cache=\u201d3600\u2033}\npc\u6807\u7b7e{pc:content \u53c2\u6570\u540d=\u201d\u53c2\u6570\u503c\u201d\u53c2\u6570\u540d=\u201d\u53c2\u6570\u503c\u201d\u53c2\u6570\u540d=\u201d\u53c2\u6570\u503c\u201d}\n{loop $data $k $v}\n      &lt;li&gt;&lt;a href=\u201d{$v[url]}\u201d&gt;{$v[title]}&lt;\/a&gt;&lt;\/li&gt;\n{\/loop}\npc\u6807\u7b7e\u503c\naction=\u201dposition\u201d\u2014\u2014\u2014\u2014-\u5bf9\u8bdd\u6846\u7684\u7c7b\u578b=\u201c\u5185\u5bb9\u63a8\u8350\u4f4d\u5217\u8868\u201d\nposid=\u201d9\u2033\u2014\u2014\u2014\u2014\u2014\u2014\u2013\u63a8\u8350\u4f4dID=\u201c9\u201d\norder=\u201did\u201d\u2014\u2014\u2014\u2014\u2014\u2014\u2013\u6392\u5e8f\u7c7b\u578b=\u201cid\u201d\nnum=\u201d10\u2033 \u2014\u2014\u2014\u2014\u2014\u2014-\u6570\u636e\u8c03\u7528\u6570\u91cf=\u201c10\u201d\ncache=\u201d3600\u2033\u2014\u2014\u2014\u2014\u2014-\u7f13\u5b58=\u201d3600\u2033\u6beb\u79d2\n{APP_PATH}\u2014\u2014\u2014\u2014\u2014\u2013\u9879\u76ee\u5730\u5740\n{get_siteid()}\u2014\u2014\u2014\u2014\u2014-\n{IMG_PATH}\u2014\u2014\u2014\u2014\u2014\u2013\naction=\u201dhits\u201d \u6392\u884c\uff0c\u70ed\u70b9\u7b49\naction=\u201dlists\u201d \u4e3b\u8981\u7528\u4e8e\u5217\u8868\u7b49\u3002\ncatid=\u201d$catid\u201d \u5f53\u524d\u680f\u76eeID   \u6307\u5b9a\u6570\u5b57\uff0c\u5373\u4e3a\u6307\u5b9a\u7684\u680f\u76ee\nnum=\u201d\"  \u8c03\u7528\u6587\u7ae0\u7684\u6570\u91cf\norder=\u201did DESC\u201d \u6309ID\u964d\u5e8f\u6392\u5217\norder=\u201did ASC\u201d  \u6309ID\u5347\u5e8f\u6392\u5217\norder=\u201dviews DESC\u201d\nsort=\u201d\"\nthumb=\u201d1\u2033 \u7f29\u7565\u56fe\nreturn=\u201d\"\npage=\u201d$page\u201d \u9700\u8981\u5206\u9875\n\n\u6bcf\u5f53\u5217\u8868\u51e0\u884c\u7684\u65f6\u5019\u51fa\u73b0\u4e00\u6b21\u8fd9\u4e2a\n\n{if $num%2==0}   {\/if}\n\n\u5faa\u73af\u6807\u7b7e\n\n\u2014\u2014{loop $data $r}  {\/loop}   \n\n\u2014\u2014{loop $info $r}  {\/loop}\n\n\u65e5\u671f\u2014\u2014{date(\u2018Y-m-d H:i:s\u2019,$r[inputtime])}\n\u6587\u7ae0\u94fe\u63a5\u2014\u2014{$r[url]}\n\u6587\u7ae0\u6807\u9898\u2014\u2014{$r[title]}\n\u6807\u9898\u622a\u53d6\u2014\u2014{str_cut($r[title],40,\u2019\u2026\u2019)}\n\u7f29\u7565\u56fe\u2014\u2014loop\u662finfo\u7684\u65f6\u5019\u7528  {thumb($r[thumb],110,0)}     loop\u662fdata\u7684\u65f6\u5019\u7528{thumb($v[thumb],90,0)}\n\u5206\u9875\u6807\u7b7e\u2014\u2014{$pages}\n\u6587\u7ae0\u9875\u6807\u7b7e\n\u3000\u3000\u6807\u9898\u2014\u2014{$title}\n\u3000\u3000\u5185\u5bb9\u2014\u2014{$content}\n\u3000\u3000\u65e5\u671f\u2014\u2014{$inputtime}\n\u3000\u3000\u6765\u6e90\u2014\u2014{$copyfrom}\n\u3000\u3000\u70b9\u51fb\u6570\u2014\u2014&lt;span id=\u201dhits\u201d&gt;&lt;\/span&gt;  \n\n\u3000\u3000&lt;script language=\u201dJavaScript\u201d src=\u201d{APP_PATH}api.php?op=count&amp;id={$id}&amp;modelid={$modelid}\u201d&gt;&lt;\/script&gt;\n\u7f51\u7ad9\u9996\u9875\u2014\u2014{siteurl($siteid)}\n\u5f53\u524d\u4f4d\u7f6e\u2014\u2014{catpos($catid)}\n\n\u680f\u76ee\u540d\u79f0\u2014\u2014{$CAT[catname]} \n\n\u680f\u76ee\u62fc\u97f3\u2014\u2014{$CAT[letter]}\n\n\u680f\u76ee\u94fe\u63a5\u2014\u2014{$CAT[url]}\n\n\u7236\u680f\u76ee\u540d\u79f0\u2014\u2014{$CATEGORYS[$CAT[parentid]][catname]} \n\n\u7236\u680f\u76ee\u94fe\u63a5\u2014\u2014{$CATEGORYS[$CAT[parentid]][url]}\n\n \n\n\n\u4e0a\u4e0a\u7ea7\u680f\u76ee\u540d\u79f0\u2014\u2014{$CATEGORYS[$CATEGORYS[$CAT[parentid]][parentid]][catname]}\n\n\u4e0a\u4e0a\u7ea7\u680f\u76ee\u94fe\u63a5\u2014\u2014{$CATEGORYS[$CATEGORYS[$CAT[parentid]][parentid]][url]}\n\n\u4e00\u7ea7\u7236\u680f\u76ee\u5217\u8868\n\n{pc:content action=\u201dcategory\u201d catid=\u201d0\u2033 num=\u201d34\u2033 siteid=\u201d$siteid\u201d order=\u201dlistorder ASC\u201d}\n      {loop $data $r}\n            &lt;li&gt;&lt;a href=\u201d{$r[url]}\u201d&gt;{$r[catname]}&lt;\/a&gt;&lt;\/li&gt;\n      {\/loop}\n{\/pc}\n\n\u540c\u7ea7\u680f\u76ee\u5217\u8868\n\n{pc:content action=\u201dcategory\u201d catid=\u201d$parentid\u201d num=\u201d12\u2033 siteid=\u201d$siteid\u201d order=\u201dlistorder ASC\u201d}\n      {loop $data $r}\n            &lt;li&gt;&lt;a href=\u201d{$r[url]}\u201d&gt;{$r[catname]}&lt;\/a&gt;&lt;\/li&gt;\n       {\/loop}\n{\/pc}\n\n\u7ec4\u56fe\u5217\u8868\n\n{loop $photos $r} \n\n&lt;li&gt;&lt;a href=\u201d{$r[url]}\u201d&gt;&lt;img src=\u201d{thumb($r[url], 75, 45, 0)}\u201d alt=\u201d{$r[alt]}\u201d \/&gt;&lt;\/a&gt;&lt;\/li&gt;\n\n{\/loop}\n\n\u6ce8\u91ca\uff1a\u5176\u4e2d$photos\u4e3a\u81ea\u5b9a\u4e49\u7ec4\u56fe\u5b57\u6bb5\uff0c{$r[url]}\u4e3a\u56fe\u7247\u5730\u5740\uff0c{thumb($r[url], 75, 45, 0)}\u4e3a\u56fe\u7247\u7f29\u7565\u56fe\uff0c{$r[alt]}\u4e3a\u56fe\u7247\u63cf\u8ff0\u3002<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fphpcms-v9\u7684\u6807\u7b7e\u6c47\u603b\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u63a8\u8350\uff08\u514d\u8d39\uff09\uff1a {template \u201ccontent\u201d,\u201dheader\u201d} \u2014\u2014\u2014- \u8c03\u7528\u6839\u76ee\u5f55\u4e0bphpcms emplatecontentheader\u6587\u4ef6 {CHARSET} \u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014-\u5b57\u7b26\u96c6 \uff08gbk\u6216\u8005utf-8\uff09 {if isset($SEO[&#8216;title&#8217;]) &amp;&amp; !empty($SEO[&#8216;title&#8217;])} {$SEO[&#8216;title&#8217;]}{\/if} {$SEO[&#8216;site_title&#8217;]} {$SEO[&#8216;keyword&#8217;]} {$SEO[&#8216;description&#8217;]} \u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2013\u6807\u9898\u548c\u6807\u9898seo\u4f18\u5316 {CSS_PATH} \u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2013\u5730\u5740\u66ff\u6362\u4e3a\u6839\u76ee\u5f55\u4e0bstaticscss {JS_PATH}\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2013\u5730\u5740\u66ff\u6362\u4e3a\u6839\u76ee\u5f55\u4e0bstaticsjs {pc:content action=\u201dposition\u201d posid=\u201d9\u2033 order=\u201did\u201d num=\u201d10\u2033 cache=\u201d3600\u2033} pc\u6807\u7b7e{pc:content \u53c2\u6570\u540d=\u201d\u53c2\u6570\u503c\u201d\u53c2\u6570\u540d=\u201d\u53c2\u6570\u503c\u201d\u53c2\u6570\u540d=\u201d\u53c2\u6570\u503c\u201d} {loop $data $k $v} &lt;li&gt;&lt;a href=\u201d{$v[url]}\u201d&gt;{$v[title]}&lt;\/a&gt;&lt;\/li&gt; {\/loop} pc\u6807\u7b7e\u503c action=\u201dposition\u201d\u2014\u2014\u2014\u2014-\u5bf9\u8bdd\u6846\u7684\u7c7b\u578b=\u201c\u5185\u5bb9\u63a8\u8350\u4f4d\u5217\u8868\u201d posid=\u201d9\u2033\u2014\u2014\u2014\u2014\u2014\u2014\u2013\u63a8\u8350\u4f4dID=\u201c9\u201d order=\u201did\u201d\u2014\u2014\u2014\u2014\u2014\u2014\u2013\u6392\u5e8f\u7c7b\u578b=\u201cid\u201d num=\u201d10\u2033 \u2014\u2014\u2014\u2014\u2014\u2014-\u6570\u636e\u8c03\u7528\u6570\u91cf=\u201c10\u201d cache=\u201d3600\u2033\u2014\u2014\u2014\u2014\u2014-\u7f13\u5b58=\u201d3600\u2033\u6beb\u79d2 {APP_PATH}\u2014\u2014\u2014\u2014\u2014\u2013\u9879\u76ee\u5730\u5740 {get_siteid()}\u2014\u2014\u2014\u2014\u2014- {IMG_PATH}\u2014\u2014\u2014\u2014\u2014\u2013 action=\u201dhits\u201d \u6392\u884c\uff0c\u70ed\u70b9\u7b49 action=\u201dlists\u201d \u4e3b\u8981\u7528\u4e8e\u5217\u8868\u7b49\u3002 catid=\u201d$catid\u201d \u5f53\u524d\u680f\u76eeID \u6307\u5b9a\u6570\u5b57\uff0c\u5373\u4e3a\u6307\u5b9a\u7684\u680f\u76ee num=\u201d&#8221; \u8c03\u7528\u6587\u7ae0\u7684\u6570\u91cf [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-31894","post","type-post","status-publish","format-standard","hentry","category-cms"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/31894","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=31894"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/31894\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=31894"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=31894"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=31894"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}