mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2025-01-06 13:34:50 +08:00
59 lines
2.1 KiB
PHP
59 lines
2.1 KiB
PHP
@extends('skinlib.master')
|
|
|
|
@section('title', $texture->name)
|
|
|
|
@section('content')
|
|
<!-- Full Width Column -->
|
|
<div class="content-wrapper">
|
|
<div class="container">
|
|
<!-- Content Header (Page header) -->
|
|
<section class="content-header">
|
|
<h1>
|
|
@lang('skinlib.show.title')
|
|
</h1>
|
|
</section>
|
|
|
|
<!-- Main content -->
|
|
<section class="content">
|
|
<div class="row"></div>
|
|
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="box box-default">
|
|
<div class="box-header with-border">
|
|
<h3 class="box-title">@lang('skinlib.show.comment')</h3>
|
|
</div><!-- /.box-header -->
|
|
<div class="box-body">
|
|
@if (option('comment_script') != "")
|
|
<!-- Comment Start -->
|
|
{!! Utils::getStringReplaced(option('comment_script'), ['{tid}' => $texture->tid, '{name}' => $texture->name, '{url}' => get_current_url()]) !!}
|
|
<!-- Comment End -->
|
|
@else
|
|
<p style="text-align: center; margin: 30px 0;">@lang('skinlib.show.comment-not-available')</p>
|
|
@endif
|
|
</div><!-- /.box-body -->
|
|
</div><!-- /.box -->
|
|
</div>
|
|
</div>
|
|
|
|
</section><!-- /.content -->
|
|
</div><!-- /.container -->
|
|
</div><!-- /.content-wrapper -->
|
|
|
|
<script>
|
|
Object.defineProperty(window, '__bs_data__', {
|
|
configurable: false,
|
|
get: function () {
|
|
return Object.freeze({
|
|
download: {{ option('allow_downloading_texture') ? 'true' : 'false' }},
|
|
currentUid: {{ is_null($user) ? '0' : $user->uid }},
|
|
admin: {{ $user && $user->isAdmin() ? 'true' : 'false' }},
|
|
inCloset: {{ $user && $user->getCloset()->has($texture->tid) ? 'true' : 'false' }},
|
|
nickname: @php echo ($up = app('users')->get($texture->uploader)) ? '"'.$up->nickname.'"' : 'null' @endphp
|
|
})
|
|
}
|
|
})
|
|
</script>
|
|
|
|
@endsection
|