Version Description
- There were conflicts when both free USM plugins were installed at the same time, those are now resolved
Download this release
Release Info
Developer | socialdude |
Plugin | Social Share Icons & Social Share Buttons |
Version | 2.7.0 |
Comparing to | |
See all releases |
Code changes from version 2.6.9 to 2.7.0
libs/sfsi_ajax_social_sharing_settings_updater.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
-
add_action( '
|
3 |
|
4 |
-
function
|
5 |
$option5 = unserialize(get_option('sfsi_plus_section5_options',false));
|
6 |
$option5['sfsi_plus_custom_social_hide'] = $_POST['sfsi_plus_custom_social_hide'];
|
7 |
update_option('sfsi_plus_section5_options',serialize($option5));
|
1 |
<?php
|
2 |
+
add_action( 'wp_ajax_plus_update_sharing_settings', 'sfsi_plus_update_sharing_settings' );
|
3 |
|
4 |
+
function sfsi_plus_update_sharing_settings() {
|
5 |
$option5 = unserialize(get_option('sfsi_plus_section5_options',false));
|
6 |
$option5['sfsi_plus_custom_social_hide'] = $_POST['sfsi_plus_custom_social_hide'];
|
7 |
update_option('sfsi_plus_section5_options',serialize($option5));
|
libs/sfsi_custom_social_sharing_data.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
function
|
4 |
<style>
|
5 |
.sfsi_new_prmium_follw p {
|
6 |
width: 90%;
|
@@ -28,7 +28,7 @@ function sfsi_social_media_metabox( $post ) { ?>
|
|
28 |
font-weight: bold;
|
29 |
color: #1a1d20 !important;
|
30 |
}
|
31 |
-
.
|
32 |
cursor: pointer;
|
33 |
float: right;
|
34 |
position: absolute;
|
@@ -41,36 +41,36 @@ function sfsi_social_media_metabox( $post ) { ?>
|
|
41 |
|
42 |
<script type="text/javascript">
|
43 |
jQuery(document).ready(function(){
|
44 |
-
jQuery('.
|
45 |
var data = {
|
46 |
-
action:"
|
47 |
sfsi_plus_custom_social_hide:"yes"
|
48 |
};
|
49 |
jQuery.post(ajaxurl, data, function(response) {
|
50 |
if(response){
|
51 |
alert('Settings updated');
|
52 |
-
jQuery('#sfsi-social-media').remove();
|
53 |
}
|
54 |
});
|
55 |
});
|
56 |
});
|
57 |
</script>
|
58 |
|
59 |
-
<div class="sfsi_new_prmium_follw"><p><b><?php _e("New:",SFSI_PLUS_DOMAIN); ?></b> <?php _e("The Premium Plugin (Ultimate Social Media) allows you to define which picture, snippet text or tweet gets shared.",SFSI_PLUS_DOMAIN); ?> <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=
|
60 |
|
61 |
<?php }
|
62 |
|
63 |
|
64 |
-
function
|
65 |
$screen = get_current_screen();
|
66 |
$option5 = unserialize(get_option('sfsi_plus_section5_options',false));
|
67 |
$hideSectionVal = (isset($option5['sfsi_plus_custom_social_hide'])) ? $option5['sfsi_plus_custom_social_hide']: 'no';
|
68 |
|
69 |
if($hideSectionVal=='no'){
|
70 |
if(isset($screen->post_type) && ('page'==$screen->post_type || 'post'==$screen->post_type)){
|
71 |
-
add_meta_box( 'sfsi-social-media', 'Ultimate Social Media – Sharing text & pictures', '
|
72 |
}
|
73 |
}
|
74 |
}
|
75 |
-
add_action( 'add_meta_boxes', '
|
76 |
?>
|
1 |
<?php
|
2 |
|
3 |
+
function sfsi_plus_social_media_metabox( $post ) { ?>
|
4 |
<style>
|
5 |
.sfsi_new_prmium_follw p {
|
6 |
width: 90%;
|
28 |
font-weight: bold;
|
29 |
color: #1a1d20 !important;
|
30 |
}
|
31 |
+
.sfsi_plus_hidenotice{
|
32 |
cursor: pointer;
|
33 |
float: right;
|
34 |
position: absolute;
|
41 |
|
42 |
<script type="text/javascript">
|
43 |
jQuery(document).ready(function(){
|
44 |
+
jQuery('.sfsi_plus_hidenotice').on('click',function(){
|
45 |
var data = {
|
46 |
+
action:"plus_update_sharing_settings",
|
47 |
sfsi_plus_custom_social_hide:"yes"
|
48 |
};
|
49 |
jQuery.post(ajaxurl, data, function(response) {
|
50 |
if(response){
|
51 |
alert('Settings updated');
|
52 |
+
jQuery('#sfsi-plus-social-media').remove();
|
53 |
}
|
54 |
});
|
55 |
});
|
56 |
});
|
57 |
</script>
|
58 |
|
59 |
+
<div class="sfsi_new_prmium_follw"><p><b><?php _e("New:",SFSI_PLUS_DOMAIN); ?></b> <?php _e("The Premium Plugin (Ultimate Social Media) allows you to define which picture, snippet text or tweet gets shared.",SFSI_PLUS_DOMAIN); ?> <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_post_or_page&utm_campaign=define_pic_and_text&utm_medium=banner" target="_blank"><?php _e("See all features",SFSI_PLUS_DOMAIN); ?></a></p><a class="sfsi_plus_hidenotice" href="javascript:void(0)"><?php _e("Hide this notice",SFSI_PLUS_DOMAIN); ?></a></div>
|
60 |
|
61 |
<?php }
|
62 |
|
63 |
|
64 |
+
function sfsi_plus_icons_add_meta_boxes() {
|
65 |
$screen = get_current_screen();
|
66 |
$option5 = unserialize(get_option('sfsi_plus_section5_options',false));
|
67 |
$hideSectionVal = (isset($option5['sfsi_plus_custom_social_hide'])) ? $option5['sfsi_plus_custom_social_hide']: 'no';
|
68 |
|
69 |
if($hideSectionVal=='no'){
|
70 |
if(isset($screen->post_type) && ('page'==$screen->post_type || 'post'==$screen->post_type)){
|
71 |
+
add_meta_box( 'sfsi-plus-social-media', 'Ultimate Social Media – Sharing text & pictures', 'sfsi_plus_social_media_metabox', $screen->post_type, 'normal', 'low' );
|
72 |
}
|
73 |
}
|
74 |
}
|
75 |
+
add_action( 'add_meta_boxes', 'sfsi_plus_icons_add_meta_boxes' );
|
76 |
?>
|
libs/sfsi_install_uninstall.php
CHANGED
@@ -12,7 +12,7 @@ function sfsi_plus_update_plugin()
|
|
12 |
}
|
13 |
|
14 |
//Install version
|
15 |
-
update_option("sfsi_plus_pluginVersion", "2.
|
16 |
|
17 |
if(!get_option('sfsi_plus_serverphpVersionnotification'))
|
18 |
{
|
12 |
}
|
13 |
|
14 |
//Install version
|
15 |
+
update_option("sfsi_plus_pluginVersion", "2.70");
|
16 |
|
17 |
if(!get_option('sfsi_plus_serverphpVersionnotification'))
|
18 |
{
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: socialsharepro
|
3 |
Tags: Share, sharing, share buttons, share button, share social media, share icons, buttons, sharing buttons, sharing icons, social media icons, social share, social sharing
|
4 |
Requires at least: 3.0
|
5 |
-
Tested up to: 4.8
|
6 |
-
Stable tag: 2.
|
7 |
License: GPLv2
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -432,6 +432,9 @@ The premium plugin offrs many more buttons from other social media platforms suc
|
|
432 |
|
433 |
== Changelog ==
|
434 |
|
|
|
|
|
|
|
435 |
= 2.6.9 =
|
436 |
* Notification for possibility to define sharing text and pic added
|
437 |
|
@@ -686,5 +689,5 @@ The premium plugin offrs many more buttons from other social media platforms suc
|
|
686 |
|
687 |
== Upgrade Notice ==
|
688 |
|
689 |
-
= 2.
|
690 |
* Please update
|
2 |
Contributors: socialsharepro
|
3 |
Tags: Share, sharing, share buttons, share button, share social media, share icons, buttons, sharing buttons, sharing icons, social media icons, social share, social sharing
|
4 |
Requires at least: 3.0
|
5 |
+
Tested up to: 4.8.1
|
6 |
+
Stable tag: 2.7.0
|
7 |
License: GPLv2
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
432 |
|
433 |
== Changelog ==
|
434 |
|
435 |
+
= 2.7.0 =
|
436 |
+
* There were conflicts when both free USM plugins were installed at the same time, those are now resolved
|
437 |
+
|
438 |
= 2.6.9 =
|
439 |
* Notification for possibility to define sharing text and pic added
|
440 |
|
689 |
|
690 |
== Upgrade Notice ==
|
691 |
|
692 |
+
= 2.7.0 =
|
693 |
* Please update
|
ultimate_social_media_icons.php
CHANGED
@@ -7,7 +7,7 @@ Author: UltimatelySocial
|
|
7 |
Text Domain: ultimate-social-media-plus
|
8 |
Domain Path: /languages
|
9 |
Author URI: http://ultimatelysocial.com
|
10 |
-
Version: 2.
|
11 |
License: GPLv2
|
12 |
*/
|
13 |
|
@@ -72,7 +72,7 @@ register_deactivation_hook(__FILE__, 'sfsi_plus_deactivate_plugin');
|
|
72 |
//register_uninstall_hook(__FILE__, 'sfsi_plus_Unistall_plugin');
|
73 |
|
74 |
/*Plugin version setup*/
|
75 |
-
if(!get_option('sfsi_plus_pluginVersion') || get_option('sfsi_plus_pluginVersion') < 2.
|
76 |
{
|
77 |
add_action("init", "sfsi_plus_update_plugin");
|
78 |
}
|
7 |
Text Domain: ultimate-social-media-plus
|
8 |
Domain Path: /languages
|
9 |
Author URI: http://ultimatelysocial.com
|
10 |
+
Version: 2.7.0
|
11 |
License: GPLv2
|
12 |
*/
|
13 |
|
72 |
//register_uninstall_hook(__FILE__, 'sfsi_plus_Unistall_plugin');
|
73 |
|
74 |
/*Plugin version setup*/
|
75 |
+
if(!get_option('sfsi_plus_pluginVersion') || get_option('sfsi_plus_pluginVersion') < 2.70)
|
76 |
{
|
77 |
add_action("init", "sfsi_plus_update_plugin");
|
78 |
}
|