{"id":4924,"date":"2016-12-06T13:16:30","date_gmt":"2016-12-06T04:16:30","guid":{"rendered":"https:\/\/www.live-commerce.com\/support\/?page_id=4924"},"modified":"2016-12-06T15:09:12","modified_gmt":"2016-12-06T06:09:12","slug":"cgetlanguage","status":"publish","type":"page","link":"https:\/\/www.live-commerce.com\/support\/functions\/cgetlanguage","title":{"rendered":"c::getLanguage"},"content":{"rendered":"<h3>\u6982\u8981<\/h3>\n<p>\u8a00\u8a9e\u3092\u5207\u308a\u66ff\u3048\u308b\u30d7\u30eb\u30c0\u30a6\u30f3\u3092\u51fa\u529b\u3057\u307e\u3059\u3002\u30d8\u30c3\u30c0\u30fc\u3084\u30d5\u30c3\u30bf\u30fc\u306a\u3069\u3067\u30b5\u30a4\u30c8\u306e\u8a00\u8a9e\u3092\u30e6\u30fc\u30b6\u30fc\u304c\u4efb\u610f\u3067\u5207\u308a\u66ff\u3048\u308b\u4e8b\u304c\u3067\u304d\u308b\u69d8\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u30b5\u30a4\u30c8\u306e\u8a00\u8a9e\u306f\u30e6\u30fc\u30b6\u30fc\u304c\u6307\u5b9a\u3057\u306a\u304f\u3066\u3082\u3001\u30d6\u30e9\u30a6\u30b6\u306e\u8a00\u8a9e\u8a2d\u5b9a\u3092\u8aad\u307f\u53d6\u3063\u3066\u81ea\u52d5\u5224\u5b9a\u3059\u308b\u69d8\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>\u4f7f\u3044\u65b9<\/h3>\n<pre class=\"lang:default decode:true \">&lt;div id=\"languageList\"&gt;\r\n    &lt;?php echo c::getLanguage($currentUrl, $langCode, $isSeo = 'false') ; ?&gt; \r\n&lt;\/div&gt;\r\n<\/pre>\n<p>&nbsp;<\/p>\n<h3>\u5f15\u6570\u306e\u5185\u5bb9<\/h3>\n<ul style=\"list-style-type: square;\">\n<li>$currentUrl : \u73fe\u5728\u306eURL\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u8a00\u8a9e\u3092\u5207\u308a\u66ff\u3048\u305f\u6642\u306b\u5207\u63db\u3048\u5f8c\u306eURL\u3092\u6307\u5b9a\u3059\u308b\u70ba\u3067\u3059\u3002<\/li>\n<li>$langCode : \u73fe\u5728\u30e6\u30fc\u30b6\u30fc\u304c\u9078\u629e\u3057\u3066\u3044\u308b\u8a00\u8a9e\u30b3\u30fc\u30c9\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>$isSeo : \u30c7\u30d5\u30a9\u30eb\u30c8\u306f\u7a7a\u3067\u3082\u53ef\u3002true \u3092\u6307\u5b9a\u3057\u305f\u5834\u5408\u3001SEO\u5f62\u5f0f\u306e\u30ea\u30f3\u30af\u30d1\u30b9\u3092\u51fa\u529b\u3057\u307e\u3059\u3002\u305f\u3060\u3057SEO URL\u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h3>\u8fd4\u308a\u5024<\/h3>\n<p>String<\/p>\n<pre class=\"lang:default highlight:0 decode:true \" >&lt;select name=\"language\" onchange=\"window.location.href=this.value\"&gt;\r\n&lt;option value=\"http:\/\/....\"&gt;\u65e5\u672c\u8a9e&lt;\/option&gt;\r\n&lt;option value=\"http:\/\/....\"&gt;English&lt;\/option&gt;\r\n&lt;\/select&gt;<\/pre>\n<p>&nbsp;<\/p>\n<h3>\u4f7f\u7528\u4f8b<\/h3>\n<p>c::executeCacheForFunction \u95a2\u6570\u3092\u5229\u7528\u3057\u3066\u51fa\u529b\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u30d2\u30c3\u30c8\u3055\u305b\u308b\u4e8b\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u3053\u306e\u95a2\u6570\u306e\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f c::executeCacheForFunction \u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981 \u8a00\u8a9e\u3092\u5207\u308a\u66ff\u3048\u308b\u30d7\u30eb\u30c0\u30a6\u30f3\u3092\u51fa\u529b\u3057\u307e\u3059\u3002\u30d8\u30c3\u30c0\u30fc\u3084\u30d5\u30c3\u30bf\u30fc\u306a\u3069\u3067\u30b5\u30a4\u30c8\u306e\u8a00\u8a9e\u3092\u30e6\u30fc\u30b6\u30fc\u304c\u4efb\u610f\u3067\u5207\u308a\u66ff\u3048\u308b\u4e8b\u304c\u3067\u304d\u308b\u69d8\u306b\u306a\u308a\u307e\u3059\u3002 \u30b5\u30a4\u30c8\u306e\u8a00\u8a9e\u306f\u30e6\u30fc\u30b6\u30fc\u304c\u6307\u5b9a\u3057\u306a\u304f\u3066\u3082\u3001\u30d6\u30e9\u30a6\u30b6\u306e\u8a00\u8a9e\u8a2d\u5b9a\u3092\u8aad\u307f\u53d6\u3063\u3066\u81ea\u52d5\u5224\u5b9a\u3059\u308b\u69d8 [&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-4924","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.live-commerce.com\/support\/wp-json\/wp\/v2\/pages\/4924","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=4924"}],"version-history":[{"count":5,"href":"https:\/\/www.live-commerce.com\/support\/wp-json\/wp\/v2\/pages\/4924\/revisions"}],"predecessor-version":[{"id":5005,"href":"https:\/\/www.live-commerce.com\/support\/wp-json\/wp\/v2\/pages\/4924\/revisions\/5005"}],"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=4924"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}