LBRYの追加
このコミットが含まれているのは:
コミット
bbffa8be27
|
@ -37,6 +37,7 @@ class Prayer {
|
|||
$res->ytcomment = (isset($ytslug[1]) ? $this->getYouTubeCome($ytslug[1]) : array());
|
||||
$res->nicocomment = array();
|
||||
$res->bccomment = array();
|
||||
$res->lbcomment = array();
|
||||
|
||||
foreach ($comments as $k => $c) {
|
||||
if (count(userDetail($c->user_id)) > 0) {
|
||||
|
|
|
@ -37,10 +37,10 @@ class VideoTable {
|
|||
$game = DB::table('vid_game')->get();
|
||||
$err = '';
|
||||
$res = '';
|
||||
$frm = array('title' => '', 'vid' => '', 'game_id' => '', 'url' => '', 'youtube' => '', 'twitter' => '', 'nicovideo' => '', 'bitchute' => '');
|
||||
$frm = array('title' => '', 'vid' => '', 'game_id' => '', 'url' => '', 'youtube' => '', 'twitter' => '', 'nicovideo' => '', 'bitchute' => '', 'lbry' => '');
|
||||
|
||||
if (isset($r->submit)) {
|
||||
if (empty($err)) { if ($r->url == '' && $r->youtube == '' && $r->twitter == '' && $r->nicovideo == '' && $r->bitchute == '') $err = '1以上の動画URLをご入力下さい。'; }
|
||||
if (empty($err)) { if ($r->url == '' && $r->youtube == '' && $r->twitter == '' && $r->nicovideo == '' && $r->bitchute == '' && $r->lbry == '') $err = '1以上の動画URLをご入力下さい。'; }
|
||||
|
||||
// フォームの値を保存して
|
||||
$frm['title'] = $r->title;
|
||||
|
@ -51,6 +51,7 @@ class VideoTable {
|
|||
$frm['twitter'] = ($r->twitter ?: '');
|
||||
$frm['nicovideo'] = ($r->nicovideo ?: '');
|
||||
$frm['bitchute'] = ($r->bitchute ?: '');
|
||||
$frm['lbry'] = ($r->lbry ?: '');
|
||||
|
||||
// 件名、文章又はスラッグがなければ、エラーを出て
|
||||
$verify = array('件名' => $r->title, 'スラッグ' => $r->vid);
|
||||
|
@ -106,7 +107,7 @@ class VideoTable {
|
|||
$res = '';
|
||||
|
||||
if (isset($r->submit)) {
|
||||
if (empty($err)) { if ($r->url == '' && $r->youtube == '' && $r->twitter == '' && $r->nicovideo == '' && $r->bitchute == '') $err = '1以上の動画URLをご入力下さい。'; }
|
||||
if (empty($err)) { if ($r->url == '' && $r->youtube == '' && $r->twitter == '' && $r->nicovideo == '' && $r->bitchute == '' && $r->lbry == '') $err = '1以上の動画URLをご入力下さい。'; }
|
||||
|
||||
// フォームの値を保存して
|
||||
$frm->title = $r->title;
|
||||
|
@ -117,6 +118,7 @@ class VideoTable {
|
|||
$frm->twitter = ($r->twitter ?: '');
|
||||
$frm->nicovideo = ($r->nicovideo ?: '');
|
||||
$frm->bitchute = ($r->bitchute ?: '');
|
||||
$frm->lbry = ($r->lbry ?: '');
|
||||
|
||||
// 件名、文章又はスラッグがなければ、エラーを出て
|
||||
$verify = array('件名' => $r->title, 'スラッグ' => $r->vid);
|
||||
|
|
バイナリファイルは表示されません。
変更後 幅: | 高さ: | サイズ: 896 B |
バイナリファイルは表示されません。
変更後 幅: | 高さ: | サイズ: 294 B |
|
@ -51,6 +51,10 @@
|
|||
<div class="col-md-3"><b>ビットチュート</b></div>
|
||||
<div class="col"><input id="bitchute" name="bitchute" type="text" class="form-control" value="{{ $frm['bitchute'] }}" /></div>
|
||||
</div>
|
||||
<div class="row body">
|
||||
<div class="col-md-3"><b>LBRY.tv</b></div>
|
||||
<div class="col"><input id="lbry" name="lbry" type="text" class="form-control" value="{{ $frm['lbry'] }}" /></div>
|
||||
</div>
|
||||
<div class="row body" style="margin-top: 24px;">
|
||||
<div class="col"><input name="submit" type="submit" class="btn btn-success btn-block" value="送信" /></div>
|
||||
</div>
|
||||
|
|
|
@ -48,6 +48,10 @@
|
|||
<div class="col-md-3"><b>ビットチュート</b></div>
|
||||
<div class="col"><input id="bitchute" name="bitchute" type="text" class="form-control" value="{{ $frm->bitchute }}" /></div>
|
||||
</div>
|
||||
<div class="row body">
|
||||
<div class="col-md-3"><b>LBRY.tv</b></div>
|
||||
<div class="col"><input id="lbry" name="lbry" type="text" class="form-control" value="{{ $frm->lbry }}" /></div>
|
||||
</div>
|
||||
<div class="row body" style="margin-top: 24px;">
|
||||
<div class="col"><input name="submit" type="submit" class="btn btn-success btn-block" value="送信" /></div>
|
||||
</div>
|
||||
|
|
|
@ -22,6 +22,9 @@
|
|||
@if (isset($res->bitchute) && $res->bitchute != '')
|
||||
<div class="col"><a class="btn btn-block btn-primary" href="{{ $res->bitchute }}">ビットチューブで見る</a></div>
|
||||
@endif
|
||||
@if (isset($res->lbry) && $res->lbry != '')
|
||||
<div class="col"><a class="btn btn-block btn-primary" href="{{ $res->lbry }}">LBRYで見る</a></div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
@ -46,6 +49,11 @@
|
|||
<a class="nav-link" id="settings-tab" data-toggle="tab" href="#settings" role="tab" aria-controls="settings" aria-selected="false">Bit</a>
|
||||
</li>
|
||||
@endif
|
||||
@if ($res->lbcomment)
|
||||
<li class="nav-item" role="presentation">
|
||||
<a class="nav-link" id="settings-tab" data-toggle="tab" href="#settings" role="tab" aria-controls="settings" aria-selected="false">LBRY</a>
|
||||
</li>
|
||||
@endif
|
||||
</ul>
|
||||
|
||||
<div class="tab-content">
|
||||
|
@ -67,6 +75,11 @@
|
|||
<comments slug="{{$res->pageslug}}" isvideo="n" :comments="{{json_encode($res->bccomment)}}" :user="{{json_encode($res->user)}}" />
|
||||
</div>
|
||||
@endif
|
||||
@if ($res->lbcomment)
|
||||
<div class="tab-pane" id="settings" role="tabpanel" aria-labelledby="settings-tab">
|
||||
<comments slug="{{$res->pageslug}}" isvideo="n" :comments="{{json_encode($res->lbcomment)}}" :user="{{json_encode($res->user)}}" />
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -15,17 +15,19 @@
|
|||
<th scope="col"><a href="https://www.twitter.com/TechnicalSuwako"><img src="/img/twit-box.webp" class="logo-play" alt="twitter"></a></th>
|
||||
<th scope="col"><a href="https://www.nicovideo.jp/user/14848316"><img src="/img/nico-box.webp" class="logo-play" alt="nicovideo"></a></th>
|
||||
<th scope="col"><a href="https://www.bitchute.com/channel/technicalsuwako"><img src="/img/bt-box.webp" class="logo-play" alt="bitchute"></a></th>
|
||||
<th scope="col"><a href="https://lbry.tv/@TechnicalSuwako:d"><img src="/img/lb-box.webp" class="logo-play" alt="lbry"></a></th>
|
||||
</tr>
|
||||
</thead>
|
||||
@foreach ($res as $k => $r)
|
||||
<tr>
|
||||
<td scope="row">{{ $r->gametitle }}</td>
|
||||
<td scope="row">{{ $r->title }}</td>
|
||||
<td scope="row">@if ($r->url) <a href="/video/play/{{ $r->vid }}"><img src="/img/play-box.webp" class="logo-play" alt="【{{ $r->gametitle }}】$r->title"></a> @endif</td>
|
||||
<td scope="row">@if ($r->youtube) <a href="{{ $r->youtube }}"><img src="/img/play-box.webp" class="logo-play" alt="【{{ $r->gametitle }}】$r->title"></a> @endif</td>
|
||||
<td scope="row">@if ($r->twitter) <a href="{{ $r->twitter }}"><img src="/img/play-box.webp" class="logo-play" alt="【{{ $r->gametitle }}】$r->title"></a> @endif</td>
|
||||
<td scope="row">@if ($r->nicovideo) <a href="{{ $r->nicovideo }}"><img src="/img/play-box.webp" class="logo-play" alt="【{{ $r->gametitle }}】$r->title"></a> @endif</td>
|
||||
<td scope="row">@if ($r->bitchute) <a href="{{ $r->bitchute }}"><img src="/img/play-box.webp" class="logo-play" alt="【{{ $r->gametitle }}】$r->title"></a> @endif</td>
|
||||
<td scope="row">@if ($r->url) <a href="/video/play/{{ $r->vid }}"><img src="/img/play-box.webp" class="logo-play" alt="【{{ $r->gametitle }}】{{ $r->title }}"></a> @endif</td>
|
||||
<td scope="row">@if ($r->youtube) <a href="{{ $r->youtube }}"><img src="/img/play-box.webp" class="logo-play" alt="【{{ $r->gametitle }}】{{ $r->title }}"></a> @endif</td>
|
||||
<td scope="row">@if ($r->twitter) <a href="{{ $r->twitter }}"><img src="/img/play-box.webp" class="logo-play" alt="【{{ $r->gametitle }}】{{ $r->title }}"></a> @endif</td>
|
||||
<td scope="row">@if ($r->nicovideo) <a href="{{ $r->nicovideo }}"><img src="/img/play-box.webp" class="logo-play" alt="【{{ $r->gametitle }}】{{ $r->title }}"></a> @endif</td>
|
||||
<td scope="row">@if ($r->bitchute) <a href="{{ $r->bitchute }}"><img src="/img/play-box.webp" class="logo-play" alt="【{{ $r->gametitle }}】{{ $r->title }}"></a> @endif</td>
|
||||
<td scope="row">@if ($r->lbry) <a href="{{ $r->lbry }}"><img src="/img/play-box.webp" class="logo-play" alt="【{{ $r->gametitle }}】{{ $r->title }}"></a> @endif</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
|
|
新しいイシューから参照