Commits

Shlomi Fish committed 8983490

Modularised the disqus enabling/disabling.

I considered enabling disqus but then noticed it executes code from
google-analytics, which would be unacceptable.

  • Participants
  • Parent commits 880518d

Comments (0)

Files changed (1)

lib/rest-of-template.wml

 <br />
 </define-tag>
 
+<set-var global_disqus_enabled_var="" />
+<define-tag should_display_disqus whitespace="delete">
+<if "<get-var global_disqus_enabled_var />"
+    "<latemp_mynot "<get-var disable_disqus />" />" />
+</define-tag>
+
 <latemp_before_main_title>
 
 ;;; For the Hebrew layout.
 </latemp_before_main_title>
 
 <latemp_after_body>
-# <if "<get-var disable_disqus />" "" "<disqus_thread />" />
+<if "<should_display_disqus />" "<disqus_thread />" />
 <share_this_button />
 # <google_adsense_code_after_text />
 ;;; For the div class=hebrew.
 <if "<get-var rtl_layout />" "</div>" />
 {#HEBREW_XML_LANG_SCRIPT#}
-# <if "<latemp_mynot "<get-var disable_disqus />" />" "<disqus_javascript />" />
+<if "<should_display_disqus />" "<disqus_javascript />" />
 </latemp_after_body>