{"id":5106,"date":"2016-12-08T11:50:31","date_gmt":"2016-12-08T02:50:31","guid":{"rendered":"https:\/\/www.live-commerce.com\/support\/?page_id=5106"},"modified":"2016-12-08T11:53:08","modified_gmt":"2016-12-08T02:53:08","slug":"ohasbrand","status":"publish","type":"page","link":"https:\/\/www.live-commerce.com\/support\/functions\/ohasbrand","title":{"rendered":"o::hasBrand"},"content":{"rendered":"<h3>\u6982\u8981<\/h3>\n<p>\u5546\u54c1ID\u306b\u3088\u3063\u3066\u30e1\u30fc\u30ab\u30fc\u306e\u6709\u7121\u3092\u30c1\u30a7\u30c3\u30af\u3057\u307e\u3059\u3002<br \/>\n&nbsp;<\/p>\n<h3>\u4f7f\u3044\u65b9<\/h3>\n<pre class=\"lang:default decode:true \" >&lt;ul&gt;\r\n&lt;li&gt;&lt;?php echo o::hasBrand($productId) ? '\u30e1\u30fc\u30ab\u30fc\u60c5\u5831' : '\u30e1\u30fc\u30ab\u30fc\u7121\u3057'; ?&gt;&lt;\/li&gt;\r\n&lt;\/ul&gt;<\/pre>\n<p>&nbsp;<\/p>\n<h3>\u5f15\u6570\u306e\u5185\u5bb9<\/h3>\n<ul style=\"list-style-type: square\">\n<li>$productId : \u5546\u54c1ID\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h3>\u8fd4\u308a\u5024<\/h3>\n<p>bool<br \/>\n&nbsp;<\/p>\n<h3>\u4f7f\u7528\u4f8b<\/h3>\n<pre class=\"lang:default decode:true \" >&lt;?php if (o::hasBrand($this-&gt;p_id)) : ?&gt;\r\n&lt;!--Brand info--&gt;\r\n&lt;h3&gt;&lt;?php echo c::getBrandNameByPid($this-&gt;p_id); ?&gt;&lt;\/h3&gt;\r\n&lt;!--Brand info \/\/--&gt;\r\n&lt;?php endif; ?&gt;<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981 \u5546\u54c1ID\u306b\u3088\u3063\u3066\u30e1\u30fc\u30ab\u30fc\u306e\u6709\u7121\u3092\u30c1\u30a7\u30c3\u30af\u3057\u307e\u3059\u3002 &nbsp; \u4f7f\u3044\u65b9 &lt;ul&gt; &lt;li&gt;&lt;?php echo o::hasBrand($productId) ? &#8216;\u30e1\u30fc\u30ab\u30fc\u60c5\u5831&#8217; : [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":154,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-5106","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.live-commerce.com\/support\/wp-json\/wp\/v2\/pages\/5106","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.live-commerce.com\/support\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.live-commerce.com\/support\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.live-commerce.com\/support\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.live-commerce.com\/support\/wp-json\/wp\/v2\/comments?post=5106"}],"version-history":[{"count":2,"href":"https:\/\/www.live-commerce.com\/support\/wp-json\/wp\/v2\/pages\/5106\/revisions"}],"predecessor-version":[{"id":5109,"href":"https:\/\/www.live-commerce.com\/support\/wp-json\/wp\/v2\/pages\/5106\/revisions\/5109"}],"up":[{"embeddable":true,"href":"https:\/\/www.live-commerce.com\/support\/wp-json\/wp\/v2\/pages\/154"}],"wp:attachment":[{"href":"https:\/\/www.live-commerce.com\/support\/wp-json\/wp\/v2\/media?parent=5106"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}