server ver
This commit is contained in:
27
resources/views/layout69/partials/banmenu.blade.php
Normal file
27
resources/views/layout69/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/layout69/partials/comlist.php
Normal file
14
resources/views/layout69/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/layout69/partials/comment.blade.php
Normal file
15
resources/views/layout69/partials/comment.blade.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<div class="panel @if($del = !is_null($comment->deleted_at)) panel-danger @else panel-default @endif" data-id="{{$comment->id}}" author="{{$comment->user->username}}">
|
||||
<div class="panel-body" author="{{$comment->user->username}}">
|
||||
@simplemd($comment->content)
|
||||
</div>
|
||||
<div class="panel-footer">by <a class="{{$comment->user->username}}" href="/user/{{$comment->user->username}}">{!! $comment->user->displayName() !!}</a> <small><time class="timeago" data-toggle="tooltip" data-placement="top" datetime="{{$comment->created_at}}+0000" title="{{$comment->created_at}}+0000"></time></small>
|
||||
@if($mod)
|
||||
@if($del)
|
||||
<a href="#" onclick="restoreComment($(this))"><i style="color:green"; class="fa fa-refresh" aria-hidden="true"></i></a>
|
||||
@else
|
||||
<a class="delete_comment" href="#" onclick="deleteComment($(this))">[del]</a>
|
||||
<a class="edit_comment" href="#" onclick="editComment($(this))">[edit]</a>
|
||||
@endif
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
35
resources/views/layout69/partials/commentform.blade.php
Normal file
35
resources/views/layout69/partials/commentform.blade.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<div id="commentForm" class="hidden-xs">
|
||||
<form action="{{action('CommentController@store', ['id' => $video->id])}}" method="post">
|
||||
{!! csrf_field() !!}
|
||||
<div class="sees panel panel-default">
|
||||
<div class="fickfackfoo panel-body">
|
||||
{!! Form::textarea('comment', null, ['placeholder' => 'Write something', 'id' => 'cinput', 'class' => 'form-control', 'required' => 'required']) !!}
|
||||
</div>
|
||||
<div class="commbordersoos">
|
||||
<div id="comment_tools" class="commentform-panel-footer"><button type="submit" class="btn btn-primary btn-sm">Post</button>
|
||||
<div class="textmodifierss">
|
||||
<a style="font-size: 14px;" class="rainbow" href="javascript:;" onclick="formatText ('rb');">[rb]</a>
|
||||
<a style="font-size: 14px;" class="reich" href="javascript:;" onclick="formatText ('reich');">[reich]</a>
|
||||
<a style="font-size: 14px;" class="anim" href="javascript:;" onclick="formatText ('krebs');">[krebs]</a>
|
||||
<a style="font-size: 14px; color: white;" class="spoiler" href="javascript:;" onclick="formatText ('spoiler');">[spoiler]</a>
|
||||
<div class="emoji-shit">
|
||||
<div class="header"><span>😂</span></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="display: none;" id="parent" class="emojis-box">
|
||||
<div id="child" class="emojis">
|
||||
<?php
|
||||
$files = glob(public_path() . DIRECTORY_SEPARATOR . 'images/comments/*.webp', GLOB_BRACE);
|
||||
$files = array_map(function ($f) { return pathinfo($f); }, $files);
|
||||
?>
|
||||
|
||||
@foreach ($files as $file)
|
||||
<a class="w0bm_emoji_anchor" title=":{{$file['filename']}}:" href="javascript:;" onclick="formatTextEmoji ('{{$file['filename']}}');"><img class="comment_emoji_small" loading="lazy" src="//w0bm.com/images/comments/{{$file['basename']}}"></a>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
60
resources/views/layout69/partials/comments.blade.php
Normal file
60
resources/views/layout69/partials/comments.blade.php
Normal file
@@ -0,0 +1,60 @@
|
||||
<!--<div id="motd" class="panel panel-info hidden-xs">
|
||||
@if(null === $banner)
|
||||
<div class="panel-body motd">
|
||||
<span style="color:red;">f0ck you!</span>
|
||||
<iframe style="width: 342px; height: 50px; border: 0!important;display: flex;"src="/0x40"></iframe>
|
||||
</div>
|
||||
@else
|
||||
<a href="{{ $banner->url }}" target="_blank" rel="noopener">
|
||||
<div style="height: 50px; background-image:url('{{ $banner->image }}')" class="panel-body motd">
|
||||
</div>
|
||||
</a>
|
||||
@endif
|
||||
</div>-->
|
||||
{{-- <div id="nutti">
|
||||
<p>Please check out the overhauled <a href="https://w0bm.com/api/user/layout?layout=2">Njum</a> Layout and give me some feedback!</p>
|
||||
</div> --}}
|
||||
{{-- <div id="nutti">
|
||||
<p>Next month w0bm turns 6 years old! Wouldn't be possible without all of you! Thanks</p>
|
||||
</div> --}}
|
||||
@if(Auth::check())
|
||||
@if($video->id == '30186')
|
||||
@include('partials.thread_closed')
|
||||
@else
|
||||
@include('partials.commentform')
|
||||
@endif
|
||||
@else
|
||||
@endif
|
||||
|
||||
@if(Auth::check())
|
||||
<div id="comment_container_scrollable" class="comments hidden-xs">
|
||||
<div class="commentwrapper">
|
||||
<?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="panel panel-default nocomments">
|
||||
<div class="panel-body">
|
||||
No comments yet …<br />
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@else
|
||||
<div class="comments hidden-xs">
|
||||
<div class="commentwrapper">
|
||||
<div class="panel panel-default ">
|
||||
<div class="panel-body">
|
||||
<p class="comment"><i>Please log in to view comments</i></p>
|
||||
</div>
|
||||
<div class="panel-footer">by w0bm ∞</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
19
resources/views/layout69/partials/filterselect.blade.php
Normal file
19
resources/views/layout69/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 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>
|
36
resources/views/layout69/partials/flash.blade.php
Normal file
36
resources/views/layout69/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>
|
46
resources/views/layout69/partials/frontendedit.blade.php
Normal file
46
resources/views/layout69/partials/frontendedit.blade.php
Normal file
@@ -0,0 +1,46 @@
|
||||
@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">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<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>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>
|
||||
<input type="submit" class="btn btn-primary" value="Save">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@endif
|
22
resources/views/layout69/partials/handlebars.php
Normal file
22
resources/views/layout69/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/layout69/partials/header.blade.php
Normal file
0
resources/views/layout69/partials/header.blade.php
Normal file
12
resources/views/layout69/partials/layoutchanger.blade.php
Normal file
12
resources/views/layout69/partials/layoutchanger.blade.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<li role="presentation" class="layoutChanger" id="layoutSwitcher">
|
||||
<a data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
|
||||
<span class="caret"></span> Layout
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<div class="layoutblah">
|
||||
<button class="layoutbutton" id="layout2">Njum</button>
|
||||
<br>
|
||||
<button class="layoutbutton" id="layout3">z0mb</button>
|
||||
</div>
|
||||
</ul>
|
||||
</li>
|
25
resources/views/layout69/partials/loginmodal.blade.php
Normal file
25
resources/views/layout69/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 and will stay closed until further notice.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
31
resources/views/layout69/partials/msglist.php
Normal file
31
resources/views/layout69/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">
|
||||
<h3 class="panel-title">Messages</h3> <button class="btn btn-primary pull-right 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>
|
55
resources/views/layout69/partials/navigation.blade.php
Normal file
55
resources/views/layout69/partials/navigation.blade.php
Normal file
@@ -0,0 +1,55 @@
|
||||
<nav class="navbar navbar-inverse navbar-static-top">
|
||||
<div class="container-fluid">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
@if(Auth::check())
|
||||
<a class="navbar-brand" href="/main">
|
||||
<img src="{{ asset('logo.svg') }}" alt="w0bm.com">
|
||||
</a>
|
||||
@else
|
||||
<a class="navbar-brand" href="/">
|
||||
<img src="{{ asset('logo.svg') }}" alt="w0bm.com">
|
||||
</a>
|
||||
@endif
|
||||
|
||||
</div>
|
||||
|
||||
<div class=" collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
||||
@if(Auth::check())
|
||||
<ul class="nav navbar-nav navbar-left">
|
||||
<li><a href="{{url('categories')}}"><i class="fa fa-clone"></i><span class="hidden-sm"> Categories</span></a></li>
|
||||
<li><a href="{{url('index')}}"><i class="fa fa-list"></i><span class="hidden-sm"> Index</span></a></li>
|
||||
@include('partials.themechanger')
|
||||
@endif
|
||||
@if(Auth::check())
|
||||
@include('partials.layoutchanger')
|
||||
@endif
|
||||
@include('partials.searchmodal')
|
||||
<li><a href="#" data-toggle="modal" data-target="#searchmodal"><i class="fa fa-search"></i><span class="hidden-sm"> Find shit</span></a></li>
|
||||
</ul>
|
||||
@if(Auth::check())
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li><a href="{{url('messages')}}"><i class="fa fa-envelope"></i> <span class="badge message-badge">{{Auth::user()->messagesRecv()->unread()->count()}}</span></a></li>
|
||||
<li><a href="#" data-toggle="modal" data-target="#filterselectmodal"><i class="fa fa-filter"></i><span class="hidden-sm"> Filter</span></a></li>
|
||||
<li><a href="{{url('upload')}}"><i class="fa fa-cloud-upload"></i><span class="hidden-sm"> Upload</span></a></li>
|
||||
<li><a href="{{url('user', Auth::user()->username)}}/favs"><i class="fa fa-heart"></i></a></li>
|
||||
<li><a href="{{url('user', Auth::user()->username)}}"><i class="fa fa-user"></i> {{Auth::user()->username}}</a></li>
|
||||
<li><a href="{{url('logout')}}"><i class="fa fa-sign-out"></i><span class="hidden-sm"> Logout</span></a></li>
|
||||
</ul>
|
||||
@else
|
||||
<!-- Hier war mal der Login Kot -->
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
@if(Auth::check())
|
||||
<li><a href="#" data-toggle="modal" data-target="#loginmodal"><i class="fa fa-sign-in"></i> Login</a></li>
|
||||
@include('partials.loginmodal')
|
||||
</ul>
|
||||
@endif
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
15
resources/views/layout69/partials/profileheader.blade.php
Normal file
15
resources/views/layout69/partials/profileheader.blade.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<div class="page-header">
|
||||
<h3 class="{{ $user->username }}">{!! rtrim(e($user->username) . ' ' . $user->activeIcon()) !!} <small>ID: {{ $user->id }}</small> @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/layout69/partials/registermodal.blade.php
Normal file
62
resources/views/layout69/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/layout69/partials/report.blade.php
Normal file
40
resources/views/layout69/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-report 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
|
10
resources/views/layout69/partials/searchbar.blade.php
Normal file
10
resources/views/layout69/partials/searchbar.blade.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<div style="background:black;text-align:center;">
|
||||
<span><a href="/blog">w0bm will turn 8 years old in a few months, thanks for all the great years!</a></span>
|
||||
</div>
|
||||
<div class="searchbar">
|
||||
<form method="get" action="/main">
|
||||
{!! Form::text('q', null, ['class' => 'suchleiste_video', 'placeholder' => 'Search w0bm.com']) !!}
|
||||
<button type="submit" class="suchbutton_video"><i style="color:white;" class="fa fa-search"></i></button>
|
||||
</form>
|
||||
</div>
|
||||
|
39
resources/views/layout69/partials/searchmodal.blade.php
Normal file
39
resources/views/layout69/partials/searchmodal.blade.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<div class="modal fade" id="searchmodal" 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>
|
||||
|
||||
<div class="random_blah">
|
||||
<?php
|
||||
function random_array_picker($array) {
|
||||
$count = count($array);
|
||||
$random_index = rand(0, $count - 1);
|
||||
return $array[$random_index];
|
||||
}
|
||||
$array = [
|
||||
'We have the 👀',
|
||||
'😂 We have funny videos',
|
||||
'💎 We got gemmies',
|
||||
'🤔 We dont even know man',
|
||||
'🤮 we got this too',
|
||||
'😎 we got the cool',
|
||||
];
|
||||
$random_element = random_array_picker($array);
|
||||
echo "<h4 class='modal-title' id='filterModalTitle'>$random_element</h4>";
|
||||
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="searchbar">
|
||||
<form method="get" action="/main">
|
||||
{!! Form::text('q', null, ['class' => 'suchleiste_video', 'placeholder' => 'Search w0bm.com']) !!}
|
||||
<button type="submit" class="suchbutton_video"><i style="color:white;" class="fa fa-search"></i></button>
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<i>& find some… </i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
54
resources/views/layout69/partials/tags.blade.php
Normal file
54
resources/views/layout69/partials/tags.blade.php
Normal file
@@ -0,0 +1,54 @@
|
||||
<div class="tags hidden-xs">
|
||||
<div class="tagtest">
|
||||
@if(Auth::check())
|
||||
<ul class="nav navbar-nav info-nav">
|
||||
<label for="tag-add-toggle">
|
||||
<li id="tagadder" class="addtagsy">[+Add Tag]</li>
|
||||
</label>
|
||||
<li class="addtagsy"><a href="/irc">IRC </a></li>
|
||||
<li class="addtagsy"><a href="/about">About </a></li>
|
||||
<li class="addtagsy"><a href="/contact">Contact </a></li>
|
||||
<li class="addtagsy"><a href="/rules">Rules </a></li>
|
||||
<li class="addtagsy"><a href="/stats">Stats</a></li>
|
||||
<li class="addtagsy"><a href="/marderchen">✝</a></li>
|
||||
</ul>
|
||||
<input type="checkbox" id="tag-add-toggle">
|
||||
<div id="tag-add">
|
||||
<div class="input-group tag-input-open" style="margin-top: 4px;">
|
||||
{{--<select multiple name="tags[]" data-role="tagsinput" class="form-control"></select>--}}
|
||||
<input id="tags" type="text" class="" placeholder="Add new tag" name="tags" data-role="tagsinput">
|
||||
<button href="/{{$video->id}}/tag" id="submittags" type="submit" class="">Submit</button>
|
||||
</div>
|
||||
</div>
|
||||
@else
|
||||
<ul class="nav navbar-nav info-nav">
|
||||
<li class="addtagsy"><a href="/irc">IRC </a></li>
|
||||
<li class="addtagsy"><a href="/about">About </a></li>
|
||||
<li class="addtagsy"><a href="/contact">Contact </a></li>
|
||||
<li class="addtagsy"><a href="/rules">Rules </a></li>
|
||||
<li class="addtagsy"><a href="/stats">Stats</a></li>
|
||||
<li class="addtagsy"><a href="/marderchen">✝</a></li>
|
||||
</ul>
|
||||
@endif
|
||||
|
||||
</div>
|
||||
<div class="toggo tag-panel-body" style="">
|
||||
<div id="tag-display" class="tag-panel-body">
|
||||
@if(count($video->tags))
|
||||
@foreach($video->tags as $tag)
|
||||
<span class="label label-default"><a href="/main?q={{$tag->normalized}}" class="default-link">{{$tag->name}}</a>@if(Auth::check() && Auth::user()->can('edit_video')) <a class="delete-tag default-link" href="#"><i class="fa fa-times"></i></a>@endif</span>
|
||||
@endforeach
|
||||
@else
|
||||
No tags yet ...
|
||||
@endif
|
||||
</div>
|
||||
<div class="git">
|
||||
<?php
|
||||
$latestCommit = shell_exec('git log -n 1');
|
||||
$getcommitID = substr($latestCommit,0,48);
|
||||
$commitID = substr($getcommitID, 7);
|
||||
echo "<a class='latestCommit' target='_blank' href='/git'>$commitID</a>"
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
20
resources/views/layout69/partials/themechanger.blade.php
Normal file
20
resources/views/layout69/partials/themechanger.blade.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<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="w0bm_override-css" onclick="setActiveStyleSheet('DARK'); return false;">DARK</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>
|
3
resources/views/layout69/partials/thread_closed.php
Normal file
3
resources/views/layout69/partials/thread_closed.php
Normal file
@@ -0,0 +1,3 @@
|
||||
<div class="thread_closed">
|
||||
<span>Thread closed! ;__;</span>
|
||||
</div>
|
Reference in New Issue
Block a user