20 lines
843 B
Plaintext
20 lines
843 B
Plaintext
<% if (typeof(script) !== 'undefined' && script) { %>
|
|
<script src="//cdn1.lncld.net/static/js/3.0.4/av-min.js"></script>
|
|
<script src='//unpkg.com/valine/dist/Valine.min.js'></script>
|
|
<script>
|
|
new Valine({
|
|
el: '#valine-thread' ,
|
|
notify:<%= theme.comment.valine.notify %>,
|
|
verify:<%= theme.comment.valine.verify %>,
|
|
app_id: '<%= theme.comment.valine.appId %>',
|
|
app_key: '<%= theme.comment.valine.appKey %>',
|
|
placeholder: '<%= theme.comment.valine.placeholder %>',
|
|
pageSize: '<%= theme.comment.valine.pageSize %>',
|
|
avatar: '<%= theme.comment.valine.avatar %>',
|
|
avatar_cdn: '<%= theme.comment.valine.avatar_cdn %>'
|
|
});
|
|
</script>
|
|
<% } else { %>
|
|
<div id="valine-thread"></div>
|
|
<% } %>
|