Version Description
- Fixed missing variable error.
- Add mobile specific message for whatsapp network.
- Fix plugin confliction due to non specific function name.
Download this release
Release Info
Developer | DavidoffNeal |
Plugin | Simple Share Buttons Adder |
Version | 7.3.8 |
Comparing to | |
See all releases |
Code changes from version 7.3.7 to 7.3.8
- css/admin-theme.css +10 -0
- instance.php +1 -1
- php/class-styles.php +4 -2
- readme.txt +11 -1
- simple-share-buttons-adder.php +3 -3
- templates/classic-tab.php +7 -0
css/admin-theme.css
CHANGED
@@ -577,3 +577,13 @@
|
|
577 |
padding: 1.1rem;
|
578 |
margin: -4px -6px 0;
|
579 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
577 |
padding: 1.1rem;
|
578 |
margin: -4px -6px 0;
|
579 |
}
|
580 |
+
|
581 |
+
.whatsapp-message .ssbp-whatsapp {
|
582 |
+
padding: 1rem;
|
583 |
+
}
|
584 |
+
|
585 |
+
.whatsapp-message {
|
586 |
+
background: #f7f7f7;
|
587 |
+
padding: 1rem;
|
588 |
+
text-align: center;
|
589 |
+
}
|
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.8' );
|
13 |
|
14 |
global $simple_share_buttons_adder_plugin;
|
15 |
|
php/class-styles.php
CHANGED
@@ -265,11 +265,13 @@ class Styles {
|
|
265 |
// Add the additional CSS.
|
266 |
$html_ssba_style .= $arr_settings['ssba_additional_css'];
|
267 |
}
|
|
|
|
|
268 |
} else { // Else use set options.
|
269 |
// Use custom styles.
|
270 |
$html_ssba_style .= $arr_settings['ssba_custom_styles'];
|
271 |
-
} // End if().
|
272 |
|
273 |
-
|
|
|
274 |
}
|
275 |
}
|
265 |
// Add the additional CSS.
|
266 |
$html_ssba_style .= $arr_settings['ssba_additional_css'];
|
267 |
}
|
268 |
+
|
269 |
+
wp_add_inline_style( "{$this->plugin->assets_prefix}-ssba", $html_ssba_style ); // WPCS: XSS ok.
|
270 |
} else { // Else use set options.
|
271 |
// Use custom styles.
|
272 |
$html_ssba_style .= $arr_settings['ssba_custom_styles'];
|
|
|
273 |
|
274 |
+
wp_add_inline_style( "{$this->plugin->assets_prefix}-ssba", $html_ssba_style ); // WPCS: XSS ok.
|
275 |
+
} // End if().
|
276 |
}
|
277 |
}
|
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,16 @@ Please visit the <a href="https://wordpress.org/support/plugin/simple-share-butt
|
|
64 |
|
65 |
== Changelog ==
|
66 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
67 |
= 7.3.6 =
|
68 |
* Major plugin code clean up and refactor.
|
69 |
* Addition of Button Preview in admin.
|
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.8
|
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.8 =
|
68 |
+
* Fixed missing variable error.
|
69 |
+
* Add mobile specific message for whatsapp network.
|
70 |
+
* Fix plugin confliction due to non specific function name.
|
71 |
+
|
72 |
+
= 7.3.7 =
|
73 |
+
* Fixed Window specific plugin location error.
|
74 |
+
* Added missing custom email, diggit, buffer image fields.
|
75 |
+
* Put old shortcode back in place.
|
76 |
+
|
77 |
= 7.3.6 =
|
78 |
* Major plugin code clean up and refactor.
|
79 |
* Addition of Button Preview in admin.
|
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
|
@@ -48,9 +48,9 @@ function _simple_share_buttons_adder_php_version_text() {
|
|
48 |
return __( 'Simple Share Buttons Adder plugin error: Your version of PHP is too old to run this plugin. You must be running PHP 5.3 or higher.', 'simple-share-buttons-adder' );
|
49 |
}
|
50 |
|
51 |
-
add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), '
|
52 |
|
53 |
-
function
|
54 |
$mylinks = array(
|
55 |
'<a href="' . admin_url( 'options-general.php?page=simple-share-buttons-adder' ) . '">Settings</a>',
|
56 |
);
|
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.8
|
7 |
* Author: Simple Share Buttons
|
8 |
* Author URI: https://simplesharebuttons.com
|
9 |
* License: GPLv2
|
48 |
return __( 'Simple Share Buttons Adder plugin error: Your version of PHP is too old to run this plugin. You must be running PHP 5.3 or higher.', 'simple-share-buttons-adder' );
|
49 |
}
|
50 |
|
51 |
+
add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), '_simple_share_buttons_adder_add_action_links' );
|
52 |
|
53 |
+
function _simple_share_buttons_adder_add_action_links( $links ) {
|
54 |
$mylinks = array(
|
55 |
'<a href="' . admin_url( 'options-general.php?page=simple-share-buttons-adder' ) . '">Settings</a>',
|
56 |
);
|
templates/classic-tab.php
CHANGED
@@ -49,6 +49,13 @@
|
|
49 |
</div>
|
50 |
</div>
|
51 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
<input type="hidden" name="ssba_selected_buttons" id="ssba_selected_buttons" value="<?php esc_attr( $arr_settings['ssba_selected_buttons'] ); ?>"/>
|
53 |
</div>
|
54 |
<?php
|
49 |
</div>
|
50 |
</div>
|
51 |
|
52 |
+
<?php if ( in_array( 'whatsapp', explode( ',', $arr_settings['ssba_selected_buttons'] ), true ) ) : ?>
|
53 |
+
<div class="ssbp--theme-4 whatsapp-message">
|
54 |
+
<span class="ssbp-btn ssbp-whatsapp"></span>
|
55 |
+
<?php echo esc_html__( 'The whatsapp button only appears on mobile devices. It is included in your desktop preview for reference only.', 'prodigy-commerce' ); ?>
|
56 |
+
</div>
|
57 |
+
<?php endif; ?>
|
58 |
+
|
59 |
<input type="hidden" name="ssba_selected_buttons" id="ssba_selected_buttons" value="<?php esc_attr( $arr_settings['ssba_selected_buttons'] ); ?>"/>
|
60 |
</div>
|
61 |
<?php
|