current state
This commit is contained in:
@@ -1,16 +1,32 @@
|
||||
<div class="photo_frame" itemscope itemtype="http://schema.org/Photograph">
|
||||
<a href="{{ $art->url ?? '#' }}" itemprop="url">
|
||||
@php
|
||||
$img_src = $art->thumb ?? '';
|
||||
$img_srcset = $art->thumb_srcset ?? '';
|
||||
$base_height = 360;
|
||||
$orig_width = (int) ($art->width ?? 0);
|
||||
$orig_height = (int) ($art->height ?? 0);
|
||||
$img_height = $base_height;
|
||||
$img_width = ($orig_width > 0 && $orig_height > 0)
|
||||
? (int) round($orig_width * ($base_height / $orig_height))
|
||||
: 600;
|
||||
@endphp
|
||||
|
||||
<article class="artwork" itemscope itemtype="http://schema.org/Photograph">
|
||||
<a href="{{ $art->url ?? '#' }}" itemprop="url">
|
||||
<div class="ribbon gid_{{ $art->gid_num }}" title="{{ $art->category_name ?? '' }}" itemprop="genre">
|
||||
<span>{{ $art->category_name ?? '' }}</span>
|
||||
</div>
|
||||
|
||||
@php
|
||||
$img_src = $art->thumb ?? '';
|
||||
$img_srcset = $art->thumb_srcset ?? '';
|
||||
@endphp
|
||||
|
||||
<img src="{{ $img_src }}" srcset="{{ $img_srcset }}" loading="lazy" decoding="async" alt="{{ e($art->name) }}" class="img-responsive" itemprop="thumbnailUrl">
|
||||
<img
|
||||
src="{{ $img_src }}"
|
||||
srcset="{{ $img_srcset }}"
|
||||
loading="lazy"
|
||||
decoding="async"
|
||||
alt="{{ e($art->name) }}"
|
||||
width="{{ $img_width }}"
|
||||
height="{{ $img_height }}"
|
||||
class="img-responsive"
|
||||
itemprop="thumbnailUrl"
|
||||
>
|
||||
|
||||
<div class="details">
|
||||
<div class="info" itemprop="author">
|
||||
@@ -21,8 +37,5 @@
|
||||
{{ $art->name }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</a>
|
||||
|
||||
{{-- debug thumb links removed to avoid textual output beneath thumbnails --}}
|
||||
</div>
|
||||
</article>
|
||||
44
resources/views/legacy/buddies.blade.php
Normal file
44
resources/views/legacy/buddies.blade.php
Normal file
@@ -0,0 +1,44 @@
|
||||
@extends('layouts.legacy')
|
||||
|
||||
@section('content')
|
||||
<div class="container-fluid legacy-page">
|
||||
<div class="effect2 page-header-wrap">
|
||||
<header class="page-heading">
|
||||
<h1 class="page-header">{{ $page_title ?? 'Followers' }}</h1>
|
||||
<p>Members who follow you</p>
|
||||
</header>
|
||||
</div>
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="icon-grid">
|
||||
@forelse($followers as $f)
|
||||
@php
|
||||
$icon = $f->icon ?? 'default.jpg';
|
||||
$uname = $f->uname ?? 'Unknown';
|
||||
$followerId = $f->user_id ?? null;
|
||||
@endphp
|
||||
|
||||
<div class="icon-flex">
|
||||
<div>
|
||||
<a href="/profile/{{ $followerId }}/{{ Str::slug($uname) }}">
|
||||
<h4>{{ $uname }}</h4>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<a href="/profile/{{ $followerId }}/{{ Str::slug($uname) }}">
|
||||
<img src="/avatar/{{ $followerId }}/{{ rawurlencode($icon) }}" alt="{{ $uname }}">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@empty
|
||||
<p>No followers yet.</p>
|
||||
@endforelse
|
||||
</div>
|
||||
|
||||
@if(method_exists($followers, 'links'))
|
||||
<div class="mt-3">{{ $followers->links() }}</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@@ -5,74 +5,106 @@
|
||||
@endphp
|
||||
|
||||
@section('content')
|
||||
<div class="container-fluid legacy-page category-wrapper">
|
||||
<div class="container-fluid legacy-page">
|
||||
@php Banner::ShowResponsiveAd(); @endphp
|
||||
|
||||
<div id="category-artworks">
|
||||
<div class="effect2 page-header-wrap">
|
||||
<header class="page-heading">
|
||||
<div class="category-display"><i class="fa fa-bars fa-fw"></i></div>
|
||||
<div class="category-wrapper">
|
||||
<div class="row">
|
||||
<main id="category-artworks" class="col-md-9">
|
||||
<div class="effect2 page-header-wrap">
|
||||
<header class="page-heading">
|
||||
<div class="category-display"><i class="fa fa-bars fa-fw"></i></div>
|
||||
|
||||
<div id="location_bar">
|
||||
<a href="/{{ $contentType->slug }}" title="{{ $contentType->name }}">{{ $contentType->name }}</a>
|
||||
@foreach ($category->breadcrumbs as $crumb)
|
||||
» <a href="{{ $crumb->url }}" title="{{ $crumb->name }}">{{ $crumb->name }}</a>
|
||||
@endforeach
|
||||
:
|
||||
</div>
|
||||
<div id="location_bar">
|
||||
<a href="/{{ $contentType->slug }}" title="{{ $contentType->name }}">{{ $contentType->name }}</a>
|
||||
@foreach ($category->breadcrumbs as $crumb)
|
||||
» <a href="{{ $crumb->url }}" title="{{ $crumb->name }}">{{ $crumb->name }}</a>
|
||||
@endforeach
|
||||
:
|
||||
</div>
|
||||
|
||||
<h1 class="page-header">{{ $category->name }}</h1>
|
||||
<p style="clear:both">{!! $category->description ?? ($contentType->name . ' artworks on Skinbase.') !!}</p>
|
||||
</header>
|
||||
</div>
|
||||
<h1 class="page-header">{{ $category->name }}</h1>
|
||||
<p style="clear:both">{!! $category->description ?? ($contentType->name . ' artworks on Skinbase.') !!}</p>
|
||||
</header>
|
||||
</div> <!-- end .effect2 -->
|
||||
|
||||
@if ($artworks->count())
|
||||
<div class="container_photo gallery_box">
|
||||
@foreach ($artworks as $art)
|
||||
@include('legacy._artwork_card', ['art' => $art])
|
||||
@endforeach
|
||||
</div>
|
||||
@else
|
||||
<div class="panel panel-default effect2">
|
||||
<div class="panel-heading"><strong>No Artworks Yet</strong></div>
|
||||
<div class="panel-body">
|
||||
<p>Once uploads arrive they will appear here. Check back soon.</p>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
@if ($artworks->count())
|
||||
<section id="gallery" class="gallery" aria-live="polite">
|
||||
@foreach ($artworks as $art)
|
||||
@include('legacy._artwork_card', ['art' => $art])
|
||||
@endforeach
|
||||
</section>
|
||||
@else
|
||||
<div class="panel panel-default effect2">
|
||||
<div class="panel-heading"><strong>No Artworks Yet</strong></div>
|
||||
<div class="panel-body">
|
||||
<p>Once uploads arrive they will appear here. Check back soon.</p>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="paginationMenu text-center">
|
||||
{{ $artworks->withQueryString()->links('pagination::bootstrap-4') }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="paginationMenu text-center">
|
||||
{{ $artworks->withQueryString()->links('pagination::bootstrap-4') }}
|
||||
</div> <!-- end .paginationMenu -->
|
||||
</main> <!-- end #category-artworks -->
|
||||
|
||||
<div id="category-list">
|
||||
<div id="artwork_subcategories">
|
||||
<div class="category-toggle"><i class="fa fa-bars fa-fw"></i></div>
|
||||
<aside id="category-list" class="col-md-3">
|
||||
<div id="artwork_subcategories">
|
||||
<div class="category-toggle"><i class="fa fa-bars fa-fw"></i></div>
|
||||
|
||||
<h5 class="browse_categories">Main Categories:</h5>
|
||||
<ul>
|
||||
@foreach ($rootCategories as $root)
|
||||
<li>
|
||||
<a href="{{ $root->url }}" title="{{ $root->name }}"><i class="fa fa-photo fa-fw"></i> {{ $root->name }}</a>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
<h5 class="browse_categories">Main Categories:</h5>
|
||||
<ul>
|
||||
@foreach ($rootCategories as $root)
|
||||
<li>
|
||||
<a href="{{ $root->url }}" title="{{ $root->name }}"><i class="fa fa-photo fa-fw"></i> {{ $root->name }}</a>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
|
||||
<h5 class="browse_categories">Browse Subcategories:</h5>
|
||||
<ul class="scrollContent" data-mcs-theme="dark">
|
||||
@foreach ($subcategories as $sub)
|
||||
@php $selected = $sub->id === $category->id ? 'selected_group' : ''; @endphp
|
||||
<li class="subgroup {{ $selected }}">
|
||||
<a href="{{ $sub->url }}">{{ $sub->name }}</a>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<h5 class="browse_categories">Browse Subcategories:</h5>
|
||||
<ul class="scrollContent" data-mcs-theme="dark">
|
||||
@foreach ($subcategories as $sub)
|
||||
@php $selected = $sub->id === $category->id ? 'selected_group' : ''; @endphp
|
||||
<li class="subgroup {{ $selected }}">
|
||||
<a href="{{ $sub->url }}">{{ $sub->name }}</a>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div> <!-- end #artwork_subcategories -->
|
||||
</aside> <!-- end #category-list -->
|
||||
</div> <!-- end .row -->
|
||||
</div> <!-- end .category-wrapper -->
|
||||
</div> <!-- end .legacy-page -->
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="/js/legacy-gallery-init.js"></script>
|
||||
@push('styles')
|
||||
<style>
|
||||
.gallery {
|
||||
columns: 5 260px;
|
||||
column-gap: 16px;
|
||||
}
|
||||
|
||||
.artwork {
|
||||
break-inside: avoid;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
@media (max-width: 992px) {
|
||||
.gallery {
|
||||
columns: 3 220px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.gallery {
|
||||
columns: 2 180px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 576px) {
|
||||
.gallery {
|
||||
columns: 1 100%;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@endpush
|
||||
|
||||
73
resources/views/legacy/favourites.blade.php
Normal file
73
resources/views/legacy/favourites.blade.php
Normal file
@@ -0,0 +1,73 @@
|
||||
@extends('layouts.legacy')
|
||||
|
||||
@section('content')
|
||||
<div class="container legacy-page">
|
||||
<div class="page-header-wrap">
|
||||
<h1 class="page-header">Favourites</h1>
|
||||
<p class="text-muted">List of uploaded Artworks which were added to user's favourites list</p>
|
||||
</div>
|
||||
|
||||
@if(session('status'))
|
||||
<div class="alert alert-success">{{ session('status') }}</div>
|
||||
@endif
|
||||
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Thumb</th>
|
||||
<th>Name</th>
|
||||
<th>Author</th>
|
||||
<th>Date</th>
|
||||
<th>Dls</th>
|
||||
<th>Views</th>
|
||||
<th>Zoom</th>
|
||||
<th>Rating</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($results as $ar)
|
||||
@php
|
||||
$artId = (int)($ar->id ?? 0);
|
||||
$nid = (int)($artId / 100);
|
||||
$picture = rawurlencode($ar->picture ?? '');
|
||||
@endphp
|
||||
<tr>
|
||||
<td style="width:80px;">
|
||||
<a href="/art/{{ $artId }}/{{ $ar->slug }}"><img src="/files/archive/shots/{{ $nid }}/{{ $picture }}" height="60" alt="{{ $ar->name }}"></a>
|
||||
</td>
|
||||
<td>
|
||||
@if(auth()->check() && auth()->id() == ($ar->user_id ?? null))
|
||||
<form method="POST" action="{{ route('legacy.favourites.delete', ['userId' => auth()->id(), 'artworkId' => $artId]) }}" style="display:inline" onsubmit="return confirm('Really Remove From Favourites: {{ addslashes($ar->name ?? '') }}');">
|
||||
@csrf
|
||||
<button type="submit" class="btn btn-link"><img src="/gfx/icon_delete.gif" alt="Delete"></button>
|
||||
</form>
|
||||
@endif
|
||||
<a href="/art/{{ $artId }}/{{ $ar->slug }}">{{ $ar->name }}</a>
|
||||
</td>
|
||||
<td><a href="/profile.php?uname={{ urlencode($ar->uname ?? '') }}">{{ $ar->uname ?? '' }}</a></td>
|
||||
<td>{{ is_string($ar->datum) ? date('d.m.Y', strtotime($ar->datum)) : '' }}</td>
|
||||
<td>{{ (int)($ar->dls ?? 0) }}</td>
|
||||
<td>{{ (int)($ar->views ?? 0) }}</td>
|
||||
<td>{{ e($ar->zoom ?? '') }}</td>
|
||||
<td>{{ e($ar->rating ?? '') }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
{{-- Simple pagination controls --}}
|
||||
@php
|
||||
$pages = (int) ceil($total / $hits);
|
||||
@endphp
|
||||
@if($pages > 1)
|
||||
<nav>
|
||||
<ul class="pagination">
|
||||
@for($i=1;$i<=$pages;$i++)
|
||||
<li class="{{ $i == $page ? 'active' : '' }}"><a href="{{ route('legacy.favourites', ['id' => $user_id, 'page' => $i]) }}">{{ $i }}</a></li>
|
||||
@endfor
|
||||
</ul>
|
||||
</nav>
|
||||
@endif
|
||||
|
||||
</div>
|
||||
@endsection
|
||||
60
resources/views/legacy/gallery.blade.php
Normal file
60
resources/views/legacy/gallery.blade.php
Normal file
@@ -0,0 +1,60 @@
|
||||
@extends('layouts.legacy')
|
||||
|
||||
@section('content')
|
||||
<div class="container-fluid legacy-page">
|
||||
<div class="effect2 page-header-wrap">
|
||||
<header class="page-heading">
|
||||
<h1 class="page-header">Gallery: {{ $user->uname ?? $user->name ?? 'User' }}</h1>
|
||||
<p>{{ $user->real_name ?? '' }}</p>
|
||||
</header>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<div class="panel panel-default effect2">
|
||||
<div class="panel-heading"><strong>User Gallery</strong></div>
|
||||
<div class="panel-body">
|
||||
<div class="gallery-grid">
|
||||
@foreach($artworks as $art)
|
||||
<div class="thumb-card effect2">
|
||||
<a href="/art/{{ $art->id }}/{{ Str::slug($art->name ?? '') }}" class="thumb-link">
|
||||
<img src="{{ $art->thumb }}" srcset="{{ $art->thumb_srcset }}" alt="{{ $art->name }}" class="img-responsive" loading="lazy" decoding="async">
|
||||
</a>
|
||||
<div class="thumb-meta">
|
||||
<div class="thumb-title">{{ $art->name }}</div>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<div class="panel panel-default effect2">
|
||||
<div class="panel-heading"><strong>User</strong></div>
|
||||
<div class="panel-body">
|
||||
<img src="/avatar/{{ (int)($user->user_id ?? $user->id) }}/{{ rawurlencode($user->icon ?? '') }}" class="img-responsive" style="max-width:120px;" alt="{{ $user->uname ?? $user->name }}">
|
||||
<h3>{{ $user->uname ?? $user->name }}</h3>
|
||||
<p>{{ $user->about_me ?? '' }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{-- Simple pagination controls like legacy site --}}
|
||||
@php
|
||||
$pages = (int) ceil($total / $hits);
|
||||
@endphp
|
||||
@if($pages > 1)
|
||||
<nav>
|
||||
<ul class="pagination">
|
||||
@for($i=1;$i<=$pages;$i++)
|
||||
<li class="{{ $i == $page ? 'active' : '' }}"><a href="{{ url('/gallery/'.$user->id.'?page='.$i) }}">{{ $i }}</a></li>
|
||||
@endfor
|
||||
</ul>
|
||||
</nav>
|
||||
@endif
|
||||
|
||||
</div>
|
||||
@endsection
|
||||
@@ -80,7 +80,7 @@
|
||||
<br/><br/>
|
||||
|
||||
@if(!empty($ar->username))
|
||||
@php $username = DB::connection('legacy')->table('users')->where('uname', $ar->username)->value('uname'); @endphp
|
||||
@php $username = DB::table('users')->where('uname', $ar->username)->value('uname'); @endphp
|
||||
<div class="interviewGuy">{{ $username }} Gallery (random order):</div><br/>
|
||||
@foreach($artworks as $artwork)
|
||||
@php $nid = (int)($artwork->id / 100); @endphp
|
||||
|
||||
56
resources/views/legacy/mybuddies.blade.php
Normal file
56
resources/views/legacy/mybuddies.blade.php
Normal file
@@ -0,0 +1,56 @@
|
||||
|
||||
@extends('layouts.legacy')
|
||||
|
||||
@section('content')
|
||||
<div class="container-fluid legacy-page">
|
||||
<div class="effect2 page-header-wrap">
|
||||
<header class="page-heading">
|
||||
<h1 class="page-header">{{ $page_title ?? 'My Buddies' }}</h1>
|
||||
<p>List of members you are following</p>
|
||||
</header>
|
||||
</div>
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="icon-grid">
|
||||
@forelse($buddies as $b)
|
||||
@php
|
||||
$icon = $b->icon ?? 'default.jpg';
|
||||
$uname = $b->uname ?? 'Unknown';
|
||||
$friendId = $b->friend_id ?? $b->friendId ?? null;
|
||||
@endphp
|
||||
|
||||
<div class="icon-flex">
|
||||
<div>
|
||||
<a href="/profile/{{ $friendId }}/{{ Str::slug($uname) }}">
|
||||
<h4>{{ $uname }}</h4>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<a href="/profile/{{ $friendId }}/{{ Str::slug($uname) }}">
|
||||
<img src="/avatar/{{ $friendId }}/{{ rawurlencode($icon) }}" alt="{{ $uname }}">
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@if(auth()->check() && auth()->id() == ($b->user_id ?? null))
|
||||
<div>
|
||||
<form method="POST" action="{{ route('legacy.mybuddies.delete', ['id' => $b->id]) }}" onsubmit="return confirm('Really Remove From Friends List: {{ addslashes($uname) }}?');">
|
||||
@csrf
|
||||
@method('DELETE')
|
||||
<button class="btn btn-link" type="submit"><img src="/gfx/icon_delete.gif" alt="remove"></button>
|
||||
</form>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
</div>
|
||||
@empty
|
||||
<p>No buddies yet.</p>
|
||||
@endforelse
|
||||
</div>
|
||||
|
||||
@if(method_exists($buddies, 'links'))
|
||||
<div class="mt-3">{{ $buddies->links() }}</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
55
resources/views/legacy/photography.blade.php
Normal file
55
resources/views/legacy/photography.blade.php
Normal file
@@ -0,0 +1,55 @@
|
||||
@extends('layouts.legacy')
|
||||
|
||||
@section('content')
|
||||
<div class="container-fluid legacy-page">
|
||||
@php \App\Banner::ShowResponsiveAd(); @endphp
|
||||
|
||||
<div class="effect2 page-header-wrap">
|
||||
<header class="page-heading">
|
||||
<h1 class="page-header">{{ $page_title }}</h1>
|
||||
<p style="clear:both">{!! $tidy ?? '' !!}</p>
|
||||
</header>
|
||||
</div>
|
||||
|
||||
<div class="container_photo gallery_box">
|
||||
<div class="grid-sizer"></div>
|
||||
@foreach($artworks as $art)
|
||||
@include('legacy._artwork_card', ['art' => $art])
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
<div class="paginationMenu text-center">
|
||||
{{ method_exists($artworks, 'withQueryString') ? $artworks->withQueryString()->links() : '' }}
|
||||
</div>
|
||||
|
||||
@if($subcategories && $subcategories->count())
|
||||
<div id="category-list">
|
||||
<div id="artwork_subcategories">
|
||||
<div class="category-toggle"><i class="fa fa-bars fa-fw"></i></div>
|
||||
<h5 class="browse_categories">Main Categories:</h5>
|
||||
<ul>
|
||||
<li><a href="/photography"><i class="fa fa-photo fa-fw"></i> Photography</a></li>
|
||||
<li><a href="/wallpapers"><i class="fa fa-photo fa-fw"></i> Wallpapers</a></li>
|
||||
<li><a href="/skins"><i class="fa fa-photo fa-fw"></i> Skins</a></li>
|
||||
<li><a href="/other"><i class="fa fa-photo fa-fw"></i> Other</a></li>
|
||||
</ul>
|
||||
|
||||
<h5 class="browse_categories">Browse Subcategories:</h5>
|
||||
<ul class="scrollContent" data-mcs-theme="dark">
|
||||
@foreach($subcategories as $skupina)
|
||||
@php
|
||||
$slug = \Illuminate\Support\Str::slug($skupina->category_name);
|
||||
$ctype = strtolower($group);
|
||||
$addit = (isset($id) && $skupina->category_id == $id) ? 'selected_group' : '' ;
|
||||
@endphp
|
||||
<li class="subgroup {{ $addit }}">
|
||||
<a href="/{{ $ctype }}/{{ $slug }}">{{ $skupina->category_name }}</a>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
</div>
|
||||
@endsection
|
||||
63
resources/views/legacy/received-comments.blade.php
Normal file
63
resources/views/legacy/received-comments.blade.php
Normal file
@@ -0,0 +1,63 @@
|
||||
@extends('layouts.legacy')
|
||||
|
||||
@section('content')
|
||||
<div class="container-fluid legacy-page">
|
||||
<div class="effect2 page-header-wrap">
|
||||
<header class="page-heading">
|
||||
<h1 class="page-header">Received Comments</h1>
|
||||
<p>List of comments left on your uploaded artworks.</p>
|
||||
</header>
|
||||
</div>
|
||||
|
||||
<div class="masonry">
|
||||
@foreach($comments as $comment)
|
||||
@php
|
||||
$author = $comment->user;
|
||||
$art = $comment->artwork;
|
||||
$created = optional($comment->created_at);
|
||||
@endphp
|
||||
|
||||
<div class="masonry_item col-sm-6 col-md-4">
|
||||
<div class="comment_box effect3">
|
||||
<div class="cb_image">
|
||||
<a href="/profile/{{ (int)($author->id ?? $author->user_id) }}/{{ rawurlencode($author->name ?? $author->uname ?? '') }}">
|
||||
<img src="/avatar/{{ (int)($author->id ?? $author->user_id) }}/{{ rawurlencode($author->icon ?? '') }}" width="50" height="50" class="comment_avatar" alt="{{ $author->name ?? $author->uname ?? '' }}">
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="bubble_comment panel panel-skinbase">
|
||||
<div class="panel-heading">
|
||||
<div class="pull-right">{{ $created ? $created->diffForHumans() . ' ago' : '' }}</div>
|
||||
<h5 class="panel-title">Comment by: <a href="/profile/{{ (int)($author->id ?? $author->user_id) }}/{{ rawurlencode($author->name ?? $author->uname ?? '') }}">{{ $author->name ?? $author->uname ?? '' }}</a></h5>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="comment_box_image">
|
||||
@if($art)
|
||||
<a href="/art/{{ $art->id }}/{{ Str::slug($art->name ?? '') }}">
|
||||
<img src="{{ $art->thumb }}" class="img-thumbnail img-responsive" alt="{{ $art->name }}">
|
||||
</a>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="comment_text">{!! nl2br(e($comment->content ?? $comment->description ?? '')) !!}</div>
|
||||
|
||||
@if(!empty($author->signature))
|
||||
<div class="panel-footer comment-footer">
|
||||
<p>{!! nl2br(e($author->signature)) !!}</p>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
@if($comments->hasPages())
|
||||
<div class="paginationMenu">
|
||||
{{ $comments->links() }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
</div>
|
||||
@endsection
|
||||
81
resources/views/legacy/statistics.blade.php
Normal file
81
resources/views/legacy/statistics.blade.php
Normal file
@@ -0,0 +1,81 @@
|
||||
@extends('layouts.legacy')
|
||||
|
||||
@section('content')
|
||||
<div class="container legacy-page">
|
||||
<div class="page-header-wrap">
|
||||
<div class="clearfix">
|
||||
<h1 class="page-header" style="margin:0;display:inline-block">Artwork Statistics</h1>
|
||||
<span class="text-muted pull-right" style="margin-top:10px">
|
||||
Uploaded: {{ method_exists($artworks, 'total') ? $artworks->total() : $artworks->count() }}
|
||||
</span>
|
||||
</div>
|
||||
<div class="text-muted" style="margin-top:6px;font-size:12px">Sort your uploads by popularity, downloads, comments, and date.</div>
|
||||
</div>
|
||||
|
||||
<div class="panel panel-default uploads-panel">
|
||||
<div class="panel-body">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered table-striped table-hover" style="margin-bottom:0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width:90px" class="text-center">Thumbnail</th>
|
||||
<th>
|
||||
<a href="{{ request()->fullUrlWithQuery(['sort' => 'name']) }}">Name</a>
|
||||
</th>
|
||||
<th style="width:110px" class="text-center">
|
||||
<a href="{{ request()->fullUrlWithQuery(['sort' => 'dls']) }}">Downloads</a>
|
||||
</th>
|
||||
<th style="width:95px" class="text-center">
|
||||
<a href="{{ request()->fullUrlWithQuery(['sort' => 'comments']) }}">Reviews</a>
|
||||
</th>
|
||||
<th style="width:180px">
|
||||
<a href="{{ request()->fullUrlWithQuery(['sort' => 'category']) }}">Section</a>
|
||||
</th>
|
||||
<th style="width:130px" class="text-center">
|
||||
<a href="{{ request()->fullUrlWithQuery(['sort' => 'date']) }}">Date</a>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@forelse($artworks as $art)
|
||||
<tr>
|
||||
<td class="text-center">
|
||||
<a href="/art/{{ (int) $art->id }}" title="View">
|
||||
<img
|
||||
src="{{ $art->thumb_url ?? '/gfx/sb_join.jpg' }}"
|
||||
@if(!empty($art->thumb_srcset)) srcset="{{ $art->thumb_srcset }}" @endif
|
||||
alt="{{ $art->name ?? '' }}"
|
||||
class="img-thumbnail"
|
||||
style="width:70px;height:70px;object-fit:cover"
|
||||
>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="/art/{{ (int) $art->id }}">{{ $art->name ?? '' }}</a>
|
||||
<div class="text-muted" style="font-size:12px">#{{ (int) $art->id }}</div>
|
||||
</td>
|
||||
<td class="text-center">{{ (int) ($art->dls ?? 0) }}</td>
|
||||
<td class="text-center">{{ (int) ($art->num_comments ?? 0) }}</td>
|
||||
<td>{{ $art->category_name ?? '' }}</td>
|
||||
<td class="text-center">
|
||||
@if(!empty($art->datum))
|
||||
{{ is_string($art->datum) ? date('d.m.Y', strtotime($art->datum)) : '' }}
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@empty
|
||||
<tr>
|
||||
<td colspan="6">No artworks found.</td>
|
||||
</tr>
|
||||
@endforelse
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="paginationMenu text-center">
|
||||
{{ $artworks->links('pagination::bootstrap-3') }}
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@@ -149,7 +149,7 @@
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="/upload"><i class="fa fa-upload"></i> Upload</a></li>
|
||||
<li><a href="/manul.php"><i class="fa fa-cloud"></i> Edit Artworks</a></li>
|
||||
<li><a href="{{ route('dashboard.artworks.index') }}"><i class="fa fa-cloud"></i> Edit Artworks</a></li>
|
||||
<li role="presentation" class="divider"></li>
|
||||
<li><a href="/statistics"><i class="fa fa-cog"></i> Statistics</a></li>
|
||||
<li><a href="/mybuddies.php"><i class="fa fa-cog"></i> My Followes</a></li>
|
||||
|
||||
153
resources/views/legacy/user.blade.php
Normal file
153
resources/views/legacy/user.blade.php
Normal file
@@ -0,0 +1,153 @@
|
||||
@extends('layouts.legacy')
|
||||
|
||||
@section('content')
|
||||
<div class="container-fluid legacy-page">
|
||||
<div class="effect2 page-header-wrap">
|
||||
<header class="page-heading">
|
||||
<h1 class="page-header">Edit profile</h1>
|
||||
<p>update your user account</p>
|
||||
</header>
|
||||
</div>
|
||||
|
||||
@if(session('status'))
|
||||
<div class="alert alert-success">{{ session('status') }}</div>
|
||||
@endif
|
||||
@if(session('error'))
|
||||
<div class="alert alert-danger">{{ session('error') }}</div>
|
||||
@endif
|
||||
|
||||
<form enctype="multipart/form-data" method="post" action="{{ route('legacy.user') }}" id="editUserProfileForm" role="form">
|
||||
@csrf
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label><i class="fa fa-envelope"></i> Email:</label>
|
||||
<input type="text" name="email" class="form-control" readonly value="{{ $user->email }}" />
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label><i class="fa fa-user"></i> Username:</label>
|
||||
<input type="text" name="uname" class="form-control" readonly value="{{ $user->uname ?? $user->name }}" />
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Real name:</label>
|
||||
<input type="text" name="real_name" class="form-control" value="{{ $user->real_name ?? '' }}" />
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label><i class="fa fa-link"></i> Home page:</label>
|
||||
<input type="text" name="web" class="form-control" value="{{ $user->web ?? '' }}" />
|
||||
</div>
|
||||
|
||||
<div class="form-inline">
|
||||
<label><i class="fa fa-birthday-cake"></i> Birthday</label><br>
|
||||
<input maxlength="2" name="date1" class="form-control" size="2" placeholder="Day" value="{{ $birthDay ?? '' }}"> :
|
||||
<select name="date2" class="form-control">
|
||||
@for($i=1;$i<=12;$i++)
|
||||
@php $mVal = str_pad($i, 2, '0', STR_PAD_LEFT); @endphp
|
||||
<option value="{{ $mVal }}" {{ (isset($birthMonth) && $birthMonth == $mVal) ? 'selected' : '' }}>{{ DateTime::createFromFormat('!m',$i)->format('F') }}</option>
|
||||
@endfor
|
||||
</select> :
|
||||
<input maxlength="4" class="form-control" name="date3" size="4" placeholder="year" value="{{ $birthYear ?? '' }}">
|
||||
</div>
|
||||
|
||||
<br>
|
||||
<div class="form-group well">
|
||||
<label>Gender:</label><br>
|
||||
<input name="gender" type="radio" value="M" {{ ($user->gender ?? '') == 'M' ? 'checked' : '' }}> Male<br>
|
||||
<input name="gender" type="radio" value="F" {{ ($user->gender ?? '') == 'F' ? 'checked' : '' }}> Female<br>
|
||||
<input name="gender" type="radio" value="X" {{ ($user->gender ?? '') == 'X' ? 'checked' : '' }}> N/A
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Country:</label>
|
||||
@if(isset($countries) && $countries->count())
|
||||
<select name="country_code" class="form-control">
|
||||
@foreach($countries as $c)
|
||||
@php
|
||||
$code = $c->country_code ?? ($c->code ?? null);
|
||||
$label = $c->country_name ?? ($c->name ?? $code);
|
||||
@endphp
|
||||
<option value="{{ $code }}" {{ ($user->country_code ?? '') == $code ? 'selected' : '' }}>{{ $label }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
@else
|
||||
<input type="text" name="country_code" class="form-control" value="{{ $user->country_code ?? '' }}">
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="form-group well">
|
||||
<input name="newsletter" type="checkbox" value="1" {{ ($user->mlist ?? 0) ? 'checked' : '' }}> Mailing list<br>
|
||||
<input name="friend_upload_notice" type="checkbox" value="1" {{ ($user->friend_upload_notice ?? 0) ? 'checked' : '' }}> Friends upload notice
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Signature</label>
|
||||
<textarea name="signature" class="form-control" style="width:100%; height:100px;">{{ $user->signature ?? '' }}</textarea>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Description</label>
|
||||
<textarea name="description" class="form-control" style="width:100%; height:100px;">{{ $user->description ?? '' }}</textarea>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="form-group well">
|
||||
<label>Avatar:</label><br>
|
||||
<input type="file" name="avatar" class="form-control">
|
||||
@if(!empty($user->icon))
|
||||
<div style="margin-top:10px"><img src="/avatar/{{ $user->id }}/{{ $user->icon }}" width="50"></div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="form-group well">
|
||||
<label>Emotion Icon:</label><br>
|
||||
<input type="file" name="emotion_icon" class="form-control">
|
||||
</div>
|
||||
|
||||
<div class="form-group well">
|
||||
<label>Personal picture:</label><br>
|
||||
<input type="file" name="personal_picture" class="form-control">
|
||||
@if(!empty($user->picture))
|
||||
<div style="margin-top:10px"><img src="/user-picture/{{ $user->picture }}" style="max-width:300px"></div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>About Me</label>
|
||||
<textarea name="about_me" class="summernote form-control" style="width:100%; height:100px;">{{ $user->about_me ?? '' }}</textarea>
|
||||
</div>
|
||||
|
||||
<input type="hidden" name="confirm" value="true">
|
||||
<input type="submit" class="btn btn-success" value="Update my profile">
|
||||
</form>
|
||||
|
||||
<hr>
|
||||
|
||||
<h3>Change password</h3>
|
||||
<form action="{{ route('legacy.user') }}" method="post">
|
||||
@csrf
|
||||
<div class="form-group">
|
||||
<label>Current password</label>
|
||||
<input type="password" name="oldpass" class="form-control">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>New password</label>
|
||||
<input type="password" name="newpass" class="form-control">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Retype new password</label>
|
||||
<input type="password" name="newpass2" class="form-control">
|
||||
</div>
|
||||
<input type="hidden" name="confirm" value="true_password">
|
||||
<input type="submit" class="btn btn-success" value="Change Password">
|
||||
</form>
|
||||
|
||||
</div>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user