Version Description
- 04.19.2018 =
- Tweak - Add
noopener noreferrer
to social media links.
Download this release
Release Info
Developer | woothemes |
Plugin | Storefront Product Sharing |
Version | 1.0.5 |
Comparing to | |
See all releases |
Code changes from version 1.0.4 to 1.0.5
- assets/css/style.css +0 -0
- assets/css/style.scss +0 -0
- index.php +0 -0
- languages/storefront-product-sharing.pot +0 -0
- readme.txt +4 -1
- storefront-product-sharing.php +14 -14
assets/css/style.css
CHANGED
File without changes
|
assets/css/style.scss
CHANGED
File without changes
|
index.php
CHANGED
File without changes
|
languages/storefront-product-sharing.pot
CHANGED
File without changes
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: jameskoster, woothemes, tiagonoronha
|
|
3 |
Tags: woocommerce, ecommerce, storefront, social, sharing, seo
|
4 |
Requires at least: 3.5
|
5 |
Tested up to: 4.8
|
6 |
-
Stable tag: 1.0.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -33,6 +33,9 @@ This plugin will only work with the [Storefront](http://wordpress.org/themes/sto
|
|
33 |
|
34 |
== Changelog ==
|
35 |
|
|
|
|
|
|
|
36 |
= 1.0.4 - 06.15.2017 =
|
37 |
* Tweak - Open social media links in a new browser tab.
|
38 |
|
3 |
Tags: woocommerce, ecommerce, storefront, social, sharing, seo
|
4 |
Requires at least: 3.5
|
5 |
Tested up to: 4.8
|
6 |
+
Stable tag: 1.0.5
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
33 |
|
34 |
== Changelog ==
|
35 |
|
36 |
+
= 1.0.5 - 04.19.2018 =
|
37 |
+
* Tweak - Add `noopener noreferrer` to social media links.
|
38 |
+
|
39 |
= 1.0.4 - 06.15.2017 =
|
40 |
* Tweak - Open social media links in a new browser tab.
|
41 |
|
storefront-product-sharing.php
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
* Plugin Name:
|
4 |
-
* Plugin URI:
|
5 |
-
* Description:
|
6 |
-
* Version:
|
7 |
-
* Author:
|
8 |
-
* Author URI:
|
9 |
-
* Requires at least:
|
10 |
-
* Tested up to:
|
11 |
*
|
12 |
* Text Domain: storefront-product-sharing
|
13 |
* Domain Path: /languages/
|
@@ -84,7 +84,7 @@ final class Storefront_Product_Sharing {
|
|
84 |
$this->token = 'storefront-product-sharing';
|
85 |
$this->plugin_url = plugin_dir_url( __FILE__ );
|
86 |
$this->plugin_path = plugin_dir_path( __FILE__ );
|
87 |
-
$this->version = '1.0.
|
88 |
|
89 |
register_activation_hook( __FILE__, array( $this, 'install' ) );
|
90 |
|
@@ -209,15 +209,15 @@ final class Storefront_Product_Sharing {
|
|
209 |
$product_img = wp_get_attachment_url( get_post_thumbnail_id() );
|
210 |
|
211 |
$facebook_url = 'https://www.facebook.com/sharer/sharer.php?u=' . $product_url;
|
212 |
-
$twitter_url = '
|
213 |
-
$pinterest_url = '
|
214 |
$email_url = 'mailto:?subject=' . rawurlencode( $product_title ) . '&body=' . $product_url;
|
215 |
?>
|
216 |
<div class="storefront-product-sharing">
|
217 |
<ul>
|
218 |
-
<li class="twitter"><a href="<?php echo esc_url( $twitter_url ); ?>" target="_blank"><?php _e( 'Share on Twitter', 'storefront-product-sharing' ); ?></a></li>
|
219 |
-
<li class="facebook"><a href="<?php echo esc_url( $facebook_url ); ?>" target="_blank"><?php _e( 'Share on Facebook', 'storefront-product-sharing' ); ?></a></li>
|
220 |
-
<li class="pinterest"><a href="<?php echo esc_url( $pinterest_url ); ?>" target="_blank"><?php _e( 'Pin this product', 'storefront-product-sharing' ); ?></a></li>
|
221 |
<li class="email"><a href="<?php echo esc_url( $email_url ); ?>"><?php _e( 'Share via Email', 'storefront-product-sharing' ); ?></a></li>
|
222 |
</ul>
|
223 |
</div>
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Plugin Name: Storefront Product Sharing
|
4 |
+
* Plugin URI: https://woocommerce.com/products/storefront-product-sharing/
|
5 |
+
* Description: Add attractive social sharing icons for Facebook, Twitter, Pinterest and Email to your product pages.
|
6 |
+
* Version: 1.0.5
|
7 |
+
* Author: WooCommerce
|
8 |
+
* Author URI: https://woocommerce.com/
|
9 |
+
* Requires at least: 4.0.0
|
10 |
+
* Tested up to: 4.9.4
|
11 |
*
|
12 |
* Text Domain: storefront-product-sharing
|
13 |
* Domain Path: /languages/
|
84 |
$this->token = 'storefront-product-sharing';
|
85 |
$this->plugin_url = plugin_dir_url( __FILE__ );
|
86 |
$this->plugin_path = plugin_dir_path( __FILE__ );
|
87 |
+
$this->version = '1.0.5';
|
88 |
|
89 |
register_activation_hook( __FILE__, array( $this, 'install' ) );
|
90 |
|
209 |
$product_img = wp_get_attachment_url( get_post_thumbnail_id() );
|
210 |
|
211 |
$facebook_url = 'https://www.facebook.com/sharer/sharer.php?u=' . $product_url;
|
212 |
+
$twitter_url = 'https://twitter.com/intent/tweet?status=' . rawurlencode( $product_title ) . '+' . $product_url;
|
213 |
+
$pinterest_url = 'https://pinterest.com/pin/create/bookmarklet/?media=' . $product_img . '&url=' . $product_url . '&is_video=false&description=' . rawurlencode( $product_title );
|
214 |
$email_url = 'mailto:?subject=' . rawurlencode( $product_title ) . '&body=' . $product_url;
|
215 |
?>
|
216 |
<div class="storefront-product-sharing">
|
217 |
<ul>
|
218 |
+
<li class="twitter"><a href="<?php echo esc_url( $twitter_url ); ?>" target="_blank" rel="noopener noreferrer"><?php _e( 'Share on Twitter', 'storefront-product-sharing' ); ?></a></li>
|
219 |
+
<li class="facebook"><a href="<?php echo esc_url( $facebook_url ); ?>" target="_blank" rel="noopener noreferrer"><?php _e( 'Share on Facebook', 'storefront-product-sharing' ); ?></a></li>
|
220 |
+
<li class="pinterest"><a href="<?php echo esc_url( $pinterest_url ); ?>" target="_blank" rel="noopener noreferrer"><?php _e( 'Pin this product', 'storefront-product-sharing' ); ?></a></li>
|
221 |
<li class="email"><a href="<?php echo esc_url( $email_url ); ?>"><?php _e( 'Share via Email', 'storefront-product-sharing' ); ?></a></li>
|
222 |
</ul>
|
223 |
</div>
|