mirror of
https://github.com/sruupl/batflat.git
synced 2026-01-14 18:02:03 +01:00
23 lines
734 B
HTML
23 lines
734 B
HTML
{if: !empty($settings.blog.disqus)}
|
|
{if: isset($isPost) && $post.comments == 1}
|
|
<script>
|
|
var disqus_config = function() {
|
|
this.page.url = "{$post.url}";
|
|
this.page.identifier = "{$post.disqus_identifier}";
|
|
};
|
|
|
|
(function() {
|
|
var d = document,
|
|
s = d.createElement('script');
|
|
|
|
s.src = 'https://{$settings.blog.disqus}.disqus.com/embed.js';
|
|
|
|
s.setAttribute('data-timestamp', +new Date());
|
|
(d.head || d.body).appendChild(s);
|
|
})();
|
|
</script>
|
|
{/if}
|
|
{if: isset($isBlog) || isset($isPost)}
|
|
<script id="dsq-count-scr" src="//{$settings.blog.disqus}.disqus.com/count.js" async></script>
|
|
{/if}
|
|
{/if} |