mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2024-12-21 06:19:38 +08:00
change disqus option to general comment script
This commit is contained in:
parent
6ba21b151d
commit
1eb9fabc8e
@ -110,13 +110,15 @@
|
||||
<tr>
|
||||
<td class="key">首页图片地址</td>
|
||||
<td class="value">
|
||||
<input type="text" title="相对与首页的路径或绝对路径。" data-toggle="tooltip" data-placement="bottom" class="form-control" name="home_pic_url" value="<?php echo Option::get('home_pic_url'); ?>">
|
||||
<input type="text" title="相对于首页的路径或者完整的 URL" data-toggle="tooltip" data-placement="top" class="form-control" name="home_pic_url" value="{{ Option::get('home_pic_url') }}">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="key">版权信息</td>
|
||||
<td class="key">版权信息
|
||||
<i class="fa fa-question-circle" title="推荐开启,求扩散 qwq" data-toggle="tooltip" data-placement="top"></i>
|
||||
</td>
|
||||
<td class="value">
|
||||
<label for="show_footer_copyright" title="推荐开启,求扩散 qwq" data-toggle="tooltip" data-placement="top">
|
||||
<label for="show_footer_copyright">
|
||||
<input <?php echo (Option::get('show_footer_copyright') == '1') ? 'checked="true"' : ''; ?> type="checkbox" id="show_footer_copyright" name="show_footer_copyright" value="1"> 显示页面右下角的版权信息
|
||||
</label>
|
||||
</td>
|
||||
@ -133,7 +135,7 @@
|
||||
<div class="box box-default">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">自定义 CSS/JavaScript
|
||||
<i class="fa fa-question-circle" data-toggle="tooltip" data-placement="bottom" title="字符串将会被转义"></i>
|
||||
<i class="fa fa-question-circle" title="字符串将不会被转义,请小心" data-toggle="tooltip" data-placement="bottom"></i>
|
||||
</h3>
|
||||
</div><!-- /.box-header -->
|
||||
<form method="post" action="../admin/customize">
|
||||
|
@ -117,10 +117,12 @@
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr title="留空以停用评论功能" data-toggle="tooltip" data-placement="top">
|
||||
<td class="key">Disqus 短域名</td>
|
||||
<tr>
|
||||
<td class="key">评论代码
|
||||
<i class="fa fa-question-circle" title="就是 Disqus,多说,畅言等评论服务提供的代码。留空以停用评论功能" data-toggle="tooltip" data-placement="top"></i>
|
||||
</td>
|
||||
<td class="value">
|
||||
<input type="text" class="form-control" name="disqus-shortname" value="{{ Option::get('disqus-shortname') }}">
|
||||
<textarea class="form-control" rows="4" name="comment_script">{{ Option::get('comment_script') }}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
||||
</head>
|
||||
|
||||
<body class="hold-transition {{ Option::get('color_scheme') }} layout-top-nav">
|
||||
<div class="wrapper" style="background-image: url('./assets/images/bg.jpg') !important;">
|
||||
<div class="wrapper" style="background-image: url('{{ Option::get('home_pic_url') }}') !important;">
|
||||
|
||||
<header class="main-header">
|
||||
<nav class="navbar navbar-static-top">
|
||||
|
@ -135,17 +135,8 @@
|
||||
</div><!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<div id="disqus_thread"></div>
|
||||
@if (Option::get('disqus-shortname') != "")
|
||||
<script>
|
||||
(function() { // DON'T EDIT BELOW THIS LINE
|
||||
var d = document, s = d.createElement('script');
|
||||
|
||||
s.src = "//{{ Option::get('disqus-shortname') }}/embed.js";
|
||||
|
||||
s.setAttribute('data-timestamp', +new Date());
|
||||
(d.head || d.body).appendChild(s);
|
||||
})();
|
||||
</script>
|
||||
@if (Option::get('comment_script') != "")
|
||||
{!! Option::get('comment_script') !!}
|
||||
@else
|
||||
<p style="text-align: center; margin: 30px 0;">本站未开启评论服务</p>
|
||||
@endif
|
||||
|
Loading…
Reference in New Issue
Block a user