Permalink
Browse files

moved google analytics to its own file, and put it and the end of the…

… body
  • Loading branch information...
1 parent f4c2393 commit 31f91d9eb0fc9375c731402f52b4ea64c74817b0 @petdance committed Apr 28, 2012
Showing with 26 additions and 19 deletions.
  1. +5 −5 share/locale/de_DE/LC_MESSAGES/com.bobby-tables.po
  2. +13 −0 tt/google-analytics.html
  3. +8 −14 tt/page.tt
@@ -2059,11 +2059,11 @@ msgstr "Mach auf GitHub mit"
msgid "Bobby Tables: A guide to preventing SQL injection"
msgstr "Bobby Tables: Ein Leitfaden gegen SQL-Einschleusung"
-#: tt/page.tt:4
-msgid "bobby-tables.com: A guide to preventing SQL injection"
-msgstr "bobby-tables.com: Ein Leitfaden gegen SQL-Einschleusung"
-
#. (currlang)
-#: tt/page.tt:4
+#: tt/page.tt:6
msgid "bobby-tables.com: A guide to preventing SQL injection in {currlang}"
msgstr "bobby-tables.com: Ein Leitfaden gegen SQL-Einschleusung in {currlang}"
+
+#: tt/page.tt:8
+msgid "bobby-tables.com: A guide to preventing SQL injection"
+msgstr "bobby-tables.com: Ein Leitfaden gegen SQL-Einschleusung"
View
@@ -0,0 +1,13 @@
+<script type="text/javascript">
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-631706-8']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script');
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' :
+ 'http://www') + '.google-analytics.com/ga.js';
+ ga.setAttribute('async', 'true');
+ document.documentElement.firstChild.appendChild(ga);
+ })();
+</script>
View
@@ -1,21 +1,14 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="[% rfc_1766_lang %]" lang="[% rfc_1766_lang %]">
<head>
- <title>[% IF currlang %][% |loc(currlang) %]bobby-tables.com: A guide to preventing SQL injection in {currlang}[% END %][% ELSE %][% |loc %]bobby-tables.com: A guide to preventing SQL injection[% END %][% END %]</title>
+ <title>
+ [% IF currlang %]
+ [% |loc(currlang) %]bobby-tables.com: A guide to preventing SQL injection in {currlang}[% END %]
+ [% ELSE %]
+ [% |loc %]bobby-tables.com: A guide to preventing SQL injection[% END %]
+ [% END %]
+ </title>
<link rel="stylesheet" type="text/css" href="[% rel_static %]css/bobby.css" />
- <script type="text/javascript">
- var _gaq = _gaq || [];
- _gaq.push(['_setAccount', 'UA-631706-8']);
- _gaq.push(['_trackPageview']);
-
- (function() {
- var ga = document.createElement('script');
- ga.src = ('https:' == document.location.protocol ? 'https://ssl' :
- 'http://www') + '.google-analytics.com/ga.js';
- ga.setAttribute('async', 'true');
- document.documentElement.firstChild.appendChild(ga);
- })();
- </script>
</head>
<body>
<div id="wrap">
@@ -29,5 +22,6 @@
[% PROCESS footer.tt %]
</div>
</div>
+ [% PROCESS 'google-analytics.html' %]
</body>
</html>

0 comments on commit 31f91d9

Please sign in to comment.