Permalink
Browse files

Add share things. Probably should have decided all this earlier

  • Loading branch information...
1 parent bd8cb22 commit f3956f18dd06212f21211e0492863b34030c2201 @cubehouse cubehouse committed May 30, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 js/page_hats.js
View
@@ -4,6 +4,11 @@ define(["jquery", "frame", "api"], function($, frame, api) {
var h = "<h2>AlphaZone4 Hats</h2>";
+ h += "<p>Share this page</p>";
+ h += '<p><a href="https://twitter.com/share" class="twitter-share-button" data-url="http://psho.me/hat" data-text="[US] Free AlphaZone4 Cake Hat!" data-via="AlphaZone4" data-size="large">Tweet</a><script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?\'http\':\'https\';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+\'://platform.twitter.com/widgets.js\';fjs.parentNode.insertBefore(js,fjs);}}(document, \'script\', \'twitter-wjs\');</script></p>';
+ h += '<div id="fb-root"></div><script>(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_GB/all.js#xfbml=1&appId=170199966382591";fjs.parentNode.insertBefore(js, fjs);}(document, "script", "facebook-jssdk"));</script>';
+ h += '<div class="fb-like" data-href="http://alphazone4.com/store/expo2013/hats/" data-send="true" data-width="450" data-show-faces="false" data-font="verdana" data-action="recommend"></div>';
+
h += "<p style='text-align:center'><img src='http://alphazone4.com/wp-content/uploads/2013/05/AZ4-cakehat-300x236.jpg' /></p>";
h += "<p>To celebrate <strong>4 years of AlphaZone4</strong>, you can get your very own AlphaZone4 cake hat for PlayStation Home!</p>";

0 comments on commit f3956f1

Please sign in to comment.