[pygccxml-commit] SF.net SVN: pygccxml:[1834] sphinx/__templates_www
Brought to you by:
mbaas,
roman_yakovenko
|
From: <rom...@us...> - 2010-04-05 09:08:12
|
Revision: 1834
http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1834&view=rev
Author: roman_yakovenko
Date: 2010-04-05 09:08:06 +0000 (Mon, 05 Apr 2010)
Log Message:
-----------
adding disqus
Modified Paths:
--------------
sphinx/__templates_www/layout.html
Added Paths:
-----------
sphinx/__templates_www/disqus_any.html
sphinx/__templates_www/disqus_before_body_ends.html
Added: sphinx/__templates_www/disqus_any.html
===================================================================
--- sphinx/__templates_www/disqus_any.html (rev 0)
+++ sphinx/__templates_www/disqus_any.html 2010-04-05 09:08:06 UTC (rev 1834)
@@ -0,0 +1,14 @@
+<div id="disqus_thread"></div>
+<script type="text/javascript">
+ /**
+ * var disqus_identifier; [Optional but recommended: Define a unique identifier (e.g. post id or slug) for this thread]
+ */
+ (function() {
+ var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
+ dsq.src = 'http://ccpythonlanguagebinding.disqus.com/embed.js';
+ (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
+ })();
+</script>
+<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript=ccpythonlanguagebinding">comments powered by Disqus.</a></noscript>
+<a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>
+
Added: sphinx/__templates_www/disqus_before_body_ends.html
===================================================================
--- sphinx/__templates_www/disqus_before_body_ends.html (rev 0)
+++ sphinx/__templates_www/disqus_before_body_ends.html 2010-04-05 09:08:06 UTC (rev 1834)
@@ -0,0 +1,14 @@
+<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/ccpythonlanguagebinding/get_num_replies.js' + query + '"></' + 'script>');
+})();
+//]]>
+</script>
Modified: sphinx/__templates_www/layout.html
===================================================================
--- sphinx/__templates_www/layout.html 2010-04-03 09:59:41 UTC (rev 1833)
+++ sphinx/__templates_www/layout.html 2010-04-05 09:08:06 UTC (rev 1834)
@@ -26,7 +26,9 @@
<div class="bodywrapper">
{%- endif %}{% endif %}
<div class="body">
- {% block body %} {% endblock %}
+ {% block body %} {% endblock %}
+ {% include "disqus_any.html" %}
+ {% include "disqus_before_body_ends.html" %}
<hr width=60%>
{% include "bottom_ad_unit.html" %}
{% include "in_text_ads.html" %}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|