98 lines
4.9 KiB
Plaintext
98 lines
4.9 KiB
Plaintext
<?php $__env->startSection('title', '皮肤库'); ?>
|
||
|
||
<?php $__env->startSection('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>
|
||
<?php if($filter == "skin"): ?>
|
||
皮肤<small>(任意模型)</small>
|
||
<?php elseif($filter == "steve"): ?>
|
||
皮肤<small>(Steve 模型)</small>
|
||
<?php elseif($filter == "alex"): ?>
|
||
皮肤<small>(Alex 模型)</small>
|
||
<?php elseif($filter == "cape"): ?>
|
||
披风
|
||
<?php elseif($filter == "user"): ?>
|
||
用户(uid.<?php echo e(isset($_GET['uid']) ? $_GET['uid'] : 0); ?>)上传
|
||
<?php endif; ?>
|
||
</li>
|
||
<li class="active">
|
||
<?php if($sort == "time"): ?>
|
||
最新上传
|
||
<?php elseif($sort == "likes"): ?>
|
||
最多收藏
|
||
<?php endif; ?>
|
||
</li>
|
||
</ol>
|
||
</section>
|
||
|
||
<!-- Main content -->
|
||
<section class="content">
|
||
<div class="box box-default">
|
||
<div class="box-body">
|
||
<?php $__empty_1 = true; foreach($textures as $texture): $__empty_1 = false; ?>
|
||
<a href="./skinlib/show?tid=<?php echo e($texture['tid']); ?>">
|
||
<div class="item" tid="<?php echo e($texture['tid']); ?>">
|
||
<div class="item-body">
|
||
<img src="./preview/<?php echo e($texture['tid']); ?>.png">
|
||
</div>
|
||
<div class="item-footer">
|
||
<span><?php echo e($texture['name']); ?> <small>(<?php echo e($texture['type']); ?>)</small></span>
|
||
<?php if(isset($_SESSION['email'])): ?>
|
||
|
||
<?php if($user->closet->has($texture['tid'])): ?>
|
||
<a href="javascript:removeFromCloset(<?php echo e($texture['tid']); ?>);" class="more like liked" tid="<?php echo e($texture['tid']); ?>" title="从衣柜中移除" data-placement="top" data-toggle="tooltip">
|
||
<?php else: ?>
|
||
<a href="javascript:addToCloset(<?php echo e($texture['tid']); ?>);" class="more like" tid="<?php echo e($texture['tid']); ?>" title="添加至衣柜" data-placement="top" data-toggle="tooltip">
|
||
<?php endif; ?>
|
||
|
||
<?php else: ?>
|
||
<a href="javascript:;" class="more like" title="请先登录" data-placement="top" data-toggle="tooltip">
|
||
<?php endif; ?>
|
||
<i class="fa fa-heart"></i>
|
||
</a>
|
||
|
||
<?php if($texture['public'] == "0"): ?>
|
||
<small class="more" tid="<?php echo e($texture['tid']); ?>">私密</small>
|
||
<?php endif; ?>
|
||
|
||
</div>
|
||
</div>
|
||
</a>
|
||
<?php endforeach; if ($__empty_1): ?>
|
||
<p style="text-align: center; margin: 30px 0;">无结果</p>
|
||
<?php endif; ?>
|
||
</div><!-- /.box-body -->
|
||
<div class="box-footer">
|
||
<ul class="pagination pagination-sm no-margin pull-right">
|
||
<li><a href="?page=1">«</a></li>
|
||
<?php if($page != 1): ?>
|
||
<li><a href="?page=<?php echo e($page-1); ?>"><?php echo e($page - 1); ?></a></li>
|
||
<?php endif; ?>
|
||
|
||
<li><a href="?page=<?php echo e($page); ?>" class="active"><?php echo e($page); ?></a></li>
|
||
|
||
<?php if($total_pages > $page): ?>
|
||
<li><a href="?page=<?php echo e($page+1); ?>"><?php echo e($page+1); ?></a></li>
|
||
<?php endif; ?>
|
||
|
||
<li><a href="?page=<?php echo e($total_pages); ?>">»</a></li>
|
||
</ul>
|
||
<p class="pull-right">第 <?php echo e($page); ?> 页,共 <?php echo e($total_pages); ?> 页</p>
|
||
</div>
|
||
</div><!-- /.box -->
|
||
</section><!-- /.content -->
|
||
</div><!-- /.container -->
|
||
</div><!-- /.content-wrapper -->
|
||
<?php $__env->stopSection(); ?>
|
||
|
||
<?php echo $__env->make('skinlib.master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?> |