-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
372 lines (347 loc) · 21 KB
/
index.php
File metadata and controls
372 lines (347 loc) · 21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
<?php http_response_code(404); ?>
<?php require("./app_id.php"); ?>
<?php require("./curl.php"); ?>
<?php
if ($id == 1) {
$title = "みんなの新着レビュー - 最新の口コミ情報をお届け!";
$description = "Yahoo!ショッピングから最新のレビューをお届けします。最近話題の商品や、類似商品のレビューを高評価順や低評価順でも見られます。購入前に要チェック!";
} else {
$title = $resC["ResultSet"][0]["Result"]["Categories"]["Current"]["Title"]["Medium"]."の新着レビュー - みんなの新着レビュー";
$description = "Yahoo!ショッピングから".$resC["ResultSet"][0]["Result"]["Categories"]["Current"]["Title"]["Medium"]."の最新口コミ情報をお届けします。最近話題の商品や、類似商品のレビューを高評価順や低評価順でも見られます。".$resC["ResultSet"][0]["Result"]["Categories"]["Current"]["Title"]["Short"]."の購入前には要チェック!";
}
?>
<!doctype html>
<!--[if lt IE 7 ]><html lang="ja" class="no-js ie6"> <![endif]-->
<!--[if IE 7 ]><html lang="ja" class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]><html lang="ja" class="no-js ie8"> <![endif]-->
<!--[if IE 9 ]><html lang="ja" class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--><html lang="ja" class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta name="keywords" content="レビュー,新着,ヤフー,Yahoo!,ショッピング,商品<?php
if ($id != 1) {
echo ",".str_replace("、", ",", $resC["ResultSet"][0]["Result"]["Categories"]["Current"]["Title"]["Medium"]);
}
?>" />
<meta name="description" content="<?php echo $description; ?>" />
<meta name="viewport" content="width=device-width,initial-scale=1">
<title><?php echo $title; ?></title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
<link href="css/zocial.css" media="screen" rel="stylesheet">
<link href="style.css" media="screen" rel="stylesheet">
<link href="my.css?v=20210828" media="screen" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<!--[if lt IE 9]><script src="js/respond.min.js"></script><![endif]-->
<!--[if gte IE 9]>
<style type="text/css">
.gradient {filter: none !important;}
</style>
<![endif]-->
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<meta name="msapplication-TileColor" content="#ffc40d">
<meta name="theme-color" content="#ffffff">
<meta property="og:site_name" content="みんなの新着レビュー" />
<meta property="og:title" content="<?php echo $title; ?>">
<meta property="og:description" content="<?php echo $description; ?>">
<meta property="og:url" content="https://minrev.main.jp/">
<meta property="og:image" content="https://minrev.main.jp/image/og-image.jpg">
<meta property="og:type" content="artcle">
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:creator" content="@tiger4th">
</head>
<body id="top">
<!-- Google Tag Manager -->
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W9BGVV"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-W9BGVV');</script>
<!-- End Google Tag Manager -->
<div class="link is-pc">
<a href="https://tiger4th.com/">tiger4th.com</a>
</div>
<div class="container container-wide">
<!-- content -->
<div class="content " role="main">
<!-- row -->
<div class="row">
<div class="col-sm-4">
<!-- Website Menu -->
<div class="logo">
<a href="/">
<img src="./image/logo.png" alt="みんなの新着レビュー"/>
</a>
</div>
<!--/ Website Menu -->
<br><br>
</div>
<?php if (!$sp) { ?>
<div class="col-sm-8 is-pc">
<div class="head-ad">
<!-- admax -->
<script src="https://adm.shinobi.jp/s/53ef44afc127bc67dcee549a289d6c74"></script>
<!-- admax -->
</div>
<br><br>
</div>
<?php } ?>
</div>
<!--/ row -->
<!-- row -->
<div class="row">
<div class="col-sm-4">
<div class="widget-container boxed category">
<?php if ($id == 1) { ?>
<h1 class="widget-title" onClick="toggleList()">商品カテゴリ<i class="fa fa-bars fa-lg toggle-list"></i></h1>
<div class="inner list-group">
<a class="list-group-item" href="index.php?id=13457&sort=<?php echo $sort; ?>&results=<?php echo $results; ?>"><i class="fa fa-female fa-fw"></i>ファッション</a>
<a class="list-group-item" href="index.php?id=2498&sort=<?php echo $sort; ?>&results=<?php echo $results; ?>"><i class="fa fa-cutlery fa-fw"></i>食品</a>
<a class="list-group-item" href="index.php?id=2513&sort=<?php echo $sort; ?>&results=<?php echo $results; ?>"><i class="fa fa-fire fa-fw"></i>アウトドア、釣り、旅行用品</a>
<a class="list-group-item" href="index.php?id=2500&sort=<?php echo $sort; ?>&results=<?php echo $results; ?>"><i class="fa fa-medkit fa-fw"></i>ダイエット、健康</a>
<a class="list-group-item" href="index.php?id=2501&sort=<?php echo $sort; ?>&results=<?php echo $results; ?>"><i class="fa fa-tint fa-fw"></i>コスメ、美容、ヘアケア</a>
<a class="list-group-item" href="index.php?id=2502&sort=<?php echo $sort; ?>&results=<?php echo $results; ?>"><i class="fa fa-laptop fa-fw"></i>スマホ、タブレット、パソコン</a>
<a class="list-group-item" href="index.php?id=2504&sort=<?php echo $sort; ?>&results=<?php echo $results; ?>"><i class="fa fa-camera fa-fw"></i>テレビ、オーディオ、カメラ</a>
<a class="list-group-item" href="index.php?id=2505&sort=<?php echo $sort; ?>&results=<?php echo $results; ?>"><i class="fa fa-plug fa-fw"></i>家電</a>
<a class="list-group-item" href="index.php?id=2506&sort=<?php echo $sort; ?>&results=<?php echo $results; ?>"><i class="fa fa-home fa-fw"></i>家具、インテリア</a>
<a class="list-group-item" href="index.php?id=2507&sort=<?php echo $sort; ?>&results=<?php echo $results; ?>"><i class="fa fa-leaf fa-fw"></i>花、ガーデニング</a>
<a class="list-group-item" href="index.php?id=2508&sort=<?php echo $sort; ?>&results=<?php echo $results; ?>"><i class="fa fa-archive fa-fw"></i>キッチン、日用品、文具</a>
<a class="list-group-item" href="index.php?id=2503&sort=<?php echo $sort; ?>&results=<?php echo $results; ?>"><i class="fa fa-wrench fa-fw"></i>DIY、工具</a>
<a class="list-group-item" href="index.php?id=2509&sort=<?php echo $sort; ?>&results=<?php echo $results; ?>"><i class="fa fa-paw fa-fw"></i>ペット用品、生き物</a>
<a class="list-group-item" href="index.php?id=2510&sort=<?php echo $sort; ?>&results=<?php echo $results; ?>"><i class="fa fa-bell-o fa-fw"></i>楽器、手芸、コレクション</a>
<a class="list-group-item" href="index.php?id=2511&sort=<?php echo $sort; ?>&results=<?php echo $results; ?>"><i class="fa fa-gamepad fa-fw"></i>ゲーム、おもちゃ</a>
<a class="list-group-item" href="index.php?id=2497&sort=<?php echo $sort; ?>&results=<?php echo $results; ?>"><i class="fa fa-child fa-fw"></i>ベビー、キッズ、マタニティ</a>
<a class="list-group-item" href="index.php?id=2512&sort=<?php echo $sort; ?>&results=<?php echo $results; ?>"><i class="fa fa-futbol-o fa-fw"></i>スポーツ</a>
<a class="list-group-item" href="index.php?id=2514&sort=<?php echo $sort; ?>&results=<?php echo $results; ?>"><i class="fa fa-car fa-fw"></i>車、バイク、自転車</a>
<a class="list-group-item" href="index.php?id=2516&sort=<?php echo $sort; ?>&results=<?php echo $results; ?>"><i class="fa fa-music fa-fw"></i>CD、音楽ソフト、チケット</a>
<a class="list-group-item" href="index.php?id=2517&sort=<?php echo $sort; ?>&results=<?php echo $results; ?>"><i class="fa fa-film fa-fw"></i>DVD、映像ソフト</a>
<a class="list-group-item" href="index.php?id=10002&sort=<?php echo $sort; ?>&results=<?php echo $results; ?>"><i class="fa fa-book fa-fw"></i>本、雑誌、コミック</a>
<a class="list-group-item" href="index.php?id=47727&sort=<?php echo $sort; ?>&results=<?php echo $results; ?>"><i class="fa fa-handshake-o fa-fw"></i>レンタル、各種サービス</a>
</div>
<?php } else {
echo '<h1 class="widget-title" onClick="toggleList()">'.$resC["ResultSet"][0]["Result"]["Categories"]["Current"]["Title"]["Short"].'<i class="fa fa-bars fa-lg toggle-list"></i></h1>';
echo '<div class="inner list-group">';
foreach($resC["ResultSet"][0]["Result"]["Categories"]["Children"] as $item){
if(isset($item["Title"]["Short"])){
echo '<a class="list-group-item" href="index.php?id='.$item["Id"].'&sort='.$sort.'&results='.$results.'">'.$item["Title"]["Short"].'</a>';
}
}
if(isset($_GET['id']) && $_GET['id'] > 1){
echo '<a class="list-group-item" href="index.php?id='.$resC["ResultSet"][0]["Result"]["Categories"]["Current"]["ParentId"].'&sort='.$sort.'&results='.$results.'"><i class="fa fa-angle-up"></i>上のカテゴリに戻る</a>';
echo '<a class="list-group-item" href="/?sort='.$sort.'&results='.$results.'"><i class="fa fa-angle-double-up"></i>トップに戻る</a>';
}
echo '</div>';
} ?>
</div>
<?php if (!$sp) { ?>
<div id="sidead" class="is-pc">
<div class="center">
<script language="javascript" src="//ad.jp.ap.valuecommerce.com/servlet/jsbanner?sid=3185576&pid=886586878"></script>
<noscript><a href="//ck.jp.ap.valuecommerce.com/servlet/referral?sid=3185576&pid=886586878" rel="nofollow"><img src="//ad.jp.ap.valuecommerce.com/servlet/gifbanner?sid=3185576&pid=886586878" border="0"></a></noscript>
</div>
<div class="center">
<script type="text/javascript" src="https://adm.shinobi.jp/s/7391682fb9058aeb3b57caab93354a2f"></script>
</div>
</div>
<?php } ?>
</div>
<div class="col-sm-8">
<!-- row -->
<div class="row">
<div class="col-sm-12">
<div class="widget-container widget-search styled boxed line-left bread">
<div class="inner" itemscope itemtype="https://schema.org/BreadcrumbList">
<?php
if ($id == 1) {
echo "<span>Yahoo!ショッピングから最新のレビューをお届け!</span>";
} else {
$i = 1;
foreach ($resC["ResultSet"][0]["Result"]["Categories"]["Current"]["Path"] as $item) {
if (is_array($item)) {
if ($item["Id"] == 1) {
echo '<div class="item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem"><a href="/?sort='.$sort.'&results='.$results.'" itemprop="item"><span itemprop="name">トップ</span></a><meta itemprop="position" content="'.$i.'" /></div>';
} else {
echo '<span> > </span><div class="item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem"><a href="index.php?id='.$item["Id"].'&sort='.$sort.'&results='.$results.'" itemprop="item"><span itemprop="name">'.$item["Title"]["Name"].'</span></a><meta itemprop="position" content="'.$i.'" /></div>';
}
$i++;
}
}
}
?>
</div>
</div>
</div>
</div>
<!--/ row -->
<div class="row">
<?php if ($res["ResultSet"]["totalResultsReturned"] > 0) { ?>
<div class="col-sm-4">
<div class="user-menu">
<ul class="dropdown clearfix boxed ul-number">
<li class="first last"><span class="a-number"><span><?php echo number_format($res["ResultSet"]["totalResultsAvailable"]); ?>件中<br><?php echo number_format($start); ?>~<?php echo number_format($start + $res["ResultSet"]["totalResultsReturned"] - 1); ?>件目</span></span></li>
</ul>
</div>
</div>
<?php } ?>
<div class="col-sm-4">
<div class="user-menu">
<ul class="dropdown clearfix boxed">
<li class="first parent"><a href="#" hidefocus="true" style="outline: none;"><i class="icon-menu icon-menu4"></i><span>表示順</span></a>
<ul>
<li class="first"><a href="index.php?id=<?php echo $id; ?>&sort=-updatetime&results=<?php echo $results; ?>" hidefocus="true" style="outline: none;">新着</a></li>
<li class=""><a href="index.php?id=<?php echo $id; ?>&sort=-review_rate&results=<?php echo $results; ?>" hidefocus="true" style="outline: none;">高評価優先</a></li>
<li class="last"><a href="index.php?id=<?php echo $id; ?>&sort=%2Breview_rate&results=<?php echo $results; ?>" hidefocus="true" style="outline: none;">低評価優先</a></li>
</ul>
</li>
<li><div class="ribbon">
<span>
<strong>
<?php
if ($sort == "-updatetime") {
echo "<br>新着順";
} elseif ($sort == "-review_rate") {
echo "高評価優先";
} elseif ($sort == "%2Breview_rate") {
echo "低評価優先";
}
?>
</strong>
</span>
</div></li>
</ul>
</div>
</div>
<div class="col-sm-4">
<div class="user-menu">
<ul class="dropdown clearfix boxed">
<li class="first parent"><a href="#" hidefocus="true" style="outline: none;"><i class="icon-menu icon-menu6"></i><span>表示数</span></a>
<ul>
<li class="first"><a href="index.php?id=<?php echo $id; ?>&sort=<?php echo $sort; ?>&results=10" hidefocus="true" style="outline: none;">10件</a></li>
<li class=""><a href="index.php?id=<?php echo $id; ?>&sort=<?php echo $sort; ?>&results=30" hidefocus="true" style="outline: none;">30件</a></li>
<li class="last"><a href="index.php?id=<?php echo $id; ?>&sort=<?php echo $sort; ?>&results=50" hidefocus="true" style="outline: none;">50件</a></li>
</ul>
</li>
<li><div class="ribbon">
<span>
<strong>
<br>
<?php
if ($results == 10) {
echo "10件";
} elseif ($results == 30) {
echo "30件";
} elseif ($results == 50) {
echo "50件";
}
?>
</strong>
</span>
</div></li>
</ul>
</div>
</div>
</div>
<?php if (!empty($notice)) { ?>
<div class="comment-list styled clearfix">
<ol>
<li class="comment">
<div class="comment-body boxed">
<div class="comment-arrow"></div>
<div class="comment-avatar">
</div>
<div class="comment-text">
<div class="comment-author clearfix">
<a class="link-author"><?php echo $notice["title"]; ?></a>
</div>
<div class="comment-entry">
<br>
<?php echo $notice["description"]; ?>
</div>
</div>
<div class="clear"></div>
</div>
</li>
</ol>
</div>
<?php } else { ?>
<?php foreach($res["ResultSet"]["Result"] as $item){ ?>
<div class="comment-list styled clearfix">
<ol>
<li class="comment">
<div class="comment-body boxed">
<div class="comment-arrow"></div>
<div class="comment-avatar">
<div class="avatar"><a href="<?php echo $item["Target"]["Url"]; ?>#ItemInfo" target="_blank"><img src="<?php echo $item["Target"]["Image"]["Medium"]["Url"]; ?>" loading="lazy" /></a></div>
<a href="<?php echo $item["Target"]["Url"]; ?>#ItemInfo" class="btn btn-green" target="_blank"><span>詳細</span></a>
</div>
<div class="comment-text">
<div class="rating"><!--
<?php for ($i=0; $i < $item["Ratings"]["Rate"]; $i++) { ?>
--><span class="star on"></span><!--
<?php } ?>
--><!--
<?php for ($i=0; $i < 5 - $item["Ratings"]["Rate"]; $i++) { ?>
--><span class="star off"></span><!--
<?php } ?>
--></div>
<p class="time"><?php
$time = substr($item["Update"], 0, 19);
$time = str_replace('-', '/', $time);
$time = str_replace('T', ' ',$time);
echo $time;
?></p>
<div class="clearfix"></div>
<div class="comment-author clearfix">
<a href="<?php echo $item["Url"]; ?>" class="link-author" target="_blank"><h3><?php echo $item["ReviewTitle"]; ?></h3></a>
</div>
<div class="comment-entry">
<p class="description"><?php echo $item["Description"]; ?></p>
<a href="<?php echo $item["Target"]["Url"]; ?>#ItemInfo" target="_blank"><h2 class="name"><?php echo $item["Target"]["Name"]; ?></h2></a>
</div>
<hr class="comment-hr">
<div class="similar-search">
<a href="https://ck.jp.ap.valuecommerce.com/servlet/referral?sid=3185576&pid=883213932&vc_url=<?php echo rawurlencode('https://search.shopping.yahoo.co.jp/search?ei=UTF-8&p='.$item["Target"]["Name"]); ?>" class="zocial yahoo" target="_blank">ヤフーで探す</a>
<a href="https://hb.afl.rakuten.co.jp/hgc/13efd072.29187a8c.13efd073.0c4e5a0e/?pc=<?php echo rawurlencode('https://search.rakuten.co.jp/search/mall/'.$item["Target"]["Name"]); ?>" class="zocial rakuten" target="_blank">楽天で探す</a>
<a href="https://www.amazon.co.jp/gp/search?ie=UTF8&camp=247&creative=1211&index=aps&keywords=<?php echo $item["Target"]["Name"]; ?>&linkCode=ur2&tag=tiger4th-22" class="zocial amazon" target="_blank">Amazonで探す</a>
</div>
</div>
<div class="clear"></div>
</div>
</li>
</ol>
</div>
<?php } ?>
<?php } ?>
<div class="undernavi">
<div class="new"><?php echo $newest." ".$newer; ?></div>
<div class="old"><?php echo $older." ".$oldest; ?></div>
</div>
<div class="clearfix"></div>
<div class="footer-right">
<a href="#top" class="anchor"><img src="./image/top.png" width="70px" loading="lazy" /></a>
<!-- Begin Yahoo! JAPAN Web Services Attribution Snippet -->
<a href="https://developer.yahoo.co.jp/about">
<img src="https://i.yimg.jp/images/yjdn/yjdn_attbtn1_125_17.gif" title="Webサービス by Yahoo! JAPAN" alt="Web Services by Yahoo! JAPAN" width="125" height="17" border="0" style="margin:15px 15px 0px 15px" loading="lazy">
</a>
<!-- End Yahoo! JAPAN Web Services Attribution Snippet -->
<a href="https://www.amazon.co.jp/?tag=tiger4th-22" class="zocial amazon associate" target="_blank">Amazon.co.jpアソシエイト</a>
<img Src="https://ad.jp.ap.valuecommerce.com/servlet/gifbanner?sid=3185576&pid=883213932" height="1" width="1" Border="0">
<br><br>
<span>© 2010-<?php echo date("Y"); ?> <a href="https://tiger4th.com/">tiger4th.com</a></span>
</div>
</div>
</div>
<!--/ row -->
</div>
<!--/ content -->
</div>
<!--/ container -->
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="js/general.js"></script>
</body>
</html>