ようつべのおわりだ

このコミットが含まれているのは:
守矢諏訪子 2021-11-06 19:58:50 +09:00
コミット f6f77c8b58
7個のファイルの変更16行の追加109行の削除

ファイルの表示

@ -36,10 +36,10 @@ class VideoTable extends Engine {
if ($this->engine->user && $this->engine->user->perm['blg_addpost']) {
$game = DB::table('vid_game')->get();
$res = '';
$frm = array('title' => '', 'vid' => '', 'game_id' => '', 'thumbnail' => '', 'url' => '', 'youtube' => '', 'nicovideo' => '', 'bitchute' => '', 'odysee' => '', 'kerotube' => '');
$frm = array('title' => '', 'vid' => '', 'game_id' => '', 'thumbnail' => '', 'url' => '', 'odysee' => '', 'kerotube' => '');
if (isset($r->submit)) {
if (empty($this->engine->err)) { if ($r->url == '' && $r->youtube == '' && $r->nicovideo == '' && $r->bitchute == '' && $r->odysee == '' && $r->kerotube == '') $this->engine->err = '以上の動画URLをご入力下さい。'; }
if (empty($this->engine->err)) { if ($r->url == '' && $r->odysee == '' && $r->kerotube == '') $this->engine->err = '以上の動画URLをご入力下さい。'; }
// フォームの値を保存して
$frm['title'] = $r->title;
@ -48,9 +48,6 @@ class VideoTable extends Engine {
$frm['thumbnail'] = ($r->thumbnail ?: '');
$frm['publish_date'] = time();
$frm['url'] = ($r->url ?: '');
$frm['youtube'] = ($r->youtube ?: '');
$frm['nicovideo'] = ($r->nicovideo ?: '');
$frm['bitchute'] = ($r->bitchute ?: '');
$frm['odysee'] = ($r->odysee ?: '');
$frm['kerotube'] = ($r->kerotube ?: '');
@ -107,7 +104,7 @@ class VideoTable extends Engine {
$res = '';
if (isset($r->submit)) {
if (empty($this->engine->err)) { if ($r->url == '' && $r->youtube == '' && $r->nicovideo == '' && $r->bitchute == '' && $r->odysee == '' && $r->kerotube) $this->engine->err = '以上の動画URLをご入力下さい。'; }
if (empty($this->engine->err)) { if ($r->url == '' && $r->odysee == '' && $r->kerotube) $this->engine->err = '以上の動画URLをご入力下さい。'; }
// フォームの値を保存して
$frm->title = $r->title;
@ -115,9 +112,6 @@ class VideoTable extends Engine {
$frm->game_id = $r->game_id;
$frm->thumbnail = $r->thumbnail;
$frm->url = ($r->url ?: '');
$frm->youtube = ($r->youtube ?: '');
$frm->nicovideo = ($r->nicovideo ?: '');
$frm->bitchute = ($r->bitchute ?: '');
$frm->odysee = ($r->odysee ?: '');
$frm->kerotube = ($r->kerotube ?: '');

ファイルの表示

@ -2,12 +2,12 @@
<div class="col-md-3"><b>種類</b></div>
<div class="col">
<div class="form-check">
<input class="form-check-input" name="isPost" type="radio" id="type-post" value="1" @if ($ip == 1) checked @endif />
<label class="form-check-label" for="type-post">ポスト</label>
<input class="form-check-input" name="isPost" type="radio" id="typepost" value="1" @if ($ip == 1) checked @endif />
<label class="form-check-label" for="typepost">ポスト</label>
</div>
<div class="form-check">
<input class="form-check-input" name="isPost" type="radio" id="type-page" value="0" @if ($ip == 0) checked @endif />
<label class="form-check-label" for="type-page">ページ</label>
<input class="form-check-input" name="isPost" type="radio" id="typepage" value="0" @if ($ip == 0) checked @endif />
<label class="form-check-label" for="typepage">ページ</label>
</div>
</div>
</div>

ファイルの表示

@ -25,61 +25,9 @@
</div>
<hr style="border-top: 1px solid #3daee9" />
@if ($res->profile->bio)
<h3>{{ __('site.jikosyokai') }}</h3>
{{ $res->profile->bio }}
<h3>{{ __('site.jikosyokai') }}</h3>
{{ $res->profile->bio }}
@endif
<hr style="border-top: 1px solid #3daee9" />
<h3>{{ __('site.renraku') }}</h3>
<span>
@if ($res->contacts->youtube_link && $res->contacts->youtube_name)
<div class="row">
<div class="col-sm-3">ユーチューブ:</div>
<div class="col"><a href="{{ $res->contacts->youtube_link }}">{{ $res->contacts->youtube_name }}</a></div>
</div>
@endif
@if ($res->contacts->bitchute && $res->contacts->bitchute)
<div class="row">
<div class="col-sm-3">ビットチュート:</div>
<div class="col"><a href="{{ $res->contacts->bitchute }}">{{ $res->contacts->bitchute }}</a></div>
</div>
@endif
@if ($res->contacts->niconico)
<div class="row">
<div class="col-sm-3">ニコニコ動画:</div>
<div class="col"><a href="{{ $res->contacts->niconico }}">{{ $res->contacts->niconico }}</a></div>
</div>
@endif
@if ($res->contacts->discord)
<div class="row">
<div class="col-sm-3">ディスコード:</div>
<div class="col">{{ $res->contacts->discord }}</div>
</div>
@endif
@if ($res->contacts->pixiv)
<div class="row">
<div class="col-sm-3">Pixiv</div>
<div class="col">{{ $res->contacts->pixiv }}</div>
</div>
@endif
@if ($res->contacts->twitter)
<div class="row">
<div class="col-sm-3">ツイッター:</div>
<div class="col"><a href="https://www.twitter.com/{{ $res->contacts->twitter }}">{{ $res->contacts->twitter }}</a></div>
</div>
@endif
@if ($res->contacts->facebook)
<div class="row">
<div class="col-sm-3">フェースブック:</div>
<div class="col"><a href="https://www.facebook.com/{{ $res->contacts->facebook }}">{{ $res->contacts->facebook }}</a></div>
</div>
@endif
@if ($res->contacts->instagram)
<div class="row">
<div class="col-sm-3">インスタグラム:</div>
<div class="col"><a href="https://www.instagram.com/{{ $res->contacts->instagram }}">{{ $res->contacts->instagram }}</a></div>
</div>
@endif
</span>
</div>
</div>
</div>

ファイルの表示

@ -6,9 +6,9 @@
<div class="bar">動画の追加</div>
<div class="back">
@if ($err)
<div class="alert alert-danger" role="alert">
{{ $err }}
</div>
<div class="alert alert-danger" role="alert">
{{ $err }}
</div>
@endif
<form method="POST" action="/video/add">
@csrf
@ -47,18 +47,6 @@
<div class="col-md-3"><b>オディシー</b></div>
<div class="col"><input id="odysee" name="odysee" type="text" class="form-control" value="{{ $frm['odysee'] }}" /></div>
</div>
<div class="row body">
<div class="col-md-3"><b>ユーチューブ</b></div>
<div class="col"><input id="youtube" name="youtube" type="text" class="form-control" value="{{ $frm['youtube'] }}" /></div>
</div>
<div class="row body">
<div class="col-md-3"><b>ニコニコ動画</b></div>
<div class="col"><input id="nicovideo" name="nicovideo" type="text" class="form-control" value="{{ $frm['nicovideo'] }}" /></div>
</div>
<div class="row body">
<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" style="margin-top: 24px;">
<div class="col"><input name="submit" type="submit" class="btn btn-success btn-block" value="送信" /></div>
</div>

ファイルの表示

@ -6,9 +6,9 @@
<div class="bar">動画の編集</div>
<div class="back">
@if ($err)
<div class="alert alert-danger" role="alert">
{{ $err }}
</div>
<div class="alert alert-danger" role="alert">
{{ $err }}
</div>
@endif
<form method="POST" action="/video/{{ $frm->vid }}/edit">
@csrf
@ -44,18 +44,6 @@
<div class="col-md-3"><b>オディシー</b></div>
<div class="col"><input id="odysee" name="odysee" type="text" class="form-control" value="{{ $frm->odysee }}" /></div>
</div>
<div class="row body">
<div class="col-md-3"><b>ユーチューブ</b></div>
<div class="col"><input id="youtube" name="youtube" type="text" class="form-control" value="{{ $frm->youtube }}" /></div>
</div>
<div class="row body">
<div class="col-md-3"><b>ニコニコ動画</b></div>
<div class="col"><input id="nicovideo" name="nicovideo" type="text" class="form-control" value="{{ $frm->nicovideo }}" /></div>
</div>
<div class="row body">
<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" style="margin-top: 24px;">
<div class="col"><input name="submit" type="submit" class="btn btn-success btn-block" value="送信" /></div>
</div>

ファイルの表示

@ -16,7 +16,7 @@
</div>
<div class="comment">
<div class="container-fluid">
@if (isset($res->youtube) || isset($res->nicovideo) || isset($res->bitchute) || isset($res->odysee) || isset($res->kerotube))
@if (isset($res->odysee) || isset($res->kerotube))
<div class="row">
@if (isset($res->kerotube) && $res->kerotube != '')
<div class="col"><a class="btn btn-block btn-primary" href="{{ $res->kerotube }}"><img src="/img/pt-box.png" alt="076video" /></a></div>
@ -24,15 +24,6 @@
@if (isset($res->odysee) && $res->odysee != '')
<div class="col"><a class="btn btn-block btn-primary" href="{{ $res->odysee }}"><img src="/img/od-box.png" alt="Odysee" /></a></div>
@endif
@if (isset($res->nicovideo) && $res->nicovideo != '')
<div class="col"><a class="btn btn-block btn-primary" href="{{ $res->nicovideo }}"><img src="/img/nico-box.png" alt="ニコ動" /></a></div>
@endif
@if (isset($res->youtube) && $res->youtube != '')
<div class="col"><a class="btn btn-block btn-primary" href="{{ $res->youtube }}"><img src="/img/yt-box.png" alt="YouTube" /></a></div>
@endif
@if (isset($res->bitchute) && $res->bitchute != '')
<div class="col"><a class="btn btn-block btn-primary" href="{{ $res->bitchute }}"><img src="/img/bt-box.png" alt="Bitchute" /></a></div>
@endif
</div>
</div>
@endif

ファイルの表示

@ -14,7 +14,6 @@
<th scope="col"><img src="/img/swk-box.png" class="logo-play" alt="self" /></th>
<th scope="col"><a href="https://video.076.ne.jp/c/technicalsuwako/videos"><img src="/img/pt-box.png" class="logo-play" alt="076video" /></a></th>
<th scope="col"><a href="https://odysee.076.ne.jp/@TechnicalSuwako:d"><img src="/img/od-box.png" class="logo-play" alt="odysee" /></a></th>
<th scope="col"><a href="https://youtube.076.ne.jp/user/UltimatePisman"><img src="/img/yt-box.png" class="logo-play" alt="youtube" /></a></th>
</tr>
</thead>
@foreach ($res as $k => $r)
@ -25,7 +24,6 @@
<td scope="row">@if ($r->kerotube) <a href="/video/play/{{ $r->vid }}"><img src="/img/play-box.png" class="logo-play" alt="{{ $r->gametitle }}】{{ $r->title }}"></a> @endif</td>
<td scope="row">@if ($r->kerotube) <a href="{{ $r->kerotube }}"><img src="/img/play-box.png" class="logo-play" alt="{{ $r->gametitle }}】{{ $r->title }}"></a> @endif</td>
<td scope="row">@if ($r->odysee) <a href="{{ $r->odysee }}"><img src="/img/play-box.png" 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.png" class="logo-play" alt="{{ $r->gametitle }}】{{ $r->title }}"></a> @endif</td>
</tr>
@endforeach
</table>