Social Share Icons & Social Share Buttons - Version 2.3

Version Description

  • Feed claiming optimized
Download this release

Release Info

Developer socialdude
Plugin Icon 128x128 Social Share Icons & Social Share Buttons
Version 2.3
Comparing to
See all releases

Code changes from version 2.2 to 2.3

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.11");
16
 
17
  /*show notification*/
18
  if(!get_option('sfsi_plus_show_notification'))
@@ -379,6 +379,7 @@ function sfsi_plus_Unistall_plugin()
379
  delete_option('sfsi_plus_footer_sec');
380
  delete_option('sfsi_plus_activate');
381
  delete_option("sfsi_plus_pluginVersion");
 
382
 
383
  } /* end function */
384
  /* check CUrl */
12
  }
13
 
14
  //Install version
15
+ update_option("sfsi_plus_pluginVersion", "2.12");
16
 
17
  /*show notification*/
18
  if(!get_option('sfsi_plus_show_notification'))
379
  delete_option('sfsi_plus_footer_sec');
380
  delete_option('sfsi_plus_activate');
381
  delete_option("sfsi_plus_pluginVersion");
382
+ delete_option("sfsi_plus_verificatiom_code");
383
 
384
  } /* end function */
385
  /* check CUrl */
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=seb.r
4
  Tags: social media, social media icons, social media buttons, social media sharing, floating social media, social media icon, social media button, sharing icons, sharing, sharing buttons, social media widget, socialmedia, social media pop-up, social, social icons, icon, icons, buttons, facebook icon, twitter icon, instagram, instagram icon, counter, facebook, facebook like, like, tweet, tweet button, buttons, tweet icon, youtube, youtube icon, linkedin, linkedin icon, logos, follow, social profiles, social media accounts, social share
5
  Requires at least: 3.0
6
  Tested up to: 4.3.1
7
- Stable tag: 2.2
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -73,9 +73,11 @@ Please check out the FAQ on http://ultimatelysocial.com
73
 
74
  == Changelog ==
75
 
 
 
 
76
  = 2.2 =
77
  * Shortpixel link updated
78
- * Feed claiming optimized
79
 
80
  = 2.1 =
81
  * Feed claiming bug fixed
@@ -157,5 +159,5 @@ Please check out the FAQ on http://ultimatelysocial.com
157
 
158
  == Upgrade Notice ==
159
 
160
- = 2.2 =
161
  * Several enhancements and fixes - please upgrade!
4
  Tags: social media, social media icons, social media buttons, social media sharing, floating social media, social media icon, social media button, sharing icons, sharing, sharing buttons, social media widget, socialmedia, social media pop-up, social, social icons, icon, icons, buttons, facebook icon, twitter icon, instagram, instagram icon, counter, facebook, facebook like, like, tweet, tweet button, buttons, tweet icon, youtube, youtube icon, linkedin, linkedin icon, logos, follow, social profiles, social media accounts, social share
5
  Requires at least: 3.0
6
  Tested up to: 4.3.1
7
+ Stable tag: 2.3
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
73
 
74
  == Changelog ==
75
 
76
+ = 2.3 =
77
+ * Feed claiming optimized
78
+
79
  = 2.2 =
80
  * Shortpixel link updated
 
81
 
82
  = 2.1 =
83
  * Feed claiming bug fixed
159
 
160
  == Upgrade Notice ==
161
 
162
+ = 2.3 =
163
  * Several enhancements and fixes - please upgrade!
ultimate_social_media_icons.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://ultimatelysocial.com
5
  Description: The best social media plugin on the market. And 100% FREE. Allows you to add social media & share icons to your blog (esp. Facebook, Twitter, Email, RSS, Pinterest, Instagram, Google+, LinkedIn, Share-button). It offers a wide range of design options and other features.
6
  Author: UltimatelySocial
7
  Author URI: http://ultimatelysocial.com
8
- Version: 2.1.1
9
  License: GPLv2
10
  */
11
 
@@ -34,7 +34,7 @@ register_deactivation_hook(__FILE__, 'sfsi_plus_deactivate_plugin');
34
  register_uninstall_hook(__FILE__, 'sfsi_plus_Unistall_plugin');
35
 
36
  /*Plugin version setup*/
37
- if(!get_option('sfsi_plus_pluginVersion') || get_option('sfsi_plus_pluginVersion') < 2.11)
38
  {
39
  add_action("init", "sfsi_plus_update_plugin");
40
  }
@@ -108,6 +108,14 @@ function ultimateplusfbmetatags()
108
  {
109
  $metarequest = get_option("adding_plustags");
110
  $post_id = get_the_ID();
 
 
 
 
 
 
 
 
111
  if($metarequest == 'yes' && !empty($post_id))
112
  {
113
  $post = get_post( $post_id );
@@ -188,6 +196,36 @@ function ultimateplusfbmetatags()
188
  }
189
  }
190
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
191
  //functionality for before and after single posts
192
  add_filter( 'the_content', 'sfsi_plus_beforaftereposts' );
193
  function sfsi_plus_beforaftereposts( $content )
5
  Description: The best social media plugin on the market. And 100% FREE. Allows you to add social media & share icons to your blog (esp. Facebook, Twitter, Email, RSS, Pinterest, Instagram, Google+, LinkedIn, Share-button). It offers a wide range of design options and other features.
6
  Author: UltimatelySocial
7
  Author URI: http://ultimatelysocial.com
8
+ Version: 2.1.2
9
  License: GPLv2
10
  */
11
 
34
  register_uninstall_hook(__FILE__, 'sfsi_plus_Unistall_plugin');
35
 
36
  /*Plugin version setup*/
37
+ if(!get_option('sfsi_plus_pluginVersion') || get_option('sfsi_plus_pluginVersion') < 2.12)
38
  {
39
  add_action("init", "sfsi_plus_update_plugin");
40
  }
108
  {
109
  $metarequest = get_option("adding_plustags");
110
  $post_id = get_the_ID();
111
+
112
+ $feed_id = get_option('sfsi_plus_feed_id');
113
+ $verification_code = get_option('sfsi_plus_verificatiom_code');
114
+ if(!empty($feed_id) && !empty($verification_code) && $verification_code != "no" )
115
+ {
116
+ echo '<meta name="specificfeeds-verification-code-'.$feed_id.'" content="'.$verification_code.'"/>';
117
+ }
118
+
119
  if($metarequest == 'yes' && !empty($post_id))
120
  {
121
  $post = get_post( $post_id );
196
  }
197
  }
198
 
199
+ //Get verification code
200
+ if(is_admin())
201
+ {
202
+ $code = get_option('sfsi_plus_verificatiom_code');
203
+ $feed_id = get_option('sfsi_plus_feed_id');
204
+ if(empty($code) && !empty($feed_id))
205
+ {
206
+ add_action("init", "sfsi_plus_getverification_code");
207
+ }
208
+ }
209
+ function sfsi_plus_getverification_code()
210
+ {
211
+ $feed_id = get_option('sfsi_plus_feed_id');
212
+ $curl = curl_init();
213
+ curl_setopt_array($curl, array(
214
+ CURLOPT_RETURNTRANSFER => 1,
215
+ CURLOPT_URL => 'http://www.specificfeeds.com/wordpress/getVerifiedCode_plugin',
216
+ CURLOPT_USERAGENT => 'sf get verification',
217
+ CURLOPT_POST => 1,
218
+ CURLOPT_POSTFIELDS => array(
219
+ 'feed_id' => $feed_id
220
+ )
221
+ ));
222
+ // Send the request & save response to $resp
223
+ $resp = curl_exec($curl);
224
+ $resp = json_decode($resp);
225
+ update_option('sfsi_plus_verificatiom_code', $resp->code);
226
+ curl_close($curl);
227
+ }
228
+
229
  //functionality for before and after single posts
230
  add_filter( 'the_content', 'sfsi_plus_beforaftereposts' );
231
  function sfsi_plus_beforaftereposts( $content )