{"id":171,"date":"2006-01-16T21:12:37","date_gmt":"2006-01-16T12:12:37","guid":{"rendered":"http:\/\/argas.net\/_wp\/_wpmain\/?p=171"},"modified":"2006-01-16T21:12:37","modified_gmt":"2006-01-16T12:12:37","slug":"np_mobile%e3%81%ae%e8%a1%a8%e7%a4%ba%e3%81%99%e3%82%8b%e3%83%9a%e3%83%bc%e3%82%b8%e3%82%92%e3%81%a1%e3%82%87%e3%81%a3%e3%81%a8%e3%81%a0%e3%81%91%e8%aa%ad%e3%81%bf%e3%82%84%e3%81%99%e3%81%8f%e3%81%99","status":"publish","type":"post","link":"http:\/\/argas.net\/?p=171","title":{"rendered":"NP_Mobile\u306e\u8868\u793a\u3059\u308b\u30da\u30fc\u30b8\u3092\u3061\u3087\u3063\u3068\u3060\u3051\u8aad\u307f\u3084\u3059\u304f\u3059\u308b"},"content":{"rendered":"<p>\u3000\u4e45\u3005\u306b\u30de\u30c8\u30e2\u306aNuclues\u306e\u30a8\u30f3\u30c8\u30ea\u3067\u3059\uff08\u6c57\uff09<br \/>\n\u3000NP_Mobile\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u643a\u5e2f\u304b\u3089\u306e\u95b2\u89a7\u306b\u9069\u3057\u305f\u30da\u30fc\u30b8\u3092\u51fa\u529b\u3057\u3066\u304f\u308c\u308b\u3088\u3046\u306b\u306a\u308b\u306e\u3067\u3059\u304c\u3001\u5185\u90e8\u3067\u306f\u6307\u5b9a\u3057\u305f\u30d0\u30a4\u30c8\u6570\u306b\u533a\u5207\u3063\u3066\u8868\u793a\u3059\u308b\u3088\u3046\u306b\u51e6\u7406\u3092\u884c\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n\u3000\u901a\u5e38\u306f\u305d\u308c\u3067\u3082\u5168\u304f\u554f\u984c\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u6642\u6298\u30bf\u30b0\u306e\u9014\u4e2d\u3067\u5207\u3089\u308c\u3066\u3057\u307e\u3044\u3001\u3061\u3087\u3063\u3068\u3060\u3051\u4e0d\u6070\u597d\u306b\u306a\u3063\u305f\u308a\u3001\u6587\u7ae0\u304c\u9014\u4e2d\u3067\u5207\u3089\u308c\u3066\u3057\u307e\u3046\u306e\u3067\u3001\u5c11\u3057\u3060\u3051\u8aad\u307f\u306b\u304f\u304b\u3063\u305f\u308a\u3057\u307e\u3059\u3002<br \/>\n\u3000\u306a\u306e\u3067\u3001\u884c\u5358\u4f4d\u3067\u533a\u5207\u3063\u3066\u8868\u793a\u3057\u3066\u3042\u3052\u308c\u3070\u3001\u5c11\u3057\u306f\u898b\u3084\u3059\u304f\u306a\u3063\u305f\u308a\u3001\u30bf\u30b0\u306e\u9014\u4e2d\u3067\u5207\u3089\u308c\u3066\u3057\u307e\u3046\u3053\u3068\u3082\u306a\u304f\u306a\u308b\u306e\u3067\u306f\u306a\u3044\u304b\u306a\u3068\u8003\u3048\u307e\u3057\u305f\u3002<\/p>\n<p><!--more--><br \/>\n\u3000\u5177\u4f53\u7684\u306a\u5b9f\u88c5\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059\u3002\uff08NP_Mobile 0.23\u3092\u30d9\u30fc\u30b9\u306b\u3057\u3066\u3044\u307e\u3059\uff09<br \/>\n\u3000\u5143\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e35\u884c\u76ee\u3001<font color=\"#008000\">\/\/ \u25a0\u30da\u30fc\u30b8\u5206\u5272<\/font> \u3068\u66f8\u304b\u308c\u305f\u3068\u3053\u308d\u304b\u3089\u300148\u884c\u76ee\u306e\u9589\u3058\u4e2d\u62ec\u5f27\uff5d\uff08\u4e00\u756a\u6700\u521d\u306b\u9589\u3058\u4e2d\u62ec\u5f27\u304c\u51fa\u3066\u304f\u308b\u7b87\u6240\uff09\u306e<strong>\u524d\u306e\u884c\u307e\u3067<\/strong>\u3092\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u66f8\u304d\u63db\u3048\u307e\u3059\u3002<\/p>\n<blockquote class=\"source\"><p>$ipage = getVar(&#8216;page&#8217;);<br \/>\nif ($ipage &lt; 1) $ipage = 1;<br \/>\n$itemid = $item -&gt; itemid;<br \/>\n$plk = &#8220;&lt;a href=?itemid=$itemid&#038;page=&#8221;;<br \/>\n\/\/ &lt;br&gt;\u30bf\u30b0\u3067\u5206\u5272\u3057\u305f\u30da\u30fc\u30b8\u30c7\u30fc\u30bf\u3092$maxLength\u4ee5\u5185\u306b<br \/>\n\/\/ \u53ce\u307e\u308b\u3088\u3046\u306b\u8a08\u7b97\u3057\u3066\u3001$page\u3078\u683c\u7d0d<br \/>\n$disppage = &#8220;&#8221;;&nbsp; &nbsp; \/\/ \u8868\u793a\u3059\u308b\u30da\u30fc\u30b8\u306e\u6587\u5b57\u5217<br \/>\n$page&nbsp; = &#8220;&#8221;;&nbsp; &nbsp; \/\/ \u73fe\u5728\u51e6\u7406\u4e2d\u306e\u30da\u30fc\u30b8\u306e\u6587\u5b57\u5217<br \/>\n$pproc = 1;&nbsp; &nbsp; &nbsp; &nbsp; \/\/ \u73fe\u5728\u51e6\u7406\u4e2d\u306e\u30da\u30fc\u30b8\u6570<br \/>\nforeach (preg_split(&#8220;\/&lt;br&gt;\/is&#8221;, $data) as $line) {<br \/>\n&nbsp; &nbsp; $page .= $line .&#8221;&lt;br&gt;&#8221;;<br \/>\n&nbsp; &nbsp; \/\/ \u8db3\u3057\u3066$maxLength\u3092\u8d85\u3048\u305f\u5834\u5408<br \/>\n&nbsp; &nbsp; if ( (mb_strlen($page) + mb_strlen($line)) &gt; $maxLength ) {<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; \/\/ \u8868\u793a\u3057\u305f\u3044\u30da\u30fc\u30b8\u3067\u3042\u308c\u3070\u3001\u305d\u308c\u3092$disppage\u3078\u4ee3\u5165<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; if ($pproc == $ipage) { $disppage = $page; }<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; \/\/ \u6b21\u306e\u30da\u30fc\u30b8\u3078<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; $page = &#8220;&#8221;;<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; $pproc ++;<br \/>\n&nbsp; &nbsp; }<br \/>\n}<br \/>\n\/\/ \u30eb\u30fc\u30d7\u3092\u629c\u3051\u305f\u3068\u304d\u3001$page\u304c\u7a7a\u306e\u5834\u5408\u306f$pproc\u3092-1\u3057\u3066\u304a\u304f<br \/>\nif (trim($page) == &#8220;&#8221;) { $pproc &#8211;; }<br \/>\n\/\/ \u6700\u5927\u30da\u30fc\u30b8\u6570\u3092\u4ee3\u5165<br \/>\n$max = $pproc;<br \/>\n\/\/ \u6700\u5f8c\u306e\u30da\u30fc\u30b8\u306e\u5834\u5408\u306f\u30eb\u30fc\u30d7\u3092\u629c\u3051\u305f\u3068\u304d\u306b$disppage\u3078\u4ee3\u5165<br \/>\nif ($max == $ipage) { $disppage = $page; }<br \/>\n\/\/ \u30da\u30fc\u30b8\u4f5c\u6210<br \/>\n$psh&nbsp; = $disppage;<br \/>\n$psh .= ($ipage == $max) ? &#8220;&lt;br&gt;[End]&lt;hr&gt;&#8221; : &#8220;&lt;\/a&gt;&lt;hr&gt;&#8221;;<br \/>\n$psh .= ($ipage != 1) ? $plk.($ipage &#8211; 1).&#8221;&gt;\u524d&lt;\/a&gt;&#8221; : &#8220;\u524d&#8221;;<br \/>\n$psh .= &#8220;[P.$ipage\/$max]&#8221;;<br \/>\n$psh .= ($ipage != $max) ? $plk.($ipage + 1).&#8221;&gt;\u6b21&lt;\/a&gt;&#8221; : &#8220;\u6b21&#8221;;<br \/>\necho $psh;\n<\/p><\/blockquote>\n<p>\u3000\u3042\u307e\u308a\u6df1\u304f\u8003\u3048\u305a\u306b\u4f5c\u6210\u3057\u305f\u30b3\u30fc\u30c9\u306a\u306e\u3067\u3001\u3061\u3087\u3063\u3068\u56de\u308a\u304f\u3069\u3044\u3053\u3068\u3092\u3057\u3066\u3044\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3051\u308c\u3069\u3082\uff08\u6c57\uff09\u52d5\u4f5c\u30c6\u30b9\u30c8\u8fbc\u307f\u306730\u5206\u304b\u304b\u3063\u3066\u306a\u3044\u306e\u3067\u3001\u3053\u306e\u8fba\u306fNucleus\u3068PHP\u306e\u826f\u3044\u3068\u3053\u308d\u3067\u3059\u306d\u3002<br \/>\n\u3000\u6c17\u306b\u306a\u3063\u3066\u3044\u305f\u65b9\u306e\u624b\u52a9\u3051\u306b\u306a\u308c\u3070\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3000\u4e45\u3005\u306b\u30de\u30c8\u30e2\u306aNuclues\u306e\u30a8\u30f3\u30c8\u30ea\u3067\u3059\uff08\u6c57\uff09 \u3000NP_Mobile\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u643a\u5e2f\u304b\u3089\u306e\u95b2\u89a7\u306b\u9069\u3057\u305f\u30da\u30fc\u30b8\u3092\u51fa\u529b\u3057\u3066\u304f\u308c\u308b\u3088\u3046\u306b\u306a\u308b\u306e\u3067\u3059\u304c\u3001\u5185\u90e8\u3067\u306f\u6307\u5b9a\u3057\u305f\u30d0\u30a4\u30c8\u6570\u306b\u533a\u5207\u3063\u3066\u8868\u793a\u3059\u308b\u3088\u3046\u306b\u51e6\u7406\u3092\u884c\u3063\u3066\u3044\u307e\u3059\u3002  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-171","post","type-post","status-publish","format-standard","hentry","category-nucleus","wpautop"],"_links":{"self":[{"href":"http:\/\/argas.net\/index.php?rest_route=\/wp\/v2\/posts\/171","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/argas.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/argas.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/argas.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/argas.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=171"}],"version-history":[{"count":0,"href":"http:\/\/argas.net\/index.php?rest_route=\/wp\/v2\/posts\/171\/revisions"}],"wp:attachment":[{"href":"http:\/\/argas.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=171"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/argas.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=171"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/argas.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=171"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}