Hide comment area by default

This commit is contained in:
Pig Fang 2019-03-29 09:04:57 +08:00
parent 19a51f8df7
commit f16c416176
3 changed files with 5 additions and 11 deletions

View File

@ -49,7 +49,6 @@ show:
notice-admin: You are able to delete this texture or make it private. The operations will make it removed from the closet of everyone who had favorited it.
comment: Comment
comment-not-available: Comment is not available.
deleted: The requested texture was already deleted.
contact-admin: Please contact the admins to remove this entry.

View File

@ -48,7 +48,6 @@ show:
notice-admin: 你可以将此材质设为隐私或删除。这将会使此材质从每一个收藏者的衣柜中移除。
comment: 评论区
comment-not-available: 本站未开启评论服务
deleted: 请求的材质文件已经被删除
contact-admin: 请联系管理员删除该条目

View File

@ -17,28 +17,24 @@
<section class="content">
<div class="row"></div>
@if (option('comment_script'))
<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>
<div class="box-body">
@if (option('comment_script') != "")
<!-- Comment Start -->
{!! get_string_replaced(option('comment_script'), [
'{tid}' => $texture->tid,
'{name}' => $texture->name,
'{url}' => get_base_url().$_SERVER['REQUEST_URI']
]) !!}
<!-- 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>
</div>
</div>
@endif
</section><!-- /.content -->
</div><!-- /.container -->