Current state
This commit is contained in:
28
resources/views/legacy/_artwork_card.blade.php
Normal file
28
resources/views/legacy/_artwork_card.blade.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<div class="photo_frame" 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">
|
||||
|
||||
<div class="details">
|
||||
<div class="info" itemprop="author">
|
||||
<span class="fa fa-user"></span> {{ $art->uname ?? '' }}
|
||||
</div>
|
||||
|
||||
<div class="title" itemprop="name">
|
||||
{{ $art->name }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</a>
|
||||
|
||||
{{-- debug thumb links removed to avoid textual output beneath thumbnails --}}
|
||||
</div>
|
||||
118
resources/views/legacy/art.blade.php
Normal file
118
resources/views/legacy/art.blade.php
Normal file
@@ -0,0 +1,118 @@
|
||||
@extends('layouts.legacy')
|
||||
|
||||
@section('content')
|
||||
<div class="legacy-artwork">
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<div class="effect2" style="max-width:800px">
|
||||
<a class="artwork-zoom" href="{{ $thumb_file ?? '#' }}" title="{{ $artwork->name }}">
|
||||
<img src="{{ $thumb_file }}" alt="{{ $artwork->name ?? '' }}" class="img-thumbnail img-responsive">
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div style="clear:both;margin-top:10px;">
|
||||
<img src="/avatar/{{ $artwork->user_id ?? 0 }}/{{ urlencode($artwork->icon ?? '') }}" class="pull-left" style="padding-right:10px;max-height:50px;" alt="Avatar">
|
||||
<h1 class="page-header">{{ $artwork->name }}</h1>
|
||||
<p>By <i class="fa fa-user fa-fw"></i> <a href="/profile/{{ $artwork->user_id }}/{{ \Illuminate\Support\Str::slug($artwork->uname) }}" title="Profile of member {{ $artwork->uname }}">{{ $artwork->uname }}</a></p>
|
||||
<hr>
|
||||
</div>
|
||||
|
||||
@if(!empty($artwork->description))
|
||||
<div class="panel panel-skinbase">
|
||||
<div class="panel-body">{!! nl2br(e($artwork->description)) !!}</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
{{-- Comments --}}
|
||||
@if(!empty($comments) && $comments->count() > 0)
|
||||
<h3 class="comment-title"><i class="fa fa-comments fa-fw"></i> Comments:</h3>
|
||||
@foreach($comments as $comment)
|
||||
<div class="comment_box effect3">
|
||||
<div class="cb_image">
|
||||
<a href="/profile/{{ $comment->user_id }}/{{ urlencode($comment->uname) }}">
|
||||
<img src="/avatar/{{ $comment->user_id }}/{{ urlencode($comment->icon) }}" width="50" height="50" class="comment_avatar" alt="{{ $comment->uname }}">
|
||||
</a>
|
||||
</div>
|
||||
<div class="bubble_comment panel panel-skinbase">
|
||||
<div class="panel-heading">
|
||||
<div class="pull-right">{{ \Illuminate\Support\Str::limit($comment->date, 16) }}</div>
|
||||
<h5 class="panel-title">Comment by: <a href="/profile/{{ $comment->user_id }}/{{ urlencode($comment->uname) }}">{{ $comment->uname }}</a></h5>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
{!! nl2br(e($comment->description)) !!}
|
||||
</div>
|
||||
@if(!empty($comment->signature))
|
||||
<div class="panel-footer comment-footer">{!! nl2br(e($comment->signature)) !!}</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
@auth
|
||||
<div class="comment_box effect3">
|
||||
<div class="cb_image">
|
||||
<a href="/profile/{{ auth()->id() }}/{{ urlencode(auth()->user()->name) }}">
|
||||
<img src="/avatar/{{ auth()->id() }}/{{ urlencode(auth()->user()->avatar ?? '') }}" class="comment_avatar" width="50" height="50">
|
||||
</a>
|
||||
<br>
|
||||
<a href="/profile/{{ auth()->id() }}/{{ urlencode(auth()->user()->name) }}">{{ auth()->user()->name }}</a>
|
||||
</div>
|
||||
<form action="/art/{{ $artwork->id }}" method="post">
|
||||
@csrf
|
||||
<div class="bubble_comment panel panel-skinbase">
|
||||
<div class="panel-heading"><h4 class="panel-title">Write comment</h4></div>
|
||||
<div class="panel-body">
|
||||
<textarea name="comment_text" class="form-control" style="width:98%; height:120px;"></textarea><br>
|
||||
</div>
|
||||
<div class="panel-footer">
|
||||
<button type="submit" class="btn btn-success">Post comment</button>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" name="artwork_id" value="{{ $artwork->id }}">
|
||||
<input type="hidden" name="action" value="store_comment">
|
||||
</form>
|
||||
</div>
|
||||
@endauth
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<div class="panel panel-default effect3">
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<a class="btn btn-info" style="width:100%;margin-bottom:5px" href="/download/{{ $artwork->id }}" title="Download Full Size Artwork to your computer">
|
||||
<i class="fa fa-download fa-fw"></i> Download
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
@if(auth()->check())
|
||||
<span class="btn btn-warning addFavourites" style="width:100%" data-artwork_id="{{ $artwork->id }}"><i class="fa fa-heart fa-fw"></i> Add To Favourites</span>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
<h4 class="panel-title">Details</h4>
|
||||
<table class="table table-condensed">
|
||||
<tr><td>Category</td><td class="text-right">{{ $artwork->category_name ?? '' }}</td></tr>
|
||||
<tr><td>Uptime</td><td class="text-right">{{ \Illuminate\Support\Str::limit($artwork->datum ?? '', 10) }}</td></tr>
|
||||
<tr><td>Submitted</td><td class="text-right">{{ optional(\Carbon\Carbon::parse($artwork->datum))->format('d.m.Y') }}</td></tr>
|
||||
<tr><td>Resolution</td><td class="text-right">{{ ($artwork->width ?? '') . 'x' . ($artwork->height ?? '') }}</td></tr>
|
||||
</table>
|
||||
|
||||
<h4 class="panel-title">Statistics</h4>
|
||||
<table class="table table-condensed">
|
||||
<tr><td>Views</td><td class="text-right">{{ $artwork->views ?? 0 }}</td></tr>
|
||||
<tr><td>Downloads</td><td class="text-right">{{ $artwork->dls ?? 0 }} @if(!empty($num_downloads)) <small>({{ $num_downloads }} today)</small>@endif</td></tr>
|
||||
</table>
|
||||
|
||||
<h4 class="panel-title">Social</h4>
|
||||
<div class="fb-like" data-href="{{ url()->current() }}" data-send="true" data-width="450" data-show-faces="true"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
45
resources/views/legacy/browse.blade.php
Normal file
45
resources/views/legacy/browse.blade.php
Normal file
@@ -0,0 +1,45 @@
|
||||
@extends('layouts.legacy')
|
||||
|
||||
@php
|
||||
use Illuminate\Support\Str;
|
||||
@endphp
|
||||
|
||||
@section('content')
|
||||
<div class="container-fluid legacy-page">
|
||||
@php
|
||||
// legacy responsive ad block
|
||||
\App\Banner::ShowResponsiveAd();
|
||||
@endphp
|
||||
|
||||
<div class="effect2 page-header-wrap">
|
||||
<header class="page-heading">
|
||||
<h1 class="page-header">Browse Artworks</h1>
|
||||
<p>List of all uploaded Artworks - <strong>Skins</strong>, <strong>Photography</strong> and <strong>Wallpapers</strong>.</p>
|
||||
</header>
|
||||
</div>
|
||||
|
||||
@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
|
||||
|
||||
<div class="paginationMenu text-center">
|
||||
{{-- Use paginator's default view (cursor vs length-aware) to avoid missing $elements in bootstrap view --}}
|
||||
{{ $artworks->withQueryString()->links() }}
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@push('scripts')
|
||||
<script src="/js/legacy-gallery-init.js"></script>
|
||||
@endpush
|
||||
52
resources/views/legacy/categories.blade.php
Normal file
52
resources/views/legacy/categories.blade.php
Normal file
@@ -0,0 +1,52 @@
|
||||
@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">Browse Categories</h1>
|
||||
<p>Select a category to view its artworks.</p>
|
||||
</header>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
@forelse ($contentTypes as $ct)
|
||||
<div class="col-sm-12">
|
||||
<div class="panel panel-default effect2">
|
||||
<div class="panel-heading"><strong>{{ $ct->name }}</strong></div>
|
||||
<div class="panel-body">
|
||||
<p>{!! $ct->description ?? 'Browse artworks by content type.' !!}</p>
|
||||
|
||||
@forelse ($ct->roots as $cat)
|
||||
@php
|
||||
$name = $cat->category_name ?? '';
|
||||
$subs = $subgroups[$cat->category_id] ?? collect();
|
||||
@endphp
|
||||
<div class="legacy-root-category">
|
||||
<h4>{{ $name }}</h4>
|
||||
<ul class="browseList">
|
||||
@forelse ($subs as $sub)
|
||||
@php $picture = $sub->picture ?? 'cfolder15.gif'; @endphp
|
||||
<li style="width:19%">
|
||||
<img src="/gfx/icons/{{ $picture }}" width="15" height="15" border="0" alt="{{ $sub->category_name }}" />
|
||||
<a href="/{{ $name }}/{{ Str::slug($sub->category_name) }}/{{ $sub->category_id }}" title="{{ $sub->category_name }}">{{ $sub->category_name }}</a>
|
||||
</li>
|
||||
@empty
|
||||
<li class="text-muted">No subcategories</li>
|
||||
@endforelse
|
||||
</ul>
|
||||
</div>
|
||||
@empty
|
||||
<div class="alert alert-info">No categories for this content type.</div>
|
||||
@endforelse
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@empty
|
||||
<div class="col-xs-12">
|
||||
<div class="alert alert-info">No content types available.</div>
|
||||
</div>
|
||||
@endforelse
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
78
resources/views/legacy/category-slug.blade.php
Normal file
78
resources/views/legacy/category-slug.blade.php
Normal file
@@ -0,0 +1,78 @@
|
||||
@extends('layouts.legacy')
|
||||
|
||||
@php
|
||||
use App\Banner;
|
||||
@endphp
|
||||
|
||||
@section('content')
|
||||
<div class="container-fluid legacy-page category-wrapper">
|
||||
@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 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>
|
||||
|
||||
@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
|
||||
|
||||
<div class="paginationMenu text-center">
|
||||
{{ $artworks->withQueryString()->links('pagination::bootstrap-4') }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<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>
|
||||
@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>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="/js/legacy-gallery-init.js"></script>
|
||||
@endpush
|
||||
81
resources/views/legacy/category.blade.php
Normal file
81
resources/views/legacy/category.blade.php
Normal file
@@ -0,0 +1,81 @@
|
||||
@extends('layouts.legacy')
|
||||
|
||||
@php
|
||||
use Illuminate\Support\Str;
|
||||
use App\Banner;
|
||||
@endphp
|
||||
|
||||
@section('content')
|
||||
<div class="container-fluid legacy-page category-wrapper">
|
||||
@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>
|
||||
|
||||
@if (!empty($category->rootid) && $category->rootid > 0)
|
||||
<div id="location_bar">
|
||||
<a href="/{{ $category->category_name }}/{{ $category->category_id }}">{{ $category->category_name }}</a>
|
||||
@if (!empty($category->rootid))
|
||||
»
|
||||
<a href="/{{ $group }}/{{ Str::slug($category->category_name) }}/{{ $category->category_id }}">{{ $category->category_name }}</a>
|
||||
@endif
|
||||
:
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<h1 class="page-header">{{ $category->category_name }}</h1>
|
||||
<p style="clear:both">{!! $category->description ?? ($group . ' artworks on Skinbase.') !!}</p>
|
||||
</header>
|
||||
</div>
|
||||
|
||||
@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
|
||||
|
||||
<div class="paginationMenu text-center">
|
||||
{{ $artworks->withQueryString()->links('pagination::bootstrap-4') }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<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/3" title="Stock Photography"><i class="fa fa-photo fa-fw"></i> Photography</a></li>
|
||||
<li><a href="/Wallpapers/2" title="Desktop Wallpapers"><i class="fa fa-photo fa-fw"></i> Wallpapers</a></li>
|
||||
<li><a href="/Skins/1" title="Skins for Applications"><i class="fa fa-photo fa-fw"></i> Skins</a></li>
|
||||
<li><a href="/Other/4" title="Other Artworks"><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 $sub)
|
||||
@php $selected = $sub->category_id == $category->category_id ? 'selected_group' : ''; @endphp
|
||||
<li class="subgroup {{ $selected }}">
|
||||
<a href="/{{ $group }}/{{ Str::slug($sub->category_name) }}/{{ $sub->category_id }}">{{ $sub->category_name }}</a>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="/js/legacy-gallery-init.js"></script>
|
||||
@endpush
|
||||
33
resources/views/legacy/chat.blade.php
Normal file
33
resources/views/legacy/chat.blade.php
Normal file
@@ -0,0 +1,33 @@
|
||||
@extends('layouts.legacy')
|
||||
|
||||
@section('content')
|
||||
<div class="container-fluid legacy-page">
|
||||
<div class="page-heading">
|
||||
<h1 class="page-header">{{ $page_title }}</h1>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
||||
<div class="mb-3">{!! $adHtml !!}</div>
|
||||
|
||||
<div class="panel panel-skinbase effect2">
|
||||
<div class="panel-body">
|
||||
{!! $chatHtml !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<ul class="smileyList">
|
||||
@foreach ($smileys as $smiley)
|
||||
@php
|
||||
$codeJs = json_encode($smiley->code);
|
||||
$imgSrc = '/gfx/smiles/' . rawurlencode($smiley->picture ?? '');
|
||||
$alt = e($smiley->emotion ?? '');
|
||||
@endphp
|
||||
<li>
|
||||
<img style="cursor:pointer;" onclick="put_smiley_chat({{ $codeJs }}, 'chat_txt');" alt="{{ $alt }}" src="{{ $imgSrc }}">
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
@endsection
|
||||
55
resources/views/legacy/content-type.blade.php
Normal file
55
resources/views/legacy/content-type.blade.php
Normal file
@@ -0,0 +1,55 @@
|
||||
@extends('layouts.legacy')
|
||||
|
||||
@section('content')
|
||||
<div class="container-fluid legacy-page category-wrapper">
|
||||
@php
|
||||
if (class_exists('\App\Banner')) { \App\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>
|
||||
|
||||
<h1 class="page-header">{{ $contentType->name }}</h1>
|
||||
<p style="clear:both">{!! $page_meta_description ?? ($contentType->name . ' artworks on Skinbase.') !!}</p>
|
||||
</header>
|
||||
</div>
|
||||
|
||||
<div class="panel panel-default effect2">
|
||||
<div class="panel-body">
|
||||
<h4>Main Categories</h4>
|
||||
<ul class="subcategory-list">
|
||||
@foreach ($rootCategories as $cat)
|
||||
<li>
|
||||
<a href="{{ $cat->url }}">{{ $cat->name }}</a>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<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>
|
||||
@foreach (\App\Models\ContentType::orderBy('id')->get() as $ct)
|
||||
<li><a href="/{{ $ct->slug }}">{{ $ct->name }}</a></li>
|
||||
@endforeach
|
||||
</ul>
|
||||
|
||||
<h5 class="browse_categories">Browse Subcategories:</h5>
|
||||
<ul class="scrollContent" data-mcs-theme="dark">
|
||||
{{-- Intentionally empty on content-type landing pages --}}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script src="/js/legacy-gallery-init.js"></script>
|
||||
@endpush
|
||||
48
resources/views/legacy/daily-uploads.blade.php
Normal file
48
resources/views/legacy/daily-uploads.blade.php
Normal file
@@ -0,0 +1,48 @@
|
||||
@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">Daily Uploads</h1>
|
||||
<p>List of all latest uploaded Artworks - <strong>Skins</strong>, <strong>Photography</strong> and <strong>Wallpapers</strong> to Skinbase ordered by upload date.</p>
|
||||
</header>
|
||||
</div>
|
||||
|
||||
<div class="panel panel-default uploads-panel effect2">
|
||||
<div class="panel-body">
|
||||
<b>Choose date:</b>
|
||||
<ul id="recentTab">
|
||||
@foreach($dates as $i => $d)
|
||||
<li id="tab-{{ $i+1 }}" data-iso="{{ $d['iso'] }}">{{ $d['label'] }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
|
||||
<div id="myContent">
|
||||
@include('legacy.partials.daily-uploads-grid', ['arts' => $recent])
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@push('scripts')
|
||||
<script>
|
||||
(function(){
|
||||
function loadDate(iso, tabId){
|
||||
var el = document.getElementById('myContent');
|
||||
fetch('/daily-uploads?ajax=1&datum=' + encodeURIComponent(iso))
|
||||
.then(function(r){ return r.text(); })
|
||||
.then(function(html){ el.innerHTML = html; });
|
||||
}
|
||||
|
||||
document.getElementById('recentTab').addEventListener('click', function(e){
|
||||
var li = e.target.closest('li');
|
||||
if (!li) return;
|
||||
var iso = li.getAttribute('data-iso');
|
||||
loadDate(iso, li.id);
|
||||
});
|
||||
})();
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
@endsection
|
||||
49
resources/views/legacy/featured-artworks.blade.php
Normal file
49
resources/views/legacy/featured-artworks.blade.php
Normal file
@@ -0,0 +1,49 @@
|
||||
@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 ?? 'Featured Artworks' }}</h1>
|
||||
</header>
|
||||
|
||||
<div class="mb-3">
|
||||
<strong>Show:</strong>
|
||||
<ul id="recentTab" class="list-inline">
|
||||
@foreach($artworkTypes as $k => $label)
|
||||
<li class="list-inline-item">
|
||||
<a href="/featured-artworks?type={{ (int)$k }}" @if((int)$k === (int)$type) class="active" @endif>{{ $label }}</a>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
<br style="clear:both">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if($artworks)
|
||||
<div class="container_photo gallery_box">
|
||||
@foreach($artworks as $art)
|
||||
@php
|
||||
$card = (object) [
|
||||
'url' => url('/art/' . ($art->id ?? '') . '/' . \Illuminate\Support\Str::slug($art->name ?? '')),
|
||||
'thumb' => $art->thumb_url ?? '/gfx/sb_join.jpg',
|
||||
'thumb_srcset' => $art->thumb_srcset ?? null,
|
||||
'name' => $art->name ?? '',
|
||||
'uname' => $art->uname ?? 'Unknown',
|
||||
'gid_num' => $art->gid_num ?? 0,
|
||||
'category_name' => $art->category_name ?? '',
|
||||
];
|
||||
@endphp
|
||||
@include('legacy._artwork_card', ['art' => $card])
|
||||
@endforeach
|
||||
</div>
|
||||
@else
|
||||
<p class="text-muted">No artworks found.</p>
|
||||
@endif
|
||||
|
||||
|
||||
<div class="paginationMenu text-center">
|
||||
@if($artworks){{ $artworks->withQueryString()->links('pagination::bootstrap-4') }}@endif
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
51
resources/views/legacy/forum/index.blade.php
Normal file
51
resources/views/legacy/forum/index.blade.php
Normal file
@@ -0,0 +1,51 @@
|
||||
@extends('layouts.legacy')
|
||||
|
||||
@php
|
||||
use Carbon\Carbon;
|
||||
@endphp
|
||||
|
||||
@section('content')
|
||||
<div class="container-fluid legacy-page">
|
||||
<div class="effect2 page-header-wrap">
|
||||
<header class="page-heading">
|
||||
<h1 class="page-header">Forum</h1>
|
||||
<p>Latest threads</p>
|
||||
</header>
|
||||
</div>
|
||||
|
||||
<div class="panel panel-default effect2">
|
||||
<div class="panel-heading"><strong>Forum Threads</strong></div>
|
||||
<div class="panel-body">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Thread</th>
|
||||
<th class="text-center">Posts</th>
|
||||
<th class="text-center">Topics</th>
|
||||
<th class="text-right">Last Update</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@forelse ($topics as $topic)
|
||||
<tr>
|
||||
<td>
|
||||
<h4 style="margin:0;">
|
||||
<a href="/forum/{{ $topic->topic_id }}/{{ Str::slug($topic->topic ?? '') }}">{{ $topic->topic }}</a>
|
||||
</h4>
|
||||
<div class="text-muted">{!! $topic->discuss !!}</div>
|
||||
</td>
|
||||
<td class="text-center">{{ $topic->num_posts ?? 0 }}</td>
|
||||
<td class="text-center">{{ $topic->num_subtopics ?? 0 }}</td>
|
||||
<td class="text-right">{{ $topic->last_update ? Carbon::parse($topic->last_update)->format('H:i @ d.m') : '' }}</td>
|
||||
</tr>
|
||||
@empty
|
||||
<tr><td colspan="4">No threads available.</td></tr>
|
||||
@endforelse
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
51
resources/views/legacy/forum/posts.blade.php
Normal file
51
resources/views/legacy/forum/posts.blade.php
Normal file
@@ -0,0 +1,51 @@
|
||||
@extends('layouts.legacy')
|
||||
|
||||
@php
|
||||
use Carbon\Carbon;
|
||||
@endphp
|
||||
|
||||
@section('content')
|
||||
<div class="container-fluid legacy-page">
|
||||
<div class="effect2 page-header-wrap">
|
||||
<header class="page-heading">
|
||||
<div class="navigation"><a class="badge" href="/forum">Forum</a></div>
|
||||
<h1 class="page-header">{{ $topic->topic }}</h1>
|
||||
@if (!empty($topic->discuss))
|
||||
<p>{!! $topic->discuss !!}</p>
|
||||
@endif
|
||||
</header>
|
||||
</div>
|
||||
|
||||
<div class="panel panel-default effect2">
|
||||
<div class="panel-heading"><strong>Posts</strong></div>
|
||||
<div class="panel-body">
|
||||
@forelse ($posts as $post)
|
||||
<div class="panel panel-default effect2" style="overflow:hidden;">
|
||||
<div class="panel-heading clearfix">
|
||||
<div class="pull-right text-muted">{{ $post->post_date ? Carbon::parse($post->post_date)->format('d.m.Y H:i') : '' }}</div>
|
||||
<strong>{{ $post->uname ?? 'Anonymous' }}</strong>
|
||||
</div>
|
||||
<div class="panel-body" style="display:flex; gap:12px;">
|
||||
<div style="min-width:52px;">
|
||||
@if (!empty($post->user_id) && !empty($post->icon))
|
||||
<img src="/avatar/{{ $post->user_id }}/{{ $post->icon }}" alt="{{ $post->uname }}" width="50" height="50" class="img-thumbnail">
|
||||
@else
|
||||
<div class="img-thumbnail" style="width:50px;height:50px;"></div>
|
||||
@endif
|
||||
</div>
|
||||
<div style="flex:1;">
|
||||
{!! $post->message !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@empty
|
||||
<p>No posts yet.</p>
|
||||
@endforelse
|
||||
|
||||
<div class="paginationMenu text-center">
|
||||
{{ $posts->withQueryString()->links('pagination::bootstrap-4') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
56
resources/views/legacy/forum/topic.blade.php
Normal file
56
resources/views/legacy/forum/topic.blade.php
Normal file
@@ -0,0 +1,56 @@
|
||||
@extends('layouts.legacy')
|
||||
|
||||
@php
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Support\Str;
|
||||
@endphp
|
||||
|
||||
@section('content')
|
||||
<div class="container-fluid legacy-page">
|
||||
<div class="effect2 page-header-wrap">
|
||||
<header class="page-heading">
|
||||
<div class="navigation"><a class="badge" href="/forum">Forum</a></div>
|
||||
<h1 class="page-header">{{ $topic->topic }}</h1>
|
||||
@if (!empty($topic->discuss))
|
||||
<p>{!! $topic->discuss !!}</p>
|
||||
@endif
|
||||
</header>
|
||||
</div>
|
||||
|
||||
<div class="panel panel-default effect2">
|
||||
<div class="panel-heading"><strong>Topics</strong></div>
|
||||
<div class="panel-body">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>Topic</th>
|
||||
<th class="text-center">Opened By</th>
|
||||
<th class="text-right">Posted</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@forelse ($subtopics as $sub)
|
||||
<tr>
|
||||
<td>{{ $sub->topic_id }}</td>
|
||||
<td>
|
||||
<a href="/forum/{{ $sub->topic_id }}/{{ Str::slug($sub->topic ?? '') }}">{{ $sub->topic }}</a>
|
||||
<div class="text-muted small">{!! Str::limit(strip_tags($sub->discuss ?? ''), 160) !!}</div>
|
||||
</td>
|
||||
<td class="text-center">{{ $sub->uname ?? 'Unknown' }}</td>
|
||||
<td class="text-right">{{ $sub->last_update ? Carbon::parse($sub->last_update)->format('d.m.Y H:i') : '' }}</td>
|
||||
</tr>
|
||||
@empty
|
||||
<tr><td colspan="4">No topics yet.</td></tr>
|
||||
@endforelse
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="paginationMenu text-center">
|
||||
{{ $subtopics->withQueryString()->links('pagination::bootstrap-4') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
18
resources/views/legacy/home.blade.php
Normal file
18
resources/views/legacy/home.blade.php
Normal file
@@ -0,0 +1,18 @@
|
||||
@extends('layouts.legacy')
|
||||
|
||||
@php
|
||||
use Illuminate\Support\Str;
|
||||
use Carbon\Carbon;
|
||||
use App\Services\LegacyService;
|
||||
@endphp
|
||||
|
||||
@section('content')
|
||||
<div class="container-fluid legacy-page">
|
||||
@include('legacy.home.featured')
|
||||
|
||||
@include('legacy.home.uploads')
|
||||
|
||||
@include('legacy.home.news')
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
46
resources/views/legacy/home/featured.blade.php
Normal file
46
resources/views/legacy/home/featured.blade.php
Normal file
@@ -0,0 +1,46 @@
|
||||
{{-- Featured row --}}
|
||||
<div class="row featured-row">
|
||||
<div class="col-md-4 col-sm-12">
|
||||
<div class="featured-card effect2">
|
||||
<div class="card-header">Featured Artwork</div>
|
||||
<div class="card-body text-center">
|
||||
<a href="/art/{{ $featured->id }}/{{ Str::slug($featured->name ?? 'artwork') }}" class="thumb-link">
|
||||
@php
|
||||
$fthumb = $featured->thumb_url ?? $featured->thumb;
|
||||
@endphp
|
||||
<img src="{{ $fthumb }}" class="img-responsive featured-img" alt="{{ $featured->name }}">
|
||||
</a>
|
||||
<div class="featured-title">{{ $featured->name }}</div>
|
||||
<div class="featured-author">by {{ $featured->uname }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4 col-sm-12">
|
||||
<div class="featured-card effect2">
|
||||
<div class="card-header">Featured by Members Vote</div>
|
||||
<div class="card-body text-center">
|
||||
<a href="/art/{{ $memberFeatured->id }}/{{ Str::slug($memberFeatured->name ?? 'artwork') }}" class="thumb-link">
|
||||
@php
|
||||
$mthumb = $memberFeatured->thumb_url ?? $memberFeatured->thumb;
|
||||
@endphp
|
||||
<img src="{{ $mthumb }}" class="img-responsive featured-img" alt="{{ $memberFeatured->name }}">
|
||||
</a>
|
||||
<div class="featured-title">{{ $memberFeatured->name }}</div>
|
||||
<div class="featured-author">by {{ $memberFeatured->uname }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4 col-sm-12">
|
||||
<div class="featured-card join-card effect2">
|
||||
<div class="card-header">Join to Skinbase World</div>
|
||||
<div class="card-body text-center">
|
||||
<a href="{{ route('register') }}" title="Join Skinbase">
|
||||
<img src="/gfx/sb_join.jpg" alt="Join SkinBase Community" class="img-responsive join-img center-block">
|
||||
</a>
|
||||
<div class="join-text">Join to Skinbase and be part of our great community! We have big collection of high quality Photography, Wallpapers and Skins for popular applications.</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
80
resources/views/legacy/home/news.blade.php
Normal file
80
resources/views/legacy/home/news.blade.php
Normal file
@@ -0,0 +1,80 @@
|
||||
{{-- News and forum columns --}}
|
||||
<div class="row news-row">
|
||||
<div class="col-sm-6">
|
||||
@forelse ($forumNews as $item)
|
||||
<div class="panel panel-skinbase effect2">
|
||||
<div class="panel-heading"><h4 class="panel-title">{{ $item->topic }}</h4></div>
|
||||
<div class="panel-body">
|
||||
<div class="text-muted news-head">
|
||||
Written by {{ $item->uname }} on {{ Carbon::parse($item->post_date)->format('j F Y \@ H:i') }}
|
||||
</div>
|
||||
{!! Str::limit(strip_tags($item->preview ?? ''), 240, '...') !!}
|
||||
<br>
|
||||
<a class="clearfix btn btn-xs btn-info" href="/forum/{{ $item->topic_id }}/{{ Str::slug($item->topic ?? '') }}" title="{{ strip_tags($item->topic) }}">More</a>
|
||||
</div>
|
||||
</div>
|
||||
@empty
|
||||
<p>No forum news available.</p>
|
||||
@endforelse
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
@forelse ($ourNews as $news)
|
||||
<div class="panel panel-skinbase effect2">
|
||||
<div class="panel-heading"><h3 class="panel-title">{{ $news->headline }}</h3></div>
|
||||
<div class="panel-body">
|
||||
<div class="text-muted news-head">
|
||||
<i class="fa fa-user"></i> {{ $news->uname }}
|
||||
<i class="fa fa-calendar"></i> {{ Carbon::parse($news->create_date)->format('j F Y \@ H:i') }}
|
||||
<i class="fa fa-info"></i> {{ $news->category_name }}
|
||||
<i class="fa fa-info"></i> {{ $news->views }} reads
|
||||
<i class="fa fa-comment"></i> {{ $news->num_comments }} comments
|
||||
</div>
|
||||
|
||||
@if (!empty($news->picture))
|
||||
@php $nid = floor($news->news_id / 100); @endphp
|
||||
<div class="col-md-4">
|
||||
<img src="/archive/news/{{ $nid }}/{{ $news->picture }}" class="img-responsive" alt="{{ $news->headline }}">
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
{!! $news->preview !!}
|
||||
</div>
|
||||
@else
|
||||
{!! $news->preview !!}
|
||||
@endif
|
||||
|
||||
<a class="clearfix btn btn-xs btn-info text-white" href="/news/{{ $news->news_id }}/{{ Str::slug($news->headline ?? '') }}">More</a>
|
||||
</div>
|
||||
</div>
|
||||
@empty
|
||||
<p>No news available.</p>
|
||||
@endforelse
|
||||
|
||||
{{-- Site info --}}
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading"><strong>Info</strong></div>
|
||||
<div class="panel-body">
|
||||
<h4>Photography, Wallpapers and Skins... Thats Skinbase</h4>
|
||||
<p>Skinbase is the site dedicated to <strong>Photography</strong>, <strong>Wallpapers</strong> and <strong>Skins</strong> for <u>popular applications</u> for every major operating system like Windows, Mac OS X, Linux, iOS and Android</p>
|
||||
<em>Our members every day uploads new artworks to our site, so don't hesitate and check Skinbase frequently for updates. We also have forum where you can discuss with other members with anything.</em>
|
||||
<p>On the site toolbar you can click on Categories and start browsing our atwork (<i>photo</i>, <i>desktop themes</i>, <i>pictures</i>) and of course you can <u>download</u> them for free!</p>
|
||||
<p>We are also active on all major <b>social</b> sites, find us there too</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{-- Latest forum activity --}}
|
||||
<div class="panel panel-default activity-panel">
|
||||
<div class="panel-heading"><strong>Latest Forum Activity</strong></div>
|
||||
<div class="panel-body">
|
||||
<div class="list-group effect2">
|
||||
@forelse ($latestForumActivity as $topic)
|
||||
<a class="list-group-item" href="/forum/{{ $topic->topic_id }}/{{ Str::slug($topic->topic ?? '') }}">
|
||||
{{ $topic->topic }} <span class="badge badge-info">{{ $topic->numPosts }}</span>
|
||||
</a>
|
||||
@empty
|
||||
<p>No recent forum activity.</p>
|
||||
@endforelse
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
12
resources/views/legacy/home/uploads.blade.php
Normal file
12
resources/views/legacy/home/uploads.blade.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<div class="gallery-grid">
|
||||
@foreach ($latestUploads as $upload)
|
||||
<div class="thumb-card effect2">
|
||||
@php
|
||||
$t = \App\Services\ThumbnailPresenter::present($upload, 'md');
|
||||
@endphp
|
||||
<a href="/art/{{ $t['id'] }}/{{ Str::slug($t['title'] ?: 'artwork') }}" title="{{ $t['title'] }}" class="thumb-link">
|
||||
<img src="{{ $t['url'] }}" @if(!empty($t['srcset'])) srcset="{{ $t['srcset'] }}" @endif alt="{{ $t['title'] }}" class="img-responsive">
|
||||
</a>
|
||||
</div>
|
||||
@endforeach
|
||||
</div> <!-- end .gallery-grid -->
|
||||
97
resources/views/legacy/interview.blade.php
Normal file
97
resources/views/legacy/interview.blade.php
Normal file
@@ -0,0 +1,97 @@
|
||||
@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">Interview</h1>
|
||||
<p>{{ $ar->headline ?? '' }}</p>
|
||||
<div style="location_bar">
|
||||
<a href="/interviews" class="btn btn-xs btn-default" title="List of all Interviews"><i class="fa fa-list fa-fw"></i> Interviews List</a>
|
||||
</div>
|
||||
</header>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-9">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
<h1 class="skinTitle">{{ $ar->headline }}</h1>
|
||||
<div>{!! $ar->tekst !!}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2 class="skinTitle">User Comments</h2>
|
||||
|
||||
@foreach($comments as $comment)
|
||||
@php
|
||||
$local_date = date('j.F.y @ H:i:s', strtotime($comment->datum));
|
||||
$user_id = $comment->user_id ?? null;
|
||||
@endphp
|
||||
<table width="100%" cellspacing="1" cellpadding="1" class="MojText" border="0" style="background:#eee;">
|
||||
<tr>
|
||||
<td rowspan="3" valign="top" width="100" style="background:#fff">
|
||||
@if(!empty($comment->user_id) && !empty($comment->icon))
|
||||
<div align="center"><a href="/profile/{{ $comment->user_id }}"><img src="/avatar/{{ $comment->user_id }}/{{ \Illuminate\Support\Str::slug($comment->author ?? '') }}" width="50" height="50" border="0" alt="" /></a></div>
|
||||
@endif
|
||||
<br/>Posted by: <b><a href="/profile/{{ $comment->user_id ?? '' }}">{{ $comment->author }}</a></b><br/>
|
||||
Posts: {{ $postCounts[$comment->author] ?? 0 }}
|
||||
<div align="center"><img src="/gfx/member_stars/{{ $comment->user_type ?? 0 }}.jpg" title="" /></div>
|
||||
</td>
|
||||
<td valign="top" height="10" style="background:#eee"> {{ $local_date }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="50" style="background:#fff;padding-left:13px; padding-right:3px;">{!! $comment->tekst !!}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="bottom" align="center" height="10" style="background:#fff;">
|
||||
@if(!empty($comment->signature))
|
||||
{!! nl2br(e($comment->signature)) !!}
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
@endforeach
|
||||
|
||||
@php
|
||||
$status = $_SESSION['web_login']['status'] ?? false;
|
||||
$user_type = $_SESSION['web_login']['user_type'] ?? 0;
|
||||
@endphp
|
||||
|
||||
@if(!$status || $user_type < 2)
|
||||
<h1>Please login first</h1>
|
||||
@else
|
||||
<h2 class="skinTitle">Write comment</h2>
|
||||
<form action="{{ url()->current() }}" method="post">
|
||||
@csrf
|
||||
<textarea name="comment" style="width:98%; height:215px;" class="textarea"></textarea><br />
|
||||
<input type="hidden" name="interview_id" value="{{ $ar->id }}">
|
||||
<input type="hidden" name="action" value="store">
|
||||
<button type="submit" class="btn btn-success">Submit</button>
|
||||
</form>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
<div style="margin-left:4px; float:right;width:300px;border-left :dotted 1px #eee; padding-left:10px;">
|
||||
<br/><br/>
|
||||
@php \App\Banner::ShowBanner300x250(); @endphp
|
||||
<br/><br/>
|
||||
|
||||
@if(!empty($ar->username))
|
||||
@php $username = DB::connection('legacy')->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
|
||||
<a href="/art/{{ $artwork->id }}/{{ \Illuminate\Support\Str::slug($artwork->name ?? '') }}">
|
||||
<img src="/files/archive/shots/{{ $nid }}/{{ $artwork->picture }}" alt="" style="max-width:100%;" />
|
||||
</a>
|
||||
<br/><br/>
|
||||
@endforeach
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
41
resources/views/legacy/interviews.blade.php
Normal file
41
resources/views/legacy/interviews.blade.php
Normal file
@@ -0,0 +1,41 @@
|
||||
@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 ?? 'Interviews' }}</h1>
|
||||
<p>List of interviews and their authors.</p>
|
||||
</header>
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
@php \App\Banner::ShowResponsiveAd(); @endphp
|
||||
</div>
|
||||
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
<table class="table table-bordered table-striped">
|
||||
<tbody>
|
||||
@foreach($interviews as $interview)
|
||||
<tr>
|
||||
<td style="width:60px;">
|
||||
@if(!empty($interview->icon))
|
||||
<a href="/profile/{{ $interview->user_id }}/{{ \Illuminate\Support\Str::slug($interview->uname ?? '') }}">
|
||||
<img src="/avatar/{{ $interview->user_id }}/{{ $interview->icon }}" width="50" height="50" alt="">
|
||||
</a>
|
||||
@else
|
||||
<img src="/gfx/avatar.jpg" alt="">
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
<a href="/interview/{{ $interview->id }}/{{ \Illuminate\Support\Str::slug($interview->headline ?? '') }}">{{ $interview->headline }}</a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
41
resources/views/legacy/latest-artworks.blade.php
Normal file
41
resources/views/legacy/latest-artworks.blade.php
Normal file
@@ -0,0 +1,41 @@
|
||||
@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">Latest Artworks</h1>
|
||||
<p>List of recently uploaded Artworks - <strong>Skins</strong>, <strong>Photography</strong> and <strong>Wallpapers</strong>.</p>
|
||||
</header>
|
||||
</div>
|
||||
|
||||
<div class="panel panel-default uploads-panel effect2">
|
||||
<div class="panel-body">
|
||||
<div class="gallery-grid">
|
||||
@if($artworks)
|
||||
@foreach($artworks as $art)
|
||||
<div class="thumb-card effect2">
|
||||
@if (!empty($art->category_name))
|
||||
<div class="ribbon gid_{{ $art->gid_num ?? 0 }}" title="{{ $art->category_name }}"><span>{{ $art->category_name }}</span></div>
|
||||
@endif
|
||||
<a href="/art/{{ $art->id }}/{{ Str::slug($art->name ?? '') }}" class="thumb-link" title="{{ $art->name }}">
|
||||
<img src="{{ $art->thumb_url ?? '/gfx/sb_join.jpg' }}" @if(!empty($art->thumb_srcset)) srcset="{{ $art->thumb_srcset }}" @endif alt="{{ $art->name }}" class="img-responsive" loading="lazy" decoding="async">
|
||||
</a>
|
||||
<div class="thumb-meta">
|
||||
<div class="thumb-title">{{ $art->name }}</div>
|
||||
<div class="thumb-author text-muted">by {{ $art->uname ?? 'Unknown' }}</div>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
@else
|
||||
<p class="text-muted">No artworks found.</p>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="paginationMenu text-center">
|
||||
@if($artworks){{ $artworks->withQueryString()->links('pagination::bootstrap-4') }}@endif
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
55
resources/views/legacy/latest-comments.blade.php
Normal file
55
resources/views/legacy/latest-comments.blade.php
Normal file
@@ -0,0 +1,55 @@
|
||||
@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 }}</h1>
|
||||
<p>List of artwork with latest comments received.</p>
|
||||
</header>
|
||||
</div>
|
||||
|
||||
<div class="masonry">
|
||||
@foreach ($comments as $comment)
|
||||
<div class="masonry_item col-sm-6 col-md-4">
|
||||
<div class="comment_box effect3">
|
||||
<div class="cb_image">
|
||||
<a href="/profile/{{ $comment->commenter_id }}/{{ rawurlencode($comment->uname) }}">
|
||||
<img src="/avatar/{{ (int)$comment->commenter_id }}/{{ rawurlencode($comment->uname) }}" width="50" height="50" class="comment_avatar" alt="{{ $comment->uname }}">
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="bubble_comment panel panel-skinbase">
|
||||
<div class="panel-heading">
|
||||
<div class="pull-right">{{
|
||||
\Carbon\Carbon::parse($comment->datetime)->diffForHumans() }}
|
||||
</div>
|
||||
<h5 class="panel-title">Comment by: <a href="/profile/{{ $comment->commenter_id }}/{{ rawurlencode($comment->uname) }}">{{ $comment->uname }}</a></h5>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="comment_box_image">
|
||||
<a href="/art/{{ $comment->id }}/{{ $comment->artwork_slug }}">
|
||||
<img src="{{ $comment->thumb }}" alt="{{ $comment->name }}" class="img-thumbnail img-responsive">
|
||||
</a>
|
||||
</div>
|
||||
<div class="comment_text mt-2">
|
||||
{!! nl2br(e($comment->comment_description)) !!}
|
||||
</div>
|
||||
|
||||
@if (!empty($comment->signature))
|
||||
<div class="panel-footer comment-footer mt-2">
|
||||
{!! nl2br(e($comment->signature)) !!}
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
<div class="paginationMenu text-center">
|
||||
{{ $comments->links('pagination::bootstrap-4') }}
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
57
resources/views/legacy/monthly-commentators.blade.php
Normal file
57
resources/views/legacy/monthly-commentators.blade.php
Normal file
@@ -0,0 +1,57 @@
|
||||
@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 }}</h1>
|
||||
<p>List of users who post the most comments in the current month.</p>
|
||||
</header>
|
||||
</div>
|
||||
|
||||
<div class="container-main">
|
||||
<div class="panel panel-default effect2">
|
||||
<div class="panel-body">
|
||||
<table class="table table-bordered table-striped table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Thumb</th>
|
||||
<th>Name</th>
|
||||
<th>Level</th>
|
||||
<th>Country</th>
|
||||
<th>Comments</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($rows as $row)
|
||||
<tr>
|
||||
<td width="50" class="text-center">
|
||||
<a href="/profile/{{ (int)$row->user_id }}/{{ rawurlencode($row->uname) }}">
|
||||
<img src="/avatar/{{ (int)$row->user_id }}/{{ rawurlencode($row->uname) }}" width="30" alt="{{ $row->uname }}">
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="/profile/{{ (int)$row->user_id }}/{{ rawurlencode($row->uname) }}">{{ $row->uname }}</a>
|
||||
</td>
|
||||
<td width="100" class="text-center">
|
||||
<img src="/gfx/member_stars/{{ (int)$row->user_type }}.gif" alt="level">
|
||||
</td>
|
||||
<td width="100" class="text-center">
|
||||
@if (!empty($row->country_flag))
|
||||
<img width="20" title="{{ $row->country_name }}" src="/gfx/flags/{{ rawurlencode($row->country_flag) }}" alt="{{ $row->country_name }}">
|
||||
@endif
|
||||
</td>
|
||||
<td width="100" class="text-center">{{ (int)$row->num_comments }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="paginationMenu text-center">
|
||||
{{ $rows->withQueryString()->links('pagination::bootstrap-4') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
77
resources/views/legacy/news.blade.php
Normal file
77
resources/views/legacy/news.blade.php
Normal file
@@ -0,0 +1,77 @@
|
||||
@extends('layouts.legacy')
|
||||
|
||||
@section('content')
|
||||
<div class="container-fluid legacy-page">
|
||||
<div class="page-heading">
|
||||
<h1 class="page-header">{{ $news->headline ?? 'News' }}</h1>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
||||
<div class="panel panel-info">
|
||||
<div class="panel-heading">
|
||||
<i class="fa fa-user"></i>
|
||||
<a href="/profile/{{ $news->user_id ?? '' }}/{{ Str::slug($news->uname ?? '') }}">{{ $news->uname ?? 'Unknown' }}</a>
|
||||
<i class="fa fa-calendar"></i>
|
||||
{{ date('j.F.y @ H:i:s', strtotime($news->create_date ?? now())) }}
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<h1 class="panel-title" style="font-size:26px;color:#000;">{!! nl2br(e($news->headline ?? '')) !!}</h1>
|
||||
<br>
|
||||
<p>{!! html_entity_decode(stripslashes($news->content ?? '')) !!}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3 class="lead">User Comments:</h3>
|
||||
|
||||
@foreach($comments as $ar)
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<i class="fa fa-user"></i>
|
||||
<a href="/profile/{{ $ar->user_id ?? '' }}/{{ Str::slug($ar->uname ?? '') }}">{{ $ar->uname ?? 'Unknown' }}</a>
|
||||
<i class="fa fa-calendar"></i>
|
||||
{{ date('j.F.y @ H:i:s', strtotime($ar->posted ?? now())) }}
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
@if(!empty($ar->icon))
|
||||
<div style="float:right;padding-left:20px;">
|
||||
<a href="/profile/{{ $ar->user_id ?? '' }}/{{ Str::slug($ar->uname ?? '') }}">
|
||||
<img src="/avatar/{{ $ar->user_id ?? '' }}/{{ $ar->icon ?? '' }}" width="50" height="50" alt="">
|
||||
</a>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div>{!! nl2br(e($ar->message ?? '')) !!}</div>
|
||||
|
||||
@if(!empty($ar->signature))
|
||||
<div class="label label-info">{!! nl2br(e($ar->signature)) !!}</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
|
||||
{{-- Comment form (legacy) --}}
|
||||
@php
|
||||
$status = $_SESSION['web_login']['status'] ?? false;
|
||||
$user_type = $_SESSION['web_login']['user_type'] ?? 0;
|
||||
@endphp
|
||||
|
||||
@if(!$status && $user_type < 2)
|
||||
<div class="alert alert-warning"><i class="fa fa-warning"></i> You have to login to write comment</div>
|
||||
@else
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading"><i class="fa fa-comment"></i> Write comment</div>
|
||||
<div class="panel-body">
|
||||
<form action="/news/{{ $news->news_id ?? '' }}/{{ Str::slug($news->headline ?? '') }}" method="post" class="form">
|
||||
@csrf
|
||||
<textarea name="comment" style="width:100%; height:215px;" class="tinymce"></textarea><br>
|
||||
<input type="hidden" name="news_id" value="{{ $news->news_id ?? '' }}">
|
||||
<input type="hidden" name="confirm" value="true">
|
||||
<button type="submit" class="btn btn-success">Post Comment</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
</div>
|
||||
@endsection
|
||||
14
resources/views/legacy/partials/daily-uploads-grid.blade.php
Normal file
14
resources/views/legacy/partials/daily-uploads-grid.blade.php
Normal file
@@ -0,0 +1,14 @@
|
||||
@if($arts && count($arts))
|
||||
<div class="container_photo gallery_box">
|
||||
@foreach($arts as $art)
|
||||
<div class="photo_frame">
|
||||
<a href="/art/{{ $art->id }}/{{ \Illuminate\Support\Str::slug($art->name ?? '') }}">
|
||||
<img src="{{ $art->thumb }}" srcset="{{ $art->thumb_srcset }}" loading="lazy" decoding="async" alt="{{ $art->name }}" class="img-responsive">
|
||||
</a>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
<br style="clear:both"><br>
|
||||
@else
|
||||
<p class="text-muted">No uploads for this date.</p>
|
||||
@endif
|
||||
12
resources/views/legacy/placeholder.blade.php
Normal file
12
resources/views/legacy/placeholder.blade.php
Normal file
@@ -0,0 +1,12 @@
|
||||
@extends('layouts.legacy')
|
||||
|
||||
@section('content')
|
||||
<div class="container" style="padding-top:20px;">
|
||||
<div class="panel panel-default effect2">
|
||||
<div class="panel-heading"><strong>{{ $title ?? 'Legacy Page' }}</strong></div>
|
||||
<div class="panel-body">
|
||||
<p>This legacy page is not yet migrated. Navigation works; content will be implemented soon.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
45
resources/views/legacy/profile.blade.php
Normal file
45
resources/views/legacy/profile.blade.php
Normal file
@@ -0,0 +1,45 @@
|
||||
@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">Profile: {{ $user->uname }}</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>Newest Artworks</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 }}/{{ rawurlencode($user->icon ?? '') }}" class="img-responsive" style="max-width:120px;" alt="{{ $user->uname }}">
|
||||
<h3>{{ $user->uname }}</h3>
|
||||
<p>{{ $user->about_me ?? '' }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
34
resources/views/legacy/today-in-history.blade.php
Normal file
34
resources/views/legacy/today-in-history.blade.php
Normal file
@@ -0,0 +1,34 @@
|
||||
@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 ?? 'Today in History' }}</h1>
|
||||
<p>List of featured Artworks on this day in history of Skinbase.</p>
|
||||
</header>
|
||||
</div>
|
||||
|
||||
<div class="panel panel-default uploads-panel effect2">
|
||||
<div class="panel-body">
|
||||
<div class="container_photo gallery_box">
|
||||
@if($artworks && $artworks->count())
|
||||
@foreach($artworks as $ar)
|
||||
<div class="photo_frame">
|
||||
<a href="/art/{{ $ar->id }}/{{ \Illuminate\Support\Str::slug($ar->name ?? '') }}">
|
||||
<img src="{{ $ar->thumb_url ?? '/gfx/sb_join.jpg' }}" @if(!empty($ar->thumb_srcset)) srcset="{{ $ar->thumb_srcset }}" @endif loading="lazy" decoding="async" alt="{{ $ar->name }}">
|
||||
</a>
|
||||
</div>
|
||||
@endforeach
|
||||
@else
|
||||
<p class="text-muted">No featured artworks found for today in history.</p>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="paginationMenu text-center">
|
||||
@if($artworks){{ $artworks->withQueryString()->links('pagination::bootstrap-4') }}@endif
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
182
resources/views/legacy/toolbar.blade.php
Normal file
182
resources/views/legacy/toolbar.blade.php
Normal file
@@ -0,0 +1,182 @@
|
||||
<nav class="navbar yamm navbar-skinbase navbar-fixed-top" role="navigation">
|
||||
<div class="container-fluid">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#mainToolbarNavCollapse">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a href="/" class="navbar-brand sb_toolbarLogo" title="SkinBase">SkinBase</a>
|
||||
</div>
|
||||
|
||||
<div class="collapse navbar-collapse" id="mainToolbarNavCollapse">
|
||||
<form class="hidden-xs navbar-form navbar-left" action="/search" method="get" id="search_box">
|
||||
<input type="text" name="q" value="{{ request('q') }}">
|
||||
<input type="hidden" name="group" value="all">
|
||||
<button type="submit"><i class="fa fa-search fa-fw"></i></button>
|
||||
</form>
|
||||
|
||||
<ul class="nav navbar-nav">
|
||||
<li class="dropdown yamm-fw">
|
||||
<a href="#" class="dropdown-toggle c-white" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
|
||||
<i class="fa fa-cloud"></i> Browse <i class="fa fa-angle-down"></i>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li>
|
||||
<div class="yamm-content">
|
||||
<div class="row">
|
||||
<div class="col-xs-6 col-sm-3 col-md-3 menu_box">
|
||||
<i class="fa fa-archive fa-fw"></i> Browse Artworks:<br>
|
||||
<div class="divider"></div>
|
||||
<ul class="submenu">
|
||||
<li><a href="/browse"><i class="fa fa-cloud fa-fw"></i> All Artworks</a></li>
|
||||
<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>
|
||||
<li><a href="/featured-artworks"><i class="fa fa-trophy fa-fw"></i> Featured</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-6 col-sm-3 col-md-3">
|
||||
<i class="fa fa-eye fa-fw"></i> View:<br>
|
||||
<div class="divider"></div>
|
||||
<ul class="submenu">
|
||||
<li><a href="/forum"><i class="fa fa-comments fa-fw"></i> Forum</a></li>
|
||||
<li><a href="/chat"><i class="fa fa-comments fa-fw"></i> Chat</a></li>
|
||||
<li><a href="/browse-categories"><i class="fa fa-cloud fa-fw"></i> Categories</a></li>
|
||||
<li><a href="/latest-artworks"><i class="fa fa-trophy fa-fw"></i> Latest Uploads</a></li>
|
||||
<li><a href="/daily-uploads"><i class="fa fa-trophy fa-fw"></i> Recent Uploads</a></li>
|
||||
<li><a href="/today-in-history"><i class="fa fa-trophy fa-fw"></i> Today in History</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-6 col-sm-3 col-md-3">
|
||||
<i class="fa fa-users fa-fw"></i> Authors:<br>
|
||||
<div class="divider"></div>
|
||||
<ul class="submenu">
|
||||
<li><a href="/interviews"><i class="fa fa-users fa-fw"></i> Interviews</a></li>
|
||||
<li><a href="/Members/MembersPhotos/545"><i class="fa fa-users fa-fw"></i> Members Photos</a></li>
|
||||
<li><a href="/top-authors"><i class="fa fa-users fa-fw"></i> Top Authors</a></li>
|
||||
<li><a href="/latest-comments"><i class="fa fa-bar-chart fa-fw"></i> Latest Comments</a></li>
|
||||
<li><a href="/monthly-commentators"><i class="fa fa-bar-chart fa-fw"></i> Monthly Top Comments</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-6 col-sm-3 col-md-3">
|
||||
<i class="fa fa-bar-chart fa-fw"></i> Statistics:<br>
|
||||
<div class="divider"></div>
|
||||
<ul class="submenu">
|
||||
<li><a href="/today-downloads"><i class="fa fa-bar-chart fa-fw"></i> Today Downloads</a></li>
|
||||
<li><a href="/top-favourites"><i class="fa fa-bar-chart fa-fw"></i> Top Favourites</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle c-white" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
|
||||
<i class="fa fa-list-ul"></i> Categories <i class="fa fa-angle-down"></i>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="/photography"><i class="fa fa-camera"></i> Photography</a></li>
|
||||
<li><a href="/wallpapers"><i class="fa fa-desktop"></i> Wallpapers</a></li>
|
||||
<li><a href="/skins"><i class="fa fa-eye"></i> Skins</a></li>
|
||||
<li><a href="/other"><i class="fa fa-file-o"></i> Others</a></li>
|
||||
<li role="separator" class="divider"></li>
|
||||
<li><a href="/browse-categories" class="btn_category"><i class="fa fa-list"></i> Categories List</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
@auth
|
||||
@php
|
||||
$userId = auth()->id();
|
||||
try {
|
||||
$uploadCount = \Illuminate\Support\Facades\DB::table('artworks')->where('user_id', $userId)->count();
|
||||
} catch (\Throwable $e) {
|
||||
$uploadCount = 0;
|
||||
}
|
||||
try {
|
||||
$favCount = \Illuminate\Support\Facades\DB::table('favourites')->where('user_id', $userId)->count();
|
||||
} catch (\Throwable $e) {
|
||||
$favCount = 0;
|
||||
}
|
||||
try {
|
||||
$msgCount = \Illuminate\Support\Facades\DB::table('messages')->where('reciever_id', $userId)->whereNull('read_at')->count();
|
||||
} catch (\Throwable $e) {
|
||||
$msgCount = 0;
|
||||
}
|
||||
try {
|
||||
$noticeCount = \Illuminate\Support\Facades\DB::table('notification')->where('user_id', $userId)->where('new', 1)->count();
|
||||
} catch (\Throwable $e) {
|
||||
$noticeCount = 0;
|
||||
}
|
||||
try {
|
||||
$profile = \Illuminate\Support\Facades\DB::table('user_profiles')->where('user_id', $userId)->first();
|
||||
$avatar = $profile->avatar ?? null;
|
||||
} catch (\Throwable $e) {
|
||||
$avatar = null;
|
||||
}
|
||||
$displayName = auth()->user()->name ?: (auth()->user()->username ?? '');
|
||||
@endphp
|
||||
|
||||
<li class="hidden-xs hidden-sm menu_notice">
|
||||
<a href="/upload" title="Upload new Artwork"><i class="fa fa-upload fa-fw"></i><br> {{ $uploadCount }}</a>
|
||||
</li>
|
||||
<li class="hidden-xs hidden-sm menu_notice">
|
||||
<a href="/favourites/{{ $userId }}/{{ auth()->user()->username ?? '' }}" title="Your Favourite Artworks"><i class="fa fa-heart fa-fw"></i><br> {{ $favCount }}</a>
|
||||
</li>
|
||||
<li class="hidden-xs hidden-sm menu_notice">
|
||||
<a href="/messages" title="Messages"><i class="fa fa-envelope fa-fw"></i><br> {{ $msgCount }}</a>
|
||||
</li>
|
||||
<li class="hidden-xs hidden-sm menu_notice">
|
||||
<a href="/notices" title="Notices"><i class="fa fa-bell"></i><br> {{ $noticeCount }}</a>
|
||||
</li>
|
||||
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle c-white" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
|
||||
@if($avatar)
|
||||
<img src="/storage/{{ ltrim($avatar, '/') }}" alt="{{ $displayName }}" width="18">
|
||||
@endif
|
||||
<span class="username">{{ $displayName }}</span>
|
||||
<i class="fa fa-angle-down"></i>
|
||||
</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 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>
|
||||
<li><a href="/buddies.php"><i class="fa fa-cog"></i> Who follows me</a></li>
|
||||
<li role="presentation" class="divider"></li>
|
||||
<li><a href="/recieved-comments"><i class="fa fa-cog"></i> Received Comments</a></li>
|
||||
<li><a href="/favourites/{{ $userId }}/{{ auth()->user()->username ?? '' }}"><i class="fa fa-cog"></i> My Favourites</a></li>
|
||||
<li><a href="/gallery/{{ $userId }}/{{ auth()->user()->username ?? '' }}"><i class="fa fa-cog"></i> My Gallery</a></li>
|
||||
<li role="presentation" class="divider"></li>
|
||||
<li><a href="/user"><i class="fa fa-cog"></i> Edit Profile</a></li>
|
||||
<li><a href="/profile/{{ $userId }}/{{ auth()->user()->username ?? '' }}"><i class="fa fa-cog"></i> View My Profile</a></li>
|
||||
<li class="dropdown-footer clearfix">
|
||||
<form method="POST" action="/logout" style="margin:0;">
|
||||
@csrf
|
||||
<button type="submit" class="btn btn-link" style="padding: 3px 20px;"> <i class="fa fa-power-off"></i> Logout</button>
|
||||
</form>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="hidden-xs hidden-sm menu_chat">
|
||||
<span class="toggle_menu" title="Chat"><i class="fa fa-weixin fa-lg fa-fw"></i></span>
|
||||
</li>
|
||||
@else
|
||||
<li class="dropdown"><a href="/signup" title="Signup for a new account" class="c-white"><i class="fa fa-unlock fa-fw"></i> Join</a></li>
|
||||
<li class="dropdown"><a href="/login" title="Login to Skinbase account" class="c-white"><i class="fa fa-sign-in fa-fw"></i> Sign in</a></li>
|
||||
@endauth
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
117
resources/views/legacy/top-authors.blade.php
Normal file
117
resources/views/legacy/top-authors.blade.php
Normal file
@@ -0,0 +1,117 @@
|
||||
@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">Top Members</h1>
|
||||
<p>Statistics of popular and active members at Skinbase</p>
|
||||
</header>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="panel panel-default effect2">
|
||||
<div class="panel-heading"><strong>Most Active Members</strong></div>
|
||||
<div class="panel-body">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2">Username</th>
|
||||
<th class="text-right">Uploads</th>
|
||||
<th class="text-right">Total Downloads</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($topUsers as $u)
|
||||
<tr>
|
||||
<td width="80">
|
||||
<a href="/profile/{{ $u->user_id }}/{{ \Illuminate\Support\Str::slug($u->uname) }}">
|
||||
<img src="/avatar/{{ $u->user_id }}/{{ rawurlencode($u->icon ?? '') }}" width="30" height="30" alt="{{ $u->uname }}">
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="/profile/{{ $u->user_id }}/{{ \Illuminate\Support\Str::slug($u->uname) }}">{{ $u->uname }}</a>
|
||||
</td>
|
||||
<td class="text-right">{{ $u->uploads }}</td>
|
||||
<td class="text-right">{{ $u->total_downloads }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="panel panel-default effect2">
|
||||
<div class="panel-heading"><strong>Most Followed Members</strong></div>
|
||||
<div class="panel-body">
|
||||
<table class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Thumb</th>
|
||||
<th>Name</th>
|
||||
<th>Followers</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($topFollowers as $f)
|
||||
<tr>
|
||||
<td width="60" align="center">
|
||||
<a href="/profile/{{ $f->user_id }}/{{ \Illuminate\Support\Str::slug($f->uname) }}">
|
||||
<img src="/avatar/{{ $f->user_id }}/{{ rawurlencode($f->uname) }}" width="30" alt="{{ $f->uname }}">
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="/profile/{{ $f->user_id }}/{{ \Illuminate\Support\Str::slug($f->uname) }}">{{ $f->uname }}</a>
|
||||
</td>
|
||||
<td align="center">{{ $f->num }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel panel-default effect2">
|
||||
<div class="panel-heading"><strong>Top Commentators</strong></div>
|
||||
<div class="panel-body">
|
||||
<table class="table table-striped table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Thumb</th>
|
||||
<th>Name</th>
|
||||
<th>Level</th>
|
||||
<th>Country</th>
|
||||
<th>Comments</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($topCommentators as $c)
|
||||
<tr>
|
||||
<td width="50" align="center">
|
||||
<a href="/profile/{{ $c->user_id }}/{{ \Illuminate\Support\Str::slug($c->uname) }}">
|
||||
<img src="/avatar/{{ $c->user_id }}/{{ rawurlencode($c->uname) }}" width="30" alt="{{ $c->uname }}">
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="/profile/{{ $c->user_id }}/{{ \Illuminate\Support\Str::slug($c->uname) }}">{{ $c->uname }}</a>
|
||||
</td>
|
||||
<td width="100" align="center"><img src="/gfx/member_stars/{{ $c->user_type }}.gif" alt="level"></td>
|
||||
<td width="100" align="center">
|
||||
@if(!empty($c->country_flag))
|
||||
<img width="20" src="/gfx/flags/{{ rawurlencode($c->country_flag) }}" title="{{ $c->country_name }}">
|
||||
@endif
|
||||
</td>
|
||||
<td width="100" align="center">{{ $c->num_comments }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
32
resources/views/legacy/top-favourites.blade.php
Normal file
32
resources/views/legacy/top-favourites.blade.php
Normal file
@@ -0,0 +1,32 @@
|
||||
@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 }}</h1>
|
||||
<p>Most popular artworks which users added in their favourites</p>
|
||||
</header>
|
||||
</div>
|
||||
|
||||
@if ($artworks && $artworks->count())
|
||||
<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">
|
||||
{{ $artworks->withQueryString()->links('pagination::bootstrap-4') }}
|
||||
</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
|
||||
</div>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user