2016-07-21 22:01:57 +08:00
|
|
|
|
@extends('skinlib.master')
|
|
|
|
|
|
|
|
|
|
@section('title', '皮肤库')
|
|
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
|
<!-- Full Width Column -->
|
|
|
|
|
<div class="content-wrapper">
|
|
|
|
|
<div class="container">
|
|
|
|
|
<!-- Content Header (Page header) -->
|
|
|
|
|
<section class="content-header">
|
|
|
|
|
<h1>
|
|
|
|
|
皮肤库
|
|
|
|
|
<small>Skin Library</small>
|
|
|
|
|
</h1>
|
|
|
|
|
<ol class="breadcrumb">
|
|
|
|
|
<li><i class="fa fa-tags"></i> 当前正显示</li>
|
|
|
|
|
<li>
|
|
|
|
|
@if ($filter == "skin")
|
2016-07-23 15:20:10 +08:00
|
|
|
|
皮肤<small>(任意模型)</small>
|
2016-07-21 22:01:57 +08:00
|
|
|
|
@elseif ($filter == "steve")
|
2016-07-23 15:20:10 +08:00
|
|
|
|
皮肤<small>(Steve 模型)</small>
|
2016-07-21 22:01:57 +08:00
|
|
|
|
@elseif ($filter == "alex")
|
2016-07-23 15:20:10 +08:00
|
|
|
|
皮肤<small>(Alex 模型)</small>
|
2016-07-21 22:01:57 +08:00
|
|
|
|
@elseif ($filter == "cape")
|
2016-07-23 15:20:10 +08:00
|
|
|
|
披风
|
2016-07-21 22:01:57 +08:00
|
|
|
|
@elseif ($filter == "user")
|
2016-07-23 15:20:10 +08:00
|
|
|
|
用户(uid.{{ $_GET['uid'] or 0 }})上传
|
2016-07-21 22:01:57 +08:00
|
|
|
|
@endif
|
|
|
|
|
</li>
|
|
|
|
|
<li class="active">
|
|
|
|
|
@if ($sort == "time")
|
2016-07-23 15:20:10 +08:00
|
|
|
|
最新上传
|
2016-07-21 22:01:57 +08:00
|
|
|
|
@elseif ($sort == "likes")
|
2016-07-23 15:20:10 +08:00
|
|
|
|
最多收藏
|
2016-07-21 22:01:57 +08:00
|
|
|
|
@endif
|
|
|
|
|
</li>
|
|
|
|
|
</ol>
|
|
|
|
|
</section>
|
|
|
|
|
|
|
|
|
|
<!-- Main content -->
|
|
|
|
|
<section class="content">
|
|
|
|
|
<div class="box box-default">
|
|
|
|
|
<div class="box-body">
|
|
|
|
|
@forelse ($textures as $texture)
|
|
|
|
|
<a href="./skinlib/show?tid={{ $texture['tid'] }}">
|
|
|
|
|
<div class="item" tid="{{ $texture['tid'] }}">
|
|
|
|
|
<div class="item-body">
|
|
|
|
|
<img src="./preview/{{ $texture['tid'] }}.png">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="item-footer">
|
2016-08-10 23:00:15 +08:00
|
|
|
|
<span title="{{ $texture['name'] }}">{{ Utils::getStringOmitted($texture['name'], 12) }} <small>({{ $texture['type'] }})</small></span>
|
2016-07-21 22:01:57 +08:00
|
|
|
|
@if (isset($_SESSION['email']))
|
|
|
|
|
|
2016-07-23 15:20:10 +08:00
|
|
|
|
@if ($user->closet->has($texture['tid']))
|
|
|
|
|
<a title="从衣柜中移除" class="more like liked" tid="{{ $texture['tid'] }}" href="javascript:removeFromCloset({{ $texture['tid'] }});" data-placement="top" data-toggle="tooltip"><i class="fa fa-heart"></i></a>
|
|
|
|
|
@else
|
|
|
|
|
<a title="添加至衣柜" class="more like" tid="{{ $texture['tid'] }}" href="javascript:addToCloset({{ $texture['tid'] }});" data-placement="top" data-toggle="tooltip"><i class="fa fa-heart"></i></a>
|
|
|
|
|
@endif
|
2016-07-21 22:01:57 +08:00
|
|
|
|
|
|
|
|
|
@else
|
2016-07-23 15:20:10 +08:00
|
|
|
|
<a title="请先登录" class="more like" href="javascript:;" data-placement="top" data-toggle="tooltip"><i class="fa fa-heart"></i></a>
|
2016-07-21 22:01:57 +08:00
|
|
|
|
@endif
|
|
|
|
|
|
|
|
|
|
@if ($texture['public'] == "0")
|
|
|
|
|
<small class="more" tid="{{ $texture['tid'] }}">私密</small>
|
|
|
|
|
@endif
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</a>
|
|
|
|
|
@empty
|
|
|
|
|
<p style="text-align: center; margin: 30px 0;">无结果</p>
|
|
|
|
|
@endforelse
|
|
|
|
|
</div><!-- /.box-body -->
|
|
|
|
|
<div class="box-footer">
|
2016-07-23 15:20:10 +08:00
|
|
|
|
<!-- Pagination -->
|
2016-07-21 22:01:57 +08:00
|
|
|
|
<ul class="pagination pagination-sm no-margin pull-right">
|
2016-07-24 15:19:21 +08:00
|
|
|
|
<?php $base_url = ($filter != "" && $sort != "") ? "?filter=$filter&sort=$sort&" : "?"; ?>
|
2016-07-21 22:01:57 +08:00
|
|
|
|
<li><a href="?page=1">«</a></li>
|
2016-07-24 15:19:21 +08:00
|
|
|
|
|
2016-07-21 22:01:57 +08:00
|
|
|
|
@if ($page != 1)
|
2016-07-24 15:19:21 +08:00
|
|
|
|
<li><a href="{{ $base_url }}page={{ $page-1 }}">{{ $page - 1 }}</a></li>
|
2016-07-21 22:01:57 +08:00
|
|
|
|
@endif
|
|
|
|
|
|
2016-07-24 15:19:21 +08:00
|
|
|
|
<li><a href="{{ $base_url }}page={{ $page }}" class="active">{{ $page }}</a></li>
|
2016-07-21 22:01:57 +08:00
|
|
|
|
|
|
|
|
|
@if ($total_pages > $page)
|
2016-07-24 15:19:21 +08:00
|
|
|
|
<li><a href="{{ $base_url }}page={{ $page+1 }}">{{ $page+1 }}</a></li>
|
2016-07-21 22:01:57 +08:00
|
|
|
|
@endif
|
|
|
|
|
|
2016-07-24 15:19:21 +08:00
|
|
|
|
<li><a href="{{ $base_url }}page={{ $total_pages }}">»</a></li>
|
2016-07-21 22:01:57 +08:00
|
|
|
|
</ul>
|
2016-07-23 12:15:36 +08:00
|
|
|
|
|
|
|
|
|
<select id="page-select" class="pull-right">
|
|
|
|
|
@for ($i = 1; $i <= $total_pages; $i++)
|
|
|
|
|
|
|
|
|
|
@if ($i == $page)
|
|
|
|
|
<option value='{{ $i }}' selected="selected">{{ $i }}</option>
|
|
|
|
|
@else
|
|
|
|
|
<option value='{{ $i }}'>{{ $i }}</option>
|
|
|
|
|
@endif
|
|
|
|
|
|
|
|
|
|
@endfor
|
|
|
|
|
</select>
|
|
|
|
|
|
2016-07-21 22:01:57 +08:00
|
|
|
|
<p class="pull-right">第 {{ $page }} 页,共 {{ $total_pages }} 页</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div><!-- /.box -->
|
|
|
|
|
</section><!-- /.content -->
|
|
|
|
|
</div><!-- /.container -->
|
|
|
|
|
</div><!-- /.content-wrapper -->
|
|
|
|
|
@endsection
|