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:
5
resources/views/layout4/about.blade.php
Normal file
5
resources/views/layout4/about.blade.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
$sfw = $video->tags->contains(function($key, $tag) {
|
||||
return $tag->normalized === 'sfw';
|
||||
});
|
||||
?>
|
24
resources/views/layout4/comments.blade.php
Normal file
24
resources/views/layout4/comments.blade.php
Normal file
@@ -0,0 +1,24 @@
|
||||
@extends('profilelayout')
|
||||
@section('novidcontent')
|
||||
@include('partials.profileheader')
|
||||
@include('partials.comlist')
|
||||
<h3>Comments</h3>
|
||||
@if(Auth::check())
|
||||
|
||||
<div class="row jkh">
|
||||
<div class="col-md" id="list">
|
||||
<div class="spinner">
|
||||
<div class="cube1"></div>
|
||||
<div class="cube2"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!--<div class="col-md-6" id="message"><h4>Select a comment to display content</h4></div>-->
|
||||
</div>
|
||||
|
||||
@else
|
||||
<div class="row jkh">
|
||||
<i>Not logged in. Please log in to view comments!</i>
|
||||
</div>
|
||||
@endif
|
||||
@endsection
|
||||
|
87
resources/views/layout4/contact/create.blade.php
Normal file
87
resources/views/layout4/contact/create.blade.php
Normal file
@@ -0,0 +1,87 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('jumbotron')
|
||||
<div class="jumbotron">
|
||||
<div class="container">
|
||||
<h1>Contact HackerPair</h1>
|
||||
<h2>Your message will be delivered to our clandestine team</h2>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row" style="margin-top: 25px;">
|
||||
|
||||
<div class="col-md-4 col-sm-12">
|
||||
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="card-title map">
|
||||
<gmap-map
|
||||
:center="{lat: 38.871026, lng: -77.055959}"
|
||||
:zoom="13"
|
||||
:options="{styles: mapStyles, streetViewControl: false, zoomControl: false, mapTypeControl: false}"
|
||||
map-type-id="roadmap"
|
||||
style="width: 100%; height: 300px;"
|
||||
>
|
||||
</gmap-map>
|
||||
<ul class="list-group list-group-flush">
|
||||
<li class="list-group-item" style="border: none;">
|
||||
<span class="fa fa-building" style="color: #FFC200; padding-right: 5px;" aria-hidden></span>
|
||||
Group 9
|
||||
</li>
|
||||
<li class="list-group-item" style="border: none;">
|
||||
<span class="fa fa-map" style="color: #FFC200; padding-right: 5px;" aria-hidden></span>
|
||||
Classified
|
||||
</li>
|
||||
<li class="list-group-item" style="border: none;">
|
||||
<span class="fa fa-map-signs" style="color: #FFC200; padding-right: 5px;" aria-hidden></span>
|
||||
Classified
|
||||
<li class="list-group-item" style="border: none;">
|
||||
<span class="fa fa-calendar" style="color: #FFC200; padding-right: 5px;" aria-hidden></span>
|
||||
support@hackerpair.com
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-8 col-sm-12">
|
||||
|
||||
<p>
|
||||
Send us your questions, comments, and suggestions and someone will be in touch within
|
||||
24 hours.
|
||||
</p>
|
||||
|
||||
{!! Form::open(['route' => 'contact.store']) !!}
|
||||
|
||||
<div class="form-group">
|
||||
{!! Form::label('name', 'Your Name') !!}
|
||||
{!! Form::text('name', null, ['class' => 'form-control']) !!}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{!! Form::label('email', 'E-mail Address') !!}
|
||||
{!! Form::text('email', null, ['class' => 'form-control']) !!}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{!! Form::label('msg', 'Message') !!}
|
||||
{!! Form::textarea('msg', null, ['class' => 'form-control']) !!}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
</div>
|
||||
|
||||
{!! Form::submit('Submit', ['class' => 'btn btn-info']) !!}
|
||||
|
||||
{!! Form::close() !!}
|
||||
<br />
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@endsection
|
5
resources/views/layout4/deleted.blade.php
Normal file
5
resources/views/layout4/deleted.blade.php
Normal file
@@ -0,0 +1,5 @@
|
||||
@extends('profilelayout')
|
||||
@section('novidcontent')
|
||||
<p>Video deleted by admin</p>
|
||||
<p>Given reason: </p>
|
||||
@endsection
|
3
resources/views/layout4/emails/activation.blade.php
Normal file
3
resources/views/layout4/emails/activation.blade.php
Normal file
@@ -0,0 +1,3 @@
|
||||
<h3>Hello {{$username}}</h3>
|
||||
<p>Welcome to <a href="https://w0bm.com">w0bm.com</a>.</p>
|
||||
<p>To activate your account please click this <a href="https://w0bm.com/activate/{{$activation_token}}">link</a>.</p>
|
87
resources/views/layout4/emails/report.blade.php
Normal file
87
resources/views/layout4/emails/report.blade.php
Normal file
@@ -0,0 +1,87 @@
|
||||
<html>
|
||||
|
||||
<div style="width:100%;font-family:verdana;">
|
||||
|
||||
<h1>webm got reported!</h1>
|
||||
|
||||
<div>
|
||||
<b>Link:</b>
|
||||
<a href="{{$videoURL}}">{{$videoURL}}</a>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
||||
<div>
|
||||
<table style="width:100%;border:1px solid black;border-collapse:collapse;">
|
||||
<thead>
|
||||
<tr style="border:1px solid black; padding:5px;">
|
||||
<th style="background-color:#bbbbbb;border-right:1px solid black;">Report Reasons</th>
|
||||
<th style="background-color:#bbbbbb;">Report Text</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="padding:10px;border-right:1px solid #bbbbbb;">
|
||||
<ul>
|
||||
{!! $reportReasons !!}
|
||||
</ul>
|
||||
</td>
|
||||
<td style="padding:10px;">
|
||||
{{$reportText}}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
||||
<div>
|
||||
<table style="width:100%; border-collapse:collapse;border:1px solid black;">
|
||||
<tr style="border-bottom:1px solid black;">
|
||||
<th style="border-right:1px solid black;padding:5px;width:200px;">Username</th>
|
||||
<td>{!! $username !!}</td>
|
||||
</tr>
|
||||
<!--
|
||||
<tr style="border-bottom:1px solid black;">
|
||||
<th style="border-right:1px solid black;padding:5px;">Time reported</th>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr style="border-bottom:1px solid black;">
|
||||
<th style="border-right:1px solid black;padding:5px;">IP:</th>
|
||||
<td></td>
|
||||
</tr>-->
|
||||
<tr style="border-bottom:1px solid black;">
|
||||
<th style="border-right:1px solid black;padding:5px;">Video ID</th>
|
||||
<td>{{$videoID}}</td>
|
||||
</tr>
|
||||
<!--
|
||||
<tr style="border-bottom:1px solid black;">
|
||||
<th style="border-right:1px solid black;padding:5px;">Video Title</th>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr style="border-bottom:1px solid black;">
|
||||
<th style="border-right:1px solid black;padding:5px;">Video Tags</th>
|
||||
<td></td>
|
||||
</tr>-->
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
<hr>
|
||||
|
||||
<!--
|
||||
<div>
|
||||
<h3>Debug Output:</h3>
|
||||
<div style="color:green;font-family:consolas;background-color:black;">
|
||||
<pre>
|
||||
{{$debugOutput}}
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
-->
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</html>
|
1
resources/views/layout4/errors/404.blade.php
Normal file
1
resources/views/layout4/errors/404.blade.php
Normal file
@@ -0,0 +1 @@
|
||||
hgfdhgf
|
42
resources/views/layout4/errors/500.blade.php
Normal file
42
resources/views/layout4/errors/500.blade.php
Normal file
@@ -0,0 +1,42 @@
|
||||
@extends('profilelayout')
|
||||
@section('novidcontent')
|
||||
<style>
|
||||
.sf-reset .block > pre {
|
||||
background-color: #000000;
|
||||
padding: 10px 28px;
|
||||
margin-bottom: 20px;
|
||||
-webkit-border-bottom-right-radius: 0;
|
||||
-webkit-border-bottom-left-radius: 0;
|
||||
-moz-border-radius-bottomright: 0;
|
||||
-moz-border-radius-bottomleft: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
border-bottom-left-radius: 0;
|
||||
border-bottom: 1px solid #1faeac;
|
||||
border-right: 1px solid #1faeac;
|
||||
border-left: 1px solid #1faeac;
|
||||
border-top: 1px solid #1faeac;
|
||||
word-wrap: break-word;
|
||||
color: green;
|
||||
}
|
||||
</style>
|
||||
|
||||
<h5>Oh shit! Something went wrong!</h5>
|
||||
<div id="sf-resetcontent" class="sf-reset box">
|
||||
<h6>Please don't send this fucking text to an admin, we have other problems.</h6>
|
||||
<?php
|
||||
$iv = openssl_random_pseudo_bytes(16);
|
||||
?>
|
||||
@if(!env('APP_DEBUG'))
|
||||
<div class="block">
|
||||
{{bin2hex($iv)}}<br>
|
||||
{{openssl_encrypt($exception, 'aes128', env('APP_KEY'), 0, $iv)}}
|
||||
</div>
|
||||
@else
|
||||
<div class="block">
|
||||
<pre>{{$exception}}</pre>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
</div>
|
||||
@include('footer')
|
||||
@endsection
|
1
resources/views/layout4/errors/503.blade.php
Normal file
1
resources/views/layout4/errors/503.blade.php
Normal file
@@ -0,0 +1 @@
|
||||
fdfdfdfd
|
69
resources/views/layout4/fuetli.blade.php
Normal file
69
resources/views/layout4/fuetli.blade.php
Normal file
@@ -0,0 +1,69 @@
|
||||
<nav class="navbar navbar-expand-lg sticky-top pl-3">
|
||||
<a class="navbar-brand" href="/">z0mb<zombie>ie</zombie></a>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
<ul class="navbar-nav mr-auto">
|
||||
<li class="nav-item rating-box">
|
||||
<a class="nav-link video-id">{{$video->id}}</a>
|
||||
<a class="nav-link video-rating {{$sfw ? 'sfw' : 'nsfw'}}">{{$sfw ? "SFW" : "NSFW"}}</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
@if(auth()->check())
|
||||
@if(auth()->user()->hasFaved($video->id))
|
||||
<a class="nav-link" hidden id="hidden-fav" href="{{url($video->id . '/fav')}}"></a>
|
||||
<a class="nav-link" href="{{url($video->id . '/fav')}}">❤️ </a>
|
||||
@else
|
||||
<a class="nav-link" hidden id="hidden-fav" href="{{url($video->id . '/fav')}}"></a>
|
||||
<a class="nav-link" href="{{url($video->id . '/fav')}}">🖤 </a>
|
||||
@endif
|
||||
@else
|
||||
@endif
|
||||
</li>
|
||||
<li class="nav-item active">
|
||||
<a class="nav-link" href="/">Random <span class="sr-only">(current)</span></a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="/index">Index</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="/categories">Categories</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<label class="dropdown">
|
||||
<div class="nav-link dd-button">
|
||||
{{Auth::user()->username}}
|
||||
</div>
|
||||
|
||||
<input type="checkbox" class="dd-input" id="test">
|
||||
|
||||
<ul class="dd-menu">
|
||||
<li>Action</li>
|
||||
<li>Another action</li>
|
||||
<li>Something else here</li>
|
||||
</ul>
|
||||
</label>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<div class="dropdownie">
|
||||
<input type="checkbox" id="my-dropdownie" value="" name="my-checkbox">
|
||||
<label class="nav-link" for="my-dropdownie" data-toggle="dropdownie">[ layout ]</label>
|
||||
<ul class="layout-ul">
|
||||
<li><a class="nav-link layout1" style="font-size: 10px;" href="/api/user/layout?layout=1">w0bm</a></li>
|
||||
<li><a class="nav-link layout2" style="font-size: 10px;" href="/api/user/layout?layout=2">Njum</a></li>
|
||||
<li><a class="nav-link layout3" style="font-size: 10px;" href="/api/user/layout?layout=3">z0mb</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="search-index hidden-xs d-none d-md-block">
|
||||
<form method="get" action="/index" class="form-inline my-2 my-lg-0">
|
||||
{!! Form::text('q', isset($q) ? $q : null, ['class' => 'form-control mr-sm-2 search-input text-light', 'placeholder' => 'Search w0bm.com']) !!}
|
||||
<button class="btn btn-dark" type="submit">Search</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</nav>
|
80
resources/views/layout4/index.blade.php
Normal file
80
resources/views/layout4/index.blade.php
Normal file
@@ -0,0 +1,80 @@
|
||||
@extends('profilelayout')
|
||||
@section('novidcontent')
|
||||
<div class="page-header">
|
||||
<h3 id="index">Index</h3>
|
||||
|
||||
<form method="get" class="d-block d-sm-none">
|
||||
<button type="submit" class="suchbutton"><i style="color:white;" class="fa fa-search"></i></button>
|
||||
{!! Form::text('q', isset($q) ? $q : null, ['class' => 'suchleiste', 'placeholder' => 'Search w0bm.com']) !!}
|
||||
</form>
|
||||
</div>
|
||||
<table class="table table-hover table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Video Title</th>
|
||||
<th>Artist</th>
|
||||
<th>Songtitle</th>
|
||||
<th class="hidden-xs">Video Source</th>
|
||||
<th>Category</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($videos as $video)
|
||||
<?php
|
||||
$thumb = str_replace(".webm","",$video->file);
|
||||
?>
|
||||
<tr data-thumb="{{$thumb}}" class="indexedit" data-vid="{{$video->id}}">
|
||||
<td>
|
||||
@if($edit = auth()->check() && auth()->user()->can('edit_video'))
|
||||
<form action="/index/{{$video->id}}" method="post" id="edit_{{$video->id}}" class="indexform"></form>
|
||||
@endif
|
||||
<span class="vinfo vid"><a href="{{url($video->id)}}">{{$video->id}}</a></span>
|
||||
@if($edit)
|
||||
<input type="submit" class="btn btn-primary" value="Save" form="edit_{{$video->id}}">
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
<span class="vinfo vvideotitle">{{$video->videotitle or ''}}</span>
|
||||
@if($edit)
|
||||
<input class="form-control" type="text" name="videotitle" value="{{$video->videotitle or ''}}" form="edit_{{$video->id}}">
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
<span class="vinfo vinterpret">{{$video->interpret or ''}}</span>
|
||||
@if($edit)
|
||||
<input class="form-control" type="text" name="interpret" value="{{$video->interpret or ''}}" form="edit_{{$video->id}}">
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
<span class="vinfo vsongtitle">{{$video->songtitle or ''}}</span>
|
||||
@if($edit)
|
||||
<input class="form-control" type="text" name="songtitle" value="{{$video->songtitle or ''}}" form="edit_{{$video->id}}">
|
||||
@endif
|
||||
</td>
|
||||
<td class="hidden-xs">
|
||||
<span class="vinfo vimgsource">{{$video->imgsource or ''}}</span>
|
||||
@if($edit)
|
||||
<input class="form-control" type="text" name="imgsource" value="{{$video->imgsource or ''}}" form="edit_{{$video->id}}">
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
<span class="vinfo vcategory"><a href="{{url($video->category->shortname)}}">{{$video->category->name}}</a></span>
|
||||
@if($edit)
|
||||
<select class="form-control" name="category" form="edit_{{$video->id}}">
|
||||
@foreach($categories as $cat)
|
||||
<option value="{{$cat->id}}" @if($cat->shortname === $video->category->shortname) selected @endif>{{$cat->name}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="">
|
||||
{!! $videos->render() !!}
|
||||
</div>
|
||||
|
||||
@endsection
|
39
resources/views/layout4/layout.blade.php
Normal file
39
resources/views/layout4/layout.blade.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<meta name="_token" content="{{csrf_token()}}">
|
||||
<meta name="keywords" content="Random WebMs, WebMs, Internet Videos">
|
||||
<link rel="icon" href="/favicon.png">
|
||||
<title>@if(isset($video)){{ $video->id }} -@endif w0bm.com</title>
|
||||
<link rel="stylesheet" type="text/css" href="/z0mb/css/bootstrap-dark.css?v={{ filemtime("z0mb/css/bootstrap-dark.css") }}">
|
||||
<link rel="stylesheet" type="text/css" href="/z0mb/css/cstms.css?v={{ filemtime("z0mb/css/cstms.css") }}">
|
||||
<link rel="stylesheet" type="text/css" href="/z0mb/css/z0mb.css?v={{ filemtime("z0mb/css/z0mb.css") }}">
|
||||
<link rel="stylesheet" type="text/css" href="/nojs/custom.css?v={{ filemtime("nojs/custom.css") }}">
|
||||
</head>
|
||||
<body>
|
||||
<!--
|
||||
w0bm.com NO-JS v1
|
||||
-->
|
||||
<div class="container-fluid row p-0" id="wrapper">
|
||||
<div class="container p-0">
|
||||
@include('fuetli')
|
||||
<div class="col-md p-0">
|
||||
@yield('floatvid')
|
||||
</div>
|
||||
<div class="col-sm p-0">
|
||||
<div class="nojsleleks">
|
||||
@include('video-partials.video-metadata')
|
||||
@include('partials.tags-light')
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm p-0 sidebar">
|
||||
@include('partials.commentform')
|
||||
<br>
|
||||
@include('partials.comments')
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
3
resources/views/layout4/messages/commentanswer.blade.php
Normal file
3
resources/views/layout4/messages/commentanswer.blade.php
Normal file
@@ -0,0 +1,3 @@
|
||||
<h3><a href="{{url('user/' . $user->username)}}">{{$user->username}}</a> answered on your comment.</h3>
|
||||
<p><a href="{{url('user/' . $user->username)}}">{{$user->username}}</a> answered on your comment on the following video: <a href="{{url($video->id)}}">/{{$video->id}}</a></p>
|
||||
@include('messages.commentpreview')
|
@@ -0,0 +1,3 @@
|
||||
<h3><a href="{{url('user/' . $user->username)}}">{{$user->username}}</a> mentioned you in a comment.</h3>
|
||||
<p><a href="{{url('user/' . $user->username)}}">{{$user->username}}</a> mentioned you in a comment on the following video: <a href="{{url($video->id)}}">/{{$video->id}}</a></p>
|
||||
@include('messages.commentpreview')
|
@@ -0,0 +1,6 @@
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
@simplemd($comment->content)
|
||||
</div>
|
||||
<div class="panel-footer">by <a href="/user/{{$comment->user->username}}">{!! $comment->user->displayName() !!}</a> <small><time class="timeago" data-toggle="tooltip" data-placement="right" datetime="{{$comment->created_at}}+0000" title="{{$comment->created_at}}+0000"></time></small></div>
|
||||
</div>
|
@@ -0,0 +1,4 @@
|
||||
<h3>A moderator deleted your comment.</h3>
|
||||
<p>A moderator deleted your comment on the following video: <a href="{{url($video->id)}}">/{{$video->id}}</a></p>
|
||||
<p><span style="font-weight:bold;">Reason:</span> {{$reason}}</p>
|
||||
@include('messages.commentpreview')
|
@@ -0,0 +1,4 @@
|
||||
<h3>A moderator restored your comment.</h3>
|
||||
<p>A moderator restored your comment on the following video: <a href="{{url($video->id)}}">/{{$video->id}}</a></p>
|
||||
<p><span style="font-weight:bold;">Reason:</span> {{$reason}}</p>
|
||||
@include('messages.commentpreview')
|
@@ -0,0 +1,10 @@
|
||||
<h3>A moderator deleted your video.</h3>
|
||||
<p>A moderator deleted your video with the ID {{$video->id}}</p>
|
||||
<span style="font-weight:bold;">Video Info:</span>
|
||||
<ul>
|
||||
@if(isset($videoinfo['artist'])) <li><span style="font-weight:bold;">Artist:</span> {{ $videoinfo['artist'] }}</li> @endif
|
||||
@if(isset($videoinfo['songtitle'])) <li><span style="font-weight:bold;">Songtitle:</span> {{ $videoinfo['songtitle'] }}</li> @endif
|
||||
@if(isset($videoinfo['video_source'])) <li><span style="font-weight:bold;">Video Source:</span> {{ $videoinfo['video_source'] }}</li> @endif
|
||||
<li><span style="font-weight:bold;">Category:</span> {{ $videoinfo['category'] }}</li>
|
||||
</ul>
|
||||
<p><span style="font-weight:bold;">Reason:</span> {{$reason}}</p>
|
3
resources/views/layout4/messages/videocomment.blade.php
Normal file
3
resources/views/layout4/messages/videocomment.blade.php
Normal file
@@ -0,0 +1,3 @@
|
||||
<h3>New comment on your video <a href="{{url($video->id)}}">/{{$video->id}}</a></h3>
|
||||
<p><a href="{{url('user/' . $user->username)}}">{{$user->username}}</a> made a comment on your video.</p>
|
||||
@include('messages.commentpreview')
|
27
resources/views/layout4/partials/banmenu.blade.php
Normal file
27
resources/views/layout4/partials/banmenu.blade.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<form id="banmenu" method="POST" action="/api/user/{{$user->username}}/ban">
|
||||
{!! csrf_field() !!}
|
||||
<div class="modal fade" id="banmenumodal" tabindex="-1" role="dialog" aria-labelledby="Ban user">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title" id="filterModalTitle">Ban user</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="form-group">
|
||||
<label for="reason">Reason</label>
|
||||
<input class="form-control" type="text" name="reason" id="reason" placeholder="Reason">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="duration">Duration</label>
|
||||
<input class="form-control" type="text" name="duration" id="duration" placeholder="Duration (-1 = permanent)">
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>
|
||||
<input type="submit" class="btn btn-danger" value="BAN!">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
14
resources/views/layout4/partials/comlist.php
Normal file
14
resources/views/layout4/partials/comlist.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<script id="comlist" type="text/x-handlebars-template">
|
||||
{{#each data as |value key|}}
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body" style="word-wrap: break-word;" data-index="{{key}}" data-id="{{id}}">{{{rendered_view}}}</div>
|
||||
<div class="panel-footer">Video: <a href="/{{video_id}}">/{{video_id}}</a> | <time class="timeago" data-toggle="tooltip" datetime="{{created_at}}+0000" title="{{created_at}}+0000"></time></div>
|
||||
</div>
|
||||
{{else}}
|
||||
<div class="list-group-item">No comments</div>
|
||||
{{/each}}
|
||||
{{#if total}}
|
||||
<div class="panel-footer" id="pagination">
|
||||
</div>
|
||||
{{/if}}
|
||||
</script>
|
15
resources/views/layout4/partials/comment.blade.php
Normal file
15
resources/views/layout4/partials/comment.blade.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<div class="card @if($del = !is_null($comment->deleted_at)) panel-danger @else panel-default @endif" data-id="{{$comment->id}}" author="{{$comment->user->username}}">
|
||||
<div id="{{ $comment->id }}" class="comment panel-body" author="{{$comment->user->username}}">
|
||||
<a class="{{$comment->user->username}}" href="/user/{{$comment->user->username}}">{!! $comment->user->displayName() !!}</a> {{$comment->created_at}} <a href="#{{ $comment->id }}">{{ $comment->id }}</a>
|
||||
@simplemd($comment->content)
|
||||
</div>
|
||||
<div class="panel-footer">
|
||||
@if($mod)
|
||||
@if($del)
|
||||
<a href="#" onclick="restoreComment($(this))"><i style="color:green"; class="fa fa-refresh" aria-hidden="true"></i></a>
|
||||
@else
|
||||
|
||||
@endif
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
16
resources/views/layout4/partials/commentform.blade.php
Normal file
16
resources/views/layout4/partials/commentform.blade.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<div id="sticky">
|
||||
<div id="commentForm">
|
||||
<form action="{{action('CommentController@store', ['id' => $video->id])}}" method="post">
|
||||
{!! csrf_field() !!}
|
||||
<div class="comment-panel panel-default">
|
||||
<div class="comment-panel panel-body">
|
||||
{!! Form::textarea('comment', null, ['placeholder' => 'Write something useful', 'id' => 'cinput', 'class' => 'form-control bg-´dark text-light comment-entry-textarea', 'required' => 'required']) !!}
|
||||
</div>
|
||||
<div class="commentButton">
|
||||
<div id="comment_tools" class="commentform-panel-footer"><button type="submit" class="btn btn-dark btn-sm">Post</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
20
resources/views/layout4/partials/comments.blade.php
Normal file
20
resources/views/layout4/partials/comments.blade.php
Normal file
@@ -0,0 +1,20 @@
|
||||
@if(Auth::check())
|
||||
<div class=" commentwrapper comments">
|
||||
<?php
|
||||
if($mod = (Auth::check() && Auth::user()->can('delete_comment'))) $comments = $video->comments()->withTrashed()->get();
|
||||
else $comments = $video->comments;
|
||||
?>
|
||||
@if(count($comments) > 0)
|
||||
@foreach($comments as $comment)
|
||||
@include('partials.comment', ['comment' => $comment, 'mod' => $mod])
|
||||
@endforeach
|
||||
@else
|
||||
<div class="card">
|
||||
<div class="nocommentjs">
|
||||
No comments yet! Be the first one to comment!<br />
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
@endif
|
20
resources/views/layout4/partials/disqusw0bm.blade.php
Normal file
20
resources/views/layout4/partials/disqusw0bm.blade.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<div id="disqus_thread"></div>
|
||||
<script>
|
||||
|
||||
/**
|
||||
* RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.
|
||||
* LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables*/
|
||||
/*
|
||||
var disqus_config = function () {
|
||||
this.page.url = PAGE_URL; // Replace PAGE_URL with your page's canonical URL variable
|
||||
this.page.identifier = PAGE_IDENTIFIER; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
|
||||
};
|
||||
*/
|
||||
(function() { // DON'T EDIT BELOW THIS LINE
|
||||
var d = document, s = d.createElement('script');
|
||||
s.src = 'https://EXAMPLE.disqus.com/embed.js';
|
||||
s.setAttribute('data-timestamp', +new Date());
|
||||
(d.head || d.body).appendChild(s);
|
||||
})();
|
||||
</script>
|
||||
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
|
19
resources/views/layout4/partials/filterselect.blade.php
Normal file
19
resources/views/layout4/partials/filterselect.blade.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<div class="modal fade" id="filterselectmodal" tabindex="-1" role="dialog" aria-labelledby="Select filter">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title" id="filterModalTitle">Add Tags to filter out</h4>
|
||||
<p>When entering a tag you will no longer see videos with that tag.</p>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<input id="filter" type="text" class="form-control" placeholder="Input tags…" name="filter" data-role="tagsinput" value="{{ implode(',', auth()->user()->categories) }}">
|
||||
{{--<input class="form-control" type="text" id="filter" data-role="tagsinput" value="{{ implode(',', auth()->user()->categories) }}">--}}
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>
|
||||
<button href="/filter" type="submit" id="submitfilter" class="btn btn-primary" value="Save">Save</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
@@ -0,0 +1,6 @@
|
||||
@if(auth()->check())
|
||||
@include('partials.filterselect')
|
||||
@if(isset($video) && (auth()->user()->can('edit_video') || auth()->user()->id == $video->user_id))
|
||||
@include('partials.frontendedit')
|
||||
@endif
|
||||
@endif
|
36
resources/views/layout4/partials/flash.blade.php
Normal file
36
resources/views/layout4/partials/flash.blade.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<div class="flashcontainer">
|
||||
<div class="flash-inner">
|
||||
@if($errors->count() > 0)
|
||||
@foreach($errors->all() as $error)
|
||||
<div class="alert alert-danger alert-dismissable" role="alert">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
{{ $error }}
|
||||
</div>
|
||||
@endforeach
|
||||
@endif
|
||||
@if(Session::has('error'))
|
||||
<div class="alert alert-danger alert-dismissable" role="alert">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
{{ session('error') }}
|
||||
</div>
|
||||
@endif
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable" role="alert">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
{{ session('success') }}
|
||||
</div>
|
||||
@endif
|
||||
@if(Session::has('info'))
|
||||
<div class="alert alert-info alert-dismissable" role="alert">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
{{ session('info') }}
|
||||
</div>
|
||||
@endif
|
||||
@if(Session::has('warning'))
|
||||
<div class="alert alert-warning alert-dismissable" role="alert">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
{{ session('warning') }}
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
@@ -0,0 +1,3 @@
|
||||
<nav class="navbar navbar-dark bg-dark">
|
||||
<h5>LOL</h5>
|
||||
</nav>
|
52
resources/views/layout4/partials/frontendedit.blade.php
Normal file
52
resources/views/layout4/partials/frontendedit.blade.php
Normal file
@@ -0,0 +1,52 @@
|
||||
@if(isset($video))
|
||||
<form id="webmedit" method="POST" action="/index/{{$video->id}}">
|
||||
{!! csrf_field() !!}
|
||||
<div class="modal fade" id="webmeditmodal" tabindex="-1" role="dialog" aria-labelledby="Edit webm">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title" id="filterModalTitle">Edit webm</h4>
|
||||
</div>
|
||||
<div class="modal-body frontendeditmodal">
|
||||
<div class="form-group">
|
||||
<div class="form-group">
|
||||
<label for="imgsourceedit">Video Title</label>
|
||||
<input class="form-control" type="text" name="videotitle" id="videotitleedit" value="{{ $video->videotitle or ''}}" placeholder="Video Title">
|
||||
</div>
|
||||
<label for="interpretedit">Artist</label>
|
||||
<input class="form-control" type="text" name="interpret" id="interpretedit" value="{{ $video->interpret or ''}}" placeholder="Artist">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="songtitleedit">Songtitle</label>
|
||||
<input class="form-control" type="text" name="songtitle" id="songtitleedit" value="{{ $video->songtitle or ''}}" placeholder="Songtitle">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="imgsourceedit">Video Source</label>
|
||||
<input class="form-control" type="text" name="imgsource" id="imgsourceedit" value="{{ $video->imgsource or ''}}" placeholder="Video Source">
|
||||
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="categoryselect">Category</label>
|
||||
<select class="form-control" name="category" id="categoryselect">
|
||||
@foreach(\App\Models\Category::all() as $category)
|
||||
<option value="{{$category->id}}" @if($video->category->id == $category->id) selected @endif>{{$category->name}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="tageditor">Add Tags</label>
|
||||
@include('partials.tags')
|
||||
</div>
|
||||
<div class="deleteit">
|
||||
@endif @if(auth()->check() && auth()->user()->can('delete_video'))<a class="delete_video" href="#"><i class="fa fa-trash fa-lg"></i> Remove upload</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>
|
||||
<button type="submit" class="btn btn-primary">Save changes</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@endif
|
22
resources/views/layout4/partials/handlebars.php
Normal file
22
resources/views/layout4/partials/handlebars.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<script id="paginationtmpl" type="text/x-handlebars-template">
|
||||
<nav class="mitte">
|
||||
<ul class="pagination">
|
||||
{{#paginate pagination type="first"}}
|
||||
<li {{#if disabled}}class="disabled"{{/if}}><a href="#" data-page="{{n}}">First</a></li>
|
||||
{{/paginate}}
|
||||
{{#paginate pagination type="previous"}}
|
||||
<li {{#if disabled}}class="disabled"{{/if}}><a href="#" data-page="{{n}}">«</a></li>
|
||||
{{/paginate}}
|
||||
{{#paginate pagination type="middle" limit="7"}}
|
||||
<li {{#if active}}class="active"{{/if}}><a href="#" data-page="{{n}}">{{n}}</a></li>
|
||||
{{/paginate}}
|
||||
{{#paginate pagination type="next"}}
|
||||
<li {{#if disabled}}class="disabled"{{/if}}><a href="#" data-page="{{n}}">»</a></li>
|
||||
{{/paginate}}
|
||||
{{#paginate pagination type="last"}}
|
||||
<li {{#if disabled}}class="disabled"{{/if}}><a href="#" data-page="{{n}}">Last</a></li>
|
||||
{{/paginate}}
|
||||
</ul>
|
||||
</nav>
|
||||
<div class="clearfix"></div>
|
||||
</script>
|
0
resources/views/layout4/partials/header.blade.php
Normal file
0
resources/views/layout4/partials/header.blade.php
Normal file
25
resources/views/layout4/partials/loginmodal.blade.php
Normal file
25
resources/views/layout4/partials/loginmodal.blade.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<div class="modal fade" id="loginmodal" tabindex="-1" role="dialog" aria-labelledby="Login">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title" id="filterModalTitle">Login</h4>
|
||||
</div>
|
||||
|
||||
<div class="login_wrapper">
|
||||
<div class="col-md-9">
|
||||
<form action="{{action('UserController@login')}}" method="post" class="navbar-form">
|
||||
{!! csrf_field() !!}
|
||||
<input type="text" name="identifier" placeholder="Username" class="form-control usernamelogin"><br>
|
||||
<input type="password" name="password" placeholder="Password" class="form-control passwordlogin"><br>
|
||||
<button type="submit" class="btn btn-primary">Login</button> <input id="rememberme" checked type="checkbox" name="remember"> <span id="rember">Remember me?</span>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<p>Registration has been disabled due to multiple spammers, if you want an account, please apply for it in the <a href="/irc">IRC</a>, thanks!</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
31
resources/views/layout4/partials/msglist.php
Normal file
31
resources/views/layout4/partials/msglist.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<script id="msglist" type="text/x-handlebars-template">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading-messages">
|
||||
<h3 class="panel-title">Messages</h3> <button class="btn btn-dark readall" onclick="readAll()">Read all</button>
|
||||
</div>
|
||||
|
||||
<div class="list-group" id="listitems">
|
||||
{{#each data as |value key|}}
|
||||
<a href="#" data-index="{{key}}" data-id="{{id}}" class="list-group-item {{#unless read}}list-group-item-info{{/unless}}">{{subject}}</a>
|
||||
{{else}}
|
||||
<div class="list-group-item">No messages</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
{{#if total}}
|
||||
<div class="panel-footer" id="pagination">
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
</script>
|
||||
|
||||
<script id="msgtmpl" type="text/x-handlebars-template">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title">{{subject}}</h3>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
{{{content}}}
|
||||
</div>
|
||||
<div class="panel-footer"><time class="timeago" data-toggle="tooltip" datetime="{{created_at}}+0000" title="{{created_at}}+0000"></time></div>
|
||||
</div>
|
||||
</script>
|
62
resources/views/layout4/partials/navigation.blade.php
Normal file
62
resources/views/layout4/partials/navigation.blade.php
Normal file
@@ -0,0 +1,62 @@
|
||||
<nav class="navbar navbar-expand-lg navbar-dark bg-dark rounded-bottom sticky-top">
|
||||
<div class="w0bm-logo">
|
||||
<a class="navbar-brand" href="/">
|
||||
<img data-toggle="popover" data-trigger="hover" data-placement="left" data-content="0tter 5h1t" id="logo" src="https://w0bm.com/w0bm_mosh_banner_by_marderchen.gif" class="d-inline-block align-top" alt="w0bm.com">
|
||||
</a>
|
||||
</div>
|
||||
<ul class="navbar-nav mr-auto">
|
||||
@if (!empty($__env->yieldContent('novidcontent')))
|
||||
@else
|
||||
|
||||
@endif
|
||||
@if(Auth::check())
|
||||
<li class="nav-link dropdown">
|
||||
<button id="nav-user" class="btn btn-dark nav-link bg-toggle dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
<span><i class="fa fa-user fa-lg"></i> {{Auth::user()->username}}</span>
|
||||
</button>
|
||||
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
|
||||
<div class="">
|
||||
<a class="dropdown-item" href="{{url('user', Auth::user()->username)}}">{{Auth::user()->username}}</a>
|
||||
<a class="dropdown-item" href="{{url('messages')}}"><span class=""><i class="fa fa-envelope-square"></i> {{Auth::user()->messagesRecv()->unread()->count()}}</span></a>
|
||||
<a class="dropdown-item" href="#" data-toggle="modal" data-target="#filterselectmodal">Filter</a>
|
||||
<a class="dropdown-item" href="{{url('upload')}}">Upload</a>
|
||||
</div>
|
||||
<a class="dropdown-item" href="{{url('logout')}}">Logout</a>
|
||||
</div>
|
||||
@else
|
||||
|
||||
@endif
|
||||
</li>
|
||||
@if(Auth::check())
|
||||
<li class="nav-item dropdown">
|
||||
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
Links
|
||||
</a>
|
||||
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
|
||||
<a class="dropdown-item" href="/index">Index</a>
|
||||
<a class="dropdown-item" href="/about">About</a>
|
||||
<a class="dropdown-item" href="/stats">Stats</a>
|
||||
</div>
|
||||
</li>
|
||||
<li class="nav-item dropdown">
|
||||
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
Layout
|
||||
</a>
|
||||
<div id="layoutSwitcher" class="dropdown-menu" aria-labelledby="navbarDropdown">
|
||||
<a class="dropdown-item" id="layout1" href="#">Standard</a>
|
||||
<a class="dropdown-item" id="layout2" href="#">Njum</a>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
@else
|
||||
@endif
|
||||
|
||||
<div class="search-index hidden-xs d-none d-md-block">
|
||||
<form method="get" action="/index" class="form-inline my-2 my-lg-0">
|
||||
{!! Form::text('q', isset($q) ? $q : null, ['class' => 'form-control mr-sm-2 search-input text-light', 'placeholder' => 'Search w0bm.com']) !!}
|
||||
<button class="btn btn-dark" type="submit">Search</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</nav>
|
15
resources/views/layout4/partials/profileheader.blade.php
Normal file
15
resources/views/layout4/partials/profileheader.blade.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<div class="page-header">
|
||||
<h3 class="{{ $user->username }}">{!! rtrim(e($user->username) . ' ' . $user->activeIcon()) !!} @if($user->disabled && isset($user->banend) && (Carbon\Carbon::now() <= $user->banend || 1 >= $user->banend->timestamp))<span style="color: grey; font-size: 15px;">(@if(Carbon\Carbon::now() <= $user->banend)Ban expires in <time class="timeago" data-toggle="tooltip" title="{{ $user->banend }}+0000" datetime="{{ $user->banend }}+0000"></time>@else permanently banned @endif)</span>@endif</h3>
|
||||
<div class="admin-settings">
|
||||
@if(auth()->check() && auth()->user()->can('edit_user'))<span id="pannade"><a href="#" data-toggle="modal" data-target="#banmenumodal"><i style="color:red;" class=""></i>[ban user]</a></span>
|
||||
@endif
|
||||
</div>
|
||||
<span id="jointime">Joined: <time class="timeago" datetime="{{ $user->created_at }}+0000" title="{{ $user->created_at }}+0000" data-toggle="tooltip"></time></span>
|
||||
<div class="profile-info">
|
||||
<span id="count-upload"> <a href="/user/{{$user->username}}"> <i class="fa fa-cloud-upload"></i> {{ $user->uploads()->countScoped()->count() }} Uploads</a></span>
|
||||
|
||||
<span id="comments-user"> <a href="/user/{{$user->username}}/comments"><i class="fa fa-commenting"></i> {{ $user->comments()->count() }} Comments</a></span>
|
||||
|
||||
<span id="favs-user"><a href="/user/{{$user->username}}/favs/index"><i class="fa fa-heart"></i> {{ $user->favs()->countScoped()->count() }} Favorites</a></span>
|
||||
</div>
|
||||
</div>
|
62
resources/views/layout4/partials/registermodal.blade.php
Normal file
62
resources/views/layout4/partials/registermodal.blade.php
Normal file
@@ -0,0 +1,62 @@
|
||||
<div class="modal fade" id="registermodal" tabindex="-1" role="dialog" aria-labelledby="Register">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title" id="filterModalTitle">Register</h4>
|
||||
</div>
|
||||
|
||||
<div class="advantages">
|
||||
<p>Registering on w0bm has some advantages...</p>
|
||||
<p>With a account you can comment on WebMs, favor WebMs, upload WebMs, tag videos, filter out unwanted tags and watch NSFW WebMs!</p>
|
||||
</div>
|
||||
|
||||
<div class="reg_wrapper">
|
||||
<div class="register">
|
||||
<div class="col-md-10">
|
||||
<form class="form-horizontal" method="post" action="{{action('UserController@store')}}">
|
||||
{!! csrf_field() !!}
|
||||
<div class="form-group">
|
||||
<div class="reg_username">
|
||||
{!! Form::text('username', null, ['class' => 'form-control', 'placeholder' => 'Username']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="reg_password">
|
||||
{!! Form::password('password', ['class' => 'form-control', 'placeholder' => 'Password']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="reg_password">
|
||||
{!! Form::password('password_confirmation', ['class' => 'form-control', 'placeholder' => 'Password Confirmation']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="recaptcha">
|
||||
{!! Recaptcha::render() !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group terms">
|
||||
<div class="verify_rules">
|
||||
<p><input type="checkbox" required name="terms"> I am at least 18 years or older and I have read and understand the <a href="/rules">Rules</a></p>
|
||||
</div>
|
||||
|
||||
<div class="submit_registration">
|
||||
<button type="submit" class="btn btn-primary">Register</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<p>Back to <a href="#" data-toggle="modal" data-target="#loginmodal" data-dismiss="modal">Login?</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
40
resources/views/layout4/partials/report.blade.php
Normal file
40
resources/views/layout4/partials/report.blade.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<!-- created by klee -->
|
||||
@if(isset($video))
|
||||
<form id="webmreport" method="POST" action="/report/{{$video->id}}">
|
||||
{!! csrf_field() !!}
|
||||
<div class="modal fade" id="webmreportmodal" tabindex="-1" role="dialog" aria-labelledby="Report webm">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title" id="filterModalTitle">Report WebM</h4>
|
||||
</div>
|
||||
<div class="modal-body webmreportmodal">
|
||||
So you want to report this webm? Tell us why:<br>
|
||||
<br>
|
||||
<div class="form-group">
|
||||
<label for="reportReasons">
|
||||
Reason(s)<br>
|
||||
<em>(hold ctrl to select multiple)</em>
|
||||
</label>
|
||||
<select multiple class="form-control" id="reportReasons" name="reportReasons[]">
|
||||
<option>Wrong rating (sfw/nsfw)</option>
|
||||
<option>Shitpost</option>
|
||||
<option>Low quality/effort video</option>
|
||||
<option>Breaks a rule</option>
|
||||
<option>Other</option>
|
||||
<!-- breaks a rule, Wrong safe for rating -->
|
||||
</select>
|
||||
</div>
|
||||
<label for="reportReasonText">Please explain a bit more detailed why you want to report this webm</label>
|
||||
<textarea class="form-control" id="reportText" name="reportText" rows="3" required></textarea>
|
||||
<p>Abuse of this form will be awarded with a permanent ban!</p>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>
|
||||
<button type="submit" class="btn btn-primary">Send Report</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@endif
|
39
resources/views/layout4/partials/tags.blade.php
Normal file
39
resources/views/layout4/partials/tags.blade.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<div class="tags">
|
||||
<div class="tagtest">
|
||||
@if(Auth::check())
|
||||
<div id="tag-add">
|
||||
<div class="row">
|
||||
<div class="col tag-col">
|
||||
<div class="input-group">
|
||||
{{--<select multiple name="tags[]" data-role="tagsinput" class="form-control"></select>--}}
|
||||
<input id="tags" type="text" class="form-control" placeholder="Input tags…" name="tags" data-role="tagsinput">
|
||||
<span class="input-group-btn"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sendtags">
|
||||
<button href="/{{$video->id}}/tag" id="submittags" type="submit" class="btn btn-primary">Submit</button>
|
||||
</div>
|
||||
</div>
|
||||
@else
|
||||
@endif
|
||||
</div>
|
||||
<label for="manage-tags">Manage Tags</label>
|
||||
<div class="toggo tag-panel-body">
|
||||
<div id="tag-display" class="tag-panel-body">
|
||||
@if(count($video->tags))
|
||||
@foreach($video->tags as $tag)
|
||||
@if($tag == 'sfw')
|
||||
<span class="badge badge-success"><a href="/index?q={{$tag->normalized}}" class="badge badge-success">{{$tag->name}}</a>@if(Auth::check() && Auth::user()->can('edit_video')) <a class="delete-tag badge badge-success" href="#"><i class="fa fa-times"></i></a></span>@endif
|
||||
@elseif($tag == 'nsfw')
|
||||
<span class="badge badge-danger"><a href="/index?q={{$tag->normalized}}" class="badge badge-danger">{{$tag->name}}</a>@if(Auth::check() && Auth::user()->can('edit_video')) <a class="delete-tag badge badge-danger" href="#"><i class="fa fa-times"></i></a></span>@endif
|
||||
@else
|
||||
<span class="badge badge-secondary"><a href="/index?q={{$tag->normalized}}" class="badge badge-secondary">{{$tag->name}}</a>@if(Auth::check() && Auth::user()->can('edit_video')) <a class="delete-tag badge badge-secondary" href="#"><i class="fa fa-times"></i></a></span>@endif
|
||||
@endif
|
||||
@endforeach
|
||||
@else
|
||||
No tags yet ...
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
18
resources/views/layout4/partials/themechanger.blade.php
Normal file
18
resources/views/layout4/partials/themechanger.blade.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<li role="presentation" class="">
|
||||
<a data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
|
||||
<span class="caret"></span> Theme
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<div id="switcher">
|
||||
<button class="w0bmcustom-css" onclick="setActiveStyleSheet('w0bmcustom'); return false;">Default</button>
|
||||
<br>
|
||||
<button class="chilledblue-css" onclick="setActiveStyleSheet('Chilledblue'); return false;">Chilledblue</button>
|
||||
<br>
|
||||
<button class="xayd-css" onclick="setActiveStyleSheet('Xayd'); return false;">Xayd</button>
|
||||
<br>
|
||||
<button class="glitch-css" onclick="setActiveStyleSheet('Glitch'); return false;">Glitch</button>
|
||||
<br>
|
||||
<button class="epilepsie-css" onclick="alert('This theme can cause seizures and headaches, use with care!'); setActiveStyleSheet('Epilepsie'); return false;">Epilepsie</button>
|
||||
</div>
|
||||
</ul>
|
||||
</li>
|
20
resources/views/layout4/partials/uploadinfo.blade.php
Normal file
20
resources/views/layout4/partials/uploadinfo.blade.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<div class="vidinfo">
|
||||
<button title="Toggle Background" class="hidden-xs bg-toggle" id="togglebg">BG</button>
|
||||
<div class="favbutton">
|
||||
@if(auth()->check())
|
||||
@if(auth()->user()->hasFaved($video->id))
|
||||
<a id="fav" href="{{url($video->id . '/fav')}}">UNFAV</a>
|
||||
@else
|
||||
<a id="fav" href="{{url($video->id . '/fav')}}">FAV</a>
|
||||
@endif
|
||||
@else
|
||||
<a href="{{url($video->id . '/fav')}}">FAVED</a>
|
||||
@endif
|
||||
</div>
|
||||
<div style='word-break: break-word;'>@if($video->interpret) <strong>Artist:</strong> {{$video->interpret}}<br>@endif
|
||||
@if($video->songtitle) <strong>Songtitle:</strong> {{$video->songtitle}}<br>@endif
|
||||
@if($video->imgsource) <strong>Video Source:</strong> {{$video->imgsource}} <br>
|
||||
@endif
|
||||
<strong>Category:</strong> {{$video->category->name}}</div>
|
||||
<span id="uploader">uploaded by <a style="color: white" href="{{ url('user/' . $video->user->username) }}">{!! $video->user->displayName() !!}</a></span> <time class="timeago" data-toggle="tooltip" data-placement="top" datetime="{{$video->created_at->toIso8601String()}}" title="{{$video->created_at->toIso8601String()}}"></time>@if(auth()->check() && (auth()->user()->can('edit_video') || auth()->user()->id == $video->user_id)) <a class="edit_video" href="#" data-toggle="modal" data-target="#webmeditmodal">[edit]</a>@endif @if(auth()->check() && auth()->user()->can('delete_video'))<a class="delete_video" href="#">[del]</a>@endif
|
||||
</div>
|
35
resources/views/layout4/partials/videoinfo.blade.php
Normal file
35
resources/views/layout4/partials/videoinfo.blade.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<div class="text-center">
|
||||
@if($related)
|
||||
@if(($prev = $video->getPrev($related)) === null)
|
||||
<a class="first" href="#" style="visibility: hidden;">🡄 first</a>
|
||||
<a id="prev" href="#" style="visibility: hidden;">🡄 prev</a> |
|
||||
@else
|
||||
<a class="first" href="{{url($related->baseurl(), $video->getFirstId($related))}}">🡄 first</a>
|
||||
<a id="prev" href="{{url($related->baseurl(), [$prev->id])}}">🡄 prev</a> |
|
||||
@endif
|
||||
<a href="{{url($related->baseurl())}}">{!!$related->displayName()!!}</a>
|
||||
@if(($next = $video->getNext($related)) === null)
|
||||
| <a id="next" href="#" style="visibility: hidden;">next 🡆</a>
|
||||
<a class="last" href="#" style="visibility: hidden;">last 🡆</a>
|
||||
@else
|
||||
| <a id="next" href="{{url($related->baseurl(), [$next->id])}}">next 🡆</a>
|
||||
<a class="last" href="{{url($related->baseurl(), $video->getLastId($related))}}">last 🡆</a>
|
||||
@endif
|
||||
@else
|
||||
@if(($prev = $video->getPrev()) === null)
|
||||
<a class="first" href="#" style="visibility: hidden;">🡄 first</a>
|
||||
<a id="prev" href="#" style="visibility: hidden;">🡄 prev</a> |
|
||||
@else
|
||||
<a class="first" href="{{url($video->getFirstId())}}">🡄 first</a>
|
||||
<a id="prev" href="{{url($prev->id)}}">🡄 prev</a> |
|
||||
@endif
|
||||
<a href="{{url('/')}}">random</a>
|
||||
@if(($next = $video->getNext()) === null)
|
||||
| <a id="next" href="#" style="visibility: hidden;">next 🡆</a>
|
||||
<a class="last" href="#" style="visibility: hidden;">last 🡆</a>
|
||||
@else
|
||||
| <a id="next" href="{{url($next->id)}}">next 🡆</a>
|
||||
<a class="last" href="{{url($video->getLastId())}}">last 🡆</a>
|
||||
@endif
|
||||
@endif
|
||||
</div>
|
35
resources/views/layout4/profile.blade.php
Normal file
35
resources/views/layout4/profile.blade.php
Normal file
@@ -0,0 +1,35 @@
|
||||
@extends('profilelayout')
|
||||
@section('novidcontent')
|
||||
@include('partials.profileheader')
|
||||
<div class="profilheader">
|
||||
<a href="/{{$user->baseurl()}}/">View {{ $title }}</a>
|
||||
</div>
|
||||
<table class="table table-hover table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Video Title</th>
|
||||
<th>Artist</th>
|
||||
<th>Songtitle</th>
|
||||
<th class="hidden-xs">Video Source</th>
|
||||
<th>Category</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($videos as $video)
|
||||
<?php
|
||||
$thumb = str_replace(".webm","",$video->file);
|
||||
?>
|
||||
<tr data-thumb="{{$thumb}}">
|
||||
<td><a href="/{{$user->baseurl()}}/{{$video->id}}">{{$video->id}}</a></td>
|
||||
<td>{{$video->videotitle or ''}}</td>
|
||||
<td>{{$video->interpret or ''}}</td>
|
||||
<td>{{$video->songtitle or ''}}</td>
|
||||
<td class="hidden-xs">{{$video->imgsource or ''}}</td>
|
||||
<td><a href="{{url($video->category->shortname)}}">{{$video->category->name}}</a></td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
{!! $videos->render() !!}
|
||||
@endsection
|
30
resources/views/layout4/profilelayout.blade.php
Normal file
30
resources/views/layout4/profilelayout.blade.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<meta name="_token" content="{{csrf_token()}}">
|
||||
<meta name="keywords" content="Random WebMs, WebMs, Internet Videos">
|
||||
<link rel="icon" href="/favicon.png">
|
||||
<title>@if(isset($video)){{ $video->id }} -@endif w0bm.com</title>
|
||||
<link rel="stylesheet" type="text/css" href="/z0mb/css/bootstrap-dark.css?v={{ filemtime("z0mb/css/bootstrap-dark.css") }}">
|
||||
<link rel="stylesheet" type="text/css" href="/z0mb/css/cstms.css?v={{ filemtime("z0mb/css/cstms.css") }}">
|
||||
<link rel="stylesheet" type="text/css" href="/z0mb/css/z0mb.css?v={{ filemtime("z0mb/css/z0mb.css") }}">
|
||||
</head>
|
||||
<body>
|
||||
<div data-simplebar class="container-fluid">
|
||||
<div class="container">
|
||||
@include('partials.flash')
|
||||
@yield('novidcontent')
|
||||
<wip>v.1.{{ filemtime("z0mb/css/z0mb.css") }} WIP</wip>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
<script type="text/javascript" defer src="/z0mb/js/jquery.min.js"></script>
|
||||
<script type="text/javascript" defer src="/z0mb/js/jquery.timeago.js"></script>
|
||||
<script type="text/javascript" defer src="/z0mb/js/popper.min.js"></script>
|
||||
<script type="text/javascript" defer src="/z0mb/js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" defer src="/njum/js/bootstrap-tagsinput.min.js"></script>
|
||||
<script type="text/javascript" defer src="/z0mb/js/handlebars.min.js"></script>
|
||||
<script type="text/javascript" defer src="/z0mb/js/newscript.js?v={{ filemtime("z0mb/js/newscript.js") }}"></script>
|
||||
</html>
|
0
resources/views/layout4/vendor/.gitkeep
vendored
Normal file
0
resources/views/layout4/vendor/.gitkeep
vendored
Normal file
21
resources/views/layout4/video-partials/disqus.blade.php
Normal file
21
resources/views/layout4/video-partials/disqus.blade.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<div id="disqus_thread"></div>
|
||||
<script>
|
||||
|
||||
/**
|
||||
* RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.
|
||||
* LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables*/
|
||||
/*
|
||||
var disqus_config = function () {
|
||||
this.page.url = PAGE_URL; // Replace PAGE_URL with your page's canonical URL variable
|
||||
this.page.identifier = PAGE_IDENTIFIER; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
|
||||
};
|
||||
*/
|
||||
(function() { // DON'T EDIT BELOW THIS LINE
|
||||
var d = document, s = d.createElement('script');
|
||||
s.src = 'https://w0bm.disqus.com/embed.js';
|
||||
s.setAttribute('data-timestamp', +new Date());
|
||||
(d.head || d.body).appendChild(s);
|
||||
})();
|
||||
</script>
|
||||
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
|
||||
|
@@ -0,0 +1,52 @@
|
||||
<ul class="nav justify-content-center">
|
||||
<li class="safe-for-rating">
|
||||
<a class="badge badge-sexy">{{$video->id}}</a>
|
||||
@if(count($video->tags))
|
||||
@foreach($video->tags as $tag)
|
||||
@if($tag == 'sfw')
|
||||
<a class="badge badge-success isSfw">SFW</a>
|
||||
@elseif($tag == 'nsfw')
|
||||
<a class="badge badge-danger isNsfw">NSFW</a>
|
||||
@endif
|
||||
@endforeach
|
||||
@endif
|
||||
</li>
|
||||
<li class="legacy-item">
|
||||
@if(auth()->check())
|
||||
@if(auth()->user()->hasFaved($video->id))
|
||||
<form action="{{url($video->id . '/fav')}}">
|
||||
<a hidden id="hidden-fav" href="{{url($video->id . '/fav')}}"></a>
|
||||
<button type="submit" id="fav" class="btn btn-dark" fav-data="{{url($video->id . '/fav')}}"><i class="fa fa-heart fa-lg"></i></button>
|
||||
</form>
|
||||
@else
|
||||
<form action="{{url($video->id . '/fav')}}">
|
||||
<a hidden id="hidden-fav" href="{{url($video->id . '/fav')}}"></a>
|
||||
<button type="submit" id="fav" class="btn btn-dark bg-toggle"><i class="fa fa-heart-o fa-lg"></i></button>
|
||||
</form>
|
||||
@endif
|
||||
@else
|
||||
@endif
|
||||
</li>
|
||||
<li class="legacy-item">
|
||||
<button type="button" class="btn btn-dark metadata-button bg-toggle" data-container="body" data-toggle="popover" data-placement="bottom" data-html="true" data-container="body">
|
||||
<i class="fa fa-lg fa-info-circle"></i>
|
||||
</button>
|
||||
</li>
|
||||
<li class="legacy-item">
|
||||
<div id="popover-content" hidden>
|
||||
@include('video-partials.popover-metadata')
|
||||
</div>
|
||||
</li>
|
||||
<li class="legacy-item">
|
||||
<button type="button" class="btn btn-dark" id="togglebg"><i class="fa fa-power-off fa-lg"></i></button>
|
||||
</li>
|
||||
<li class="legacy-item">
|
||||
@if(auth()->check())
|
||||
@if(auth()->user()->can('delete_video'))
|
||||
<button id="webm_edit" class="btn btn-dark" data-toggle="modal" data-target="#webmeditmodal"><i class="fa fa-edit fa-lg"></i></button>
|
||||
@endif
|
||||
@endif
|
||||
<li class="legacy-item">
|
||||
<button id="webm_report" class="btn btn-dark" data-toggle="modal" data-target="#webmreportmodal"><i class="fa fa-bug fa-md"></i></button>
|
||||
</li>
|
||||
</ul>
|
@@ -0,0 +1,35 @@
|
||||
<div class="row">
|
||||
@if($related)
|
||||
@if(($prev = $video->getPrev($related)) === null)
|
||||
<div class="col- first-video"><a class="first" href="#" style="visibility: hidden;"> « first</a></div>
|
||||
<div class="col video-navigation"><a id="prev" href="#" style="visibility: hidden;"> « prev</a> |
|
||||
@else
|
||||
<div class="col- first-video"><a class="first" href="{{url($related->baseurl(), $video->getFirstId($related))}}"> « first</a></div>
|
||||
<div class="col video-navigation"><a id="prev" href="{{url($related->baseurl(), [$prev->id])}}"> « prev</a> |
|
||||
@endif
|
||||
<a href="{{url($related->baseurl())}}">{!!$related->displayName()!!}</a>
|
||||
@if(($next = $video->getNext($related)) === null)
|
||||
| <a id="next" href="#" style="visibility: hidden;">next » </a></div>
|
||||
<div class="col- latest-video"><a class="last" href="#" style="visibility: hidden;">last » </a></div>
|
||||
@else
|
||||
| <a id="next" href="{{url($related->baseurl(), [$next->id])}}">next » </a></div>
|
||||
<div class="col- latest-video"><a class="last" href="{{url($related->baseurl(), $video->getLastId($related))}}">last » </a></div>
|
||||
@endif
|
||||
@else
|
||||
@if(($prev = $video->getPrev()) === null)
|
||||
<div class="col- first-video"><a class="first" href="#" style="visibility: hidden;"> « first</a></div>
|
||||
<div class="col video-navigation"><a id="prev" href="#" style="visibility: hidden;"> « prev</a> |
|
||||
@else
|
||||
<div class="col- first-video"><a class="first" href="{{url($video->getFirstId())}}"> « first</a></div>
|
||||
<div class="col video-navigation"><a id="prev" href="{{url($prev->id)}}"> « prev</a> |
|
||||
@endif
|
||||
<a href="{{url('/')}}">random</a>
|
||||
@if(($next = $video->getNext()) === null)
|
||||
| <a id="next" href="#" style="visibility: hidden;">next » </a></div>
|
||||
<div class="col- latest-video"><a class="last" href="#" style="visibility: hidden;">last 🡆</a></div>
|
||||
@else
|
||||
| <a id="next" href="{{url($next->id)}}">next » </a></div>
|
||||
<div class="col- latest-video"><a class="last" href="{{url($video->getLastId())}}">last » </a></div>
|
||||
@endif
|
||||
@endif
|
||||
</div>
|
@@ -0,0 +1,44 @@
|
||||
<div class="popover-metadata">
|
||||
@if($video->videotitle) <div class="artist">
|
||||
<strong>Videotitle:</strong> {{$video->videotitle}}
|
||||
</div>@endif
|
||||
@if($video->interpret) <div class="artist">
|
||||
<strong>Artist:</strong> {{$video->interpret}}
|
||||
</div>@endif
|
||||
@if($video->songtitle) <div class="songtitle">
|
||||
<strong>Songtitle:</strong> {{$video->songtitle}}
|
||||
</div>@endif
|
||||
@if($video->imgsource) <div class="source">
|
||||
<strong>Video Source:</strong> {{$video->imgsource}}
|
||||
</div>@endif
|
||||
<div class="category">
|
||||
<strong>Category:</strong> <a class="text-white" href="/index?q={{$video->category->name}}">{{$video->category->name}}</a>
|
||||
</div>
|
||||
<div class="uploader">
|
||||
<strong>Uploader:</strong> <a class="text-white" href="{{ url("user/" . $video->user->username) }}">{!! $video->user->displayName() !!}</a></span></a>
|
||||
</div>
|
||||
<div class="added">
|
||||
<strong>Added:</strong> <a id="timestamp" title="{{$video->created_at->toIso8601String()}}">{{$video->created_at->diffForHumans()}}</a> <time class="timeago" data-toggle="tooltip" datetime="{{$video->created_at->toIso8601String()}}" title="{{$video->created_at->toIso8601String()}}"></time>
|
||||
</div>
|
||||
{{-- <div class="filesize">
|
||||
<span class="badge badge-secondary">{{ HumanReadable::bytesToHuman($video->filesize()) }}</span>
|
||||
</div> --}}
|
||||
<hr>
|
||||
<div class="toggo tag-panel-body">
|
||||
<div id="tag-display" class="tag-panel-body">
|
||||
@if(count($video->tags))
|
||||
@foreach($video->tags as $tag)
|
||||
@if($tag == 'sfw')
|
||||
<span class="badge badge-success"><a href="/index?q={{$tag->normalized}}" class="default-link">{{$tag->name}}</a></span>
|
||||
@elseif($tag == 'nsfw')
|
||||
<span class="badge badge-danger"><a href="/index?q={{$tag->normalized}}" class="default-link">{{$tag->name}}</a></span>
|
||||
@else
|
||||
<span class="badge badge-secondary"><a href="/index?q={{$tag->normalized}}" class="default-link">{{$tag->name}}</a></span>
|
||||
@endif
|
||||
@endforeach
|
||||
@else
|
||||
No tags yet ...
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
12
resources/views/layout4/video-partials/video-fav.blade.php
Normal file
12
resources/views/layout4/video-partials/video-fav.blade.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<button title="Toggle Background" class="hidden-xs bg-toggle power" id="togglebg">BG</button>
|
||||
<div class="favbutton">
|
||||
@if(auth()->check())
|
||||
@if(auth()->user()->hasFaved($video->id))
|
||||
<a id="fav" href="{{url($video->id . '/fav')}}">UNFAV</a>
|
||||
@else
|
||||
<a id="fav" href="{{url($video->id . '/fav')}}">FAV</a>
|
||||
@endif
|
||||
@else
|
||||
<a href="{{url($video->id . '/fav')}}">FAVED</a>
|
||||
@endif
|
||||
</div>
|
@@ -0,0 +1,17 @@
|
||||
<div class="video-metadata-overlay">
|
||||
@if($video->interpret) <div class="artist">
|
||||
<strong>Artist:</strong> {{$video->interpret}}
|
||||
</div>@endif
|
||||
@if($video->songtitle) <div class="songtitle">
|
||||
<strong>Songtitle:</strong> {{$video->songtitle}}
|
||||
</div>@endif
|
||||
@if($video->imgsource) <div class="source">
|
||||
<strong>Video Source:</strong> {{$video->imgsource}}
|
||||
</div>@endif
|
||||
<div class="category">
|
||||
<strong>Category:</strong> <a class="text-dark" href="/index?q={{$video->category->name}}">{{$video->category->name}}</a>
|
||||
</div>
|
||||
<div class="uploader">
|
||||
<strong>Uploader:</strong> <a class="text-dark" href="{{ url('user/' . $video->user->username) }}">{!! $video->user->displayName() !!}</a></span> <time class="timeago" data-toggle="tooltip" datetime="{{$video->created_at->toIso8601String()}}" title="{{$video->created_at->toIso8601String()}}"></time></a>
|
||||
</div>
|
||||
</div>
|
@@ -0,0 +1,39 @@
|
||||
<div class="media">
|
||||
<img width="64px" height="64px" class="align-self-start mr-3" src="/thumbs/beta/{{str_replace(".webm","",$video->file)}}.png">
|
||||
<div class="media-body">
|
||||
@if($video->videotitle)<h5>{{$video->videotitle}}</h5>@endif
|
||||
@if($video->interpret) <div class="artist">
|
||||
<strong>Artist:</strong> {{$video->interpret}}
|
||||
</div>@endif
|
||||
@if($video->songtitle) <div class="songtitle">
|
||||
<strong>Songtitle:</strong> {{$video->songtitle}}
|
||||
</div> @endif
|
||||
@if($video->imgsource) <div class="source">
|
||||
<strong>Video Source:</strong> {{$video->imgsource}}
|
||||
</div> @endif
|
||||
<div class="category">
|
||||
<strong>Category:</strong> <a class="text-light" href="/{{$video->category->shortname}}">{{$video->category->name}}</a>
|
||||
</div>
|
||||
<div class="uploader">
|
||||
<strong>Uploader:</strong> <a class="text-light" href="{{ url("user/" . $video->user->username) }}">{!! $video->user->displayName() !!} (ID: {{$video->user->id}} )</a>
|
||||
</div>
|
||||
<div class="added">
|
||||
<strong>Added</strong> <a id="timestamp" title="{{$video->created_at->toIso8601String()}}">{{$video->created_at->diffForHumans()}}</a> <time class="timeago" data-toggle="tooltip" datetime="{{$video->created_at->toIso8601String()}}" title="{{$video->created_at->toIso8601String()}}"></time>
|
||||
</div>
|
||||
<div class="tags">
|
||||
@if(count($video->tags))
|
||||
@foreach($video->tags as $tag)
|
||||
@if($tag == 'sfw')
|
||||
|
||||
@elseif($tag == 'nsfw')
|
||||
|
||||
@else
|
||||
<a href="/index?q={{$tag->normalized}}" class="badge badge-dark">{{$tag->name}}</a>
|
||||
@endif
|
||||
@endforeach
|
||||
@else
|
||||
No tags yet ...
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
@@ -0,0 +1,18 @@
|
||||
<div class="row videonavigation">
|
||||
@if(($prev = $video->getPrev()) === null)
|
||||
<div class="col"><a class="first" href="#" style="visibility: hidden;">🡄 first</a></div>
|
||||
|
||||
@else
|
||||
<div class="col"><a class="first" href="{{url($video->getFirstId())}}">🡄 first</a></div>
|
||||
<div class="col"><a id="prev" href="{{url($prev->id)}}">🡄 prev</a> |
|
||||
@endif
|
||||
<a href="{{url('/')}}">random</a>
|
||||
@if(($next = $video->getNext()) === null)
|
||||
| <a id="next" href="#" style="visibility: hidden;">next 🡆</a>
|
||||
<a class="last" href="#" style="visibility: hidden;">last 🡆</a>
|
||||
@else
|
||||
| <a id="next" href="{{url($next->id)}}">next 🡆</a></div>
|
||||
<div class="col"><a class="last" href="{{url($video->getLastId())}}">last 🡆</a></div>
|
||||
@endif
|
||||
|
||||
</div>
|
38
resources/views/layout4/video.blade.php
Normal file
38
resources/views/layout4/video.blade.php
Normal file
@@ -0,0 +1,38 @@
|
||||
@extends('layout')
|
||||
@section('video')
|
||||
<?php $related = $related ?? null; ?>
|
||||
<div class="video-content">
|
||||
<div class="video">
|
||||
<div class="embed-responsive embed-responsive-16by9">
|
||||
<video id="video" class="video rounded embed-responsive-item" loop preload="auto" crossorigin="anonymous">
|
||||
<source src="@if(env('APP_DEBUG')){{"/b"}}@else{{"//" . (substr($_SERVER["HTTP_HOST"], 0, 3) === "v4." ? "v4." : "") . "b.w0bm.com"}}@endif{{ "/" . $video->file }}">
|
||||
</video>
|
||||
</div>
|
||||
</div>
|
||||
@include('video-partials.legacy-videonav')
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('testvideo')
|
||||
<?php $related = $related ?? null; ?>
|
||||
<div class="page">
|
||||
<div class="video-wrap embed-responsive embed-responsive-16by9">
|
||||
<div class="video">
|
||||
<video id="video" class="video rounded embed-responsive-item" loop preload="auto" crossorigin="anonymous">
|
||||
<source src="/b{{ "/" . $video->file }}">
|
||||
</video>
|
||||
</div>
|
||||
</div>
|
||||
@include('video-partials.legacy-videonav')
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('floatvid')
|
||||
<div class="video-wrap embed-responsive embed-responsive-16by9 rounded" id="sticky-container">
|
||||
<video class="video scrollable" controls autoplay loop id="video">
|
||||
<source src="/b{{ "/" . $video->file }}">
|
||||
</video>
|
||||
</div>
|
||||
@include('video-partials.legacy-videonav')
|
||||
{{$video->tesThumb()}}
|
||||
@endsection
|
Reference in New Issue
Block a user