Commits

Anonymous committed 513de81

Added the disqus comments to the How many Wikipedia editors page.

Comments (0)

Files changed (2)

lib/rest-of-template.wml

     />
 </latemp_extra_head_elements>
 
+<define-tag disqus_javascript>
+<script type="text/javascript">
+//<![CDATA[
+(function() {
+	var links = document.getElementsByTagName('a');
+	var query = '?';
+	for(var i = 0; i < links.length; i++) {
+	if(links[i].href.indexOf('#disqus_thread') >= 0) {
+		query += 'url' + i + '=' + encodeURIComponent(links[i].href) + '&';
+	}
+	}
+	document.write('<script charset="utf-8" type="text/javascript" src="http://disqus.com/forums/shlomifish/get_num_replies.js' + query + '"></' + 'script>');
+})();
+//]]>
+</script>
+</define-tag>
+
+
 <latemp_before_main_title>
 
 ;;; For the Hebrew layout.
 ;;; For the div class=hebrew.
 <if "<get-var rtl_layout />" "</div>" />
 {#HEBREW_XML_LANG_SCRIPT#}
+<if "<get-var enable_disqus />" "<disqus_javascript />" />
 </latemp_after_body>
 
 

t2/humour/bits/How-many-Wikipedia-Editors/index.html.wml

+<set-var enable_disqus=1 />
 #include '../template.wml'
 
 <latemp_subject "How many Wikipeders does it take to Change a Light Bulb?" />
 its daily maintenance (and is mostly handling them mostly fine). 
 </p>
 
+<define-tag disqus_thread>
+<div id="disqus_thread"></div><script type="text/javascript" src="http://disqus.com/forums/shlomifish/embed.js"></script><noscript><a href="http://shlomifish.disqus.com/?url=ref">View the discussion thread.</a></noscript><a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>
+</define-tag>
+
+<disqus_thread />
+