{"id":30255,"date":"2024-11-25T11:20:56","date_gmt":"2024-11-25T03:20:56","guid":{"rendered":"https:\/\/fwq.ai\/blog\/30255\/"},"modified":"2024-11-25T11:20:56","modified_gmt":"2024-11-25T03:20:56","slug":"%e7%bb%87%e6%a2%a6dedecms%e7%95%99%e8%a8%80%e6%9d%bf%e8%b0%83%e7%94%a8head-htm","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/30255\/","title":{"rendered":"\u7ec7\u68a6Dedecms\u7559\u8a00\u677f\u8c03\u7528head.htm"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/029\/5df1e50debb42542.jpg\" class=\"aligncenter\" title=\"\u7ec7\u68a6Dedecms\u7559\u8a00\u677f\u8c03\u7528head.htm\u63d2\u56fe\" alt=\"\u7ec7\u68a6Dedecms\u7559\u8a00\u677f\u8c03\u7528head.htm\u63d2\u56fe\" \/><\/p>\n<p><strong>dedecms\u7559\u8a00\u677f \u5934\u90e8\u8c03\u7528 \u4fee\u6539\u65b9\u6cd5:<\/strong><\/p>\n<p><strong>\u7b2c\u4e00\u6b65\uff1a\u6211\u4eec\u9700\u8981\u6253\u5f00&#8221;\/include\/common.func.php&#8221;<\/strong>\uff0c\u8fd9\u4e2a\u6587\u4ef65.6\u7248\u672c\u9ed8\u8ba4\u5b58\u5728\uff0c5.5\u7684\u4e0d\u5b58\u5728\u6211\u4eec\u53ef\u4ee5\u5efa\u4e00\u4e2a\uff0c\u8fd9\u4e2a\u6587\u4ef6\u529f\u80fd\u662f\u7528\u6765\u89e3\u6790\u6a21\u7248\u7684&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\uff08\u63a8\u8350\u5b66\u4e60\uff1a\uff09<\/p>\n<p>\u4e5f\u53ef\u4ee5\u6253\u5f00&#8221;include\/extend.func.php&#8221;\u6587\u4ef6\u3002<\/p>\n<p><strong>\u5728\u8be5\u6587\u4ef6\u4e2d\u52a0\u5165\u4e00\u4e2a\u51fd\u6570\uff0c\u4ee3\u7801\u5982\u4e0b\uff1a<\/strong><\/p>\n<pre>function&nbsp;pasterTempletDiy($path)\n{\nrequire_once(DEDEINC.\"\/arc.partview.class.php\");\nglobal$cfg_basedir,$cfg_templets_dir;\n$tmpfile&nbsp;=&nbsp;$cfg_basedir.$cfg_templets_dir.\"\/\".$path;\/\/\u6a21\u7248\u6587\u4ef6\u7684\u8def\u5f84\n$dtp&nbsp;=&nbsp;new&nbsp;PartView();\n$dtp-&amp;gt;SetTemplet($tmpfile);\n$dtp-&amp;gt;Display();\n}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>\u7b2c\u4e8c\u6b65\uff0c\u6253\u5f00\u7559\u8a00\u672c\u7684\u6a21\u7248\u6587\u4ef6\uff0c\u9ed8\u8ba4\u7684\u662f\/templets\/plus\/guestbook.htm<\/strong><\/p>\n<p>\u627e\u5230&#8221;<\/p>\n<p>&#8221; <\/p>\n<p>\u7528\u4ee5\u4e0b\u4ee3\u7801\u66ff\u6362\u539f\u6765\u7684\u8c03\u7528\u5934\u90e8\u4ee3\u7801<\/p>\n<pre>&lt;?php   pasterTempletDiy(\"default\/head.htm\");\n?&gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u7ec7\u68a6Dedecms\u7559\u8a00\u677f\u8c03\u7528head.htm\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>dedecms\u7559\u8a00\u677f \u5934\u90e8\u8c03\u7528 \u4fee\u6539\u65b9\u6cd5: \u7b2c\u4e00\u6b65\uff1a\u6211\u4eec\u9700\u8981\u6253\u5f00&#8221;\/include\/common.func.php&#8221;\uff0c\u8fd9\u4e2a\u6587\u4ef65.6\u7248\u672c\u9ed8\u8ba4\u5b58\u5728\uff0c5.5\u7684\u4e0d\u5b58\u5728\u6211\u4eec\u53ef\u4ee5\u5efa\u4e00\u4e2a\uff0c\u8fd9\u4e2a\u6587\u4ef6\u529f\u80fd\u662f\u7528\u6765\u89e3\u6790\u6a21\u7248\u7684&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\uff08\u63a8\u8350\u5b66\u4e60\uff1a\uff09 \u4e5f\u53ef\u4ee5\u6253\u5f00&#8221;include\/extend.func.php&#8221;\u6587\u4ef6\u3002 \u5728\u8be5\u6587\u4ef6\u4e2d\u52a0\u5165\u4e00\u4e2a\u51fd\u6570\uff0c\u4ee3\u7801\u5982\u4e0b\uff1a function&nbsp;pasterTempletDiy($path) { require_once(DEDEINC.&#8221;\/arc.partview.class.php&#8221;); global$cfg_basedir,$cfg_templets_dir; $tmpfile&nbsp;=&nbsp;$cfg_basedir.$cfg_templets_dir.&#8221;\/&#8221;.$path;\/\/\u6a21\u7248\u6587\u4ef6\u7684\u8def\u5f84 $dtp&nbsp;=&nbsp;new&nbsp;PartView(); $dtp-&amp;gt;SetTemplet($tmpfile); $dtp-&amp;gt;Display(); } \u767b\u5f55\u540e\u590d\u5236 \u7b2c\u4e8c\u6b65\uff0c\u6253\u5f00\u7559\u8a00\u672c\u7684\u6a21\u7248\u6587\u4ef6\uff0c\u9ed8\u8ba4\u7684\u662f\/templets\/plus\/guestbook.htm \u627e\u5230&#8221; &#8221; \u7528\u4ee5\u4e0b\u4ee3\u7801\u66ff\u6362\u539f\u6765\u7684\u8c03\u7528\u5934\u90e8\u4ee3\u7801 &lt;?php pasterTempletDiy(&#8220;default\/head.htm&#8221;); ?&gt; \u767b\u5f55\u540e\u590d\u5236 \u4ee5\u4e0a\u5c31\u662f\u7ec7\u68a6Dedecms\u7559\u8a00\u677f\u8c03\u7528head.htm\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/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-30255","post","type-post","status-publish","format-standard","hentry","category-cms"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/30255","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=30255"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/30255\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=30255"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=30255"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=30255"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}