Update scripts.ejs

master
Mr. X 4 years ago committed by GitHub
parent db6f7b94c7
commit 696b50f5d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 47
      layout/_partial/scripts.ejs

@ -21,44 +21,43 @@
</script>
<% } %>
<% if (theme.Artitalk.enable) { %>
<% if (theme.plugins.Artitalk && theme.plugins.Artitalk.enable) { %>
<script>
var appID ="<%= theme.Artitalk.appID %>";
var appKEY ="<%= theme.Artitalk.appKEY %>";
<% if(theme.Artitalk.severurl){ %>
var severurl="<%= theme.Artitalk.severurl %>";
var appID ="<%= theme.plugins.Artitalk.appID %>";
var appKEY ="<%= theme.plugins.Artitalk.appKEY %>";
<% if(theme.plugins.Artitalk.severurl){ %>
var severurl="<%= theme.plugins.Artitalk.severurl %>";
<% } %>
<% if(theme.Artitalk.slanguage){ %>
var slanguage="<%= theme.Artitalk.slanguage %>";
<% if(theme.plugins.Artitalk.slanguage){ %>
var slanguage="<%= theme.plugins.Artitalk.slanguage %>";
<% } %>
<% if(theme.Artitalk.per){ %>
var per="<%= theme.Artitalk.per %>";
<% if(theme.plugins.Artitalk.per){ %>
var per="<%= theme.plugins.Artitalk.per %>";
<% } %>
<% if(theme.Artitalk.placeholder1){ %>
var placeholder1="<%= theme.Artitalk.placeholder1 %>";
<% if(theme.plugins.Artitalk.placeholder1){ %>
var placeholder1="<%= theme.plugins.Artitalk.placeholder1 %>";
<% } %>
<% if(theme.Artitalk.placeholder2){ %>
var placeholder2="<%= theme.Artitalk.placeholder2 %>";
<% if(theme.plugins.Artitalk.placeholder2){ %>
var placeholder2="<%= theme.plugins.Artitalk.placeholder2 %>";
<% } %>
<% if(theme.Artitalk.lazy==0){ %>
<% if(theme.plugins.Artitalk.lazy==0){ %>
var lazy=0;
<% }else{ %>
var lazy=1;
<% } %>
<% if(theme.Artitalk.bgimg){ %>
var bgimg="<%= theme.Artitalk.bgimg %>";
<% if(theme.plugins.Artitalk.bgimg){ %>
var bgimg="<%= theme.plugins.Artitalk.bgimg %>";
<% } %>
<% if(theme.Artitalk.color1){ %>
var color1="<%= theme.Artitalk.color1 %>";
<% if(theme.plugins.Artitalk.color1){ %>
var color1="<%= theme.plugins.Artitalk.color1 %>";
<% } %>
<% if(theme.Artitalk.color2){ %>
var color2="<%= theme.Artitalk.color2 %>";
<% if(theme.plugins.Artitalk.color2){ %>
var color2="<%= theme.plugins.Artitalk.color2 %>";
<% } %>
<% if(theme.Artitalk.color3){ %>
var color3="<%= theme.Artitalk.color3 %>";
<% if(theme.plugins.Artitalk.color3){ %>
var color3="<%= theme.plugins.Artitalk.color3 %>";
<% } %>
</script>
</script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/artitalk"></script>
<% } %>

Loading…
Cancel
Save