Social Share WordPress Plugin – AccessPress Social Share - Version 1.1.0

Version Description

  • Code modification for the pinterest share.
Download this release

Release Info

Developer Access Keys
Plugin Icon 128x128 Social Share WordPress Plugin – AccessPress Social Share
Version 1.1.0
Comparing to
See all releases

Code changes from version 1.0.9 to 1.1.0

accesspress-social-share.php CHANGED
@@ -4,7 +4,7 @@ defined( 'ABSPATH' ) or die( "No script kiddies please!" );
4
  Plugin name: AccessPress Social Share
5
  Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-share/
6
  Description: A plugin to add various social media shares to a site with dynamic configuration options.
7
- Version: 1.0.9
8
  Author: AccessPress Themes
9
  Author URI: http://accesspressthemes.com
10
  Text Domain:apss-share
@@ -31,7 +31,7 @@ if( !defined( 'APSS_LANG_DIR' ) ) {
31
  }
32
 
33
  if( !defined( 'APSS_VERSION' ) ) {
34
- define( 'APSS_VERSION', '1.0.9' );
35
  }
36
 
37
  if(!defined('APSS_TEXT_DOMAIN')){
4
  Plugin name: AccessPress Social Share
5
  Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-share/
6
  Description: A plugin to add various social media shares to a site with dynamic configuration options.
7
+ Version: 1.1.0
8
  Author: AccessPress Themes
9
  Author URI: http://accesspressthemes.com
10
  Text Domain:apss-share
31
  }
32
 
33
  if( !defined( 'APSS_VERSION' ) ) {
34
+ define( 'APSS_VERSION', '1.1.0' );
35
  }
36
 
37
  if(!defined('APSS_TEXT_DOMAIN')){
images/Thumbs.db CHANGED
Binary file
inc/frontend/content-filter.php CHANGED
@@ -74,7 +74,7 @@ foreach( $options['social_networks'] as $key=>$value ){
74
  ?>
75
 
76
  <div class='apss-pinterest apss-single-icon'>
77
- <a title='Share on Pinterest' href='javascript:void((function()%7Bvar%20e=document.createElement(&apos;script&apos;);e.setAttribute(&apos;type&apos;,&apos;text/javascript&apos;);e.setAttribute(&apos;charset&apos;,&apos;UTF-8&apos;);e.setAttribute(&apos;src&apos;,&apos;http://assets.pinterest.com/js/pinmarklet.js?r=&apos;+Math.random()*99999999);document.body.appendChild(e)%7D)());'>
78
  <div class='apss-icon-block clearfix'>
79
  <i class='fa fa-pinterest'></i>
80
  <span class='apss-social-text'><?php _e( 'Share on', APSS_TEXT_DOMAIN ); ?> <?php echo ucfirst($key); ?></span>
74
  ?>
75
 
76
  <div class='apss-pinterest apss-single-icon'>
77
+ <a title='Share on Pinterest' href='javascript:pinIt();'>
78
  <div class='apss-icon-block clearfix'>
79
  <i class='fa fa-pinterest'></i>
80
  <span class='apss-social-text'><?php _e( 'Share on', APSS_TEXT_DOMAIN ); ?> <?php echo ucfirst($key); ?></span>
inc/frontend/shortcode.php CHANGED
@@ -101,7 +101,7 @@ foreach( $options['social_networks'] as $key=>$value ){
101
  ?>
102
 
103
  <div class='apss-pinterest apss-single-icon'>
104
- <a title='Share on Pinterest' href='javascript:void((function()%7Bvar%20e=document.createElement(&apos;script&apos;);e.setAttribute(&apos;type&apos;,&apos;text/javascript&apos;);e.setAttribute(&apos;charset&apos;,&apos;UTF-8&apos;);e.setAttribute(&apos;src&apos;,&apos;http://assets.pinterest.com/js/pinmarklet.js?r=&apos;+Math.random()*99999999);document.body.appendChild(e)%7D)());'>
105
  <div class='apss-icon-block clearfix'>
106
  <i class='fa fa-pinterest'></i>
107
  <span class='apss-social-text'><?php _e('Share on', APSS_TEXT_DOMAIN ); ?> <?php echo ucfirst($key); ?></span>
101
  ?>
102
 
103
  <div class='apss-pinterest apss-single-icon'>
104
+ <a title='Share on Pinterest' href='javascript:pinIt();'>
105
  <div class='apss-icon-block clearfix'>
106
  <i class='fa fa-pinterest'></i>
107
  <span class='apss-social-text'><?php _e('Share on', APSS_TEXT_DOMAIN ); ?> <?php echo ucfirst($key); ?></span>
js/frontend.js CHANGED
@@ -1,3 +1,13 @@
 
 
 
 
 
 
 
 
 
 
1
  jQuery(document).ready(function ($) {
2
 
3
  var shortcode_profile_array = [];
@@ -25,5 +35,4 @@ jQuery(document).ready(function ($) {
25
  }
26
  });
27
  }
28
-
29
  });
1
+ //https://halgatewood.com/how-to-customize-the-pin-it-button-for-pinterest
2
+ function pinIt()
3
+ {
4
+ var e = document.createElement('script');
5
+ e.setAttribute('type','text/javascript');
6
+ e.setAttribute('charset','UTF-8');
7
+ e.setAttribute('src','https://assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);
8
+ document.body.appendChild(e);
9
+ }
10
+
11
  jQuery(document).ready(function ($) {
12
 
13
  var shortcode_profile_array = [];
35
  }
36
  });
37
  }
 
38
  });
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: social share counter, social share, social media share, social network sha
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 3.8
6
  Tested up to: 4.1
7
- Stable tag: 1.0.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -119,6 +119,9 @@ Yes. You can use the AccessPress social share by using shortcode anywhere you wa
119
  6. Backend Miscellaneous Settings Section
120
 
121
  == Changelog ==
 
 
 
122
  = 1.0.9 =
123
  * Text modification in how to use section.
124
 
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 3.8
6
  Tested up to: 4.1
7
+ Stable tag: 1.1.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
119
  6. Backend Miscellaneous Settings Section
120
 
121
  == Changelog ==
122
+ = 1.1.0 =
123
+ * Code modification for the pinterest share.
124
+
125
  = 1.0.9 =
126
  * Text modification in how to use section.
127