changeset 140:ec849c2ee427

removing google analytics
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 25 May 2018 17:26:57 +0200
parents fded2e8d1d49
children 2f871e5728fe
files Sphinx/source/_templates/layout.html Sphinx/source/_templates/layout.html.analytics
diffstat 2 files changed, 38 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/Sphinx/source/_templates/layout.html	Tue Apr 24 20:40:26 2018 +0200
+++ b/Sphinx/source/_templates/layout.html	Fri May 25 17:26:57 2018 +0200
@@ -25,14 +25,4 @@
     </p>
   </div>
 </footer>
-
-<!-- Google Analytics -->
-<script>
-  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
-  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
-  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
-  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
-  ga('create', 'UA-33455438-2', 'orthanc-server.com');
-  ga('send', 'pageview');
-</script>
 {% endblock %}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Sphinx/source/_templates/layout.html.analytics	Fri May 25 17:26:57 2018 +0200
@@ -0,0 +1,38 @@
+{# Import the theme's layout. #}
+{% extends "!layout.html" %}
+
+{# Custom CSS overrides #}
+{% set bootswatch_css_custom = ['_static/orthanc.css'] %}
+
+
+{% block footer %}
+<footer class="footer">
+  <div class="container">
+    <p class="pull-right">
+      <a href="#">Back to top</a>
+      {% if theme_source_link_position == "footer" %}
+      <br/>
+      {% include "sourcelink.html" %}
+      {% endif %}
+    </p>
+    <p>
+
+      &copy; Copyright 2015-2018, University Hospital of Liège and Osimis, Belgium<br/>
+      The Orthanc Book is licensed under
+      <a href="http://creativecommons.org/licenses/by-sa/4.0/" target="_blank">Creative 
+        Commons CC-BY-SA 4.0</a>.<br/>
+      {% trans sphinx_version=sphinx_version|e %}Created using <a href="http://sphinx-doc.org/">Sphinx</a> {{ sphinx_version }}.{% endtrans %}<br/>
+    </p>
+  </div>
+</footer>
+
+<!-- Google Analytics -->
+<script>
+  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+  ga('create', 'UA-33455438-2', 'orthanc-server.com');
+  ga('send', 'pageview');
+</script>
+{% endblock %}