{"action":"created","comment":{"url":"https://api.github.com/repos/YngLab/Msite_wp_theme/pulls/comments/91564635","pull_request_review_id":12074689,"id":91564635,"diff_hunk":"@@ -0,0 +1,258 @@\n+<?php get_header(); ?>\n+<?php get_header('nav'); ?>\n+\n+<div class = \"g_allArea g_allArea-fullWidth\">\n+  <div class=\"event_pageTitle\">\n+    <p class = \"titleText\">イベント</p>\n+  </div>\n+  <div class = \"overlay\"></div>\n+</div>\n+\n+<?php get_header('upcommingEvent'); ?>\n+<div class = \"g_allArea g_allArea-bgcolor\">\n+  <div class = \"heading-lineup\">\n+    <p class = \"headingTitle\">\n+      今後のイベント\n+    </p>\n+  </div>\n+  <div class = \"heading-lineup\">\n+    <p class = \"event_schedule\">\n+      <a href = \"images/event/wsSchedule_FCH-201612.pdf\" class = \"linkText\" target = \"_blank\">\n+        ▶︎みらい館の今月のカレンダー\n+      </a>\n+    </p>\n+  </div>\n+  <div class = \"heading-lineup\">\n+    <p class = \"event_schedule\">\n+      <a href = \"images/event/wsSchedule_KPH-201612.pdf\" class = \"linkText\" target = \"_blank\">\n+        ▶︎キッズプラザの今月のカレンダー\n+      </a>\n+    </p>\n+  </div>\n+</div>\n+\n+<?php //直近のイベント表示 ?>\n+<div class=\"g_allArea g_allArea-bgcolor\">\n+  <div id = \"all_eventmenu\">\n+    <?php\n+    /*\n+      ここからheader-upcommingEventをコピペしている\n+      要最適化\n+     */\n+      $args = array(//eventを抜き出す\n+      'post_type' => 'event',\n+      );\n+      $post_list = array();\n+      $post_list = get_posts( $args );\n+      $dates = array();\n+      $today = date('Ymd');//今日の日付を8桁に\n+      $i = 0;\n+      //直近の日程を算出\n+      foreach ( $post_list as $post ) : setup_postdata( $post );//全てのpostに対して\n+        if(get_field(\"day_and_time\")) :\n+          while(the_repeater_field('day_and_time')) :\n+            if(!isset($nextdate)){\n+              $nextdate = get_sub_field('date');\n+            }else if($nextdate - get_sub_field('date') > 0 && $nextdate - $today >= 0){//入っている数値より先で、かつまだ過ぎていないなら入れ替え\n+              $nextdate = get_sub_field('date');\n+            }\n+          endwhile;\n+          //もしそのイベントが終わっていたらdatesには0を代入\n+          if($nextdate - $today < 0){\n+            $nextdate = 0;\n+          }\n+          $dates[$i] = $nextdate;\n+          unset($nextdate);\n+        endif;\n+        $i++;\n+      endforeach;\n+      /*\n+      $postlistにはソートされたイベント情報が、\n+      $datesにはそれに対応したイベントの直近の日程が入っている\n+       */\n+      //過ぎたイベントを省く\n+      /*\n+      過ぎたイベントに対応する$datesには0が代入されているため、\n+      そうであるものの$datesとそれに対応する$post_listをarray_spliceを用いて削除する\n+       */\n+      $i = 0;\n+      foreach ($dates as $date) {\n+         if($date == 0){\n+          array_splice($dates, $i, 1);\n+          array_splice($post_list, $i, 1);\n+         }\n+         $i++;\n+      }\n+      //イベント情報のソート\n+      array_multisort($dates,$post_list);\n+      // print_r($post_list);\n+      //出力\n+      foreach ( $post_list as $post ) : setup_postdata( $post );\n+      if(get_field('place') == 'fch'){\n+        $place = \"FCH\";\n+      }else if(get_field('place') == 'kph'){\n+        $place = \"KPH\";\n+      }else{\n+        $place = \"other\";\n+      }\n+    ?>\n+    <div class = \"eventmenu\" id=\"<?php the_id(); ?>\">\n+      <img class = \"event_pic only_pc\" src = \"<?php $image = get_field('image'); echo $image['sizes']['sq_thumb']; ?>\" alt = \"<?php the_title(); ?>\">\n+      <img class = \"event_pic only_sp\" src = \"<?php $image = get_field('image'); echo $image['sizes']['thumbnail']; ?>\" alt = \"<?php the_title(); ?>\">\n+      <div class = \"event_textBox_wrap\">\n+        <div class = \"event_textBox\">\n+          <div class = \"event_title <?php echo $place; ?>color\">\n+            <?php the_title(); ?>\n+          </div>\n+          <div class = \"event_point\">\n+            <table>\n+              <tr>\n+                <th class = \"event_point_cap\">日時</th>\n+                <td class = \"event_point_contents\">\n+                  <div class=\"event_point_contents-text\">\n+                    <?php\n+                  $i = 0;","path":"page-event.php","position":114,"original_position":114,"commit_id":"ccf53339cc5f80a1d6f26e220ee31244bb97e58e","original_commit_id":"ccf53339cc5f80a1d6f26e220ee31244bb97e58e","user":{"login":"sKawashima","id":9900753,"avatar_url":"https://avatars.githubusercontent.com/u/9900753?v=3","gravatar_id":"","url":"https://api.github.com/users/sKawashima","html_url":"https://github.com/sKawashima","followers_url":"https://api.github.com/users/sKawashima/followers","following_url":"https://api.github.com/users/sKawashima/following{/other_user}","gists_url":"https://api.github.com/users/sKawashima/gists{/gist_id}","starred_url":"https://api.github.com/users/sKawashima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sKawashima/subscriptions","organizations_url":"https://api.github.com/users/sKawashima/orgs","repos_url":"https://api.github.com/users/sKawashima/repos","events_url":"https://api.github.com/users/sKawashima/events{/privacy}","received_events_url":"https://api.github.com/users/sKawashima/received_events","type":"User","site_admin":false},"body":"__[code_sniffer]__\n* Line indented incorrectly; expected at least 20 spaces, found 18\n\n<!-- Comment by [SideCI](https://sideci.com) -->","created_at":"2016-12-08T17:34:02Z","updated_at":"2016-12-08T17:34:02Z","html_url":"https://github.com/YngLab/Msite_wp_theme/pull/27#discussion_r91564635","pull_request_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/pulls/27","_links":{"self":{"href":"https://api.github.com/repos/YngLab/Msite_wp_theme/pulls/comments/91564635"},"html":{"href":"https://github.com/YngLab/Msite_wp_theme/pull/27#discussion_r91564635"},"pull_request":{"href":"https://api.github.com/repos/YngLab/Msite_wp_theme/pulls/27"}}},"pull_request":{"url":"https://api.github.com/repos/YngLab/Msite_wp_theme/pulls/27","id":97166507,"html_url":"https://github.com/YngLab/Msite_wp_theme/pull/27","diff_url":"https://github.com/YngLab/Msite_wp_theme/pull/27.diff","patch_url":"https://github.com/YngLab/Msite_wp_theme/pull/27.patch","issue_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/issues/27","number":27,"state":"open","locked":false,"title":"イベント一覧表示","user":{"login":"sKawashima","id":9900753,"avatar_url":"https://avatars.githubusercontent.com/u/9900753?v=3","gravatar_id":"","url":"https://api.github.com/users/sKawashima","html_url":"https://github.com/sKawashima","followers_url":"https://api.github.com/users/sKawashima/followers","following_url":"https://api.github.com/users/sKawashima/following{/other_user}","gists_url":"https://api.github.com/users/sKawashima/gists{/gist_id}","starred_url":"https://api.github.com/users/sKawashima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sKawashima/subscriptions","organizations_url":"https://api.github.com/users/sKawashima/orgs","repos_url":"https://api.github.com/users/sKawashima/repos","events_url":"https://api.github.com/users/sKawashima/events{/privacy}","received_events_url":"https://api.github.com/users/sKawashima/received_events","type":"User","site_admin":false},"body":"#26 comp(?)\n#22 comp","created_at":"2016-12-08T17:32:40Z","updated_at":"2016-12-08T17:34:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"163fbc40ff881802742d9beca1b07f323ab76515","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/pulls/27/commits","review_comments_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/pulls/27/comments","review_comment_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/pulls/comments{/number}","comments_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/issues/27/comments","statuses_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/statuses/ccf53339cc5f80a1d6f26e220ee31244bb97e58e","head":{"label":"YngLab:イベント一覧表示","ref":"イベント一覧表示","sha":"ccf53339cc5f80a1d6f26e220ee31244bb97e58e","user":{"login":"YngLab","id":19465040,"avatar_url":"https://avatars.githubusercontent.com/u/19465040?v=3","gravatar_id":"","url":"https://api.github.com/users/YngLab","html_url":"https://github.com/YngLab","followers_url":"https://api.github.com/users/YngLab/followers","following_url":"https://api.github.com/users/YngLab/following{/other_user}","gists_url":"https://api.github.com/users/YngLab/gists{/gist_id}","starred_url":"https://api.github.com/users/YngLab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YngLab/subscriptions","organizations_url":"https://api.github.com/users/YngLab/orgs","repos_url":"https://api.github.com/users/YngLab/repos","events_url":"https://api.github.com/users/YngLab/events{/privacy}","received_events_url":"https://api.github.com/users/YngLab/received_events","type":"Organization","site_admin":false},"repo":{"id":71572982,"name":"Msite_wp_theme","full_name":"YngLab/Msite_wp_theme","owner":{"login":"YngLab","id":19465040,"avatar_url":"https://avatars.githubusercontent.com/u/19465040?v=3","gravatar_id":"","url":"https://api.github.com/users/YngLab","html_url":"https://github.com/YngLab","followers_url":"https://api.github.com/users/YngLab/followers","following_url":"https://api.github.com/users/YngLab/following{/other_user}","gists_url":"https://api.github.com/users/YngLab/gists{/gist_id}","starred_url":"https://api.github.com/users/YngLab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YngLab/subscriptions","organizations_url":"https://api.github.com/users/YngLab/orgs","repos_url":"https://api.github.com/users/YngLab/repos","events_url":"https://api.github.com/users/YngLab/events{/privacy}","received_events_url":"https://api.github.com/users/YngLab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/YngLab/Msite_wp_theme","description":"10/21Create, 納品目標11/4-11","fork":false,"url":"https://api.github.com/repos/YngLab/Msite_wp_theme","forks_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/forks","keys_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/keys{/key_id}","collaborators_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/teams","hooks_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/hooks","issue_events_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/issues/events{/number}","events_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/events","assignees_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/assignees{/user}","branches_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/branches{/branch}","tags_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/tags","blobs_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/git/refs{/sha}","trees_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/git/trees{/sha}","statuses_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/statuses/{sha}","languages_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/languages","stargazers_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/stargazers","contributors_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/contributors","subscribers_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/subscribers","subscription_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/subscription","commits_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/commits{/sha}","git_commits_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/git/commits{/sha}","comments_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/comments{/number}","issue_comment_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/issues/comments{/number}","contents_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/contents/{+path}","compare_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/compare/{base}...{head}","merges_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/merges","archive_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/downloads","issues_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/issues{/number}","pulls_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/pulls{/number}","milestones_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/milestones{/number}","notifications_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/labels{/name}","releases_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/releases{/id}","deployments_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/deployments","created_at":"2016-10-21T14:35:47Z","updated_at":"2016-11-05T08:07:58Z","pushed_at":"2016-12-08T17:32:41Z","git_url":"git://github.com/YngLab/Msite_wp_theme.git","ssh_url":"git@github.com:YngLab/Msite_wp_theme.git","clone_url":"https://github.com/YngLab/Msite_wp_theme.git","svn_url":"https://github.com/YngLab/Msite_wp_theme","homepage":null,"size":108896,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":0,"default_branch":"master"}},"base":{"label":"YngLab:master","ref":"master","sha":"076cb85a8d1ba1db35d43590552b9e0717c3534c","user":{"login":"YngLab","id":19465040,"avatar_url":"https://avatars.githubusercontent.com/u/19465040?v=3","gravatar_id":"","url":"https://api.github.com/users/YngLab","html_url":"https://github.com/YngLab","followers_url":"https://api.github.com/users/YngLab/followers","following_url":"https://api.github.com/users/YngLab/following{/other_user}","gists_url":"https://api.github.com/users/YngLab/gists{/gist_id}","starred_url":"https://api.github.com/users/YngLab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YngLab/subscriptions","organizations_url":"https://api.github.com/users/YngLab/orgs","repos_url":"https://api.github.com/users/YngLab/repos","events_url":"https://api.github.com/users/YngLab/events{/privacy}","received_events_url":"https://api.github.com/users/YngLab/received_events","type":"Organization","site_admin":false},"repo":{"id":71572982,"name":"Msite_wp_theme","full_name":"YngLab/Msite_wp_theme","owner":{"login":"YngLab","id":19465040,"avatar_url":"https://avatars.githubusercontent.com/u/19465040?v=3","gravatar_id":"","url":"https://api.github.com/users/YngLab","html_url":"https://github.com/YngLab","followers_url":"https://api.github.com/users/YngLab/followers","following_url":"https://api.github.com/users/YngLab/following{/other_user}","gists_url":"https://api.github.com/users/YngLab/gists{/gist_id}","starred_url":"https://api.github.com/users/YngLab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YngLab/subscriptions","organizations_url":"https://api.github.com/users/YngLab/orgs","repos_url":"https://api.github.com/users/YngLab/repos","events_url":"https://api.github.com/users/YngLab/events{/privacy}","received_events_url":"https://api.github.com/users/YngLab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/YngLab/Msite_wp_theme","description":"10/21Create, 納品目標11/4-11","fork":false,"url":"https://api.github.com/repos/YngLab/Msite_wp_theme","forks_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/forks","keys_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/keys{/key_id}","collaborators_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/teams","hooks_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/hooks","issue_events_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/issues/events{/number}","events_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/events","assignees_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/assignees{/user}","branches_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/branches{/branch}","tags_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/tags","blobs_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/git/refs{/sha}","trees_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/git/trees{/sha}","statuses_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/statuses/{sha}","languages_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/languages","stargazers_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/stargazers","contributors_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/contributors","subscribers_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/subscribers","subscription_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/subscription","commits_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/commits{/sha}","git_commits_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/git/commits{/sha}","comments_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/comments{/number}","issue_comment_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/issues/comments{/number}","contents_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/contents/{+path}","compare_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/compare/{base}...{head}","merges_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/merges","archive_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/downloads","issues_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/issues{/number}","pulls_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/pulls{/number}","milestones_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/milestones{/number}","notifications_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/labels{/name}","releases_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/releases{/id}","deployments_url":"https://api.github.com/repos/YngLab/Msite_wp_theme/deployments","created_at":"2016-10-21T14:35:47Z","updated_at":"2016-11-05T08:07:58Z","pushed_at":"2016-12-08T17:32:41Z","git_url":"git://github.com/YngLab/Msite_wp_theme.git","ssh_url":"git@github.com:YngLab/Msite_wp_theme.git","clone_url":"https://github.com/YngLab/Msite_wp_theme.git","svn_url":"https://github.com/YngLab/Msite_wp_theme","homepage":null,"size":108896,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/YngLab/Msite_wp_theme/pulls/27"},"html":{"href":"https://github.com/YngLab/Msite_wp_theme/pull/27"},"issue":{"href":"https://api.github.com/repos/YngLab/Msite_wp_theme/issues/27"},"comments":{"href":"https://api.github.com/repos/YngLab/Msite_wp_theme/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/YngLab/Msite_wp_theme/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/YngLab/Msite_wp_theme/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/YngLab/Msite_wp_theme/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/YngLab/Msite_wp_theme/statuses/ccf53339cc5f80a1d6f26e220ee31244bb97e58e"}}}}
{"actor":{"display_login":"sKawashima"}}