Social Icons Widget - Version 15.10

Version Description

  • Fix error with WPML where changing languages broke the icon path.
Download this release

Release Info

Developer nisbetcreative
Plugin Icon 128x128 Social Icons Widget
Version 15.10
Comparing to
See all releases

Code changes from version 15.07 to 15.10

Files changed (3) hide show
  1. lib/widget.php +4 -2
  2. readme.txt +4 -1
  3. social-media-icons-widget.php +2 -2
lib/widget.php CHANGED
@@ -28,10 +28,12 @@ $ul_class .= 'icons-'.$siw_icons;
28
  global $siw_data;
29
  global $siw_icon_output;
30
 
 
 
31
  $siw_data['id'] = $id;
32
  $siw_data['url'] = $instance[$id];
33
  $siw_custom_sizes = array('custom_small','custom_medium','custom_large');
34
-
35
  if (in_array($siw_icons, $siw_custom_sizes)) {
36
  $size = str_replace("custom_","",$siw_icons);
37
  $siw_icon_path = get_stylesheet_directory() .'/social_icons/'.$size.'/'.$id.'.{gif,jpg,jpeg,png}';
@@ -55,7 +57,7 @@ $ul_class .= 'icons-'.$siw_icons;
55
  if($result) {
56
  if (in_array($siw_icons, $siw_custom_sizes)) {
57
  $siw_path = explode('themes', $result[0]);
58
- $siw_icon = get_bloginfo('url').'/wp-content/themes'.$siw_path[1];
59
  }
60
  else {
61
  $siw_path = explode('plugins', $result[0]);
28
  global $siw_data;
29
  global $siw_icon_output;
30
 
31
+ $imgsize = '';
32
+
33
  $siw_data['id'] = $id;
34
  $siw_data['url'] = $instance[$id];
35
  $siw_custom_sizes = array('custom_small','custom_medium','custom_large');
36
+
37
  if (in_array($siw_icons, $siw_custom_sizes)) {
38
  $size = str_replace("custom_","",$siw_icons);
39
  $siw_icon_path = get_stylesheet_directory() .'/social_icons/'.$size.'/'.$id.'.{gif,jpg,jpeg,png}';
57
  if($result) {
58
  if (in_array($siw_icons, $siw_custom_sizes)) {
59
  $siw_path = explode('themes', $result[0]);
60
+ $siw_icon = site_url().'/wp-content/themes'.$siw_path[1];
61
  }
62
  else {
63
  $siw_path = explode('plugins', $result[0]);
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: social, media, widget, follow, profile, icons, 500px, About.me, Behance, D
4
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=CJN7XU3Z7XHDL
5
  Requires at least: 3.5.1
6
  Tested up to: 4.3
7
- Stable tag: 15.07
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -74,6 +74,9 @@ The opening and closing unordered list tags can be edited or changed with the so
74
 
75
  == Changelog ==
76
 
 
 
 
77
  = 15.07 =
78
  * Replaced http:// in unused input boxes with placeholder attribute instead.
79
  * Added CSS for icons in widget settings.
4
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=CJN7XU3Z7XHDL
5
  Requires at least: 3.5.1
6
  Tested up to: 4.3
7
+ Stable tag: 15.10.1
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
74
 
75
  == Changelog ==
76
 
77
+ = 15.10 =
78
+ * Fix error with WPML where changing languages broke the icon path.
79
+
80
  = 15.07 =
81
  * Replaced http:// in unused input boxes with placeholder attribute instead.
82
  * Added CSS for icons in widget settings.
social-media-icons-widget.php CHANGED
@@ -2,9 +2,9 @@
2
  /*
3
  Plugin Name: Social Icons Widget
4
  Plugin URI: http://github.com/dannisbet/Social-Icons-Widget
5
- Version: 15.07
6
  Description: Displays a list of social media website icons and a link to your profile.
7
- Author: Dan Nisbet
8
  Author URI: https://nisbetcreative.com/
9
  */
10
 
2
  /*
3
  Plugin Name: Social Icons Widget
4
  Plugin URI: http://github.com/dannisbet/Social-Icons-Widget
5
+ Version: 15.10.1
6
  Description: Displays a list of social media website icons and a link to your profile.
7
+ Author: Daniel Nisbet
8
  Author URI: https://nisbetcreative.com/
9
  */
10