{"action":"created","comment":{"url":"https://api.github.com/repos/hashikuchi/freecycle/pulls/comments/33320654","id":33320654,"diff_hunk":"@@ -3,194 +3,107 @@\n \t\theader('Location:' . home_url() . '/top-page.php');\r\n \t}\r\n ?>\r\n-<?php get_header(); ?>\r\n-\r\n-\t<div id=\"content\">\r\n-\t\t<div class=\"padder\">\r\n-\r\n-\t\t<?php do_action( 'bp_before_blog_home' ); ?>\r\n \r\n-\t\t<?php do_action( 'template_notices' ); ?>\r\n-\t\t<?php if(endsWith(home_url() . '/', $_SERVER['REQUEST_URI'])) : ?>\r\n-\t\t\t<div class=\"page\" id=\"topic-items\">\r\n-\t\t\t<?php\r\n-\t\t\t\t$static_condition = '&orderby=rand'; // random display\r\n-\t\t\t\t$topics_items_condition = '';\r\n-\t\t\t\t$topics_showposts = 4;\r\n-\t\t\t\tif(get_option('topic-items-condition-category') && get_option('use-topic-items-condition-category') == 'on'){\r\n-\t\t\t\t\t$topics_items_condition .= '&cat=' . get_option('topic-items-condition-category');\r\n-\t\t\t\t}\r\n-\t\t\t\tif(get_option('topic-items-condition-title') && get_option('use-topic-items-condition-title') == 'on'){\r\n-\t\t\t\t\t$topics_items_condition .= '&s=' . get_option('topic-items-condition-title');\r\n-\t\t\t\t}\r\n-\t\t\t\t$topics_query = new WP_Query($static_condition . $topics_items_condition . '&showposts=' . $topics_showposts);\r\n+<?php get_header(); ?>\r\n+<?\r\n+\t$xml_massage = get_stylesheet_directory_uri().\"/xml/message.xml\";\r\n+\t$xml_texp = get_stylesheet_directory_uri().\"/xml/texp.xml\";\r\n+\t$xmlData_massage = simplexml_load_file($xml_massage);//xmlを読み込む\r\n+\t$xmlData_texp = simplexml_load_file($xml_texp);\r\n+?>\r\n+\t<div class=\"BlackBoard\" style=\"position: relative;\">\r\n+\t\t<div class=\"box1\">\r\n+\t\t\t<? \r\n+\t\t\t\t$num = mt_rand(0,$xmlData_massage->obj->item->count()-1);\r\n+\t\t\t\t$node = $xmlData_massage->obj->item[$num];\r\n \t\t\t?>\r\n-\t\t\t<?php if ($topics_query->have_posts() && get_option('use-topic-items')=='on') : ?>\r\n-\t\t\t<h4 id=\"topic-h4\">注目の商品：<?php echo get_option('topic-items-name')?></h4>\r\n-\t\t\t\t<?php $count = 1; ?>\r\n-\t\t\t\t<?php $row = 2; ?>\r\n-\t\t\t\t<?php $is_closed = false; ?>\r\n-\t\t\t\t<?php while ($topics_query->have_posts()) : $topics_query->the_post(); ?>\r\n-\t\t\t\t<?php if($count%$row == 1) {\r\n-\t\t\t\t\t$is_closed = false;\r\n-\t\t\t\t?>\r\n-\t\t\t\t\t<div class=\"posts-row\">\r\n-\t\t\t\t<?php } ?>\r\n-\t\t\t\t\t\t<div id=\"post-<?php the_ID(); ?>\" <?php post_class(); ?> class=\"entry-on-index\">\r\n-\t\t\t\t\t\t\t<div class=\"post-content\">\r\n-\t\t\t\t\t\t\t\t<div class=\"entry\">\t\r\n-\t\t\t\t\t\t\t\t\t<a href=\"<?php the_permalink(); ?>\" class=\"post-img-contents\"><?php the_post_thumbnail(array(150, 150)) ?></a>\t\t\t\t\t\r\n-\t\t\t\t\t\t\t\t\t<?php wp_link_pages( array( 'before' => '<div class=\"page-link\"><p>' . __( 'Pages: ', 'buddypress' ), 'after' => '</p></div>', 'next_or_number' => 'number' ) ); ?>\r\n-\t\t\t\t\t\t\t\t\t<span class=\"index-item-title\"><a href=\"<?php the_permalink(); ?>\"><?php the_title(); ?></a></span>\r\n-\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\r\n-\t\t\t\t\t\t\t</div><!-- post-content -->\t\t\t\t\t\r\n-\t\t\t\t\t\t</div><!-- post名 -->\r\n-\t\t\t\t<?php if($count%$row == 0) {\r\n-\t\t\t\t\t$is_closed = true;\r\n-\t\t\t\t?>\r\n-\t\t\t\t\t</div><!-- posts-row -->\r\n-\t\t\t\t<hr class=\"hr-posts-row\">\r\n-\t\t\t\t<?php } ?>\r\n-\t\t\t\t<?php $count++; ?>\r\n-\t\t\t\t<?php endwhile; ?>\r\n-\t\t\t\t<?php wp_reset_postdata(); ?>\r\n-\t\t\t\t<?php if(!$is_closed): ?>\r\n-\t\t\t\t\t\t<!-- dummy -->\r\n-\t\t\t\t\t\t<div <?php post_class(); ?> class=\"entry-on-index\">\r\n-\t\t\t\t\t\t\t\t<div class=\"post-content\">\r\n-\t\t\t\t\t\t\t\t\t<div class=\"entry\">\t\r\n-\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\r\n-\t\t\t\t\t\t\t\t</div><!-- post-content -->\t\t\t\t\t\r\n-\t\t\t\t\t\t</div><!-- post名 -->\r\n-\t\t\t\t\t</div><!-- posts-row -->\r\n-\t\t\t\t\t<hr class=\"hr-posts-row\">\r\n-\t\t\t\t<?php endif; ?>\r\n-\t\t\t\t<a href=\"<?php echo home_url() . '/?' . $topics_items_condition ?>\"><p>注目の商品をもっと見る</p></a>\r\n-\t\t\t<?php endif; ?>\r\n-\t\t</div><!-- page -->\r\n-\r\n-\t\t<!-- latest items -->\r\n-\t\t<h3 id=\"latest-topic\">最新の出品</h3>\r\n+\t\t\t<span class=\"yello\"><? echo $node->to; ?>さん(✩<? echo $node->torank; ?>)</span>へ\r\n+\t\t\t<span class=\"pink\">「<? echo $node->title; ?>」</span><br>\r","path":"themes/freecycle/index.php","position":85,"original_position":85,"commit_id":"75d79170072a34b14cc449e0f68237dcbc9de212","original_commit_id":"75d79170072a34b14cc449e0f68237dcbc9de212","user":{"login":"hashikuchi","id":4316388,"avatar_url":"https://avatars.githubusercontent.com/u/4316388?v=3","gravatar_id":"","url":"https://api.github.com/users/hashikuchi","html_url":"https://github.com/hashikuchi","followers_url":"https://api.github.com/users/hashikuchi/followers","following_url":"https://api.github.com/users/hashikuchi/following{/other_user}","gists_url":"https://api.github.com/users/hashikuchi/gists{/gist_id}","starred_url":"https://api.github.com/users/hashikuchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hashikuchi/subscriptions","organizations_url":"https://api.github.com/users/hashikuchi/orgs","repos_url":"https://api.github.com/users/hashikuchi/repos","events_url":"https://api.github.com/users/hashikuchi/events{/privacy}","received_events_url":"https://api.github.com/users/hashikuchi/received_events","type":"User","site_admin":false},"body":"yello, pinkの両クラスが利用されていない？","created_at":"2015-06-26T00:47:56Z","updated_at":"2015-06-26T00:47:56Z","html_url":"https://github.com/hashikuchi/freecycle/pull/212#discussion_r33320654","pull_request_url":"https://api.github.com/repos/hashikuchi/freecycle/pulls/212","_links":{"self":{"href":"https://api.github.com/repos/hashikuchi/freecycle/pulls/comments/33320654"},"html":{"href":"https://github.com/hashikuchi/freecycle/pull/212#discussion_r33320654"},"pull_request":{"href":"https://api.github.com/repos/hashikuchi/freecycle/pulls/212"}}},"pull_request":{"url":"https://api.github.com/repos/hashikuchi/freecycle/pulls/212","id":37029224,"html_url":"https://github.com/hashikuchi/freecycle/pull/212","diff_url":"https://github.com/hashikuchi/freecycle/pull/212.diff","patch_url":"https://github.com/hashikuchi/freecycle/pull/212.patch","issue_url":"https://api.github.com/repos/hashikuchi/freecycle/issues/212","number":212,"state":"open","locked":false,"title":"change_toppage#208","user":{"login":"TakenokoPro","id":9033882,"avatar_url":"https://avatars.githubusercontent.com/u/9033882?v=3","gravatar_id":"","url":"https://api.github.com/users/TakenokoPro","html_url":"https://github.com/TakenokoPro","followers_url":"https://api.github.com/users/TakenokoPro/followers","following_url":"https://api.github.com/users/TakenokoPro/following{/other_user}","gists_url":"https://api.github.com/users/TakenokoPro/gists{/gist_id}","starred_url":"https://api.github.com/users/TakenokoPro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TakenokoPro/subscriptions","organizations_url":"https://api.github.com/users/TakenokoPro/orgs","repos_url":"https://api.github.com/users/TakenokoPro/repos","events_url":"https://api.github.com/users/TakenokoPro/events{/privacy}","received_events_url":"https://api.github.com/users/TakenokoPro/received_events","type":"User","site_admin":false},"body":"index.phpをスマホ用に１度書き換えました。\r\n実際にスマホでちゃんと表示できるか確認が必要です。\r\nテスト環境で表示ができたら、元のindex.phpに合わせたいと思います。","created_at":"2015-06-05T13:04:58Z","updated_at":"2015-06-26T00:47:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"494e94f0a9f58b7e38c4ed9e3f6681031738372e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hashikuchi/freecycle/pulls/212/commits","review_comments_url":"https://api.github.com/repos/hashikuchi/freecycle/pulls/212/comments","review_comment_url":"https://api.github.com/repos/hashikuchi/freecycle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hashikuchi/freecycle/issues/212/comments","statuses_url":"https://api.github.com/repos/hashikuchi/freecycle/statuses/75d79170072a34b14cc449e0f68237dcbc9de212","head":{"label":"hashikuchi:fix_phone","ref":"fix_phone","sha":"75d79170072a34b14cc449e0f68237dcbc9de212","user":{"login":"hashikuchi","id":4316388,"avatar_url":"https://avatars.githubusercontent.com/u/4316388?v=3","gravatar_id":"","url":"https://api.github.com/users/hashikuchi","html_url":"https://github.com/hashikuchi","followers_url":"https://api.github.com/users/hashikuchi/followers","following_url":"https://api.github.com/users/hashikuchi/following{/other_user}","gists_url":"https://api.github.com/users/hashikuchi/gists{/gist_id}","starred_url":"https://api.github.com/users/hashikuchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hashikuchi/subscriptions","organizations_url":"https://api.github.com/users/hashikuchi/orgs","repos_url":"https://api.github.com/users/hashikuchi/repos","events_url":"https://api.github.com/users/hashikuchi/events{/privacy}","received_events_url":"https://api.github.com/users/hashikuchi/received_events","type":"User","site_admin":false},"repo":{"id":15099935,"name":"freecycle","full_name":"hashikuchi/freecycle","owner":{"login":"hashikuchi","id":4316388,"avatar_url":"https://avatars.githubusercontent.com/u/4316388?v=3","gravatar_id":"","url":"https://api.github.com/users/hashikuchi","html_url":"https://github.com/hashikuchi","followers_url":"https://api.github.com/users/hashikuchi/followers","following_url":"https://api.github.com/users/hashikuchi/following{/other_user}","gists_url":"https://api.github.com/users/hashikuchi/gists{/gist_id}","starred_url":"https://api.github.com/users/hashikuchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hashikuchi/subscriptions","organizations_url":"https://api.github.com/users/hashikuchi/orgs","repos_url":"https://api.github.com/users/hashikuchi/repos","events_url":"https://api.github.com/users/hashikuchi/events{/privacy}","received_events_url":"https://api.github.com/users/hashikuchi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hashikuchi/freecycle","description":"Project for TexChange (web service for students trading their textbooks)","fork":false,"url":"https://api.github.com/repos/hashikuchi/freecycle","forks_url":"https://api.github.com/repos/hashikuchi/freecycle/forks","keys_url":"https://api.github.com/repos/hashikuchi/freecycle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hashikuchi/freecycle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hashikuchi/freecycle/teams","hooks_url":"https://api.github.com/repos/hashikuchi/freecycle/hooks","issue_events_url":"https://api.github.com/repos/hashikuchi/freecycle/issues/events{/number}","events_url":"https://api.github.com/repos/hashikuchi/freecycle/events","assignees_url":"https://api.github.com/repos/hashikuchi/freecycle/assignees{/user}","branches_url":"https://api.github.com/repos/hashikuchi/freecycle/branches{/branch}","tags_url":"https://api.github.com/repos/hashikuchi/freecycle/tags","blobs_url":"https://api.github.com/repos/hashikuchi/freecycle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hashikuchi/freecycle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hashikuchi/freecycle/git/refs{/sha}","trees_url":"https://api.github.com/repos/hashikuchi/freecycle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hashikuchi/freecycle/statuses/{sha}","languages_url":"https://api.github.com/repos/hashikuchi/freecycle/languages","stargazers_url":"https://api.github.com/repos/hashikuchi/freecycle/stargazers","contributors_url":"https://api.github.com/repos/hashikuchi/freecycle/contributors","subscribers_url":"https://api.github.com/repos/hashikuchi/freecycle/subscribers","subscription_url":"https://api.github.com/repos/hashikuchi/freecycle/subscription","commits_url":"https://api.github.com/repos/hashikuchi/freecycle/commits{/sha}","git_commits_url":"https://api.github.com/repos/hashikuchi/freecycle/git/commits{/sha}","comments_url":"https://api.github.com/repos/hashikuchi/freecycle/comments{/number}","issue_comment_url":"https://api.github.com/repos/hashikuchi/freecycle/issues/comments{/number}","contents_url":"https://api.github.com/repos/hashikuchi/freecycle/contents/{+path}","compare_url":"https://api.github.com/repos/hashikuchi/freecycle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hashikuchi/freecycle/merges","archive_url":"https://api.github.com/repos/hashikuchi/freecycle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hashikuchi/freecycle/downloads","issues_url":"https://api.github.com/repos/hashikuchi/freecycle/issues{/number}","pulls_url":"https://api.github.com/repos/hashikuchi/freecycle/pulls{/number}","milestones_url":"https://api.github.com/repos/hashikuchi/freecycle/milestones{/number}","notifications_url":"https://api.github.com/repos/hashikuchi/freecycle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hashikuchi/freecycle/labels{/name}","releases_url":"https://api.github.com/repos/hashikuchi/freecycle/releases{/id}","created_at":"2013-12-11T06:33:41Z","updated_at":"2015-05-07T11:56:29Z","pushed_at":"2015-06-25T09:50:40Z","git_url":"git://github.com/hashikuchi/freecycle.git","ssh_url":"git@github.com:hashikuchi/freecycle.git","clone_url":"https://github.com/hashikuchi/freecycle.git","svn_url":"https://github.com/hashikuchi/freecycle","homepage":null,"size":36740,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":52,"forks":0,"open_issues":52,"watchers":0,"default_branch":"master"}},"base":{"label":"hashikuchi:master","ref":"master","sha":"c9b776d1c56ac509164d56ac047c7b981ab4ba12","user":{"login":"hashikuchi","id":4316388,"avatar_url":"https://avatars.githubusercontent.com/u/4316388?v=3","gravatar_id":"","url":"https://api.github.com/users/hashikuchi","html_url":"https://github.com/hashikuchi","followers_url":"https://api.github.com/users/hashikuchi/followers","following_url":"https://api.github.com/users/hashikuchi/following{/other_user}","gists_url":"https://api.github.com/users/hashikuchi/gists{/gist_id}","starred_url":"https://api.github.com/users/hashikuchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hashikuchi/subscriptions","organizations_url":"https://api.github.com/users/hashikuchi/orgs","repos_url":"https://api.github.com/users/hashikuchi/repos","events_url":"https://api.github.com/users/hashikuchi/events{/privacy}","received_events_url":"https://api.github.com/users/hashikuchi/received_events","type":"User","site_admin":false},"repo":{"id":15099935,"name":"freecycle","full_name":"hashikuchi/freecycle","owner":{"login":"hashikuchi","id":4316388,"avatar_url":"https://avatars.githubusercontent.com/u/4316388?v=3","gravatar_id":"","url":"https://api.github.com/users/hashikuchi","html_url":"https://github.com/hashikuchi","followers_url":"https://api.github.com/users/hashikuchi/followers","following_url":"https://api.github.com/users/hashikuchi/following{/other_user}","gists_url":"https://api.github.com/users/hashikuchi/gists{/gist_id}","starred_url":"https://api.github.com/users/hashikuchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hashikuchi/subscriptions","organizations_url":"https://api.github.com/users/hashikuchi/orgs","repos_url":"https://api.github.com/users/hashikuchi/repos","events_url":"https://api.github.com/users/hashikuchi/events{/privacy}","received_events_url":"https://api.github.com/users/hashikuchi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hashikuchi/freecycle","description":"Project for TexChange (web service for students trading their textbooks)","fork":false,"url":"https://api.github.com/repos/hashikuchi/freecycle","forks_url":"https://api.github.com/repos/hashikuchi/freecycle/forks","keys_url":"https://api.github.com/repos/hashikuchi/freecycle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hashikuchi/freecycle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hashikuchi/freecycle/teams","hooks_url":"https://api.github.com/repos/hashikuchi/freecycle/hooks","issue_events_url":"https://api.github.com/repos/hashikuchi/freecycle/issues/events{/number}","events_url":"https://api.github.com/repos/hashikuchi/freecycle/events","assignees_url":"https://api.github.com/repos/hashikuchi/freecycle/assignees{/user}","branches_url":"https://api.github.com/repos/hashikuchi/freecycle/branches{/branch}","tags_url":"https://api.github.com/repos/hashikuchi/freecycle/tags","blobs_url":"https://api.github.com/repos/hashikuchi/freecycle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hashikuchi/freecycle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hashikuchi/freecycle/git/refs{/sha}","trees_url":"https://api.github.com/repos/hashikuchi/freecycle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hashikuchi/freecycle/statuses/{sha}","languages_url":"https://api.github.com/repos/hashikuchi/freecycle/languages","stargazers_url":"https://api.github.com/repos/hashikuchi/freecycle/stargazers","contributors_url":"https://api.github.com/repos/hashikuchi/freecycle/contributors","subscribers_url":"https://api.github.com/repos/hashikuchi/freecycle/subscribers","subscription_url":"https://api.github.com/repos/hashikuchi/freecycle/subscription","commits_url":"https://api.github.com/repos/hashikuchi/freecycle/commits{/sha}","git_commits_url":"https://api.github.com/repos/hashikuchi/freecycle/git/commits{/sha}","comments_url":"https://api.github.com/repos/hashikuchi/freecycle/comments{/number}","issue_comment_url":"https://api.github.com/repos/hashikuchi/freecycle/issues/comments{/number}","contents_url":"https://api.github.com/repos/hashikuchi/freecycle/contents/{+path}","compare_url":"https://api.github.com/repos/hashikuchi/freecycle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hashikuchi/freecycle/merges","archive_url":"https://api.github.com/repos/hashikuchi/freecycle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hashikuchi/freecycle/downloads","issues_url":"https://api.github.com/repos/hashikuchi/freecycle/issues{/number}","pulls_url":"https://api.github.com/repos/hashikuchi/freecycle/pulls{/number}","milestones_url":"https://api.github.com/repos/hashikuchi/freecycle/milestones{/number}","notifications_url":"https://api.github.com/repos/hashikuchi/freecycle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hashikuchi/freecycle/labels{/name}","releases_url":"https://api.github.com/repos/hashikuchi/freecycle/releases{/id}","created_at":"2013-12-11T06:33:41Z","updated_at":"2015-05-07T11:56:29Z","pushed_at":"2015-06-25T09:50:40Z","git_url":"git://github.com/hashikuchi/freecycle.git","ssh_url":"git@github.com:hashikuchi/freecycle.git","clone_url":"https://github.com/hashikuchi/freecycle.git","svn_url":"https://github.com/hashikuchi/freecycle","homepage":null,"size":36740,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":52,"forks":0,"open_issues":52,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hashikuchi/freecycle/pulls/212"},"html":{"href":"https://github.com/hashikuchi/freecycle/pull/212"},"issue":{"href":"https://api.github.com/repos/hashikuchi/freecycle/issues/212"},"comments":{"href":"https://api.github.com/repos/hashikuchi/freecycle/issues/212/comments"},"review_comments":{"href":"https://api.github.com/repos/hashikuchi/freecycle/pulls/212/comments"},"review_comment":{"href":"https://api.github.com/repos/hashikuchi/freecycle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hashikuchi/freecycle/pulls/212/commits"},"statuses":{"href":"https://api.github.com/repos/hashikuchi/freecycle/statuses/75d79170072a34b14cc449e0f68237dcbc9de212"}}}}