{"id":186,"date":"2011-08-26T11:05:23","date_gmt":"2011-08-26T03:05:23","guid":{"rendered":""},"modified":"2022-10-16T11:29:25","modified_gmt":"2022-10-16T03:29:25","slug":"phpcms-v9-%e6%a0%87%e7%ad%be%e5%90%ab%e4%b9%89","status":"publish","type":"post","link":"https:\/\/www.soulbox.cn\/?p=186","title":{"rendered":"phpcms v9 \u6807\u7b7e\u542b\u4e49"},"content":{"rendered":"<p>{template &quot;content&quot;,&quot;header&quot;}   &#8212;&#8212;&#8212;-  \u8c03\u7528\u6839\u76ee\u5f55\u4e0bphpcms\\template\\content\\header\u6587\u4ef6<br \/>{CHARSET}  &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-\u5b57\u7b26\u96c6 \uff08gbk\u6216\u8005utf-8\uff09<\/p>\n<p>{if isset($SEO[&#39;title&#39;]) &#038;&#038; !empty($SEO[&#39;title&#39;])}<br \/>{$SEO[&#39;title&#39;]}{\/if}<br \/>{$SEO[&#39;site_title&#39;]}<br \/>{$SEO[&#39;keyword&#39;]}<br \/>{$SEO[&#39;description&#39;]}<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;\u6807\u9898\u548c\u6807\u9898seo\u4f18\u5316<\/p>\n<p>{CSS_PATH}  &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;\u5730\u5740\u66ff\u6362\u4e3a\u6839\u76ee\u5f55\u4e0b\\statics\\css<br \/>{JS_PATH}&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;\u5730\u5740\u66ff\u6362\u4e3a\u6839\u76ee\u5f55\u4e0b\\statics\\js<\/p>\n<p>{pc:content  action=&quot;position&quot; posid=&quot;9&quot; order=&quot;id&quot; num=&quot;10&quot; cache=&quot;3600&quot;}<br \/>pc\u6807\u7b7e{pc:content \u53c2\u6570\u540d=&quot;\u53c2\u6570\u503c&quot;\u53c2\u6570\u540d=&quot;\u53c2\u6570\u503c&quot;\u53c2\u6570\u540d=&quot;\u53c2\u6570\u503c&quot;}<br \/>{loop $data $k $v}<br \/>      &lt;li&gt;&lt;a href=&quot;{$v[url]}&quot;&gt;{$v[title]}&lt;\/a&gt;&lt;\/li&gt;<br \/>{\/loop}<\/p>\n<p>pc\u6807\u7b7e\u503c<br \/>action=&quot;position&quot;&#8212;&#8212;&#8212;&#8212;-\u5bf9\u8bdd\u6846\u7684\u7c7b\u578b=\u201c\u5185\u5bb9\u63a8\u8350\u4f4d\u5217\u8868\u201d<br \/>posid=&quot;9&quot;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;\u63a8\u8350\u4f4dID=\u201c9\u201d<br \/>order=&quot;id&quot;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;\u6392\u5e8f\u7c7b\u578b=\u201cid\u201d<br \/>num=&quot;10&quot; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-\u6570\u636e\u8c03\u7528\u6570\u91cf=\u201c10\u201d<br \/>cache=&quot;3600&quot;&#8212;&#8212;&#8212;&#8212;&#8212;-\u7f13\u5b58=&quot;3600&quot;\u6beb\u79d2<br \/>{APP_PATH}&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;\u9879\u76ee\u5730\u5740<br \/>{get_siteid()}&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>{IMG_PATH}&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>action=&quot;hits&quot; \u6392\u884c\uff0c\u70ed\u70b9\u7b49<br \/>action=&quot;lists&quot; \u4e3b\u8981\u7528\u4e8e\u5217\u8868\u7b49\u3002<br \/>catid=&quot;$catid&quot; \u5f53\u524d\u680f\u76eeID   \u6307\u5b9a\u6570\u5b57\uff0c\u5373\u4e3a\u6307\u5b9a\u7684\u680f\u76ee<br \/>num=&quot;&quot;  \u8c03\u7528\u6587\u7ae0\u7684\u6570\u91cf<br \/>order=&quot;id DESC&quot; \u6309ID\u964d\u5e8f\u6392\u5217<br \/>order=&quot;id ASC&quot;  \u6309ID\u5347\u5e8f\u6392\u5217<br \/>order=&quot;views DESC&quot;<br \/>sort=&quot;&quot;<br \/>thumb=&quot;1&quot; \u7f29\u7565\u56fe<br \/>return=&quot;&quot;<br \/>page=&quot;$page&quot; \u9700\u8981\u5206\u9875<\/p>\n<p>\u6bcf\u5f53\u5217\u8868\u51e0\u884c\u7684\u65f6\u5019\u51fa\u73b0\u4e00\u6b21\u8fd9\u4e2a<\/p>\n<p>{if $num%2==0}   {\/if}<\/p>\n<p>\u5faa\u73af\u6807\u7b7e<\/p>\n<p>&#8212;&#8212;{loop $data $r}  {\/loop}   <\/p>\n<p>&#8212;&#8212;{loop $info $r}  {\/loop}<\/p>\n<p>\u65e5\u671f&#8212;&#8212;{date(&#39;Y-m-d H:i:s&#39;,$r[inputtime])}<br \/>\u6587\u7ae0\u94fe\u63a5&#8212;&#8212;{$r[url]}<br \/>\u6587\u7ae0\u6807\u9898&#8212;&#8212;{$r[title]}<br \/>\u6807\u9898\u622a\u53d6&#8212;&#8212;{str_cut($r[title],40,&#39;&#8230;&#39;)}<br \/>\u7f29\u7565\u56fe&#8212;&#8212;loop\u662finfo\u7684\u65f6\u5019\u7528  {thumb($r[thumb],110,0)}     loop\u662fdata\u7684\u65f6\u5019\u7528{thumb($v[thumb],90,0)}<br \/>\u5206\u9875\u6807\u7b7e&#8212;&#8212;{$pages}<br \/>\u6587\u7ae0\u9875\u6807\u7b7e<br \/>\u3000\u3000\u6807\u9898&#8212;&#8212;{$title}<br \/>\u3000\u3000\u5185\u5bb9&#8212;&#8212;{$content}<br \/>\u3000\u3000\u65e5\u671f&#8212;&#8212;{$inputtime}<br \/>\u3000\u3000\u6765\u6e90&#8212;&#8212;{$copyfrom}<br \/>\u3000\u3000\u70b9\u51fb\u6570&#8212;&#8212;&lt;span id=&quot;hits&quot;&gt;&lt;\/span&gt;  <\/p>\n<p>\u3000\u3000&lt;script language=&quot;JavaScript&quot; src=&quot;{APP_PATH}api.php?op=count&#038;id={$id}&#038;modelid={$modelid}&quot;&gt;&lt;\/script&gt;<br \/>\u7f51\u7ad9\u9996\u9875&#8212;&#8212;{siteurl($siteid)}<br \/>\u5f53\u524d\u4f4d\u7f6e&#8212;&#8212;{catpos($catid)}<\/p>\n<p>\u680f\u76ee\u540d\u79f0&#8212;&#8212;{$CAT[catname]} <\/p>\n<p>\u680f\u76ee\u62fc\u97f3&#8212;&#8212;{$CAT[letter]}<\/p>\n<p>\u680f\u76ee\u94fe\u63a5&#8212;&#8212;{$CAT[url]}<\/p>\n<p>\u7236\u680f\u76ee\u540d\u79f0&#8212;&#8212;{$CATEGORYS[$CAT[parentid]][catname]} <\/p>\n<p>\u7236\u680f\u76ee\u94fe\u63a5&#8212;&#8212;{$CATEGORYS[$CAT[parentid]][url]}<\/p>\n<p>\u4e0a\u4e0a\u7ea7\u680f\u76ee\u540d\u79f0&#8212;&#8212;{$CATEGORYS[$CATEGORYS[$CAT[parentid]][parentid]][catname]}<\/p>\n<p>\u4e0a\u4e0a\u7ea7\u680f\u76ee\u94fe\u63a5&#8212;&#8212;{$CATEGORYS[$CATEGORYS[$CAT[parentid]][parentid]][url]}<\/p>\n<p>\u4e00\u7ea7\u7236\u680f\u76ee\u5217\u8868<\/p>\n<p>{pc:content action=&quot;category&quot; catid=&quot;0&quot; num=&quot;34&quot; siteid=&quot;$siteid&quot; order=&quot;listorder ASC&quot;}<br \/>      {loop $data $r}<br \/>            &lt;li&gt;&lt;a href=&quot;{$r[url]}&quot;&gt;{$r[catname]}&lt;\/a&gt;&lt;\/li&gt;<br \/>      {\/loop}<br \/>{\/pc}<\/p>\n<p>\u540c\u7ea7\u680f\u76ee\u5217\u8868<\/p>\n<p>{pc:content action=&quot;category&quot; catid=&quot;$parentid&quot; num=&quot;12&quot; siteid=&quot;$siteid&quot; order=&quot;listorder ASC&quot;}<br \/>      {loop $data $r}<br \/>            &lt;li&gt;&lt;a href=&quot;{$r[url]}&quot;&gt;{$r[catname]}&lt;\/a&gt;&lt;\/li&gt;<br \/>       {\/loop}<br \/>{\/pc}<\/p>\n<p>\u7ec4\u56fe\u5217\u8868<\/p>\n<p>{loop $photos $r} <\/p>\n<p>&lt;li&gt;&lt;a href=&quot;{$r[url]}&quot;&gt;&lt;img src=&quot;{thumb($r[url], 75, 45, 0)}&quot; alt=&quot;{$r[alt]}&quot; \/&gt;&lt;\/a&gt;&lt;\/li&gt;<\/p>\n<p>{\/loop}<\/p>\n<p>\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<\/p>\n","protected":false},"excerpt":{"rendered":"<p>{template &quot;&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[76,6],"class_list":["post-186","post","type-post","status-publish","format-standard","hentry","category-web","tag-phpcms","tag-web"],"_links":{"self":[{"href":"https:\/\/www.soulbox.cn\/index.php?rest_route=\/wp\/v2\/posts\/186","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.soulbox.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.soulbox.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.soulbox.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.soulbox.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=186"}],"version-history":[{"count":1,"href":"https:\/\/www.soulbox.cn\/index.php?rest_route=\/wp\/v2\/posts\/186\/revisions"}],"predecessor-version":[{"id":765,"href":"https:\/\/www.soulbox.cn\/index.php?rest_route=\/wp\/v2\/posts\/186\/revisions\/765"}],"wp:attachment":[{"href":"https:\/\/www.soulbox.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=186"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.soulbox.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=186"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.soulbox.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=186"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}