Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add Like button

  • Loading branch information...
commit 580457282034700f92bbd705bf97ff868616d252 1 parent eeb1922
@pfeffer authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 app/views/layouts/application.html.erb
View
10 app/views/layouts/application.html.erb
@@ -16,10 +16,12 @@
<%= yield %>
</div>
<div id='footer'>
+ <div class="fb-like" data-href="http://www.sweetbread.ca" data-send="false" data-width="100" data-show-faces="false" data-layout="button_count"></div>
<%= link_to "Home", root_path %>
<%= link_to "About", about_path %>
</div>
+
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-32955367-1']);
@@ -30,6 +32,14 @@
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
+
+ (function(d, s, id) {
+ var js, fjs = d.getElementsByTagName(s)[0];
+ if (d.getElementById(id)) return;
+ js = d.createElement(s); js.id = id;
+ js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=109008512476478";
+ fjs.parentNode.insertBefore(js, fjs);
+ }(document, 'script', 'facebook-jssdk'));
</script>
</body>
</html>
Please sign in to comment.
Something went wrong with that request. Please try again.