MORE LAYOUTgit add public/mobile public/nojs/ public/shoop.png resources/views/layout1/apply.blade.php resources/views/layout1/nojs.blade.php resources/views/layout1/tos.blade.php resources/views/layout4/ resources/views/layout5!

This commit is contained in:
noxy
2019-09-02 19:15:37 +00:00
parent 8dd96f7d11
commit 4c21480392
201 changed files with 33473 additions and 59 deletions

View File

@@ -342,10 +342,15 @@ class UserController extends Controller
return redirect()->back()->with('error', 'Video not found on user');
}
$sfw = $vid->tags->contains(function($key, $tag) {
return $tag->normalized === 'sfw';
});
return view('video', [
'video' => $vid,
'related' => $user,
'banner' => Banner::getRandom($vid->isSfw())
'banner' => Banner::getRandom($vid->isSfw()),
'sfw' => $sfw
]);
}
@@ -378,10 +383,15 @@ class UserController extends Controller
return redirect()->back()->with('error', 'Video not found on user');
}
$sfw = $vid->tags->contains(function($key, $tag) {
return $tag->normalized === 'sfw';
});
return view('video', [
'video' => $vid,
'related' => $user,
'banner' => Banner::getRandom($vid->isSfw())
'banner' => Banner::getRandom($vid->isSfw()),
'sfw' => $sfw,
]);
}
public function setLayout(Request $request) {