Generic_WidgetSpreadTheWord.js 879 B

12345678910111213141516171819202122232425
  1. jQuery(function() {
  2. jQuery('.button-vote').on('click', function () {
  3. window.open('https://wordpress.org/support/plugin/w3-total-cache/reviews/#new-post');
  4. });
  5. jQuery('.button-share').on('click', function () {
  6. window.open('https://plus.google.com/share?url=' +
  7. encodeURIComponent(w3tc_spread_the_word_product_url), '_blank');
  8. });
  9. jQuery('.button-tweet').on('click', function () {
  10. window.open('https://twitter.com/?status=' +
  11. encodeURIComponent(w3tc_spread_the_word_tweet), '_blank');
  12. });
  13. jQuery('.button-like').on('click', function () {
  14. window.open('https://www.facebook.com/sharer.php?u=' +
  15. encodeURIComponent(w3tc_spread_the_word_product_url), '_blank');
  16. });
  17. jQuery('.button-rating').on('click', function () {
  18. window.open(w3tc_spread_the_word_rate_url, '_blank');
  19. });
  20. });