first commit
This commit is contained in:
23
application/views/web/homepage/ccmChart.php
Executable file
23
application/views/web/homepage/ccmChart.php
Executable file
@@ -0,0 +1,23 @@
|
||||
|
||||
<div class="musicChart">
|
||||
<div class="mcTitle">
|
||||
<span>신곡 음원차트</span>
|
||||
<a href="https://www.melon.com/chart/day/index.htm?classCd=GN2100" target="_new" class="more">더보기</a>
|
||||
</div>
|
||||
<ul>
|
||||
<?php
|
||||
$arr_melon_ccm = json_decode(file_get_contents('http://api.fasterest.net:20001/melon/ccm'));
|
||||
$arr_melon_ccm_print = array_splice($arr_melon_ccm,0,7);
|
||||
foreach($arr_melon_ccm_print as $k=>$v) {?>
|
||||
<li>
|
||||
<div class="number"><?= $k+1;?></div>
|
||||
<div class="thumbImg"><img src="<?php echo $v->img?>" alt="<?php echo $v->title?>" ></div>
|
||||
<div class="songTxt">
|
||||
<div class="song">
|
||||
<a href="https://www.youtube.com/results?search_query=<?php echo urlencode($v->album.' '.$v->title)?>" target="_new"><?php echo $v->title?></a></div>
|
||||
<div><a><?php echo mb_strimwidth($v->album,0,15,'..','utf-8')?></a></div>
|
||||
</div>
|
||||
</li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</div>
|
||||
Reference in New Issue
Block a user