{"id":1552,"date":"2016-08-13T12:45:57","date_gmt":"2016-08-13T03:45:57","guid":{"rendered":"http:\/\/www.uniqware.net\/?p=1552"},"modified":"2016-08-13T12:45:57","modified_gmt":"2016-08-13T03:45:57","slug":"biz-calendar%e3%81%ae%e7%a5%9d%e6%97%a5%e3%82%92%e8%a8%88%e7%ae%97%e3%81%a7%e6%b1%82%e3%82%81%e3%82%8b","status":"publish","type":"post","link":"https:\/\/www.uniqware.net\/it\/archives\/1552","title":{"rendered":"Biz Calendar\u306e\u795d\u65e5\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b"},"content":{"rendered":"<p>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u5236\u4f5c\u3092\u8acb\u3051\u8ca0\u3046\u3068\u304d\u3001\u7279\u306b\u6307\u5b9a\u3055\u308c\u306a\u3044\u9650\u308a\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002\u305d\u306e\u4e2d\u3067\u4f7f\u7528\u3059\u308b\u983b\u5ea6\u306e\u9ad8\u3044\u30d7\u30e9\u30b0\u30a4\u30f3\u306b<a href=\"https:\/\/wordpress.org\/plugins\/biz-calendar\/\" target=\"_blank\" rel=\"noopener\">Biz Calendar<\/a>\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4f7f\u3046\u3068\u4f11\u696d\u65e5\u3001\u30a4\u30d9\u30f3\u30c8\u958b\u50ac\u65e5\u3092\u8868\u793a\u3059\u308b\u30ab\u30ec\u30f3\u30c0\u30fc\u3092 \u30b5\u30a4\u30c9\u30e1\u30cb\u30e5\u30fc\u306b\u7c21\u5358\u306b\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002\u3057\u304b\u3057\u30012014\u5e7411\u6708Google Calendar API v2\u306e\u30b5\u30fc\u30d3\u30b9\u7d42\u4e86\u306b\u4f34\u3044\u795d\u65e5\u30c7\u30fc\u30bf\u304c\u53d6\u5f97\u3067\u304d\u306a\u304f\u306a\u308a\u3001\u4ee3\u66ff\u624b\u6bb5\u3092\u6a21\u7d22\u3057\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n\n<ul>\n\t<li>\u6848\uff11\uff1a\u795d\u65e5\u30c7\u30fc\u30bf\u3092\u81ea\u524d\u3067\u4f5c\u308aBiz Calendar\u304b\u3089\u53c2\u7167\u3059\u308b<\/li>\n\t<li>\u6848\uff12\uff1a\u795d\u65e5\u30c7\u30fc\u30bf\u3092\u8cb7\u3044\uff08<a href=\"http:\/\/residentbird.main.jp\/bizplugin\/store\/biz-holiday\/\" target=\"_blank\" rel=\"noopener\">\uff14\u5e74\u5206\u306e\u30c7\u30fc\u30bf<\/a>\u304c1,480\u5186\u3067\u8cb7\u3048\u307e\u3059\uff09Biz Calendar\u304b\u3089\u53c2\u7167\u3059\u308b<\/li>\n\t<li>\u6848\uff13\uff1a\u795d\u65e5\u30c7\u30fc\u30bf\u3092\u8a08\u7b97\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u63a2\u3057\u3001Biz Calendar\u306b\u7d44\u307f\u8fbc\u3080<\/li>\n<\/ul><!--more-->\n\n<p>\u307e\u305a\u3001\u6848\uff13\u306e\u53ef\u80fd\u6027\u3092\u8ffd\u7a76\u3057\u3001\u30c0\u30e1\u305d\u3046\u306a\u3089\u6848\uff12\u3068\u3044\u3046\u8a08\u753b\u3092\u305f\u3066\u307e\u3057\u305f\u3002\u6848\uff11\u306f\u30ab\u30ec\u30f3\u30c0\u30fc\u304b\u3089\u795d\u65e5\u3092\u62fe\u3048\u3070\uff2f\uff2b\u306a\u306e\u3067\u3059\u304c\u3001\u305d\u306e\u4f5c\u696d\u306e\u5358\u7d14\u3055\u306b\u8010\u3048\u3089\u308c\u306a\u3044\uff08\u5358\u306b\u5fcd\u8010\u529b\u304c\u306a\u3044\u3060\u3051\uff09\u3001\u304b\u3064\u3001\u62fe\u3044\u5fd8\u308c\u308b\u6050\u308c\u304c\u3042\u308b\u306e\u3067\u6ca1\u306b\u3057\u307e\u3057\u305f\u3002\u305d\u308c\u3067\u65e9\u901f\u6848\uff13\u306e\u4e0b\u8abf\u3079\u306b\u53d6\u308a\u639b\u304b\u3063\u305f\u3068\u3053\u308d<a href=\"http:\/\/www.pahoo.org\/e-soul\/webtech\/php02\/php02-27-01.shtm\" target=\"_blank\" rel=\"noopener\">PHP\u3067\u795d\u65e5\u3092\u6c42\u3081\u308b<\/a>\u3068\u3044\u3046\u8a18\u4e8b\u306b\u8a08\u7b97\u3067\u795d\u65e5\u3092\u5272\u308a\u51fa\u3059\u65b9\u6cd5\u304c\u7d39\u4ecb\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u3002\u305d\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\uff08\u30d5\u30a1\u30a4\u30eb\u540d\uff1agetHoliday.php\uff09\u306f\u795d\u65e5\u6cd5\u3067\u5236\u5b9a\u3055\u308c\u305f2016\u5e74\u958b\u59cb\u306e\u5c71\u306e\u65e5\uff08\uff18\u670811\u65e5\uff09\u3082\u30ab\u30d0\u30fc\u3057\u3066\u3044\u305f\u306e\u3067\u671f\u5f85\u304c\u81a8\u3089\u307f\u307e\u3059\u3002<\/p>\n\n\u554f\u984c\u306fBiz Calendar\u3068\u3053\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u3069\u306e\u3088\u3046\u306b\u9023\u643a\u3055\u305b\u308b\u304b\u3067\u3059\u3002\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u52d5\u4f5c\u3092\u89e3\u6790\u3057\u3066\u6700\u5f8c\u90e8\u306b\u3042\u308b\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u304c\u30d2\u30f3\u30c8\u306b\u306a\u308b\u3068\u8003\u3048\u307e\u3057\u305f\u3002\n\n<pre class=\"brush: css; first-line: 441; highlight: [1,2,3,6,9]; html-script: true; title: getHoliday.php; notranslate\" title=\"getHoliday.php\">\n\/\/ \u30e1\u30a4\u30f3\u30fb\u30d7\u30ed\u30b0\u30e9\u30e0 =======================================================\n$youbi = array('\u65e5', '\u6708', '\u706b', '\u6c34', '\u6728', '\u91d1', '\u571f', '\u65e5');\n$year = isset($_GET['year']) ? $_GET['year'] : date('Y');\n$msg = '';\n\nif ($year &gt;= 1948 &amp;&amp; $year &lt;= 2099) {\n\t$msg = &quot;&lt;table&gt;\\n&quot;;\n\tfor ($yyyy = $year; $yyyy &lt; $year + 3; $yyyy++) {\n\t\t$cnt = 1;\n\t\t$msg .= sprintf(&quot;&lt;tr&gt;&lt;td class=\\&quot;index\\&quot; colspan=\\&quot;3\\&quot;&gt;%04d\u5e74&lt;\/td&gt;&lt;\/tr&gt;\\n&quot;, $yyyy);\n\t\tfor ($month = 1; $month &lt;= 12; $month++) {\n\t\t\t$day_of_month = getDaysInMonth($yyyy, $month);\n\t\t\tfor ($day = 1; $day &lt;= $day_of_month; $day++) {\n\t\t\t\t$name = getHoliday($yyyy, $month, $day, 'jp');\n\t\t\t\t$ww = getWeekNumber($yyyy, $month, $day);\n\t\t\t\tif ($name != FALSE) {\n\t\t\t\t\t$msg .= sprintf(&quot;&lt;tr&gt;&lt;td&gt;%02d&lt;\/td&gt;&lt;td&gt;%02d\u6708%02d\u65e5(%s)&lt;\/td&gt;&lt;td&gt;%s&lt;\/td&gt;&lt;\/tr&gt;\\n&quot;, $cnt, $month, $day, $youbi[$ww], $name);\n\t\t\t\t\t$cnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t$msg .= &quot;&lt;\/table&gt;\\n&quot;;\n} else if ($year == FALSE) {\n} else {\n\t$msg = 'error &gt; \u6307\u5b9a\u3067\u304d\u308b\u897f\u66a6\u5e74\u306f\u30011948\u5e74\u304b\u30892099\u5e74\u307e\u3067\u3067\u3059\u3002';\n}\n<\/pre>\n\n\u3053\u306e\u90e8\u5206\u306f\u6307\u5b9a\u3055\u308c\u305f\u5e74\uff08$year\uff09\u304b\u3089\uff13\u5e74\u9593\u306e\u3059\u3079\u3066\u306e\u795d\u65e5\u3092\u8a08\u7b97\u3057html\u5f62\u5f0f\u3067\u8868\u306b\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306b\u76f8\u5f53\u3059\u308b\u306e\u306fBiz Calendar\uff08VERSION 1.6.0\uff09\u306e\u30e1\u30a4\u30f3\u30eb\u30fc\u30c1\u30f3\u3067\u3042\u308bbiz-calendar.php\u306egetHolidays\u95a2\u6570\u3067\u3042\u308b\u3068\u5206\u304b\u308a\u307e\u3057\u305f\u3002159\u884c\u76ee\u4ee5\u964dGoogle Calendar API\u304b\u3089\u795d\u65e5\u30c7\u30fc\u30bf\u3092\u53d6\u308a\u8fbc\u307f\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3092Biz Calendar\u4ed5\u69d8\u306b\u5909\u63db\u3057\u3066\u308b\u306e\u304c\u5206\u304b\u308a\u307e\u3059\u3002\n\n<pre class=\"brush: css; first-line: 147; highlight: [159,160,161,162,163,164,165,166,167]; html-script: true; title: biz-calendar.php; notranslate\" title=\"biz-calendar.php\">\n\tpublic function getHolidays( $options ){\n\t\tif ( $this-&gt;hasCache( $options) ){\n\t\t\treturn $options;\n\t\t}\n\n\t\t$year = date_i18n('Y');\n\t\t\/\/1-3\u6708\u306f\u524d\u5e74\u306e\u795d\u65e5\u3092\u53d6\u5f97\u3059\u308b\n\t\t$mon = date_i18n('n');\n\t\tif ( $mon &lt; 4){\n\t\t\t$year -= 1;\n\t\t}\n\n\t\t$url = sprintf(\n\t\t\t\t'http:\/\/www.google.com\/calendar\/feeds\/%s\/public\/full-noattendees?start-min=%s&amp;start-max=%s&amp;max-results=%d&amp;alt=json' ,\n\t\t\t\t'outid3el0qkcrsuf89fltf7a4qbacgt9@import.calendar.google.com' , \/\/ 'japanese@holiday.calendar.google.com' ,\n\t\t\t\t$year.'-04-01' ,  \/\/ \u53d6\u5f97\u958b\u59cb\u65e5\n\t\t\t\t($year + 1).'-03-31' ,  \/\/ \u53d6\u5f97\u7d42\u4e86\u65e5\n\t\t\t\t50              \/\/ \u6700\u5927\u53d6\u5f97\u6570\n\t\t);\n\n\t\t$results = file_get_contents($url);\n\t\tif ( !isset($results) ){\n\t\t\treturn $options;\n\t\t}\n\t\t$results = json_decode($results, true);\n\t\t$holidays = array();\n\t\tforeach ($results['feed']['entry'] as $val ) {\n\t\t\t$date  = $val['gd$when'][0]['startTime'];\n\t\t\t$title = $val['title']['$t'];\n\t\t\t$holidays[$date] = $title;\n\t\t}\n\t\tksort($holidays);\n\n\t\t\/\/\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u66f4\u65b0\u3059\u308b\n\t\t$options[&quot;holiday_cache&quot;] = $holidays;\n\t\t$options[&quot;holiday_cache_date&quot;] = date_i18n( &quot;Y\/m&quot;);\n\t\tupdate_option('bizcalendar_options', $options);\n\t\treturn $options;\n\t}\n<\/pre>\n\n\u3053\u306e\u95a2\u6570\u306eGoogle Calendar API\u304b\u3089\u795d\u65e5\u30c7\u30fc\u30bf\u3092\u53d6\u308a\u8fbc\u3093\u3067\u3044\u308b\u90e8\u5206\u3092\u5148\u307b\u3069\u306egetHoliday.php\u306b\u7f6e\u304d\u63db\u3048\u3001\u305d\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3092Biz Calendar\u4ed5\u69d8\u306b\u5909\u63db\u3059\u308c\u3070\u3088\u3044\u308f\u3051\u3067\u3059\u3002\u8a66\u884c\u932f\u8aa4\u306e\u7d50\u679c\u3001Biz Calendar\u306e<a href=\"https:\/\/downloads.wordpress.org\/plugin\/biz-calendar.1.6.0.zip\" target=\"_blank\" rel=\"noopener\">VERSION 1.6.0<\/a>\u3092\u4ee5\u4e0b\u306e\u624b\u9806\u3067\u5909\u66f4\u3059\u308c\u3070\u52d5\u4f5c\u3059\u308b\u3053\u3068\u304c\u5206\u304b\u308a\u307e\u3057\u305f\u3002\u307e\u305a\u3001biz-calendar.php\u306e\u5192\u982d\u90e8\u3067getHoliday.php\uff08\u5ff5\u306e\u305f\u3081\u5192\u982d\u3068\u672b\u5c3e\u306ehtml\u51fa\u529b\u90e8\u5206\u306f\u524a\u9664\u3057\u305f\u65b9\u304c\u30d9\u30bf\u30fc\uff09\u3092\u30a4\u30f3\u30af\u30eb\u30fc\u30c9\u3057\u307e\u3059\u3002\n\n<pre class=\"brush: css; first-line: 11; highlight: [12]; html-script: true; title: biz-calendar.php; notranslate\" title=\"biz-calendar.php\">\ninclude_once ( dirname(__FILE__) . &quot;\/admin-ui.php&quot; );\ninclude_once ( dirname(__FILE__) . &quot;\/getHoliday.php.php&quot; );\nnew BizCalendarPlugin();\n<\/pre>\n\n\u305d\u3057\u3066\u3001getHolidays\u95a2\u6570\u3092\u4ee5\u4e0b\u306e\u69d8\u306b\u66f8\u304d\u63db\u3048\u307e\u3059\u3002\u5f8c\u306f\u3001getHoliday.php\u3092biz-calendar.php\u3068\u540c\u3058\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u914d\u7f6e\u3059\u308c\u3070\uff2f\uff2b\u3067\u3059\u3002\n\n<pre class=\"brush: css; first-line: 148; highlight: [159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182]; html-script: true; title: biz-calendar.php; notranslate\" title=\"biz-calendar.php\">\n\tpublic function getHolidays( $options ){\n\t\tif ( $this-&gt;hasCache( $options) ){\n\t\t\treturn $options;\n\t\t}\n\t\t$year = date_i18n('Y');\n\t\t\/\/1-3\u6708\u306f\u524d\u5e74\u306e\u795d\u65e5\u3092\u53d6\u5f97\u3059\u308b\n\t\t$mon = date_i18n('n');\n\t\tif ( $mon &lt; 4){\n\t\t\t$year -= 1;\n\t\t}\n\n\t\t$holidays = array();\n\n\t\t\/\/ \u30e1\u30a4\u30f3\u30fb\u30d7\u30ed\u30b0\u30e9\u30e0 =======================================================\n\t\t$youbi = array('\u65e5', '\u6708', '\u706b', '\u6c34', '\u6728', '\u91d1', '\u571f', '\u65e5');\n\t\t\n\t\tif ($year &gt;= 1948 &amp;&amp; $year &lt;= 2099) {\n\t\t\tfor ($yyyy = $year; $yyyy &lt; $year + 2; $yyyy++) { \/\/ \uff12\u5e74\u5206\n\t\t\t\tfor ($month = 1; $month &lt;= 12; $month++) {\n\t\t\t\t\t$day_of_month = getDaysInMonth($yyyy, $month);\n\t\t\t\t\tfor ($day = 1; $day &lt;= $day_of_month; $day++) {\n\t\t\t\t\t\t$name = getHoliday($yyyy, $month, $day, 'jp');\n\t\t\t\t\t\t$ww = getWeekNumber($yyyy, $month, $day);\n\t\t\t\t\t\tif ($name != FALSE) {\n\t\t\t\t\t\t\t$date = sprintf(&quot;%04d-%02d-%02d&quot;, $yyyy, $month, $day);\n\t\t\t\t\t\t\t$holidays[$date] = $name;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} else if ($year == FALSE) {\n\t\t\treturn $options;\n\t\t} else {\n\t\t\treturn $options;\n\t\t}\n\t\t\n\t\tksort($holidays);\n\n\t\t\/\/\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u66f4\u65b0\u3059\u308b\n\t\t$options[&quot;holiday_cache&quot;] = $holidays;\n\t\t$options[&quot;holiday_cache_date&quot;] = date_i18n( &quot;Y\/m&quot;);\n\t\tupdate_option('bizcalendar_options', $options);\n\t\treturn $options;\n\t}\t\t\n<\/pre>\n\n\u4eca\u56de\u306e\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3092\u65bd\u3057\u305f\u5b9f\u4f8b\u304c\u5f53\u65b9\u306e\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\uff11\u3064\u3067\u3042\u308b<a href=\"http:\/\/www.altaauto.net\/\" target=\"_blank\" rel=\"noopener\">\u30a2\u30eb\u30bf\u30aa\u30fc\u30c8\u69d8\u306eHP<\/a>\u306e\u30b5\u30a4\u30c9\u30d0\u30fc\u306b\u8a2d\u7f6e\u3055\u308c\u3066\u3044\u307e\u3059\u306e\u3067\u78ba\u8a8d\u3044\u305f\u3060\u3051\u307e\u3059\u3002\u3053\u306e\u65b9\u6cd5\u3067\u6c17\u306b\u306a\u308b\u306e\u306f\u4ee5\u4e0b\u306e\uff13\u70b9\u3067\u3059\u3002\n\n<ol>\n\t<li>\u897f\u66a61948\u5e74\u304b\u30892099\u5e74\u307e\u3067\u3057\u304b\u5bfe\u5fdc\u3057\u3066\u3044\u306a\u3044<\/li>\n\t<li>\u6625\u5206\u306e\u65e5\u3068\u79cb\u5206\u306e\u65e5\u304c\u6975\u7a00\u306b\u30ba\u30ec\u308b<\/li>\n\t<li>\u795d\u65e5\u6cd5\u304c\u6539\u5b9a\u3055\u308c\u305f\u3068\u304d\u306b\u795d\u65e5\u3092\u8ffd\u52a0\u30fb\u524a\u9664\u3067\u304d\u308b\u304b<\/li>\n<\/ol>\n\n\uff11\u306f\u30b7\u30b9\u30c6\u30e0\u306e\u8010\u7528\u5e74\u6570\uff08=\u9673\u8150\u5316\uff09\u304c10\u5e74\u30b9\u30d1\u30f3\u3068\u3044\u3046\u3053\u3068\u3001\u4e16\u7d00\u672b\u306b\u306f\u3082\u3063\u3068\u5927\u304d\u306a\u554f\u984c\u304c\u8d77\u3053\u308b\u3067\u3042\u308d\u3046\u3053\u3068\u3092\u8003\u3048\u308b\u3068\u6c17\u306b\u306a\u308a\u307e\u305b\u3093\u3002\uff12\u306f\u305d\u3082\u305d\u3082\u6625\u5206\u306e\u65e5\u3068\u79cb\u5206\u306e\u65e5\u304c\u524d\u5e74\u306e\uff12\u6708\u4f4d\u306b\u95a3\u8b70\u6c7a\u5b9a\u3055\u308c\u308b\u3082\u306e\u3067\u3059\u304b\u3089\u3053\u306e\u65b9\u6cd5\u4ee5\u5916\u3067\u3082\u540c\u3058\u306a\u306e\u3067\u7121\u8996\u3067\u304d\u307e\u3059\uff08\u3082\u3061\u308d\u3093\u5bfe\u5fdc\u306f\u5fc5\u8981\u3067\u3059\u304c\uff09\u3002\uff13\u306fgetHoliday.php\u306e\u69cb\u6210\u304b\u3089\u3059\u308b\u3068\u81ea\u8eab\u3067\u5bfe\u5fdc\u3067\u304d\u305d\u3046\u3067\u3059\u3002\u795d\u65e5\u306e\u6307\u5b9a\u306e\u4ed5\u65b9\u306f\u3001\u56fa\u5b9a\u30bf\u30a4\u30d7\uff08\u4f8b\uff1a\u5143\u65e5\uff1d\uff11\u6708\uff11\u65e5\uff09\u3068\u79fb\u52d5\u30bf\u30a4\u30d7\uff08\u4f8b\uff1a\u6210\u4eba\u306e\u65e5\uff1d\uff11\u6708\u7b2c\uff12\u6708\u66dc\u65e5\uff09\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u308c\u305e\u308c\u306e\u30bf\u30a4\u30d7\u306b\u3064\u3044\u3066\u4ee5\u4e0b\u306e\u69d8\u306a\u5f62\u5f0f\u3067\u30b3\u30fc\u30c9\u5316\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u305d\u306e\u90e8\u5206\u3092\u3072\u306d\u3063\u3066\u3084\u308c\u3070\u5341\u5206\u3044\u3051\u305d\u3046\u3067\u3059\u3002\n\n<pre class=\"brush: css; first-line: 165; highlight: [167,168,169,170,171,172,173,174]; html-script: true; title: getHoliday.php; notranslate\" title=\"getHoliday.php\">\nfunction getFixedHoliday($year, $month, $day, $lang) {\n\/\/\u56fa\u5b9a\u795d\u65e5\nstatic $fixed_holiday = array(\n\/\/    \u6708  \u65e5  \u958b\u59cb\u5e74 \u7d42\u4e86\u5e74  \u540d\u79f0\narray( 1,  1, 1949, 9999, '\u5143\u65e5',         &quot;New Year's Day&quot;),\narray( 1, 15, 1949, 1999, '\u6210\u4eba\u306e\u65e5',     'Coming of Age Day'),\narray( 2, 11, 1967, 9999, '\u5efa\u56fd\u8a18\u5ff5\u306e\u65e5', 'National Foundation Day'),\narray( 4, 29, 1949, 1989, '\u5929\u7687\u8a95\u751f\u65e5',   &quot;The Emperor's Birthday&quot;),\narray( 4, 29, 1990, 2006, '\u307f\u3069\u308a\u306e\u65e5',   'Greenery Day'),\narray( 4, 29, 2007, 9999, '\u662d\u548c\u306e\u65e5',     'Showa Day'),\n<\/pre>\n\n<pre class=\"brush: css; first-line: 279; highlight: [281,282,283,284,285,286,287]; html-script: true; title: getHoliday.php; notranslate\" title=\"getHoliday.php\">\nfunction getMovableHoliday2($year, $month, $day, $lang) {\n\/\/\u79fb\u52d5\u795d\u65e5\uff08\u30cf\u30c3\u30d4\u30fc\u30de\u30f3\u30c7\u30fc\u6cd5\uff09\nstatic $movable_holiday = array(\n\/\/    \u6708  \u66dc\u65e5\u756a\u53f7 \u7b2cN\u66dc\u65e5 \u958b\u59cb\u5e74  \u7d42\u4e86\u5e74  \u540d\u79f0\narray( 1, 1, 2, 2000, 9999, '\u6210\u4eba\u306e\u65e5', 'Coming of Age Day'),\narray( 7, 1, 3, 2003, 9999, '\u6d77\u306e\u65e5',   'Marine Day'),\narray( 9, 1, 3, 2003, 9999, '\u656c\u8001\u306e\u65e5', 'Respect for the Aged Day'),\narray(10, 1, 2, 2000, 9999, '\u4f53\u80b2\u306e\u65e5', 'Health and Sports Day')\n);\n\n\t$name = FALSE;\n\tforeach ($movable_holiday as $val) {\n\t\tif ($month == $val[0] &amp;&amp; $day == getWeeksOfMonth($year, $month, $val[1], $val[2])) {\n\t\t\tif ($year &gt;= $val[3] &amp;&amp; $year &lt;= $val[4]) {\n\t\t\t\t$name = preg_match(&quot;\/JP\/i&quot;, $lang) == 1 ? $val[5] : $val[6];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\treturn $name;\n}\n<\/pre>\n\n<p>\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u306b\u63b2\u8f09\u3059\u308b\u30ab\u30ec\u30f3\u30c0\u30fc\u3067\u3042\u308c\u3070\u5f53\u65e5\u3092\u8d77\u70b9\u3068\u3057\u3066\u524d\u5f8c\u6570\u30f6\u6708\u5206\u306e\u795d\u65e5\u30c7\u30fc\u30bf\u304c\u3042\u308c\u3070\u4e8b\u8db3\u308a\u308b\u3067\u3057\u3087\u3046\u304b\u3089\u3053\u306egetHoliday.php\u306e\u51fa\u529b\u3092\u6570\u5e74\u5206\u914d\u5217\u30c7\u30fc\u30bf\uff08\u30ea\u30c6\u30e9\u30eb\u8868\u73fe\uff09\u306b\u683c\u7d0d\u3057\u3001\u305d\u308c\u3092biz-calendar.php\u304b\u3089\u53c2\u7167\u3059\u308b\u65b9\u5f0f\u306e\u65b9\u304c\u30d9\u30bf\u30fc\u3060\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n","protected":false},"excerpt":{"rendered":"\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u5236\u4f5c\u3092\u8acb\u3051\u8ca0\u3046\u3068\u304d\u3001\u7279\u306b\u6307\u5b9a\u3055\u308c\u306a\u3044\u9650\u308a\u30ef\u30fc\u30c9\u30d7\u30ec\u30b9\u3092 &hellip; <a class=\"more-link\" href=\"https:\/\/www.uniqware.net\/it\/archives\/1552\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[16],"tags":[30,31,6],"acf":[],"_links":{"self":[{"href":"https:\/\/www.uniqware.net\/it\/wp-json\/wp\/v2\/posts\/1552"}],"collection":[{"href":"https:\/\/www.uniqware.net\/it\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.uniqware.net\/it\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.uniqware.net\/it\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.uniqware.net\/it\/wp-json\/wp\/v2\/comments?post=1552"}],"version-history":[{"count":0,"href":"https:\/\/www.uniqware.net\/it\/wp-json\/wp\/v2\/posts\/1552\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.uniqware.net\/it\/wp-json\/wp\/v2\/media?parent=1552"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.uniqware.net\/it\/wp-json\/wp\/v2\/categories?post=1552"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.uniqware.net\/it\/wp-json\/wp\/v2\/tags?post=1552"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}