Version Description
- Fixed pinterest blank pop up.
Download this release
Release Info
Developer | DavidoffNeal |
Plugin | Simple Share Buttons Adder |
Version | 7.3.10 |
Comparing to | |
See all releases |
Code changes from version 7.3.9 to 7.3.10
- instance.php +1 -1
- js/admin.js +13 -10
- js/ssba.js +8 -8
- readme.txt +4 -1
- simple-share-buttons-adder.php +1 -1
instance.php
CHANGED
@@ -9,7 +9,7 @@ namespace SimpleShareButtonsAdder;
|
|
9 |
|
10 |
define( 'SSBA_FILE', __FILE__ );
|
11 |
define( 'SSBA_ROOT', dirname( __FILE__ ) );
|
12 |
-
define( 'SSBA_VERSION', '7.3.
|
13 |
|
14 |
global $simple_share_buttons_adder_plugin;
|
15 |
|
9 |
|
10 |
define( 'SSBA_FILE', __FILE__ );
|
11 |
define( 'SSBA_ROOT', dirname( __FILE__ ) );
|
12 |
+
define( 'SSBA_VERSION', '7.3.10' );
|
13 |
|
14 |
global $simple_share_buttons_adder_plugin;
|
15 |
|
js/admin.js
CHANGED
@@ -64,6 +64,8 @@ var SimpleShareButtonsAdder = ( function( $, wp ) {
|
|
64 |
|
65 |
// SSBA admin form.
|
66 |
$( 'body' ).on( 'click', '#submit', function( event ) {
|
|
|
|
|
67 |
self.adminForm( event, this );
|
68 |
} );
|
69 |
|
@@ -513,12 +515,12 @@ var SimpleShareButtonsAdder = ( function( $, wp ) {
|
|
513 |
*/
|
514 |
imageUploads: function( field ) {
|
515 |
var custom_uploader = wp.media.frames.file_frame = wp.media({
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
button,
|
523 |
buttonClass;
|
524 |
|
@@ -564,11 +566,12 @@ var SimpleShareButtonsAdder = ( function( $, wp ) {
|
|
564 |
$( ':input' ).prop( 'disabled', false );
|
565 |
$( '.ssba-admin-wrap input:checkbox' ).bootstrapSwitch( 'disabled', false );
|
566 |
$( 'button.ssba-btn-save' ).html( '<i class="fa fa-floppy-o"></i>' );
|
567 |
-
|
568 |
-
// Refresh page.
|
569 |
-
location.reload();
|
570 |
}
|
571 |
-
)
|
|
|
|
|
|
|
|
|
572 |
},
|
573 |
|
574 |
/**
|
64 |
|
65 |
// SSBA admin form.
|
66 |
$( 'body' ).on( 'click', '#submit', function( event ) {
|
67 |
+
event.preventDefault();
|
68 |
+
|
69 |
self.adminForm( event, this );
|
70 |
} );
|
71 |
|
515 |
*/
|
516 |
imageUploads: function( field ) {
|
517 |
var custom_uploader = wp.media.frames.file_frame = wp.media({
|
518 |
+
title: 'Add Image',
|
519 |
+
button: {
|
520 |
+
text: 'Add Image'
|
521 |
+
},
|
522 |
+
multiple: false
|
523 |
+
} ),
|
524 |
button,
|
525 |
buttonClass;
|
526 |
|
566 |
$( ':input' ).prop( 'disabled', false );
|
567 |
$( '.ssba-admin-wrap input:checkbox' ).bootstrapSwitch( 'disabled', false );
|
568 |
$( 'button.ssba-btn-save' ).html( '<i class="fa fa-floppy-o"></i>' );
|
|
|
|
|
|
|
569 |
}
|
570 |
+
).always( function() {
|
571 |
+
|
572 |
+
// Refresh page.
|
573 |
+
location.reload();
|
574 |
+
} ); // End post.
|
575 |
},
|
576 |
|
577 |
/**
|
js/ssba.js
CHANGED
@@ -58,19 +58,19 @@ var Main = ( function( $, FB ) {
|
|
58 |
engageShareButton: function( event ) {
|
59 |
|
60 |
// If it's facebook mobile.
|
61 |
-
if ( 'mobile' === $(
|
62 |
FB.ui( {
|
63 |
method: 'share',
|
64 |
mobile_iframe: true,
|
65 |
-
href: $(
|
66 |
}, function( response ) {} );
|
67 |
} else {
|
68 |
|
69 |
// These share options don't need to have a popup.
|
70 |
-
if ( 'email' === $(
|
71 |
|
72 |
// Just redirect.
|
73 |
-
window.location.href = $(
|
74 |
} else {
|
75 |
|
76 |
// Prepare popup window.
|
@@ -79,10 +79,10 @@ var Main = ( function( $, FB ) {
|
|
79 |
left = ( $( window ).width() - width ) / 2,
|
80 |
top = ( $( window ).height() - height ) / 2,
|
81 |
opts = 'status=1' +
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
|
87 |
// Open the share url in a smaller window.
|
88 |
window.open( $( event ).attr( 'href' ), 'share', opts );
|
58 |
engageShareButton: function( event ) {
|
59 |
|
60 |
// If it's facebook mobile.
|
61 |
+
if ( 'mobile' === $( event ).data( 'facebook' ) ) {
|
62 |
FB.ui( {
|
63 |
method: 'share',
|
64 |
mobile_iframe: true,
|
65 |
+
href: $( event ).data( 'href' )
|
66 |
}, function( response ) {} );
|
67 |
} else {
|
68 |
|
69 |
// These share options don't need to have a popup.
|
70 |
+
if ( 'email' === $( event ).data( 'site' ) || 'print' === $( event ).data( 'site' ) || 'pinterest' === $( event ).data( 'site' ) ) {
|
71 |
|
72 |
// Just redirect.
|
73 |
+
window.location.href = $( event ).attr( 'href' );
|
74 |
} else {
|
75 |
|
76 |
// Prepare popup window.
|
79 |
left = ( $( window ).width() - width ) / 2,
|
80 |
top = ( $( window ).height() - height ) / 2,
|
81 |
opts = 'status=1' +
|
82 |
+
',width=' + width +
|
83 |
+
',height=' + height +
|
84 |
+
',top=' + top +
|
85 |
+
',left=' + left;
|
86 |
|
87 |
// Open the share url in a smaller window.
|
88 |
window.open( $( event ).attr( 'href' ), 'share', opts );
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: sharethis, scottstorebloom, surlyrightclick, DavidoffNeal
|
|
3 |
Tags: share buttons, social buttons, facebook, twitter, google+, share, share links, stumble upon, linkedin, pinterest, yummly, vk
|
4 |
Requires at least: 4.5
|
5 |
Tested up to: 4.8.2
|
6 |
-
Stable tag: 7.3.
|
7 |
License: GPLv2 or later
|
8 |
|
9 |
A simple plugin that enables you to add share buttons to all of your posts and/or pages.
|
@@ -64,6 +64,9 @@ Please visit the <a href="https://wordpress.org/support/plugin/simple-share-butt
|
|
64 |
|
65 |
== Changelog ==
|
66 |
|
|
|
|
|
|
|
67 |
= 7.3.9 =
|
68 |
* Fixed missing variable error.
|
69 |
* Remove missing index errors.
|
3 |
Tags: share buttons, social buttons, facebook, twitter, google+, share, share links, stumble upon, linkedin, pinterest, yummly, vk
|
4 |
Requires at least: 4.5
|
5 |
Tested up to: 4.8.2
|
6 |
+
Stable tag: 7.3.10
|
7 |
License: GPLv2 or later
|
8 |
|
9 |
A simple plugin that enables you to add share buttons to all of your posts and/or pages.
|
64 |
|
65 |
== Changelog ==
|
66 |
|
67 |
+
= 7.3.10 =
|
68 |
+
* Fixed pinterest blank pop up.
|
69 |
+
|
70 |
= 7.3.9 =
|
71 |
* Fixed missing variable error.
|
72 |
* Remove missing index errors.
|
simple-share-buttons-adder.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Simple Share Buttons Adder
|
4 |
* Plugin URI: https://simplesharebuttons.com
|
5 |
* Description: A simple plugin that enables you to add share buttons to all of your posts and/or pages.
|
6 |
-
* Version: 7.3.
|
7 |
* Author: Simple Share Buttons
|
8 |
* Author URI: https://simplesharebuttons.com
|
9 |
* License: GPLv2
|
3 |
* Plugin Name: Simple Share Buttons Adder
|
4 |
* Plugin URI: https://simplesharebuttons.com
|
5 |
* Description: A simple plugin that enables you to add share buttons to all of your posts and/or pages.
|
6 |
+
* Version: 7.3.10
|
7 |
* Author: Simple Share Buttons
|
8 |
* Author URI: https://simplesharebuttons.com
|
9 |
* License: GPLv2
|