Social Media Widget - Version 2.9.4

Version Description

  • Added support for Pinterest (Sorry about the large gap in time. Finally got some time to do this)
Download this release

Release Info

Developer brianfreytag
Plugin Icon 128x128 Social Media Widget
Version 2.9.4
Comparing to
See all releases

Code changes from version 2.9.3 to 2.9.4

images/cutout/16/pinterest.png ADDED
Binary file
images/cutout/32/pinterest.png ADDED
Binary file
images/cutout/64/pinterest.png ADDED
Binary file
images/default/16/pinterest.png ADDED
Binary file
images/default/32/pinterest.png ADDED
Binary file
images/default/64/pinterest.png ADDED
Binary file
images/heart/16/pinterest.png ADDED
Binary file
images/heart/32/pinterest.png ADDED
Binary file
images/heart/64/pinterest.png ADDED
Binary file
images/sketch/16/pinterest.png ADDED
Binary file
images/sketch/32/pinterest.png ADDED
Binary file
images/sketch/64/pinterest.png ADDED
Binary file
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === Social Media Widget ===
2
  Contributors: brianfreytag
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
4
  Requires at least: 2.9.2
5
- Tested up to: 3.2.1
6
- Stable tag: 2.9.3
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
 
@@ -25,6 +25,7 @@ The Social Media Widget is a simple sidebar widget that allows users to input th
25
  * aSmallWorld
26
  * Flickr
27
  * Picasa Web Albums
 
28
  * YouTube
29
  * Skype
30
  * Digg
@@ -125,7 +126,8 @@ Use the README.txt for that plugin for more usage.
125
 
126
  = How can I use my own custom icon pack? =
127
 
128
- 1. Create a folder on the filesystem that is publicly accessible via the interwebs. I suggest putting it in your wp-content folder and name it 'icons'
 
129
  2. Upload your icons into that folder. It'll probably be a good idea if they are all the same size.
130
  3. Go to the Widget Control Panel (Admin -> Appearance -> Widgets)
131
  4. Select "Custom Icons" as the Icon Pack
@@ -140,14 +142,13 @@ NOTE: IN ORDER FOR IT TO BE SAFE FROM UPGRADES, DO NOT UPLOAD THE ICONS INTO THE
140
 
141
  You can also upload the icons individually through Wordpress. These will be uploaded to your /wp-content/uploads/year/month/ folder by default. Use this as a starting point for your custom icon pack URL and Path
142
 
143
- If you
144
  If you don't understand what it means to create a folder and upload to that folder on the filesystem, or if you don't know what a path to a folder is, I would suggest sticking with one of the four default icon packs.
145
 
146
  = Can you add [insert social media service] support =
147
  Yes I can. Please leave a comment in the Wordpress.org forums tagging my plugin or e-mailing me at info at precisionwebdev dot com.
148
 
149
  = Why aren't the animations working in Internet Explorer 6+ =
150
- The only animation supported by Internet Explorer is Scale, and that only works reliably with Internet Explorer 8. Scale is also included in Combo. No other animations will work. This is because I do not want to use Javascript to animate my icons. All of these animations are using CSS3 styles. The animations work the best with Webkit based browsers such as Chrome and Safari or Firefox 4. Firefox 3.x is fully supported, without CSS3 transition animations.
151
 
152
  = Why aren't my icons aligning? =
153
  Check your style.css file. I'm sure you have something in there that is forcing alignment of your widgets. You'll have to modify that. If you don't know how to do CSS... Learn.
@@ -169,6 +170,10 @@ Please e-mail me at info at precisionwebdev dot com for help. My web server died
169
 
170
  == Changelog ==
171
 
 
 
 
 
172
  = 2.9.3 =
173
 
174
  * Added support for Google+
1
  === Social Media Widget ===
2
  Contributors: brianfreytag
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.3.2
6
+ Stable tag: 2.9.4
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
 
25
  * aSmallWorld
26
  * Flickr
27
  * Picasa Web Albums
28
+ * Pinterest
29
  * YouTube
30
  * Skype
31
  * Digg
126
 
127
  = How can I use my own custom icon pack? =
128
 
129
+ 1. Create a folder on the filesystem that is publicly accessible via the interwebs. I suggest putting it in your wp-content folder and name it 'icons'
130
+ 1.1. Your icons MUST be named the same as mine (facebook.png, twitter.png, pinterest.png, etc...) for this functionality to work! Navigate to the social-media-widget directory and view the files if you're not sure how they're named.
131
  2. Upload your icons into that folder. It'll probably be a good idea if they are all the same size.
132
  3. Go to the Widget Control Panel (Admin -> Appearance -> Widgets)
133
  4. Select "Custom Icons" as the Icon Pack
142
 
143
  You can also upload the icons individually through Wordpress. These will be uploaded to your /wp-content/uploads/year/month/ folder by default. Use this as a starting point for your custom icon pack URL and Path
144
 
 
145
  If you don't understand what it means to create a folder and upload to that folder on the filesystem, or if you don't know what a path to a folder is, I would suggest sticking with one of the four default icon packs.
146
 
147
  = Can you add [insert social media service] support =
148
  Yes I can. Please leave a comment in the Wordpress.org forums tagging my plugin or e-mailing me at info at precisionwebdev dot com.
149
 
150
  = Why aren't the animations working in Internet Explorer 6+ =
151
+ The only animation supported by Internet Explorer is Scale, and that only works reliably with Internet Explorer 8. Scale is also included in Combo. No other animations will work. This is because I do not want to use Javascript to animate my icons. All of these animations are using CSS3 styles. The animations work the best with Webkit based browsers such as Chrome and Safari, or Firefox 4. Firefox 3.x is fully supported, without CSS3 transition animations.
152
 
153
  = Why aren't my icons aligning? =
154
  Check your style.css file. I'm sure you have something in there that is forcing alignment of your widgets. You'll have to modify that. If you don't know how to do CSS... Learn.
170
 
171
  == Changelog ==
172
 
173
+ = 2.9.4 =
174
+
175
+ * Added support for Pinterest (Sorry about the large gap in time. Finally got some time to do this)
176
+
177
  = 2.9.3 =
178
 
179
  * Added support for Google+
social-widget.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: Social Media Widget
4
  * 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.
5
- * Version: 2.9.3
6
  * Author: Brian Freytag
7
  **/
8
 
@@ -63,6 +63,7 @@ class Social_Widget extends WP_Widget {
63
  $asmallworld = $instance['asmallworld'];
64
  $flickr = $instance['flickr'];
65
  $picasa = $instance['picasa'];
 
66
  $youtube = $instance['youtube'];
67
  $skype = $instance['skype'];
68
  $digg = $instance['digg'];
@@ -270,6 +271,13 @@ class Social_Widget extends WP_Widget {
270
  echo ''; //If no URL inputed
271
  }
272
 
 
 
 
 
 
 
 
273
  // YouTube
274
  if ( $youtube != '' && $youtube != ' ' && file_exists($smw_dir.'/youtube.png')) {
275
  ?><a href="<?php echo $youtube; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>/youtube.png" alt="<?php echo $imgcaption; ?> YouTube" title="<?php echo $imgcaption; ?> YouTube" <?php if($animation == 'fade' || $animation == 'combo') { ?> style="opacity: <?php echo $icon_opacity; ?>; -moz-opacity: <?php echo $icon_opacity;?>;" <?php } ?>class="<?php echo $animation; ?>" /></a><?php
@@ -607,6 +615,7 @@ class Social_Widget extends WP_Widget {
607
  $instance['meetup'] = strip_tags( $new_instance['meetup'] );
608
  $instance['flickr'] = strip_tags( $new_instance['flickr'] );
609
  $instance['picasa'] = strip_tags( $new_instance['picasa'] );
 
610
  $instance['deviantart'] = strip_tags( $new_instance['deviantart'] );
611
  $instance['youtube'] = strip_tags( $new_instance['youtube'] );
612
  $instance['hulu'] = strip_tags( $new_instance['hulu'] );
@@ -698,6 +707,7 @@ class Social_Widget extends WP_Widget {
698
  'meetup' => __('', 'smw'),
699
  'flickr' => __('', 'smw'),
700
  'picasa' => __('', 'smw'),
 
701
  'deviantart' => __('', 'smw'),
702
  'youtube' => __('', 'smw'),
703
  'hulu' => __('', 'smw'),
@@ -933,6 +943,12 @@ class Social_Widget extends WP_Widget {
933
  <input id="<?php echo $this->get_field_id( 'picasa' ); ?>" name="<?php echo $this->get_field_name( 'picasa' ); ?>" value="<?php echo $instance['picasa']; ?>" style="width:85%;" />
934
  </p>
935
 
 
 
 
 
 
 
936
  <!-- DeviantArt URL: Text Input -->
937
  <p>
938
  <label for="<?php echo $this->get_field_id( 'deviantart' ); ?>"><?php _e('DeviantArt URL:', 'smw'); ?></label>
@@ -974,16 +990,14 @@ class Social_Widget extends WP_Widget {
974
  <label for="<?php echo $this->get_field_id( 'imdb' ); ?>"><?php _e('IMDb URL:', 'smw'); ?></label>
975
  <input id="<?php echo $this->get_field_id( 'imdb' ); ?>" name="<?php echo $this->get_field_name( 'imdb' ); ?>" value="<?php echo $instance['imdb']; ?>" style="width:85%;" />
976
  </p>
977
-
 
978
  <h3>Gaming</h3>
979
  <!-- Steam URL: Text Input -->
980
  <p>
981
  <label for="<?php echo $this->get_field_id( 'steam' ); ?>"><?php _e('Steam URL:', 'smw'); ?></label>
982
  <input id="<?php echo $this->get_field_id( 'steam' ); ?>" name="<?php echo $this->get_field_name( 'steam' ); ?>" value="<?php echo $instance['steam']; ?>" style="width:85%;" />
983
  </p>
984
- </div>
985
- <div style="width:32%; float: left; padding-left: 10px; border-left: 1px solid #000">
986
-
987
  <h3>Chatting</h3>
988
  <!-- Skype URL: Text Input -->
989
  <p>
2
  /**
3
  * Plugin Name: Social Media Widget
4
  * 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.
5
+ * Version: 2.9.4
6
  * Author: Brian Freytag
7
  **/
8
 
63
  $asmallworld = $instance['asmallworld'];
64
  $flickr = $instance['flickr'];
65
  $picasa = $instance['picasa'];
66
+ $pinterest = $instance['pinterest'];
67
  $youtube = $instance['youtube'];
68
  $skype = $instance['skype'];
69
  $digg = $instance['digg'];
271
  echo ''; //If no URL inputed
272
  }
273
 
274
+ // Pinterest
275
+ if ( $pinterest != '' && $pinterest != ' ' && file_exists($smw_dir.'/pinterest.png')) {
276
+ ?><a href="<?php echo $pinterest; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>/pinterest.png" alt="<?php echo $imgcaption; ?> Pinterest" title="<?php echo $imgcaption; ?> Pinterest" <?php if($animation == 'fade' || $animation == 'combo') { ?> style="opacity: <?php echo $icon_opacity; ?>; -moz-opacity: <?php echo $icon_opacity;?>;" <?php } ?>class="<?php echo $animation; ?>" /></a><?php
277
+ } else {
278
+ echo ''; //If No URL Inputed
279
+ }
280
+
281
  // YouTube
282
  if ( $youtube != '' && $youtube != ' ' && file_exists($smw_dir.'/youtube.png')) {
283
  ?><a href="<?php echo $youtube; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>/youtube.png" alt="<?php echo $imgcaption; ?> YouTube" title="<?php echo $imgcaption; ?> YouTube" <?php if($animation == 'fade' || $animation == 'combo') { ?> style="opacity: <?php echo $icon_opacity; ?>; -moz-opacity: <?php echo $icon_opacity;?>;" <?php } ?>class="<?php echo $animation; ?>" /></a><?php
615
  $instance['meetup'] = strip_tags( $new_instance['meetup'] );
616
  $instance['flickr'] = strip_tags( $new_instance['flickr'] );
617
  $instance['picasa'] = strip_tags( $new_instance['picasa'] );
618
+ $instance['pinterest'] = strip_tags( $new_instance['pinterest'] );
619
  $instance['deviantart'] = strip_tags( $new_instance['deviantart'] );
620
  $instance['youtube'] = strip_tags( $new_instance['youtube'] );
621
  $instance['hulu'] = strip_tags( $new_instance['hulu'] );
707
  'meetup' => __('', 'smw'),
708
  'flickr' => __('', 'smw'),
709
  'picasa' => __('', 'smw'),
710
+ 'pinterest' => __('', 'smw'),
711
  'deviantart' => __('', 'smw'),
712
  'youtube' => __('', 'smw'),
713
  'hulu' => __('', 'smw'),
943
  <input id="<?php echo $this->get_field_id( 'picasa' ); ?>" name="<?php echo $this->get_field_name( 'picasa' ); ?>" value="<?php echo $instance['picasa']; ?>" style="width:85%;" />
944
  </p>
945
 
946
+ <!-- Pinterest URL: Text Input -->
947
+ <p>
948
+ <label for="<?php echo $this->get_field_id( 'pinterest' ); ?>"><?php _e('Pinterest URL:', 'smw'); ?></label>
949
+ <input id="<?php echo $this->get_field_id( 'pinterest' ); ?>" name="<?php echo $this->get_field_name( 'pinterest' ); ?>" value="<?php echo $instance['pinterest']; ?>" style="width:85%;" />
950
+ </p>
951
+
952
  <!-- DeviantArt URL: Text Input -->
953
  <p>
954
  <label for="<?php echo $this->get_field_id( 'deviantart' ); ?>"><?php _e('DeviantArt URL:', 'smw'); ?></label>
990
  <label for="<?php echo $this->get_field_id( 'imdb' ); ?>"><?php _e('IMDb URL:', 'smw'); ?></label>
991
  <input id="<?php echo $this->get_field_id( 'imdb' ); ?>" name="<?php echo $this->get_field_name( 'imdb' ); ?>" value="<?php echo $instance['imdb']; ?>" style="width:85%;" />
992
  </p>
993
+ </div>
994
+ <div style="width:32%; float: left; padding-left: 10px; border-left: 1px solid #000">
995
  <h3>Gaming</h3>
996
  <!-- Steam URL: Text Input -->
997
  <p>
998
  <label for="<?php echo $this->get_field_id( 'steam' ); ?>"><?php _e('Steam URL:', 'smw'); ?></label>
999
  <input id="<?php echo $this->get_field_id( 'steam' ); ?>" name="<?php echo $this->get_field_name( 'steam' ); ?>" value="<?php echo $instance['steam']; ?>" style="width:85%;" />
1000
  </p>
 
 
 
1001
  <h3>Chatting</h3>
1002
  <!-- Skype URL: Text Input -->
1003
  <p>