人気な動画
このコミットが含まれているのは:
コミット
dee1cb9967
|
@ -22,8 +22,9 @@ class Game {
|
|||
$res = DB::table('vid_game')->get();
|
||||
if (!$res) return notfound($this->menu, $this->user, $res);
|
||||
$new = DB::table('vid_video')->orderBy('publish_date', 'desc')->limit(8)->get();
|
||||
$pop = DB::table('vid_video')->orderBy('view', 'desc')->orderBy('publish_date', 'desc')->limit(8)->get();
|
||||
|
||||
return view('pages.site.video.game', ['res' => $res, 'new' => $new, 'menu' => $this->menu, 'user' => $this->user, 'err' => $this->err, 'suc' => $this->suc]);
|
||||
return view('pages.site.video.game', ['res' => $res, 'new' => $new, 'pop' => $pop, 'menu' => $this->menu, 'user' => $this->user, 'err' => $this->err, 'suc' => $this->suc]);
|
||||
}
|
||||
|
||||
public function add (Request $r) {
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
<hr />
|
||||
@endif
|
||||
@include('pages.site.video.game.newest')
|
||||
@include('pages.site.video.game.popularest')
|
||||
@include('pages.site.video.game.all')
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="kero-section">人気な動画</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
@foreach ($pop as $p)
|
||||
<div class="col-3">
|
||||
<div class="thumb"><a href="/video/play/{{ $p->vid }}"><img width="170" height="96" src="{{ ($p->thumbnail ?: '/img/noicon.jpg') }}" alt="{{ $p->title }}" /></a></div>
|
||||
<div class="title" style="font-size: 90%;"><a href="/video/play/{{ $p->vid }}">{{ $p->title }}</a></div>
|
||||
<div class="videodate" style="font-size: 60%; color: #bdc3c7;">{{ date('Y年m月d日 H:i:s', $p->publish_date) }}</div>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
新しいイシューから参照