Files
Gw0bm/resources/views/layout1/main.blade.php
2024-06-10 02:24:01 +02:00

49 lines
1.7 KiB
PHP

@extends('profilelayout')
@section('content')
<div class="page-header">
<div class="page">
{!! $videos->render() !!}
<form method="get">
<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>
</div>
<div class="items">
@foreach($videos as $video)
<?php
$thumb = str_replace(".webm","",$video->file);
?>
<div style="position: relative;" class="main-item hasTag-{{$video->id}}">
@if(isset($q) && $video->hasAllTags($q))
<a href="/t/{{$q}}/{{$video->id}}">
<style>
.hasTag-{{$video->id}}::after {
content: "\f02b";
font: normal normal normal 14px/1 FontAwesome;
position: absolute;
bottom: 0;
left: 0;
padding: 5px;
color: #1fb2b0;
text-shadow: 1px 1px 1px black;
font-size: 2em;
pointer-events: none;
}
</style>
@else
<a href="/{{$video->id}}">
@endif
{{-- MUSS UNBEDINGT NOCH ANGEPASST WERDEN!!! --}}
@if(file_exists(public_path() . '/thumbs/beta/'.$thumb.'.png'))
<img src="/thumbs/beta/{{$thumb}}.png">
@else
<img src="/small_404.gif" class="nothumb">
@endif
</a>
</div>
@endforeach
</div>
@endsection