{"id":607,"date":"2019-08-10T11:53:41","date_gmt":"2019-08-10T03:53:41","guid":{"rendered":"http:\/\/blog.yyhcw.com\/?p=607"},"modified":"2019-08-10T13:59:44","modified_gmt":"2019-08-10T05:59:44","slug":"tint-k%e4%b8%bb%e9%a2%98-%e7%ab%99%e5%8a%a1%e7%ae%a1%e7%90%86%e5%a2%9e%e5%8a%a0%e6%96%b0%e8%8f%9c%e5%8d%95%e5%8a%9f%e8%83%bd%e6%ad%a5%e9%aa%a4","status":"publish","type":"post","link":"https:\/\/blog.yyhcw.com\/post\/607.html","title":{"rendered":"Tint-K\u4e3b\u9898 \u7ad9\u52a1\u7ba1\u7406\u589e\u52a0\u65b0\u83dc\u5355\u529f\u80fd\u6b65\u9aa4"},"content":{"rendered":"<!--wp-compress-html--><!--wp-compress-html no compression--><p>\u7531\u4e8e\u5bf9WORDPRESS\u7684\u4e0d\u592a\u719f\u6089\uff0c\u6240\u4ee5\u6700\u521d\u7684\u65f6\u5019\u5e76\u6ca1\u6709\u4f7f\u7528wp\u81ea\u5e26\u7684\u529f\u80fd\u8fdb\u884c\u589e\u52a0\u6216\u4fee\u6539\u800c\u662f\u81ea\u5df1\u65b0\u5efa\u4e86\u8868\u5355\u8fdb\u884c\u5904\u7406\uff0c\u540e\u6765\u4e3a\u4e86\u66f4\u597d\u7684\u7ba1\u7406\uff0c\u53ea\u80fd\u5728\u3010\u7ad9\u52a1\u7ba1\u7406\u3011\u91cc\u9762\u589e\u52a0\u76f8\u5e94\u7684\u7ba1\u7406\u83dc\u5355\u8fdb\u884c\u7ba1\u7406\u4e86\uff0c\u8fd9\u662f\u65e0\u5948\u4e4b\u4e3e\uff01\u60f3\u5bf9<a href=\"https:\/\/blog.yyhcw.com\/post\/tag\/tint-k%e4%b8%bb%e9%a2%98\" class=\"tag-tooltip\" data-toggle=\"tooltip\" title=\"\u67e5\u770b\u66f4\u591a\u5173\u4e8e Tint-K\u4e3b\u9898 \u7684\u6587\u7ae0\" target=\"_blank\">Tint-K\u4e3b\u9898<\/a>\u8be6\u7ec6\u4e86\u89e3\u53ef\u4ee5\u770b\u770b<a href=\"http:\/\/blog.yyhcw.com\/post\/540.html\">Tint-K\u4e3b\u9898\u76ee\u5f55\u7ed3\u6784\u53ca\u6587\u4ef6\u529f\u80fd\u8bf4\u660e<\/a>\uff0c\u76ee\u5f55\u7ed3\u6784\u6bd4\u8f83\u8be6\u7ec6\uff0c\u66f4\u9002\u5408\u4e8c\u6b21\u5f00\u53d1\uff01<\/p>\n<p>\u4e0b\u9762\u76f4\u63a5\u8bf4Timt-K\u4e3b\u9898\u600e\u4e48\u8fdb\u884c\u7ad9\u52a1\u7ba1\u7406\u83dc\u5355\u53ca\u529f\u80fd\u7684\u6dfb\u52a0\u8bf4\u660e\uff1a<\/p>\n<ol>\n<li>\u589e\u52a0\u5de6\u4fa7\u83dc\u5355\u9009\u9879 \u6587\u4ef6 themes\\Tint\\core\\modules\\management\\mg.NavMenu.php\u4e2d\u589e\u52a0\u83dc\u5355\n<pre class=\"lang:php decode:true\">&lt;li&gt;&lt;a class=\"&lt;?php echo tt_conditional_class('mg_tab adown', $mg_tab == 'adown'); ?&gt;\" href=\"&lt;?php echo tt_url_for('manage_adown'); ?&gt;\"&gt;&lt;?php _e('APP\u4e0b\u8f7d', 'tt'); ?&gt;&lt;\/a&gt;&lt;\/li&gt;<\/pre>\n<\/li>\n<li>\u83dc\u5355\u589e\u52a0\u597d\u4e86\u5c31\u8981\u80fd\u6253\u5f00\uff0c\u6a21\u677f\u6587\u4ef6\uff1athemes\\Tint\\core\\templates\\management\\tpl.Manage.Adown.php\uff08\u6b64\u6587\u4ef6\u662f\u65b0\u589e\u7684\uff0c\u81ea\u884c\u6539\u540d\u4f46\u662f\u8981\u6ce8\u610f\u540d\u79f0\uff0c\u56e0\u4e3a\u8981\u5bf9\u5e94\u624d\u884c\uff09\uff0c\u5185\u5bb9\u53ef\u81ea\u884c\u8bbe\u8ba1\u6216\u8005\u76f4\u63a5\u62f7\u8d1d\u5176\u5b83\u7684\u8fdb\u884c\u6539\u540d\u4e5f\u53ef\uff08\u7b80\u5355\u5feb\u901f\u65b9\u5f0f\uff09\u4f46\u662f\u91cc\u9762\u6ce8\u610f\uff1a\n<pre class=\"lang:php decode:true\">&lt;div class=\"inner row\"&gt;\r\n                &lt;?php load_mod('management\/mg.NavMenu'); ?&gt;  \u6ce8\u91ca\uff1a\u52a0\u8f7d \u5de6\u4fa7\u83dc\u5355\u7684\r\n                &lt;?php load_mod('management\/mg.Tab.Adown'); ?&gt;  \u6ce8\u91ca\uff1a\u52a0\u8f7d \u53f3\u4fa7\u4fe1\u606f\u7684\uff08\u6b64\u6587\u4ef6\u76ee\u524d\u8fd8\u6ca1\u6709\u5efa\u7acb\uff09\r\n            &lt;\/div&gt;<\/pre>\n<\/li>\n<li>\u5148\u589e\u52a0\u53f3\u4fa7\u4fe1\u606f\u5217\u8868\u9875 \u6587\u4ef6\uff1athemes\\Tint\\core\\modules\\management\\mg.Tab.Adown.php \u6b64\u6587\u4ef6\u4e3b\u8981\u7528\u4e8e\u663e\u793a\u4f60\u6240\u770b\u5230\u7684\u9875\u9762\u6392\u7248\u6837\u5f0f\uff01\u6700\u7b80\u5355\u7684\u65b9\u6cd5\u8fd8\u662f\u590d\u5236\u5176\u5b83\u6587\u4ef6\u8fdb\u884c\u4fee\u6539\uff01<\/li>\n<li>\u6700\u540e\u589e\u52a0\u4e1a\u52a1\u5904\u7406 \u6587\u4ef6\uff1athemes\\Tint\\core\\viewModels\\management\\vm.Mg.Adown.php \u987e\u540d\u601d\u4e49\u4e1a\u52a1\u7684\u6240\u6709\u5904\u7406\u90fd\u5728\u6b64\u5904\u5b8c\u6210\uff0c\u5982\u5206\u9875\u3001\u67e5\u8868\u7b49\u7b49\u4e1a\u52a1\u903b\u8f91\u5904\u7406\uff01<\/li>\n<li>\u4e1a\u52a1\u65b9\u9762\u53ca\u6587\u4ef6\u90fd\u5904\u7406\u5b8c\u4e86\uff0c\u5269\u4e0b\u7684\u5c31\u662f\u8def\u7531\u89c4\u5219\u4e86 \u6587\u4ef6\uff1athemes\\Tint\\core\\functions\\Constants.php \u627e\u5230\u3010$manage_allow_routes\u3011\u7684\u6570\u7ec4 \u589e\u52a0\n<pre class=\"\">'members' =&gt; 'members',\r\n'products' =&gt; 'products',\r\n'adown' =&gt; 'adown'   \u8fd9\u4e2a\u662f\u65b0\u589e\u52a0\u7684<\/pre>\n<p>\u627e\u5230\u3010$site_endpoints\u3011\u7684\u6570\u7ec4 \u589e\u52a0\uff1a<\/p>\n<pre class=\"lang:php decode:true\">'manage_members'            =&gt;  'management\/members',\r\n'manage_products'           =&gt;  'management\/products',\r\n'manage_adown'              =&gt;  'management\/adown'     \u8fd9\u4e2a\u662f\u65b0\u589e\u52a0\u7684<\/pre>\n<p>\u73b0\u5728\u5230\u7ad9\u52a1\u7ba1\u7406\u4e2d\u67e5\u770b \u662f\u4e0d\u662f\u90fd\u53ef\u4ee5\u6b63\u5e38\u6253\u5f00\u4e86\uff01\u4f46\u662f\u8fd8\u6709\u4e00\u4e2a\u6807\u9898\u95ee\u9898\u4e0d\u77e5\u9053\u662f\u5426\u6ce8\u610f\u5230\u4e86\uff01\u6700\u540e\u4e00\u70b9\u4fee\u6539\u6807\u9898\u4fe1\u606f<\/li>\n<li>\u4fee\u6539\u6807\u9898 \u6587\u4ef6\uff1athemes\\Tint\\core\\functions\\func.Loader.php \u627e\u5230 switch ($site_manage) { } \u5728\u5176\u4e2d\u589e\u52a0\n<pre class=\"lang:php decode:true\">case 'products':\r\n    $title = __('Products Management', 'tt');\r\n    break;\r\ncase 'adown':   \u8fd9\u4e2a\u5c31\u662f\u65b0\u589e\u52a0\u7684\r\n    $title = __('APP\u4e0b\u8f7d\u7ba1\u7406', 'tt');\r\n    break;<\/pre>\n<p>\u627e\u5230if (TT_PRO) {}\u589e\u52a0<\/p>\n<pre class=\"\">load_vm('management\/vm.Mg.Kapp');<\/pre>\n<p>\u770b\u770b\u6807\u9898\u662f\u4e0d\u662f\u4e5f\u53d8\u4e86\uff0c\u540d\u79f0\u81ea\u884c\u4fee\u6539\uff01\u8fd9\u4e2a\u6bd4\u8f83\u7b80\u5355\u6211\u662f\u4e3a\u4e86\u65b9\u4fbf\u76f4\u63a5\u5199\u7684\u4e2d\u6587\uff0c\u53ef\u4ee5\u4fee\u6539 \\themes\\Tint\\core\\languages\\tt.pot \u6587\u4ef6\u5c06\u4f60\u7684\u4fe1\u606f\u5199\u5165\u8fdb\u53bb\u5c31\u53ef\u4ee5\u4f7f\u7528\u82f1\u6587\u8c03\u7528\u4e86\uff01<\/li>\n<\/ol>\n<p>\u81f3\u6b64\u4e00\u4e2a\u65b0\u7684\u7ba1\u7406\u754c\u9762\u51fa\u7089\u4e86\uff01\u60f3\u81ea\u5b9a\u4e49\u5185\u5bb9\u800c\u5bf9WORDPRESS\u4e0d\u719f\u6089\u7684\u53ef\u4ee5\u501f\u9274\u4e0b\uff01\u6b64\u6587\u53ea\u662f\u4e3a\u4e86\u8bb0\u5f55\u5728Timt-K\u4e3b\u9898\u4e2d\u5982\u4f55\u65b0\u589e\u754c\u9762\u7f62\u4e86\uff01\u76f8\u5173\u4fe1\u606f\uff1a<a href=\"http:\/\/blog.yyhcw.com\/post\/546.html\">Tint-K\u4e3b\u9898\u589e\u52a0\u7528\u6237\u7ba1\u7406\u6536\u8d27\u5730\u5740<\/a>\uff0c\u7528\u6237\u4e2d\u5fc3\u589e\u52a0\u529f\u80fd\uff01<\/p>\n<!--wp-compress-html no compression--><!--wp-compress-html-->","protected":false},"excerpt":{"rendered":"\u7531\u4e8e\u5bf9WORDPRESS\u7684\u4e0d\u592a\u719f\u6089\uff0c\u6240\u4ee5\u6700\u521d\u7684\u65f6\u5019\u5e76\u6ca1\u6709\u4f7f\u7528wp\u81ea\u5e26\u7684\u529f\u80fd\u8fdb\u884c\u589e\u52a0\u6216\u4fee\u6539\u800c\u662f\u81ea\u5df1\u65b0\u5efa\u4e86\u8868\u5355\u8fdb\u884c \u00b7\u00b7\u00b7","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[126,28],"views":531,"_links":{"self":[{"href":"https:\/\/blog.yyhcw.com\/api\/wp\/v2\/posts\/607"}],"collection":[{"href":"https:\/\/blog.yyhcw.com\/api\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.yyhcw.com\/api\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.yyhcw.com\/api\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.yyhcw.com\/api\/wp\/v2\/comments?post=607"}],"version-history":[{"count":0,"href":"https:\/\/blog.yyhcw.com\/api\/wp\/v2\/posts\/607\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.yyhcw.com\/api\/wp\/v2\/media?parent=607"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.yyhcw.com\/api\/wp\/v2\/categories?post=607"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.yyhcw.com\/api\/wp\/v2\/tags?post=607"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}