Added Google +1.
authorJan Prachař <jan.prachar@intya.cz>
Thu, 14 Jul 2011 11:26:55 +0000 (13:26 +0200)
committerJan Prachař <jan.prachar@intya.cz>
Thu, 14 Jul 2011 11:26:55 +0000 (13:26 +0200)
app/templates/@layout.phtml
web/js/front-scripts.js

index 519bf66..3361d60 100644 (file)
@@ -1,5 +1,5 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml" xmlns:og="http://opengraphprotocol.org/schema/" lang="cs" xml:lang="cs">
+<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml" xmlns:g="http://base.google.com/ns/1.0" xmlns:og="http://opengraphprotocol.org/schema/" lang="cs" xml:lang="cs">
 <head>
 {control metas}
 {block #metas}
index 72bcca5..e30288b 100644 (file)
@@ -4,6 +4,12 @@ _gaq.push(['_trackPageview']);
 
 $(function(){
 
+    /** Google +1 */
+    var e = document.createElement('script');
+    e.src = document.location.protocol + '//apis.google.com/js/plusone.js#lang=cs';
+    e.async = true;
+    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(e, s);
+
     /** FACEBOOK */
     var fbRoot = document.getElementById('fb-root');
     if (fbRoot) {