]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/layouts/site.html.erb
Add social sharing functionality
[rails.git] / app / views / layouts / site.html.erb
index 1e1e23ebb6fe37d0f4540e195bd272ab84a08191..7c921658d46102d54b720eb5deb57a7107f07d9b 100644 (file)
@@ -4,8 +4,8 @@
   <body class="<%= body_class %>">
     <%= render :partial => "layouts/header" %>
     <%= render :partial => "layouts/content" %>
   <body class="<%= body_class %>">
     <%= render :partial => "layouts/header" %>
     <%= render :partial => "layouts/content" %>
-    <% if defined?(PIWIK) -%>
-    <noscript><p><img src="<%= request.protocol %><%= PIWIK['location'] %>/piwik.php?idsite=<%= PIWIK['site'] %>" class="piwik" alt="" /></p></noscript>
+    <% if defined?(Settings.matomo) -%>
+    <noscript><p><img src="<%= request.protocol %><%= Settings.matomo["location"] %>/matomo.php?idsite=<%= Settings.matomo["site"] %>" class="matomo" alt="" /></p></noscript>
     <% end -%>
   </body>
 </html>
     <% end -%>
   </body>
 </html>