1
1
<?php
2
+
3
+ require_once "lang.conf.php " ;
4
+
2
5
if (!is_array ($ _GET )&&count ($ _GET )<=0 ){
3
6
exit ();
4
7
}
5
8
include ("./lib.php " );
6
9
$ channel =get_channel_info ($ _GET ['channelid ' ],APIKEY );
7
10
$ headtitle =$ channel ['items ' ][0 ]['snippet ' ]['title ' ].'- ' .SITE_NAME ;
8
- include ("./header.php " );
11
+ include ("./header.php " );
9
12
if (isset ($ _GET ['pageToken ' ])){$ ptk =$ _GET ["pageToken " ];} else {$ ptk ='' ;}
10
13
?>
11
14
<div class="bg1" style="background: url(./thumbnail.php?type=banner&vid=<?php echo $ channel ['items ' ][0 ]['id ' ] ?> );background-repeat: no-repeat;background-position: center center;background-size: cover;" >
12
- <div class="touxiang">
15
+ <div class="touxiang">
13
16
<div id="bg2">
14
17
<div id="bg3" style="border-radius: 100%;background: url(./thumbnail.php?type=photo&vid=<?php echo $ channel ['items ' ][0 ]['id ' ] ?> ) center no-repeat;background-size: cover;"> </div></div>
15
18
<div class="container pt-2">
16
-
19
+
17
20
<div id="bg4" class="txt2"><?php echo $ channel ['items ' ][0 ]['snippet ' ]['title ' ] ?> </div>
18
-
21
+
19
22
<p class="kkkkkk pb-1 text-center" style="color: white;">
20
23
<?php
21
24
if (!empty ($ channel ['items ' ][0 ]['snippet ' ]['description ' ])){echo $ channel ['items ' ][0 ]['snippet ' ]['description ' ];}else {echo '这个家伙很懒,什么也没留下... ' ;}?>
27
30
truncate: 1,
28
31
showText: '<i class="fa d-inline fa-2x fa-angle-down shangico"></i>',
29
32
hideText: '<i class="fa d-inline fa-2x fa-angle-up shangico"></i>',
30
- });
33
+ });
31
34
});
32
35
</script>
33
-
34
- </div>
36
+
37
+ </div>
35
38
</div>
36
39
<div class="bg10"></div>
37
40
</div>
38
-
41
+
39
42
<div class="container pt-2">
40
43
<div class="py-2">
41
44
<div class="row">
42
45
<div class="container">
43
-
44
-
45
-
46
+
47
+
48
+
46
49
<div class="row equipo-item">
47
50
<div class="col-md-4 col-sm-12 col-xs-12 col-lg-4 equipodiv order-md-1 order-lg-1 order-xs-2 order-sm-2">
48
51
<div class="related">
49
- <p class="font-weight-bold h6 pb-1">频道信息 </p>
50
- <span class="d-block py-3 fa fa-calendar"> 注册于 <?php echo date ("Y-m-d " , strtotime ($ channel ['items ' ][0 ]['snippet ' ]['publishedAt ' ]));?> </span>
51
- <span class="d-block py-3 fa fa-play"> <?php echo $ channel ['items ' ][0 ]['statistics ' ]['viewCount ' ]?> 次观看< /span>
52
- <span class="d-block py-3 fa fa-user-circle-o"> <?php echo $ channel ['items ' ][0 ]['statistics ' ]['subscriberCount ' ]?> 位订阅者 </span>
53
- <span class="d-block py-3 fa fa-globe"> 来自 <?php if (array_key_exists ('country ' ,$ channel ['items ' ][0 ]['snippet ' ])) {echo get_country ($ channel ['items ' ][0 ]['snippet ' ]['country ' ]);} else {echo ' 火星 ' ;}?> </span>
52
+ <p class="font-weight-bold h6 pb-1"><?php echo $ lang [ ' CHANEL_M2 ' ] ?> </p>
53
+ <span class="d-block py-3 fa fa-calendar"> <?php echo $ lang [ ' CHANEL_M3 ' ] ?> <?php echo date ("Y-m-d " , strtotime ($ channel ['items ' ][0 ]['snippet ' ]['publishedAt ' ]));?> </span>
54
+ <span class="d-block py-3 fa fa-play"> <?php echo $ channel ['items ' ][0 ]['statistics ' ]['viewCount ' ]?> <?php echo $ lang [ ' CHANEL_M4 ' ] ?> < /span>
55
+ <span class="d-block py-3 fa fa-user-circle-o"> <?php echo $ channel ['items ' ][0 ]['statistics ' ]['subscriberCount ' ]?> <?php echo $ lang [ ' CHANEL_M5 ' ] ?> </span>
56
+ <span class="d-block py-3 fa fa-globe"> <?php echo $ lang [ ' CHANEL_M6 ' ] ?> <?php if (array_key_exists ('country ' ,$ channel ['items ' ][0 ]['snippet ' ])) {echo get_country ($ channel ['items ' ][0 ]['snippet ' ]['country ' ]);} else {echo $ lang [ ' CHANEL_M6B ' ] ;}?> </span>
54
57
55
58
</div>
56
59
<div class="related text-nowrap">
57
- <p class="font-weight-bold h6 pb-1">相关频道 </p>
60
+ <p class="font-weight-bold h6 pb-1"><?php echo $ lang [ ' CHANEL_M7 ' ] ?> </p>
58
61
<?php
59
62
$ xg =get_related_channel ($ channel ['items ' ][0 ]['id ' ]);
60
63
foreach ($ xg as $ v ) {
61
64
echo '<span class="d-block">
62
-
65
+
63
66
<a href="./channel.php?channelid= ' .$ v ['id ' ].'" target="_blank"> <img src="./thumbnail.php?type=photo&vid= ' .$ v ['id ' ].'" class="txlistimg"></a>
64
-
65
- <a href="./channel.php?channelid= ' .$ v ['id ' ].'" target="_blank" title=" ' .$ v ['name ' ].'"class="text-dark txlist">
67
+
68
+ <a href="./channel.php?channelid= ' .$ v ['id ' ].'" target="_blank" title=" ' .$ v ['name ' ].'"class="text-dark txlist">
66
69
' .$ v ['name ' ].'</a>
67
-
70
+
68
71
</span> ' ;
69
72
}
70
73
?>
71
74
72
75
</div>
73
76
</div>
74
77
<div class="col-md-8 col-sm-12 col-xs-12 col-lg-8 related order-md-2 order-lg-2 order-xs-1 order-sm-1">
75
- <div class="font-weight-bold h6 pb-1">全部视频( <?php echo $ channel ['items ' ][0 ]['statistics ' ]['videoCount ' ] ?> 个)</div>
78
+ <div class="font-weight-bold h6 pb-1"><?php echo $ lang [ ' CHANEL_M8 ' ] ?> <?php echo $ channel ['items ' ][0 ]['statistics ' ]['videoCount ' ] ?> 个)</div>
76
79
<div id="videocontent"></div>
77
80
<script>$("#videocontent").load('<?php echo './ajax/ajax.php?channelid= ' .$ _GET ['channelid ' ].'&type=channels&ptk= ' .$ _GET ['pageToken ' ]?> ');</script>
78
81
</div>
79
82
</div>
80
83
81
-
82
-
84
+
85
+
83
86
</div>
84
87
</div>
85
-
88
+
86
89
</div>
87
90
</div>
88
-
89
-
91
+
92
+
90
93
</div>
91
94
<?php
92
- include ("./footer.php " );
93
- ?>
95
+ include ("./footer.php " );
96
+ ?>
0 commit comments