Social Media Widget - Version 3.0.2

Version Description

  • Bug fixes
Download this release

Release Info

Developer bmwebproperties
Plugin Icon 128x128 Social Media Widget
Version 3.0.2
Comparing to
See all releases

Code changes from version 3.0 to 3.0.2

Files changed (3) hide show
  1. readme.txt +9 -1
  2. social-widget.php +9 -9
  3. social_widget.css +6 -17
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: bmwebproperties
3
  Tags: social media, twitter, facebook, google+, googleplus, myspace, digg, email, rss, reddit, linkedin, orkut, youtube, buzz, social, icons, links, subscribe, follow, follow me, friendfeed, flickr, stumbleupon, vimeo, delicious, meetup, lastfm, foursquare, skype, blogger, wordpress, yelp, soundcloud, digital tunes, tumblr, hyves, etsy, tungle, plancast, slideshare, deviantart, better business bureau, merchant circle, asmallworld, live365, ping, itunes, picasa, steam, google talk, pandora, hulu, ebay, flixster, imdb, bandcamp, ustream, pinterest
4
  Requires at least: 2.9.2
5
  Tested up to: 3.5
6
- Stable tag: 3.0
7
 
8
  Adds links to all of your social media and sharing site profiles. Tons of icons come in 3 sizes, 4 icon styles, and 4 animations.
9
 
@@ -169,6 +169,14 @@ Please add a post on the Wordpress.org support forums with the plugin tagged.
169
 
170
  == Changelog ==
171
 
 
 
 
 
 
 
 
 
172
  = 3.0 =
173
 
174
  * Made admin panel more condensed and user-friendly
3
  Tags: social media, twitter, facebook, google+, googleplus, myspace, digg, email, rss, reddit, linkedin, orkut, youtube, buzz, social, icons, links, subscribe, follow, follow me, friendfeed, flickr, stumbleupon, vimeo, delicious, meetup, lastfm, foursquare, skype, blogger, wordpress, yelp, soundcloud, digital tunes, tumblr, hyves, etsy, tungle, plancast, slideshare, deviantart, better business bureau, merchant circle, asmallworld, live365, ping, itunes, picasa, steam, google talk, pandora, hulu, ebay, flixster, imdb, bandcamp, ustream, pinterest
4
  Requires at least: 2.9.2
5
  Tested up to: 3.5
6
+ Stable tag: 3.0.2
7
 
8
  Adds links to all of your social media and sharing site profiles. Tons of icons come in 3 sizes, 4 icon styles, and 4 animations.
9
 
169
 
170
  == Changelog ==
171
 
172
+ = 3.0.2 =
173
+
174
+ * Bug fixes
175
+
176
+ = 3.0.1 =
177
+
178
+ * Bug fix
179
+
180
  = 3.0 =
181
 
182
  * Made admin panel more condensed and user-friendly
social-widget.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Social Media Widget
4
  * Plugin URI: http://wordpress.org/extend/plugins/social-media-widget/
5
  * Description: Adds links to all of your social media and sharing site profiles. Tons of icons come in 3 sizes, 4 icon styles, and 4 animations.
6
- * Version: 3.0
7
  * Author: Blink Web Effects
8
  * Author URI: http://blinkwebeffects.com/
9
  **/
@@ -291,11 +291,11 @@ class Social_Widget extends WP_Widget {
291
 
292
  foreach ($this->networks as $slug => $ndata) {
293
  $$slug = $instance[$slug];
294
- ${$slug."_title"} = $instance[$slug."_title"];
295
  }
296
  foreach ($this->networks_end as $slug => $ndata) {
297
  $$slug = $instance[$slug];
298
- ${$slug."_title"} = $instance[$slug."_title"];
299
  }
300
 
301
  $customiconsurl = $instance['customiconsurl'];
@@ -369,11 +369,12 @@ class Social_Widget extends WP_Widget {
369
  echo "<div class=\"socialmedia-text\>" . $instance['filter'] ? wpautop($text) : $text . '</div>';
370
 
371
  /* Display linked images to profiles from widget settings if one was input. */
372
-
 
373
  $html_chunks = array();
374
 
375
  foreach ($this->networks as $slug => $ndata) {
376
- $html_chunks[] = $this->html_chunk( $$slug, $ndata['image'], ${$slug."_title"} );
377
  }
378
 
379
  for ($i = 1; $i <= $this->custom_count; $i++) {
@@ -381,13 +382,12 @@ class Social_Widget extends WP_Widget {
381
  }
382
 
383
  foreach ($this->networks_end as $slug => $ndata) {
384
- $html_chunks[] = $this->html_chunk( $$slug, $ndata['image'], ${$slug."_title"} );
385
  }
386
 
387
  echo implode('', $html_chunks);
388
 
389
  /* After widget (defined by themes). */
390
-
391
  echo "</div>";
392
 
393
  echo $after_widget;
@@ -396,7 +396,7 @@ class Social_Widget extends WP_Widget {
396
  function html_chunk( $slug, $image, $title, $custom = false ) {
397
  if ($slug != '' && $slug != ' ' && $slug != 'mailto:' && $slug != 'http://' && (($custom === false && file_exists($this->smw_dir . '/' . $image)) || ($custom === true && $image != ''))) {
398
  $img = $custom === false ? $this->smw_path . '/' . $image : $image;
399
- $html = '<span class="smw_icon">';
400
  /*
401
  if ($this->display_titles == 'left') {
402
  $html .= '<span> ' . $title . ' </span>';
@@ -416,7 +416,7 @@ class Social_Widget extends WP_Widget {
416
  $html .= '<br/><span> ' . $title . ' </span>';
417
  }
418
  */
419
- $html .= '</span>';
420
  if ($this->icons_per_row == 'one') {
421
  $html .= '<br/>';
422
  }
3
  * Plugin Name: Social Media Widget
4
  * Plugin URI: http://wordpress.org/extend/plugins/social-media-widget/
5
  * Description: Adds links to all of your social media and sharing site profiles. Tons of icons come in 3 sizes, 4 icon styles, and 4 animations.
6
+ * Version: 3.0.2
7
  * Author: Blink Web Effects
8
  * Author URI: http://blinkwebeffects.com/
9
  **/
291
 
292
  foreach ($this->networks as $slug => $ndata) {
293
  $$slug = $instance[$slug];
294
+ // ${$slug."_title"} = $instance[$slug."_title"];
295
  }
296
  foreach ($this->networks_end as $slug => $ndata) {
297
  $$slug = $instance[$slug];
298
+ // ${$slug."_title"} = $instance[$slug."_title"];
299
  }
300
 
301
  $customiconsurl = $instance['customiconsurl'];
369
  echo "<div class=\"socialmedia-text\>" . $instance['filter'] ? wpautop($text) : $text . '</div>';
370
 
371
  /* Display linked images to profiles from widget settings if one was input. */
372
+
373
+
374
  $html_chunks = array();
375
 
376
  foreach ($this->networks as $slug => $ndata) {
377
+ $html_chunks[] = $this->html_chunk( $$slug, $ndata['image'], $ndata['title'] );
378
  }
379
 
380
  for ($i = 1; $i <= $this->custom_count; $i++) {
382
  }
383
 
384
  foreach ($this->networks_end as $slug => $ndata) {
385
+ $html_chunks[] = $this->html_chunk( $$slug, $ndata['image'], $ndata['title'] );
386
  }
387
 
388
  echo implode('', $html_chunks);
389
 
390
  /* After widget (defined by themes). */
 
391
  echo "</div>";
392
 
393
  echo $after_widget;
396
  function html_chunk( $slug, $image, $title, $custom = false ) {
397
  if ($slug != '' && $slug != ' ' && $slug != 'mailto:' && $slug != 'http://' && (($custom === false && file_exists($this->smw_dir . '/' . $image)) || ($custom === true && $image != ''))) {
398
  $img = $custom === false ? $this->smw_path . '/' . $image : $image;
399
+ // $html = '<span class="smw_icon">';
400
  /*
401
  if ($this->display_titles == 'left') {
402
  $html .= '<span> ' . $title . ' </span>';
416
  $html .= '<br/><span> ' . $title . ' </span>';
417
  }
418
  */
419
+ // $html .= '</span>';
420
  if ($this->icons_per_row == 'one') {
421
  $html .= '<br/>';
422
  }
social_widget.css CHANGED
@@ -23,20 +23,6 @@ li.Social_Widget a {
23
  text-align: center;
24
  }
25
 
26
- .smw_center a,
27
- .smw_left a {
28
- margin-right: 10px !important;
29
- }
30
-
31
- .smw_right a {
32
- margin-left: 10px !important;
33
- }
34
-
35
- .icons_per_row_1 a {
36
- margin-right: 0 !important;
37
- margin-left: 0 !important;
38
- }
39
-
40
  .smw_center img,
41
  .smw_left img {
42
  border: 0;
@@ -45,6 +31,7 @@ li.Social_Widget a {
45
  -webkit-transition: all 0.2s ease-in;
46
  -moz-transition: all 0.2s ease-in;
47
  transition: all 0.2s ease;
 
48
  }
49
 
50
  .smw_right img {
@@ -54,11 +41,12 @@ li.Social_Widget a {
54
  -webkit-transition: all 0.2s ease-in;
55
  -moz-transition: all 0.2s ease-in;
56
  transition: all 0.2s ease;
 
57
  }
58
 
59
- .smw_icon {
60
- display: inline-block;
61
- margin-top: 1px;
62
  }
63
 
64
  .socialmedia-buttons a {
@@ -71,6 +59,7 @@ li.Social_Widget a {
71
  }
72
  .socialmedia-buttons img {
73
  vertical-align: middle;
 
74
  }
75
  .socialmedia-buttons img.fade:hover {
76
  opacity: 1 !important;
23
  text-align: center;
24
  }
25
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
  .smw_center img,
27
  .smw_left img {
28
  border: 0;
31
  -webkit-transition: all 0.2s ease-in;
32
  -moz-transition: all 0.2s ease-in;
33
  transition: all 0.2s ease;
34
+ margin-right: 10px !important;
35
  }
36
 
37
  .smw_right img {
41
  -webkit-transition: all 0.2s ease-in;
42
  -moz-transition: all 0.2s ease-in;
43
  transition: all 0.2s ease;
44
+ margin-left: 10px !important;
45
  }
46
 
47
+ .icons_per_row_1 img {
48
+ margin-right: 0 !important;
49
+ margin-left: 0 !important;
50
  }
51
 
52
  .socialmedia-buttons a {
59
  }
60
  .socialmedia-buttons img {
61
  vertical-align: middle;
62
+ margin-bottom: 3px;
63
  }
64
  .socialmedia-buttons img.fade:hover {
65
  opacity: 1 !important;