njum layout feature completion
This commit is contained in:
@@ -5,8 +5,26 @@
|
|||||||
<?php
|
<?php
|
||||||
$thumb = str_replace(".webm","",$video->file);
|
$thumb = str_replace(".webm","",$video->file);
|
||||||
?>
|
?>
|
||||||
<div class="main-item">
|
<div style="position: relative;" class="main-item hasTag-{{$video->id}}">
|
||||||
<a href="/{{$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: #0bb568;
|
||||||
|
text-shadow: 1px 1px 1px black;
|
||||||
|
font-size: 1em;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
@else
|
||||||
|
<a href="/{{$video->id}}">
|
||||||
|
@endif
|
||||||
@if(file_exists(public_path() . '/thumbs/beta/'.$thumb.'.png'))
|
@if(file_exists(public_path() . '/thumbs/beta/'.$thumb.'.png'))
|
||||||
<img src="/thumbs/beta/{{$thumb}}.png">
|
<img src="/thumbs/beta/{{$thumb}}.png">
|
||||||
@else
|
@else
|
||||||
|
Reference in New Issue
Block a user