Social Media Widget - Version 2.1

Version Description

Download this release

Release Info

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

Code changes from version 2.0 to 2.1

images/cutout/16/foursquare.png ADDED
Binary file
images/cutout/16/lastfm.png ADDED
Binary file
images/cutout/16/meetup.png ADDED
Binary file
images/cutout/32/foursquare.png ADDED
Binary file
images/cutout/32/lastfm.png ADDED
Binary file
images/cutout/32/meetup.png ADDED
Binary file
images/cutout/64/foursquare.png ADDED
Binary file
images/cutout/64/lastfm.png ADDED
Binary file
images/cutout/64/meetup.png ADDED
Binary file
images/default/16/foursquare.png ADDED
Binary file
images/default/16/lastfm.png ADDED
Binary file
images/default/16/meetup.png ADDED
Binary file
images/default/32/foursquare.png ADDED
Binary file
images/default/32/lastfm.png ADDED
Binary file
images/default/32/meetup.png ADDED
Binary file
images/default/64/foursquare.png ADDED
Binary file
images/default/64/lastfm.png ADDED
Binary file
images/default/64/meetup.png ADDED
Binary file
images/heart/16/foursquare.png ADDED
Binary file
images/heart/16/lastfm.png ADDED
Binary file
images/heart/16/meetup.png ADDED
Binary file
images/heart/32/foursquare.png ADDED
Binary file
images/heart/32/lastfm.png ADDED
Binary file
images/heart/32/meetup.png ADDED
Binary file
images/heart/64/foursquare.png ADDED
Binary file
images/heart/64/lastfm.png ADDED
Binary file
images/heart/64/meetup.png ADDED
Binary file
images/sketch/16/foursquare.png ADDED
Binary file
images/sketch/16/lastfm.png ADDED
Binary file
images/sketch/16/meetup.png ADDED
Binary file
images/sketch/32/foursquare.png ADDED
Binary file
images/sketch/32/lastfm.png ADDED
Binary file
images/sketch/32/meetup.png ADDED
Binary file
images/sketch/64/foursquare.png ADDED
Binary file
images/sketch/64/lastfm.png ADDED
Binary file
images/sketch/64/meetup.png ADDED
Binary file
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Social Media Widget ===
2
  Contributors: Brian Freytag
3
  Donate link: http://www.idontlikethisgame.com/code/donate/
4
- Tags: social media, twitter, facebook, myspace, digg, email, rss, reddit, linkedin, orkut, youtube, buzz, social, icons, links, subscribe, follow, follow me, friendfeed, flickr, stumbleupon, vimeo, delicious
5
  Requires at least: 2.9.1
6
  Tested up to: 3.0
7
- Stable tag: 2.0
8
 
9
  Adds links to all of your social media and sharing site profiles. Icons come in 3 sizes, 4 icon styles, and 4 animations.
10
 
@@ -29,19 +29,24 @@ The Social Media Widget is a simple sidebar widget that allows users to input th
29
  * StumbleUpon
30
  * Buzz
31
  * Vimeo
 
 
 
32
  * RSS
33
- * E-mail Subscription Info Page (or mailto: address)
34
 
35
- * Ability to select from 3 different sizes of icons:
36
  * 16x16
37
  * 32x32
38
  * 64x64
39
 
40
- * Ability to select from 4 different icon packages:
41
  * Web 2.0 (Default) - Icons from <a href="http://www.iconspedia.com/">various artists</a>
42
  * Sketch - <a href="http://www.jankoatwarpspeed.com/post/2008/10/20/handycons-a-free-hand-drawn-social-media-icon-set.aspx">Handycons</a> by Janko At Warp Speed
43
  * Heart - <a href="http://thedesignsuperhero.com/2009/03/heart-v2-free-social-iconset-in-heart-shape/">Heart v2</a> by The Design Superhero
44
  * Cutout - <a href="http://www.iconspedia.com/pack/icontexto-inside-2222/">Icontexto Inside Icons</a>
 
 
45
 
46
  * Choose from multiple animations including:
47
  * Fade In (you can choose the starting opacity too!)
@@ -51,17 +56,30 @@ The Social Media Widget is a simple sidebar widget that allows users to input th
51
  * Note: Because these are all CSS3 style animations, IE6-7 aren't supported at all, although IE8 will support Scale. In IE6-8, icons will not be animated and use 100% opacity.
52
 
53
 
54
- * Ability to choose whether or not to use the rel="nofollow" tag in your links. (Recommended see http://en.wikipedia.org/wiki/Nofollow)
 
 
55
 
56
  If you like this plugin, please rate it and click "Works" for your Wordpress version!
57
 
 
 
58
  == Installation ==
59
 
60
  Follow the steps below to install the plugin.
61
 
62
- 1. Upload the social-widget directory to the /wp-content/plugins/ directory
63
  2. Activate the plugin through the 'Plugins' menu in WordPress
64
- 3. Go to Appearance/Widgets and activate the widget to customize
 
 
 
 
 
 
 
 
 
65
 
66
  == Screenshots ==
67
  1. Web 2.0 icon pack
@@ -79,11 +97,19 @@ Yes I can. Just e-mail me at <a href="mailto:brifreytag@gmail.com">brifreytag_at
79
  2) Why aren't the animations working in Internet Explorer 6+?
80
  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, though Firefox is fully supported without transition animations.
81
 
 
 
 
 
 
 
82
  == Help ==
83
 
84
  For help, you can send an e-mail to <a href="mailto:brifreytag@gmail.com">brifreytag_at_gmail.com</a> or get ahold of me via twitter at <a href="http://www.twitter.com/brianfreytag">@brianfreytag</a>
85
 
86
  == Changelog ==
 
 
87
  2.0 - Added support for Vimeo and StumbleUpon. Added Fade In, Scale, Bounce, Combo animations.
88
 
89
  1.4 - Added support for Flickr and Delicious
1
  === Social Media Widget ===
2
  Contributors: Brian Freytag
3
  Donate link: http://www.idontlikethisgame.com/code/donate/
4
+ Tags: social media, twitter, facebook, myspace, digg, email, rss, reddit, linkedin, orkut, youtube, buzz, social, icons, links, subscribe, follow, follow me, friendfeed, flickr, stumbleupon, vimeo, delicious, meetup, lastfm, foursquare
5
  Requires at least: 2.9.1
6
  Tested up to: 3.0
7
+ Stable tag: 2.1
8
 
9
  Adds links to all of your social media and sharing site profiles. Icons come in 3 sizes, 4 icon styles, and 4 animations.
10
 
29
  * StumbleUpon
30
  * Buzz
31
  * Vimeo
32
+ * Last.fm
33
+ * FourSquare
34
+ * Meetup
35
  * RSS
36
+ * E-mail (mailto: or a link to mailing list service)
37
 
38
+ * Select from the following icon sizes:
39
  * 16x16
40
  * 32x32
41
  * 64x64
42
 
43
+ * Select from 4 icon packages:
44
  * Web 2.0 (Default) - Icons from <a href="http://www.iconspedia.com/">various artists</a>
45
  * Sketch - <a href="http://www.jankoatwarpspeed.com/post/2008/10/20/handycons-a-free-hand-drawn-social-media-icon-set.aspx">Handycons</a> by Janko At Warp Speed
46
  * Heart - <a href="http://thedesignsuperhero.com/2009/03/heart-v2-free-social-iconset-in-heart-shape/">Heart v2</a> by The Design Superhero
47
  * Cutout - <a href="http://www.iconspedia.com/pack/icontexto-inside-2222/">Icontexto Inside Icons</a>
48
+ * Note that some of the icons in the packs were created and added for this widget by myself. Not all of the requested social media sites were included so I attempted to create icons that mimicked the original artist icons. These are unattributed to myself. I keep attribution to the original artists since it is there design I modified.
49
+ * All icons in this pack are licensed under the Creative Commons license (which is why I'm allowed, by law, to use them). Note that some of these are non-commercial only. Please go to the sites linked above to get full information on their allowed uses.
50
 
51
  * Choose from multiple animations including:
52
  * Fade In (you can choose the starting opacity too!)
56
  * Note: Because these are all CSS3 style animations, IE6-7 aren't supported at all, although IE8 will support Scale. In IE6-8, icons will not be animated and use 100% opacity.
57
 
58
 
59
+ * Choose whether or not to use the rel="nofollow" tag in your links. (Recommended see http://en.wikipedia.org/wiki/Nofollow)
60
+
61
+ * Choose whether or not to open links in a new tab (or browser window).
62
 
63
  If you like this plugin, please rate it and click "Works" for your Wordpress version!
64
 
65
+ Please donate if you like this plugin.
66
+
67
  == Installation ==
68
 
69
  Follow the steps below to install the plugin.
70
 
71
+ 1. Upload the social-media-widget folder and all contents to the /wp-content/plugins/ directory
72
  2. Activate the plugin through the 'Plugins' menu in WordPress
73
+ 3. Go to Appearance->Widgets and activate the widget (Social Widget), set options and click save
74
+
75
+
76
+ Follow the steps below to upgrade.
77
+
78
+ 1. Disable the plugin
79
+ 2. Overwrite all files in the social-media-widget folder within the /wp-content/plugins directory
80
+ 3. Enable the plugin
81
+ 4. Go to Appearance->Widgets and activate the widget (Social Widget), set options and click save
82
+
83
 
84
  == Screenshots ==
85
  1. Web 2.0 icon pack
97
  2) Why aren't the animations working in Internet Explorer 6+?
98
  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, though Firefox is fully supported without transition animations.
99
 
100
+ 3) The icons aren't showing up - They are just showing the alt text!
101
+ There is probably a compatibility issue with another plugin. These things happen. Because there are thousands of plugins from thousands of developers, all who which develop in completely different ways, there are going to be issues that arise from time-to-time. These are more prevalent, however, from plugins that make system-wide changes (such as SEO Packs). Try disabling, one at a time, the other plugins until you find that one that is breaking my widget. Then e-mail me and tell me which plugin it was. I will then try to fix it. Unless I know what plugin is breaking it, I won't be able to fix it, ya see?
102
+
103
+ 4) Something else isn't right!
104
+ First - calm down. I'm happy to help you, and, if you ask those I've helped already, I don't mind providing individual service to people to get my widget working and looking right with your theme. If your theme is especially jacked up, I do do freelance work and would be happy to fix your entire theme for a fee. But back to the point, if something isn't working quite right on your site, INCLUDE A LINK. I can't help you with your site unless there is a link so I can see what's going on. Make sure my widget is enabled to. It gets old getting asked, "Why doesn't it look right on my site" and then finding that the comment-leaver left no link and if they did, my widget isn't even enabled on their site anymore.
105
+
106
  == Help ==
107
 
108
  For help, you can send an e-mail to <a href="mailto:brifreytag@gmail.com">brifreytag_at_gmail.com</a> or get ahold of me via twitter at <a href="http://www.twitter.com/brianfreytag">@brianfreytag</a>
109
 
110
  == Changelog ==
111
+ 2.1 - Added support for Foursquare, Meetup, and Last.fm. Included option to select whether or not to open the links in a new tab (or browser window). Fixed a compatibility issue with Platinum SEO Pack - Thank you Niko! Updated FAQ. Updated installation section to include upgrading information and corrected plugin directory name. Split Widget control panel into two columns to reduce scrolling - It was getting really long as I added more features.
112
+
113
  2.0 - Added support for Vimeo and StumbleUpon. Added Fade In, Scale, Bounce, Combo animations.
114
 
115
  1.4 - Added support for Flickr and Delicious
social-widget.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Social Media Widget
4
  * Plugin URI: http://www.idontlikethisgame.com/updates/social-media-widget/
5
  * Description: Adds links to all of your social media and sharing site profiles in your sidebar. Icons come in 3 sizes and 4 different icon styles.
6
- * Version: 2.0
7
  * Author: Brian Freytag
8
  * Author URI: http://www.idontlikethisgame.com/
9
  **/
@@ -34,7 +34,7 @@ class Social_Widget extends WP_Widget {
34
  $widget_ops = array( 'classname' => 'Social_Widget', 'description' => __('A widget that allows the user to display social media icons in their sidebar', 'smw') );
35
 
36
  /* Widget control settings. */
37
- $control_ops = array( 'width' => 300, 'height' => 350, 'id_base' => 'social-widget' );
38
 
39
  /* Create the widget. */
40
  $this->WP_Widget( 'social-widget', __('Social Widget', 'smw'), $widget_ops, $control_ops );
@@ -60,12 +60,16 @@ class Social_Widget extends WP_Widget {
60
  $stumble = $instance['stumble'];
61
  $buzz = $instance['buzz'];
62
  $vimeo = $instance['vimeo'];
 
 
 
63
  $rss = $instance['rss_url'];
64
  $subscribe = $instance['subscribe'];
65
  $icon_size = $instance['icon_size'];
66
  $icon_pack = $instance['icon_pack'];
67
  $animation = $instance['animation'];
68
  $icon_opacity = $instance['icon_opacity'];
 
69
  $nofollow = $instance['nofollow'];
70
 
71
  /* Choose Icon Size if Value is 'default' */
@@ -85,8 +89,15 @@ class Social_Widget extends WP_Widget {
85
  if ($nofollow == 'on') {
86
  $nofollow = "rel=\"nofollow\"";
87
  } else {
88
- $nofollow = "";
89
- }
 
 
 
 
 
 
 
90
 
91
  /* Before widget (defined by themes). */
92
  echo $before_widget;
@@ -100,125 +111,134 @@ class Social_Widget extends WP_Widget {
100
 
101
  // Facebook
102
  if ( $facebook != '') {
103
- ?> <a href="<?php echo $facebook; ?>" <?php echo $nofollow; ?> target="_blank"> <img src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/facebook.png" alt="<?php echo $title; ?> on Facebook" title="<?php echo $title; ?> on Facebook" <?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
104
  } else {
105
  echo ''; //If no URL inputed
106
  }
107
 
108
  // Twitter
109
  if ( $twitter != '' ) {
110
- ?> <a href="<?php echo $twitter; ?>" <?php echo $nofollow; ?> target="_blank"><img src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/twitter.png" alt="<?php echo $title; ?> on Twitter"
111
- title="<?php echo $title; ?> on Twitter"<?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
112
  } else {
113
  echo ''; //If no URL inputed
114
  }
 
115
 
116
  // MySpace
117
  if ( $myspace != '' ) {
118
- ?><a href="<?php echo $myspace; ?>" <?php echo $nofollow; ?> target="_blank"><img src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/myspace.png" alt="<?php echo $title; ?> on MySpace"
119
- title="<?php echo $title; ?> on MySpace" <?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
120
  } else {
121
  echo ''; //If no URL inputed
122
  }
123
 
124
  // FriendFeed
125
  if ( $friendfeed != '' ) {
126
- ?><a href="<?php echo $friendfeed; ?>" <?php echo $nofollow; ?> target="_blank"><img src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/friendfeed.png" alt="<?php echo $title; ?> on FriendFeed"
127
- title="<?php echo $title; ?> on FriendFeed" <?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
128
  } else {
129
  echo ''; //If no URL inputed
130
  }
131
 
132
  // Orkut
133
  if ( $orkut != '' ) {
134
- ?><a href="<?php echo $orkut; ?>" <?php echo $nofollow; ?> target="_blank"><img src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/orkut.png" alt="<?php echo $title; ?> on Orkut"
135
- title="<?php echo $title; ?> on Orkut" <?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
136
  } else {
137
  echo ''; //If no URL inputed
138
  }
139
 
140
  // LinkedIN
141
  if ( $linkedin != '' ) {
142
- ?><a href="<?php echo $linkedin; ?>" <?php echo $nofollow; ?> target="_blank"><img src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/linkedin.png" alt="<?php echo $title; ?> on LinkedIn"
143
- title="<?php echo $title; ?> on LinkedIn" <?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
144
  } else {
145
  echo ''; //If no URL inputed
146
  }
147
 
148
  // Flickr
149
  if ( $flickr != '' ) {
150
- ?><a href="<?php echo $flickr; ?>" <?php echo $nofollow; ?> target="_blank"><img src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/flickr.png" alt="<?php echo $title; ?> on Flickr"
151
- title="<?php echo $title; ?> on Flickr" <?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
152
  } else {
153
  echo ''; //If no URL inputed
154
  }
155
 
156
  // YouTube
157
  if ( $youtube != '' ) {
158
- ?><a href="<?php echo $youtube; ?>" <?php echo $nofollow; ?> target="_blank"><img src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/youtube.png" alt="<?php echo $title; ?> on YouTube"
159
- title="<?php echo $title; ?> on 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
160
  } else {
161
  echo ''; //If No URL Inputed
162
  }
163
 
164
  // Digg
165
  if ( $digg != '' ) {
166
- ?><a href="<?php echo $digg; ?>" <?php echo $nofollow; ?> target="_blank"><img src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/digg.png" alt="<?php echo $title; ?> on Digg"
167
- title="<?php echo $title; ?> on Digg" <?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
168
  } else {
169
  echo ''; //If no URL Inputed
170
  }
171
 
172
  // Reddit
173
  if ( $reddit != '' ) {
174
- ?><a href="<?php echo $reddit; ?>" <?php echo $nofollow; ?> target="_blank"><img src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/reddit.png" alt="<?php echo $title; ?> on Reddit"
175
- title="<?php echo $title; ?> on Reddit" <?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
176
  } else {
177
  echo ''; //If no URL Inputed
178
  }
179
 
180
  // Delicious
181
  if ( $delicious != '' ) {
182
- ?><a href="<?php echo $delicious; ?>" <?php echo $nofollow; ?> target="_blank"><img src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/delicious.png" alt="<?php echo $title; ?> on Delicious"
183
- title="<?php echo $title; ?> on Delicious" <?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
184
  } else {
185
  echo ''; //If no URL Inputed
186
  }
187
 
188
  // StumbleUpon
189
  if ( $stumble != '' ) {
190
- ?><a href="<?php echo $stumble; ?>" <?php echo $nofollow; ?> target="_blank"><img src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/stumble.png" alt="<?php echo $title; ?> on StumbleUpon"
191
- title="<?php echo $title; ?> on StumbleUpon" <?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
192
  } else {
193
  echo ''; //If no URL Inputed
194
  }
195
 
196
  // Google Buzz
197
  if ( $buzz != '' ) {
198
- ?><a href="<?php echo $buzz; ?>" <?php echo $nofollow; ?> target="_blank"><img src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/buzz.png" alt="<?php echo $title; ?> on Buzz"
199
- title="<?php echo $title; ?> on Buzz" <?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
200
  } else {
201
  echo ''; //If no URL Inputed
202
  }
203
 
204
  // Vimeo
205
  if ( $vimeo != '' ) {
206
- ?><a href="<?php echo $vimeo; ?>" <?php echo $nofollow; ?> target="_blank"><img src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/vimeo.png" alt="<?php echo $title; ?> on Vimeo"
207
- title="<?php echo $title; ?> on Vimeo" <?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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
208
  } else {
209
  echo ''; //If no URL Inputed
210
  }
211
 
212
  // RSS
213
  if ( $rss != '') {
214
- ?><a href="<?php echo $rss; ?>" <?php echo $nofollow; ?>><img src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/rss.png" alt="Subscribe to our RSS Feeds" title="Subscribe to our RSS Feeds" <?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
215
  } else {
216
  echo '';// If no URL Inputed
217
  }
218
 
219
  // E-mail Subscription -- If Newsletter or Mailing List available
220
  if ( $subscribe != '' ) {
221
- ?><a href="<?php echo $subscribe; ?>" <?php echo $nofollow; ?>><img src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/email.png" alt="Join our Mailing List" title="Join Our Mailing List" <?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
222
  } else {
223
  echo ''; // If no URL Inputed
224
  }
@@ -249,12 +269,16 @@ class Social_Widget extends WP_Widget {
249
  $instance['stumble'] = strip_tags( $new_instance['stumble'] );
250
  $instance['buzz'] = strip_tags( $new_instance['buzz'] );
251
  $instance['vimeo'] = strip_tags( $new_instance['vimeo'] );
 
 
 
252
  $instance['rss_url'] = strip_tags( $new_instance['rss_url'] );
253
  $instance['subscribe'] = strip_tags( $new_instance['subscribe'] );
254
  $instance['icon_size'] = $new_instance['icon_size'];
255
  $instance['icon_pack'] = $new_instance['icon_pack'];
256
  $instance['animation'] = $new_instance['animation'];
257
  $instance['icon_opacity'] = $new_instance['icon_opacity'];
 
258
  $instance['nofollow'] = $new_instance['nofollow'];
259
 
260
  return $instance;
@@ -284,10 +308,14 @@ class Social_Widget extends WP_Widget {
284
  'stumble' => __('http://www.stumbleupon.com/stumbler/yourname', 'smw'),
285
  'buzz' => __('http://www.google.com/profiles/yourname#buzz', 'smw'),
286
  'vimeo' => __('http://www.vimeo.com/yourname', 'smw'),
 
 
 
287
  'rss_url' => __('http://www.yoursite.com/feed', 'smw'),
288
  'icon_size' => 'default',
289
  'icon_pack' => 'default',
290
  'icon_opacity' => 'default',
 
291
  'nofollow' => 'on');
292
 
293
  $instance = wp_parse_args( (array) $instance, $defaults ); ?>
@@ -296,6 +324,7 @@ class Social_Widget extends WP_Widget {
296
  If you do not want an icon to be visible, simply delete the supplied URL and leave the input blox blank.
297
  </p>
298
  <!-- Widget Title: Text Input -->
 
299
  <p>
300
  <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Title:', 'smw'); ?></label>
301
  <input id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $instance['title']; ?>" style="width:85%;" />
@@ -354,7 +383,7 @@ class Social_Widget extends WP_Widget {
354
  <label for="<?php echo $this->get_field_id( 'digg' ); ?>"><?php _e('Digg URL:', 'smw'); ?></label>
355
  <input id="<?php echo $this->get_field_id( 'digg' ); ?>" name="<?php echo $this->get_field_name( 'digg' ); ?>" value="<?php echo $instance['digg']; ?>" style="width:85%;" />
356
  </p>
357
-
358
  <!-- Reddit URL: Text Input -->
359
  <p>
360
  <label for="<?php echo $this->get_field_id( 'reddit' ); ?>"><?php _e('Reddit URL:', 'smw'); ?></label>
@@ -366,14 +395,14 @@ class Social_Widget extends WP_Widget {
366
  <label for="<?php echo $this->get_field_id( 'delicious' ); ?>"><?php _e('Delicious URL:', 'smw'); ?></label>
367
  <input id="<?php echo $this->get_field_id( 'delicious' ); ?>" name="<?php echo $this->get_field_name( 'delicious' ); ?>" value="<?php echo $instance['delicious']; ?>" style="width:85%;" />
368
  </p>
369
-
 
370
  <!-- StumpleUpon URL: Text Input -->
371
  <p>
372
  <label for="<?php echo $this->get_field_id( 'stumble' ); ?>"><?php _e('StumbleUpon URL:', 'smw'); ?></label>
373
  <input id="<?php echo $this->get_field_id( 'stumble' ); ?>" name="<?php echo $this->get_field_name( 'stumble' ); ?>" value="<?php echo $instance['stumble']; ?>" style="width:85%;" />
374
  </p>
375
-
376
-
377
  <!-- Buzz URL: Text Input -->
378
  <p>
379
  <label for="<?php echo $this->get_field_id( 'buzz' ); ?>"><?php _e('Buzz URL:', 'smw'); ?></label>
@@ -385,7 +414,24 @@ class Social_Widget extends WP_Widget {
385
  <label for="<?php echo $this->get_field_id( 'vimeo' ); ?>"><?php _e('Vimeo URL:', 'smw'); ?></label>
386
  <input id="<?php echo $this->get_field_id( 'vimeo' ); ?>" name="<?php echo $this->get_field_name( 'vimeo' ); ?>" value="<?php echo $instance['vimeo']; ?>" style="width:85%;" />
387
  </p>
388
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
389
 
390
  <!-- RSS URL: Text Input -->
391
  <p>
@@ -401,6 +447,7 @@ class Social_Widget extends WP_Widget {
401
  </p>
402
 
403
  <!-- Choose Icon Size: Dropdown -->
 
404
  <p>
405
  <label for="<?php echo $this->get_field_id( 'icon_size' ); ?>"><?php _e('Icon Size', 'smw'); ?></label>
406
  <select id="<?php echo $this->get_field_id( 'icon_size' ); ?>" name="<?php echo $this->get_field_name( 'icon_size' ); ?>">
@@ -456,13 +503,24 @@ class Social_Widget extends WP_Widget {
456
  </select>
457
  </p>
458
 
 
 
 
 
 
 
 
 
 
 
 
459
  <!-- Donate -->
460
  <p style="color: #999;"><em>This plugin takes up a great deal of my free time, and I don't get paid for any of the time I put into making fixes and adding features. If you can, please donate. Any contribution will help keep Social Media Widget up-to-date.</em></p>
461
  <p style="text-align: center;">
462
- <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=GSE2LMBPYVMEA" target="_blank">
463
  <img src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" alt="" /></a>
464
  </p>
465
-
466
 
467
 
468
  <?php
3
  * Plugin Name: Social Media Widget
4
  * Plugin URI: http://www.idontlikethisgame.com/updates/social-media-widget/
5
  * Description: Adds links to all of your social media and sharing site profiles in your sidebar. Icons come in 3 sizes and 4 different icon styles.
6
+ * Version: 2.1
7
  * Author: Brian Freytag
8
  * Author URI: http://www.idontlikethisgame.com/
9
  **/
34
  $widget_ops = array( 'classname' => 'Social_Widget', 'description' => __('A widget that allows the user to display social media icons in their sidebar', 'smw') );
35
 
36
  /* Widget control settings. */
37
+ $control_ops = array( 'width' => 600, 'height' => 350, 'id_base' => 'social-widget' );
38
 
39
  /* Create the widget. */
40
  $this->WP_Widget( 'social-widget', __('Social Widget', 'smw'), $widget_ops, $control_ops );
60
  $stumble = $instance['stumble'];
61
  $buzz = $instance['buzz'];
62
  $vimeo = $instance['vimeo'];
63
+ $lastfm = $instance['lastfm'];
64
+ $foursquare = $instance['foursquare'];
65
+ $meetup = $instance['meetup'];
66
  $rss = $instance['rss_url'];
67
  $subscribe = $instance['subscribe'];
68
  $icon_size = $instance['icon_size'];
69
  $icon_pack = $instance['icon_pack'];
70
  $animation = $instance['animation'];
71
  $icon_opacity = $instance['icon_opacity'];
72
+ $newtab = $instance['newtab'];
73
  $nofollow = $instance['nofollow'];
74
 
75
  /* Choose Icon Size if Value is 'default' */
89
  if ($nofollow == 'on') {
90
  $nofollow = "rel=\"nofollow\"";
91
  } else {
92
+ $nofollow = '';
93
+ }
94
+
95
+ /* Check to see if New Tab is set to yes */
96
+ if ($newtab == 'yes') {
97
+ $newtab = "target=\"_blank\"";
98
+ } else {
99
+ $newtab = '';
100
+ }
101
 
102
  /* Before widget (defined by themes). */
103
  echo $before_widget;
111
 
112
  // Facebook
113
  if ( $facebook != '') {
114
+ ?> <a href="<?php echo $facebook; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>> <img src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/facebook.png" alt="<?php echo $title; ?> on Facebook" title="<?php echo $title; ?> on Facebook" <?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
115
  } else {
116
  echo ''; //If no URL inputed
117
  }
118
 
119
  // Twitter
120
  if ( $twitter != '' ) {
121
+ ?> <a href="<?php echo $twitter; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/twitter.png" alt="<?php echo $title; ?> on Twitter" title="<?php echo $title; ?> on Twitter" <?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
 
122
  } else {
123
  echo ''; //If no URL inputed
124
  }
125
+
126
 
127
  // MySpace
128
  if ( $myspace != '' ) {
129
+ ?><a href="<?php echo $myspace; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/myspace.png" alt="<?php echo $title; ?> on MySpace" title="<?php echo $title; ?> on MySpace" <?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
 
130
  } else {
131
  echo ''; //If no URL inputed
132
  }
133
 
134
  // FriendFeed
135
  if ( $friendfeed != '' ) {
136
+ ?><a href="<?php echo $friendfeed; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/friendfeed.png" alt="<?php echo $title; ?> on FriendFeed" title="<?php echo $title; ?> on FriendFeed" <?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
 
137
  } else {
138
  echo ''; //If no URL inputed
139
  }
140
 
141
  // Orkut
142
  if ( $orkut != '' ) {
143
+ ?><a href="<?php echo $orkut; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/orkut.png" alt="<?php echo $title; ?> on Orkut" title="<?php echo $title; ?> on Orkut" <?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
 
144
  } else {
145
  echo ''; //If no URL inputed
146
  }
147
 
148
  // LinkedIN
149
  if ( $linkedin != '' ) {
150
+ ?><a href="<?php echo $linkedin; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/linkedin.png" alt="<?php echo $title; ?> on LinkedIn" title="<?php echo $title; ?> on LinkedIn" <?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
 
151
  } else {
152
  echo ''; //If no URL inputed
153
  }
154
 
155
  // Flickr
156
  if ( $flickr != '' ) {
157
+ ?><a href="<?php echo $flickr; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/flickr.png" alt="<?php echo $title; ?> on Flickr" title="<?php echo $title; ?> on Flickr" <?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
 
158
  } else {
159
  echo ''; //If no URL inputed
160
  }
161
 
162
  // YouTube
163
  if ( $youtube != '' ) {
164
+ ?><a href="<?php echo $youtube; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/youtube.png" alt="<?php echo $title; ?> on YouTube" title="<?php echo $title; ?> on 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
 
165
  } else {
166
  echo ''; //If No URL Inputed
167
  }
168
 
169
  // Digg
170
  if ( $digg != '' ) {
171
+ ?><a href="<?php echo $digg; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/digg.png" alt="<?php echo $title; ?> on Digg" title="<?php echo $title; ?> on Digg" <?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
 
172
  } else {
173
  echo ''; //If no URL Inputed
174
  }
175
 
176
  // Reddit
177
  if ( $reddit != '' ) {
178
+ ?><a href="<?php echo $reddit; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/reddit.png" alt="<?php echo $title; ?> on Reddit" title="<?php echo $title; ?> on Reddit" <?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
 
179
  } else {
180
  echo ''; //If no URL Inputed
181
  }
182
 
183
  // Delicious
184
  if ( $delicious != '' ) {
185
+ ?><a href="<?php echo $delicious; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/delicious.png" alt="<?php echo $title; ?> on Delicious" title="<?php echo $title; ?> on Delicious" <?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
 
186
  } else {
187
  echo ''; //If no URL Inputed
188
  }
189
 
190
  // StumbleUpon
191
  if ( $stumble != '' ) {
192
+ ?><a href="<?php echo $stumble; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/stumble.png" alt="<?php echo $title; ?> on StumbleUpon" title="<?php echo $title; ?> on StumbleUpon" <?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
 
193
  } else {
194
  echo ''; //If no URL Inputed
195
  }
196
 
197
  // Google Buzz
198
  if ( $buzz != '' ) {
199
+ ?><a href="<?php echo $buzz; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/buzz.png" alt="<?php echo $title; ?> on Buzz" title="<?php echo $title; ?> on Buzz" <?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
 
200
  } else {
201
  echo ''; //If no URL Inputed
202
  }
203
 
204
  // Vimeo
205
  if ( $vimeo != '' ) {
206
+ ?><a href="<?php echo $vimeo; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/vimeo.png" alt="<?php echo $title; ?> on Vimeo" title="<?php echo $title; ?> on Vimeo" <?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
207
+ } else {
208
+ echo ''; //If no URL Inputed
209
+ }
210
+
211
+ // Last.fm
212
+ if ( $lastfm != '' ) {
213
+ ?><a href="<?php echo $lastfm; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/lastfm.png" alt="<?php echo $title; ?> on Last.fm" title="<?php echo $title; ?> on Last.fm" <?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
214
+ } else {
215
+ echo ''; //If no URL Inputed
216
+ }
217
+
218
+ // Foursquare
219
+ if ( $foursquare != '' ) {
220
+ ?><a href="<?php echo $foursquare; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/foursquare.png" alt="<?php echo $title; ?> on Foursquare" title="<?php echo $title; ?> on Foursquare" <?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
221
+ } else {
222
+ echo ''; //If no URL Inputed
223
+ }
224
+
225
+ // Meetup
226
+ if ( $meetup != '' ) {
227
+ ?><a href="<?php echo $meetup; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/meetup.png" alt="<?php echo $title; ?> on Meetup" title="<?php echo $title; ?> on Meetup" <?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
228
  } else {
229
  echo ''; //If no URL Inputed
230
  }
231
 
232
  // RSS
233
  if ( $rss != '') {
234
+ ?><a href="<?php echo $rss; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/rss.png" alt="<?php echo $title ?> via RSS" title="<?php echo $title ?> via RSS" <?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
235
  } else {
236
  echo '';// If no URL Inputed
237
  }
238
 
239
  // E-mail Subscription -- If Newsletter or Mailing List available
240
  if ( $subscribe != '' ) {
241
+ ?><a href="<?php echo $subscribe; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/email.png" alt="<?php echo $title ?> via E-mail" title="<?php echo $title ?> via E-mail" <?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
242
  } else {
243
  echo ''; // If no URL Inputed
244
  }
269
  $instance['stumble'] = strip_tags( $new_instance['stumble'] );
270
  $instance['buzz'] = strip_tags( $new_instance['buzz'] );
271
  $instance['vimeo'] = strip_tags( $new_instance['vimeo'] );
272
+ $instance['lastfm'] = strip_tags( $new_instance['lastfm'] );
273
+ $instance['foursquare'] = strip_tags( $new_instance['foursquare'] );
274
+ $instance['meetup'] = strip_tags( $new_instance['meetup'] );
275
  $instance['rss_url'] = strip_tags( $new_instance['rss_url'] );
276
  $instance['subscribe'] = strip_tags( $new_instance['subscribe'] );
277
  $instance['icon_size'] = $new_instance['icon_size'];
278
  $instance['icon_pack'] = $new_instance['icon_pack'];
279
  $instance['animation'] = $new_instance['animation'];
280
  $instance['icon_opacity'] = $new_instance['icon_opacity'];
281
+ $instance['newtab'] = $new_instance['newtab'];
282
  $instance['nofollow'] = $new_instance['nofollow'];
283
 
284
  return $instance;
308
  'stumble' => __('http://www.stumbleupon.com/stumbler/yourname', 'smw'),
309
  'buzz' => __('http://www.google.com/profiles/yourname#buzz', 'smw'),
310
  'vimeo' => __('http://www.vimeo.com/yourname', 'smw'),
311
+ 'lastfm' => __('http://www.last.fm/user/yourname', 'smw'),
312
+ 'foursquare' => __('http://foursquare.com/user/yourname', 'smw'),
313
+ 'meetup' => __('http://www.meetup.com/your-group', 'smw'),
314
  'rss_url' => __('http://www.yoursite.com/feed', 'smw'),
315
  'icon_size' => 'default',
316
  'icon_pack' => 'default',
317
  'icon_opacity' => 'default',
318
+ 'newtab' => 'yes',
319
  'nofollow' => 'on');
320
 
321
  $instance = wp_parse_args( (array) $instance, $defaults ); ?>
324
  If you do not want an icon to be visible, simply delete the supplied URL and leave the input blox blank.
325
  </p>
326
  <!-- Widget Title: Text Input -->
327
+ <div style="width:48%; float: left;">
328
  <p>
329
  <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Title:', 'smw'); ?></label>
330
  <input id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $instance['title']; ?>" style="width:85%;" />
383
  <label for="<?php echo $this->get_field_id( 'digg' ); ?>"><?php _e('Digg URL:', 'smw'); ?></label>
384
  <input id="<?php echo $this->get_field_id( 'digg' ); ?>" name="<?php echo $this->get_field_name( 'digg' ); ?>" value="<?php echo $instance['digg']; ?>" style="width:85%;" />
385
  </p>
386
+
387
  <!-- Reddit URL: Text Input -->
388
  <p>
389
  <label for="<?php echo $this->get_field_id( 'reddit' ); ?>"><?php _e('Reddit URL:', 'smw'); ?></label>
395
  <label for="<?php echo $this->get_field_id( 'delicious' ); ?>"><?php _e('Delicious URL:', 'smw'); ?></label>
396
  <input id="<?php echo $this->get_field_id( 'delicious' ); ?>" name="<?php echo $this->get_field_name( 'delicious' ); ?>" value="<?php echo $instance['delicious']; ?>" style="width:85%;" />
397
  </p>
398
+ </div>
399
+ <div style="width: 48%; float: right; border-left: 1px solid #000; padding-left: 20px;">
400
  <!-- StumpleUpon URL: Text Input -->
401
  <p>
402
  <label for="<?php echo $this->get_field_id( 'stumble' ); ?>"><?php _e('StumbleUpon URL:', 'smw'); ?></label>
403
  <input id="<?php echo $this->get_field_id( 'stumble' ); ?>" name="<?php echo $this->get_field_name( 'stumble' ); ?>" value="<?php echo $instance['stumble']; ?>" style="width:85%;" />
404
  </p>
405
+
 
406
  <!-- Buzz URL: Text Input -->
407
  <p>
408
  <label for="<?php echo $this->get_field_id( 'buzz' ); ?>"><?php _e('Buzz URL:', 'smw'); ?></label>
414
  <label for="<?php echo $this->get_field_id( 'vimeo' ); ?>"><?php _e('Vimeo URL:', 'smw'); ?></label>
415
  <input id="<?php echo $this->get_field_id( 'vimeo' ); ?>" name="<?php echo $this->get_field_name( 'vimeo' ); ?>" value="<?php echo $instance['vimeo']; ?>" style="width:85%;" />
416
  </p>
417
+
418
+ <!-- Last.fm URL: Text Input -->
419
+ <p>
420
+ <label for="<?php echo $this->get_field_id( 'lastfm' ); ?>"><?php _e('Last.fm URL:', 'smw'); ?></label>
421
+ <input id="<?php echo $this->get_field_id( 'lastfm' ); ?>" name="<?php echo $this->get_field_name( 'lastfm' ); ?>" value="<?php echo $instance['lastfm']; ?>" style="width:85%;" />
422
+ </p>
423
+
424
+ <!-- Foursquare URL: Text Input -->
425
+ <p>
426
+ <label for="<?php echo $this->get_field_id( 'foursquare' ); ?>"><?php _e('Foursquare URL:', 'smw'); ?></label>
427
+ <input id="<?php echo $this->get_field_id( 'foursquare' ); ?>" name="<?php echo $this->get_field_name( 'foursquare' ); ?>" value="<?php echo $instance['foursquare']; ?>" style="width:85%;" />
428
+ </p>
429
+
430
+ <!-- Meetup URL: Text Input -->
431
+ <p>
432
+ <label for="<?php echo $this->get_field_id( 'meetup' ); ?>"><?php _e('Meetup URL:', 'smw'); ?></label>
433
+ <input id="<?php echo $this->get_field_id( 'meetup' ); ?>" name="<?php echo $this->get_field_name( 'meetup' ); ?>" value="<?php echo $instance['meetup']; ?>" style="width:85%;" />
434
+ </p>
435
 
436
  <!-- RSS URL: Text Input -->
437
  <p>
447
  </p>
448
 
449
  <!-- Choose Icon Size: Dropdown -->
450
+
451
  <p>
452
  <label for="<?php echo $this->get_field_id( 'icon_size' ); ?>"><?php _e('Icon Size', 'smw'); ?></label>
453
  <select id="<?php echo $this->get_field_id( 'icon_size' ); ?>" name="<?php echo $this->get_field_name( 'icon_size' ); ?>">
503
  </select>
504
  </p>
505
 
506
+
507
+ <!-- Open in new tab: Dropdown -->
508
+ <p>
509
+ <label for="<?php echo $this->get_field_id( 'newtab' ); ?>"><?php _e('Open in new tab?', 'smw'); ?></label>
510
+ <select id="<?php echo $this->get_field_id( 'newtab' ); ?>" name="<?php echo $this->get_field_name( 'newtab' ); ?>">
511
+ <option value="yes" <?php if($instance['newtab'] == 'yes') { echo 'selected'; } ?>>Yes</option>
512
+ <option value="no" <?php if($instance['newtab'] == 'no') { echo 'selected'; } ?>>No</option>
513
+ </select>
514
+ </p>
515
+ </div>
516
+ <div style="clear: both;"></div>
517
  <!-- Donate -->
518
  <p style="color: #999;"><em>This plugin takes up a great deal of my free time, and I don't get paid for any of the time I put into making fixes and adding features. If you can, please donate. Any contribution will help keep Social Media Widget up-to-date.</em></p>
519
  <p style="text-align: center;">
520
+ <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=GSE2LMBPYVMEA" <?php echo $newtab; ?>>
521
  <img src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" alt="" /></a>
522
  </p>
523
+
524
 
525
 
526
  <?php