-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcategory.php
More file actions
32 lines (29 loc) · 1.02 KB
/
category.php
File metadata and controls
32 lines (29 loc) · 1.02 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
<?php
echo '<span class="sm bold orange">カテゴリー</span><br />';
$i=1;
foreach($resC["ResultSet"][0]["Result"]["Categories"]["Current"]["Path"] as $item){
if (is_array($item) && $item["Id"]!=1) {
echo '<span class="sm">';
for($j = 1; $j <= $i; $j++){
echo " ";
}
echo '</span>';
if($item["Id"]==$resC["ResultSet"][0]["Result"]["Categories"]["Current"]["Id"]){
echo '<span class="sm bold">'.$resC["ResultSet"][0]["Result"]["Categories"]["Current"]["Title"]["Short"].'</span><br />';
}else{
echo '<a href="./index.php?id='.$item["Id"].'&sort='.$sort.'"><span class="sm">‹ '.$item["Title"]["Name"].'</span></a><br />';
}
$i++;
}
}
foreach($resC["ResultSet"][0]["Result"]["Categories"]["Children"] as $item){
if(isset($item["Title"]["Short"])){
echo '<span class="sm">';
for($j = 1; $j <= $i; $j++){
echo " ";
}
echo '</span>';
echo '<a href="./index.php?id='.$item["Id"].'&sort='.$sort.'"><span class="sm">'.$item["Title"]["Short"].'</span></a><br />';
}
}
?>