share.php 1.1 KB

1234567891011121314
  1. <div id="fb-root"></div>
  2. <script>(function(d, s, id) {
  3. var js, fjs = d.getElementsByTagName(s)[0];
  4. if (d.getElementById(id)) return;
  5. js = d.createElement(s); js.id = id;
  6. js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=746330455410930";
  7. fjs.parentNode.insertBefore(js, fjs);
  8. }(document, 'script', 'facebook-jssdk'));</script>
  9. <div class="share">
  10. <div>Compartilhe este naofo.de:</div>
  11. <div class="fb-share-button" data-href="<?php echo $thrash->get_url(); ?>" data-type="button_count"></div>
  12. <a href="https://twitter.com/share" class="twitter-share-button" data-lang="pt" data-url="<?php echo $thrash->get_url(); ?>">Tweetar</a>
  13. <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>
  14. </div>