Social Media Widget - Version 2.3

Version Description

  • Added support for Digital Tunes and Soundcloud.
  • Improved function to determine plugin path. The images broke if wp-content was moved. This is fixed with this release
  • Fixed HTML code issue causing extra spacing between Facebook and Twitter icons.
  • Other small code improvements
Download this release

Release Info

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

Code changes from version 2.2.1 to 2.3

images/cutout/16/digitaltunes.png ADDED
Binary file
images/cutout/16/soundcloud.png ADDED
Binary file
images/cutout/32/digitaltunes.png ADDED
Binary file
images/cutout/32/soundcloud.png ADDED
Binary file
images/cutout/64/digitaltunes.png ADDED
Binary file
images/cutout/64/soundcloud.png ADDED
Binary file
images/default/16/digitaltunes.png ADDED
Binary file
images/default/16/soundcloud.png ADDED
Binary file
images/default/32/digitaltunes.png ADDED
Binary file
images/default/32/soundcloud.png ADDED
Binary file
images/default/64/digitaltunes.png ADDED
Binary file
images/default/64/soundcloud.png ADDED
Binary file
images/heart/16/digitaltunes.png ADDED
Binary file
images/heart/16/soundcloud.png ADDED
Binary file
images/heart/32/digitaltunes.png ADDED
Binary file
images/heart/32/soundcloud.png ADDED
Binary file
images/heart/64/digitaltunes.png ADDED
Binary file
images/heart/64/soundcloud.png ADDED
Binary file
images/sketch/16/digitaltunes.png ADDED
Binary file
images/sketch/16/soundcloud.png ADDED
Binary file
images/sketch/32/digitaltunes.png ADDED
Binary file
images/sketch/32/soundcloud.png ADDED
Binary file
images/sketch/64/digitaltunes.png ADDED
Binary file
images/sketch/64/soundcloud.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, meetup, lastfm, foursquare, skype, blogger, wordpress, yelp
5
  Requires at least: 2.9.1
6
  Tested up to: 3.0
7
- Stable tag: 2.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
 
@@ -36,6 +36,8 @@ The Social Media Widget is a simple sidebar widget that allows users to input th
36
  * Last.fm
37
  * FourSquare
38
  * Meetup
 
 
39
  * RSS
40
  * E-mail (mailto: or a link to mailing list service)
41
 
@@ -105,7 +107,7 @@ The only animation supported by Internet Explorer is Scale, and that only works
105
  While I attempt to provide you with the most logical guide to start with as default values in the control panel (e.g. http://www.twitter.com/yourname where you just replace yourname), not all of these services follow the same profile links that I provided. In some cases, you need to customize your "public link" such as in Yelp, and LinkedIn to use the default urls that I provide. If you don't know your public profile, I will have a very hard time figuring it out for you. The easiest way to figure it out is to log in to your social media site, and find a button that says, "View Profile." This is more often than not the profile URL you should input. This is the method I used in adding the default URLs. Also note that I don't use all of these social media sites. I just created accounts quickly to find a likely default URL. They could be wrong.
106
 
107
  = The icons aren't showing up - They are just showing the alt text! =
108
- There is probably a compatibility issue with another plugin. These things happen. Because there are thousands of plugins from thousands of developers, all who 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?
109
 
110
  = Something else isn't right! =
111
  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.
@@ -115,6 +117,13 @@ First - calm down. I'm happy to help you, and, if you ask those I've helped alre
115
  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>
116
 
117
  == Changelog ==
 
 
 
 
 
 
 
118
  = 2.2.1 =
119
 
120
  * I broke the description when I uploaded 2.2. Sorry about the second quick update.
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, skype, blogger, wordpress, yelp, soundcloud, digital tunes
5
  Requires at least: 2.9.1
6
  Tested up to: 3.0
7
+ Stable tag: 2.3
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
 
36
  * Last.fm
37
  * FourSquare
38
  * Meetup
39
+ * Digital Tunes
40
+ * Soundcloud
41
  * RSS
42
  * E-mail (mailto: or a link to mailing list service)
43
 
107
  While I attempt to provide you with the most logical guide to start with as default values in the control panel (e.g. http://www.twitter.com/yourname where you just replace yourname), not all of these services follow the same profile links that I provided. In some cases, you need to customize your "public link" such as in Yelp, and LinkedIn to use the default urls that I provide. If you don't know your public profile, I will have a very hard time figuring it out for you. The easiest way to figure it out is to log in to your social media site, and find a button that says, "View Profile." This is more often than not the profile URL you should input. This is the method I used in adding the default URLs. Also note that I don't use all of these social media sites. I just created accounts quickly to find a likely default URL. They could be wrong.
108
 
109
  = The icons aren't showing up - They are just showing the alt text! =
110
+ There is probably a compatibility issue with another plugin. These things happen. Because there are thousands of plugins from thousands of developers, all who 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? There have also been issues with moved wp-content folders or custom WP_CONTENT_URL's that caused the images to break. This issue has been resolved since 2.3.
111
 
112
  = Something else isn't right! =
113
  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.
117
  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>
118
 
119
  == Changelog ==
120
+ = 2.3 =
121
+
122
+ * Added support for Digital Tunes and Soundcloud.
123
+ * Improved function to determine plugin path. The images broke if wp-content was moved. This is fixed with this release
124
+ * Fixed HTML code issue causing extra spacing between Facebook and Twitter icons.
125
+ * Other small code improvements
126
+
127
  = 2.2.1 =
128
 
129
  * I broke the description when I uploaded 2.2. Sorry about the second quick update.
social-widget.php CHANGED
@@ -3,18 +3,25 @@
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. Icons come in 3 sizes, 4 icon styles, and 4 animations.
6
- * Version: 2.2.1
7
  * Author: Brian Freytag
8
  * Author URI: http://www.idontlikethisgame.com/
9
  **/
10
 
11
 
12
-
 
 
 
 
 
 
 
13
 
14
  /* Function for CSS */
15
 
16
  function Social_Widget_Scripts(){
17
- $social_widget_path = WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__));
18
  ?>
19
  <link rel="stylesheet" type="text/css" href="<?php echo $social_widget_path; ?>social_widget.css" />
20
  <?php }
@@ -67,6 +74,8 @@ class Social_Widget extends WP_Widget {
67
  $lastfm = $instance['lastfm'];
68
  $foursquare = $instance['foursquare'];
69
  $meetup = $instance['meetup'];
 
 
70
  $rss = $instance['rss_url'];
71
  $subscribe = $instance['subscribe'];
72
  $icon_size = $instance['icon_size'];
@@ -102,7 +111,10 @@ class Social_Widget extends WP_Widget {
102
  } else {
103
  $newtab = '';
104
  }
105
-
 
 
 
106
  /* Before widget (defined by themes). */
107
  echo $before_widget;
108
 
@@ -115,14 +127,14 @@ class Social_Widget extends WP_Widget {
115
 
116
  // Facebook
117
  if ( $facebook != '') {
118
- ?> <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
119
  } else {
120
  echo ''; //If no URL inputed
121
  }
122
 
123
  // Twitter
124
  if ( $twitter != '' ) {
125
- ?> <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
126
  } else {
127
  echo ''; //If no URL inputed
128
  }
@@ -130,147 +142,161 @@ class Social_Widget extends WP_Widget {
130
 
131
  // MySpace
132
  if ( $myspace != '' ) {
133
- ?><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
134
  } else {
135
  echo ''; //If no URL inputed
136
  }
137
 
138
  // FriendFeed
139
  if ( $friendfeed != '' ) {
140
- ?><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
141
  } else {
142
  echo ''; //If no URL inputed
143
  }
144
 
145
  // Orkut
146
  if ( $orkut != '' ) {
147
- ?><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
148
  } else {
149
  echo ''; //If no URL inputed
150
  }
151
 
152
  // LinkedIN
153
  if ( $linkedin != '' ) {
154
- ?><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
155
  } else {
156
  echo ''; //If no URL inputed
157
  }
158
 
159
  // Flickr
160
  if ( $flickr != '' ) {
161
- ?><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
162
  } else {
163
  echo ''; //If no URL inputed
164
  }
165
 
166
  // YouTube
167
  if ( $youtube != '' ) {
168
- ?><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
169
  } else {
170
  echo ''; //If No URL Inputed
171
  }
172
 
173
  // Skype
174
  if ( $skype != '' ) {
175
- ?><a href="<?php echo $skype; ?>" <?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; ?>/skype.png" alt="<?php echo $title; ?> on Skype" title="<?php echo $title; ?> on Skype" <?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
  // Digg
181
  if ( $digg != '' ) {
182
- ?><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
183
  } else {
184
  echo ''; //If no URL Inputed
185
  }
186
 
187
  // Reddit
188
  if ( $reddit != '' ) {
189
- ?><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
190
  } else {
191
  echo ''; //If no URL Inputed
192
  }
193
 
194
  // Delicious
195
  if ( $delicious != '' ) {
196
- ?><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
197
  } else {
198
  echo ''; //If no URL Inputed
199
  }
200
 
201
  // StumbleUpon
202
  if ( $stumble != '' ) {
203
- ?><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
204
  } else {
205
  echo ''; //If no URL Inputed
206
  }
207
 
208
  // Google Buzz
209
  if ( $buzz != '' ) {
210
- ?><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
211
  } else {
212
  echo ''; //If no URL Inputed
213
  }
214
 
215
  // Vimeo
216
  if ( $vimeo != '' ) {
217
- ?><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
218
  } else {
219
  echo ''; //If no URL Inputed
220
  }
221
 
222
  // Blogger
223
  if ( $blogger != '' ) {
224
- ?><a href="<?php echo $blogger; ?>" <?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; ?>/blogger.png" alt="<?php echo $title; ?> on Blogger" title="<?php echo $title; ?> on Blogger" <?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
225
  } else {
226
  echo ''; //If No URL Inputed
227
  }
228
 
229
  // Wordpress
230
  if ( $wordpress != '' ) {
231
- ?><a href="<?php echo $wordpress; ?>" <?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; ?>/wordpress.png" alt="<?php echo $title; ?> on Wordpress" title="<?php echo $title; ?> on Wordpress" <?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
232
  } else {
233
  echo ''; //If No URL Inputed
234
  }
235
 
236
  // Wordpress
237
  if ( $yelp != '' ) {
238
- ?><a href="<?php echo $yelp; ?>" <?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; ?>/yelp.png" alt="<?php echo $title; ?> on Yelp" title="<?php echo $title; ?> on Yelp" <?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
239
  } else {
240
  echo ''; //If No URL Inputed
241
  }
242
 
243
  // Last.fm
244
  if ( $lastfm != '' ) {
245
- ?><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
246
  } else {
247
  echo ''; //If no URL Inputed
248
  }
249
 
250
  // Foursquare
251
  if ( $foursquare != '' ) {
252
- ?><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
253
  } else {
254
  echo ''; //If no URL Inputed
255
  }
256
 
257
  // Meetup
258
  if ( $meetup != '' ) {
259
- ?><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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
260
  } else {
261
  echo ''; //If no URL Inputed
262
  }
263
 
264
  // RSS
265
  if ( $rss != '') {
266
- ?><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
267
  } else {
268
  echo '';// If no URL Inputed
269
  }
270
 
271
  // E-mail Subscription -- If Newsletter or Mailing List available
272
  if ( $subscribe != '' ) {
273
- ?><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
274
  } else {
275
  echo ''; // If no URL Inputed
276
  }
@@ -308,6 +334,8 @@ class Social_Widget extends WP_Widget {
308
  $instance['lastfm'] = strip_tags( $new_instance['lastfm'] );
309
  $instance['foursquare'] = strip_tags( $new_instance['foursquare'] );
310
  $instance['meetup'] = strip_tags( $new_instance['meetup'] );
 
 
311
  $instance['rss_url'] = strip_tags( $new_instance['rss_url'] );
312
  $instance['subscribe'] = strip_tags( $new_instance['subscribe'] );
313
  $instance['icon_size'] = $new_instance['icon_size'];
@@ -351,6 +379,8 @@ class Social_Widget extends WP_Widget {
351
  'lastfm' => __('http://www.last.fm/user/yourname', 'smw'),
352
  'foursquare' => __('http://foursquare.com/user/yourname', 'smw'),
353
  'meetup' => __('http://www.meetup.com/your-group', 'smw'),
 
 
354
  'rss_url' => __('http://www.yoursite.com/feed', 'smw'),
355
  'icon_size' => 'default',
356
  'icon_pack' => 'default',
@@ -498,6 +528,17 @@ class Social_Widget extends WP_Widget {
498
  <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%;" />
499
  </p>
500
 
 
 
 
 
 
 
 
 
 
 
 
501
  <!-- RSS URL: Text Input -->
502
  <p>
503
  <label for="<?php echo $this->get_field_id( 'rss_url' ); ?>"><?php _e('RSS URL:', 'smw'); ?></label>
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. Icons come in 3 sizes, 4 icon styles, and 4 animations.
6
+ * Version: 2.3
7
  * Author: Brian Freytag
8
  * Author URI: http://www.idontlikethisgame.com/
9
  **/
10
 
11
 
12
+ /* Check to see if locations are changed in wp-config */
13
+ if ( !defined('WP_CONTENT_URL') ) {
14
+ define('SMW_PLUGINPATH',get_option('siteurl').'/wp-content/plugins/'.plugin_basename(dirname(__FILE__)).'/');
15
+ define('SMW_PLUGINDIR', ABSPATH.'/wp-content/plugins/'.plugin_basename(dirname(__FILE__)).'/');
16
+ } else {
17
+ define('SMW_PLUGINPATH',WP_CONTENT_URL.'/plugins/'.plugin_basename(dirname(__FILE__)).'/');
18
+ define('SMW_PLUGINDIR',WP_CONTENT_DIR.'/plugins/'.plugin_basename(dirname(__FILE__)).'/');
19
+ }
20
 
21
  /* Function for CSS */
22
 
23
  function Social_Widget_Scripts(){
24
+ $social_widget_path = SMW_PLUGINPATH;
25
  ?>
26
  <link rel="stylesheet" type="text/css" href="<?php echo $social_widget_path; ?>social_widget.css" />
27
  <?php }
74
  $lastfm = $instance['lastfm'];
75
  $foursquare = $instance['foursquare'];
76
  $meetup = $instance['meetup'];
77
+ $digitaltunes = $instance['digitaltunes'];
78
+ $soundcloud = $instance['soundcloud'];
79
  $rss = $instance['rss_url'];
80
  $subscribe = $instance['subscribe'];
81
  $icon_size = $instance['icon_size'];
111
  } else {
112
  $newtab = '';
113
  }
114
+
115
+ /* Get Plugin Path */
116
+ $smw_path = SMW_PLUGINPATH;
117
+
118
  /* Before widget (defined by themes). */
119
  echo $before_widget;
120
 
127
 
128
  // Facebook
129
  if ( $facebook != '') {
130
+ ?><a href="<?php echo $facebook; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>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
131
  } else {
132
  echo ''; //If no URL inputed
133
  }
134
 
135
  // Twitter
136
  if ( $twitter != '' ) {
137
+ ?><a href="<?php echo $twitter; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>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
138
  } else {
139
  echo ''; //If no URL inputed
140
  }
142
 
143
  // MySpace
144
  if ( $myspace != '' ) {
145
+ ?><a href="<?php echo $myspace; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>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
146
  } else {
147
  echo ''; //If no URL inputed
148
  }
149
 
150
  // FriendFeed
151
  if ( $friendfeed != '' ) {
152
+ ?><a href="<?php echo $friendfeed; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>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
153
  } else {
154
  echo ''; //If no URL inputed
155
  }
156
 
157
  // Orkut
158
  if ( $orkut != '' ) {
159
+ ?><a href="<?php echo $orkut; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>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
160
  } else {
161
  echo ''; //If no URL inputed
162
  }
163
 
164
  // LinkedIN
165
  if ( $linkedin != '' ) {
166
+ ?><a href="<?php echo $linkedin; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>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
167
  } else {
168
  echo ''; //If no URL inputed
169
  }
170
 
171
  // Flickr
172
  if ( $flickr != '' ) {
173
+ ?><a href="<?php echo $flickr; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>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
174
  } else {
175
  echo ''; //If no URL inputed
176
  }
177
 
178
  // YouTube
179
  if ( $youtube != '' ) {
180
+ ?><a href="<?php echo $youtube; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>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
181
  } else {
182
  echo ''; //If No URL Inputed
183
  }
184
 
185
  // Skype
186
  if ( $skype != '' ) {
187
+ ?><a href="<?php echo $skype; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/skype.png" alt="<?php echo $title; ?> on Skype" title="<?php echo $title; ?> on Skype" <?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
188
  } else {
189
  echo ''; //If No URL Inputed
190
  }
191
 
192
  // Digg
193
  if ( $digg != '' ) {
194
+ ?><a href="<?php echo $digg; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>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
195
  } else {
196
  echo ''; //If no URL Inputed
197
  }
198
 
199
  // Reddit
200
  if ( $reddit != '' ) {
201
+ ?><a href="<?php echo $reddit; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>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
202
  } else {
203
  echo ''; //If no URL Inputed
204
  }
205
 
206
  // Delicious
207
  if ( $delicious != '' ) {
208
+ ?><a href="<?php echo $delicious; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>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
209
  } else {
210
  echo ''; //If no URL Inputed
211
  }
212
 
213
  // StumbleUpon
214
  if ( $stumble != '' ) {
215
+ ?><a href="<?php echo $stumble; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>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
216
  } else {
217
  echo ''; //If no URL Inputed
218
  }
219
 
220
  // Google Buzz
221
  if ( $buzz != '' ) {
222
+ ?><a href="<?php echo $buzz; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>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
223
  } else {
224
  echo ''; //If no URL Inputed
225
  }
226
 
227
  // Vimeo
228
  if ( $vimeo != '' ) {
229
+ ?><a href="<?php echo $vimeo; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>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
230
  } else {
231
  echo ''; //If no URL Inputed
232
  }
233
 
234
  // Blogger
235
  if ( $blogger != '' ) {
236
+ ?><a href="<?php echo $blogger; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/blogger.png" alt="<?php echo $title; ?> on Blogger" title="<?php echo $title; ?> on Blogger" <?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
237
  } else {
238
  echo ''; //If No URL Inputed
239
  }
240
 
241
  // Wordpress
242
  if ( $wordpress != '' ) {
243
+ ?><a href="<?php echo $wordpress; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/wordpress.png" alt="<?php echo $title; ?> on Wordpress" title="<?php echo $title; ?> on Wordpress" <?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
244
  } else {
245
  echo ''; //If No URL Inputed
246
  }
247
 
248
  // Wordpress
249
  if ( $yelp != '' ) {
250
+ ?><a href="<?php echo $yelp; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/yelp.png" alt="<?php echo $title; ?> on Yelp" title="<?php echo $title; ?> on Yelp" <?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
251
  } else {
252
  echo ''; //If No URL Inputed
253
  }
254
 
255
  // Last.fm
256
  if ( $lastfm != '' ) {
257
+ ?><a href="<?php echo $lastfm; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>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
258
  } else {
259
  echo ''; //If no URL Inputed
260
  }
261
 
262
  // Foursquare
263
  if ( $foursquare != '' ) {
264
+ ?><a href="<?php echo $foursquare; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>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
265
  } else {
266
  echo ''; //If no URL Inputed
267
  }
268
 
269
  // Meetup
270
  if ( $meetup != '' ) {
271
+ ?><a href="<?php echo $meetup; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>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
272
+ } else {
273
+ echo ''; //If no URL Inputed
274
+ }
275
+
276
+ // Digital Tunes
277
+ if ( $digitaltunes != '' ) {
278
+ ?><a href="<?php echo $digitaltunes; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/digitaltunes.png" alt="<?php echo $title; ?> on Digital Tunes" title="<?php echo $title; ?> on Digital Tunes" <?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
279
+ } else {
280
+ echo ''; //If no URL Inputed
281
+ }
282
+
283
+ // Soundcloud
284
+ if ( $soundcloud != '' ) {
285
+ ?><a href="<?php echo $soundcloud; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/soundcloud.png" alt="<?php echo $title; ?> on Soundcloud" title="<?php echo $title; ?> on Soundcloud" <?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
286
  } else {
287
  echo ''; //If no URL Inputed
288
  }
289
 
290
  // RSS
291
  if ( $rss != '') {
292
+ ?><a href="<?php echo $rss; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>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
293
  } else {
294
  echo '';// If no URL Inputed
295
  }
296
 
297
  // E-mail Subscription -- If Newsletter or Mailing List available
298
  if ( $subscribe != '' ) {
299
+ ?><a href="<?php echo $subscribe; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>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
300
  } else {
301
  echo ''; // If no URL Inputed
302
  }
334
  $instance['lastfm'] = strip_tags( $new_instance['lastfm'] );
335
  $instance['foursquare'] = strip_tags( $new_instance['foursquare'] );
336
  $instance['meetup'] = strip_tags( $new_instance['meetup'] );
337
+ $instance['digitaltunes'] = strip_tags( $new_instance['digitaltunes'] );
338
+ $instance['soundcloud'] = strip_tags( $new_instance['soundcloud'] );
339
  $instance['rss_url'] = strip_tags( $new_instance['rss_url'] );
340
  $instance['subscribe'] = strip_tags( $new_instance['subscribe'] );
341
  $instance['icon_size'] = $new_instance['icon_size'];
379
  'lastfm' => __('http://www.last.fm/user/yourname', 'smw'),
380
  'foursquare' => __('http://foursquare.com/user/yourname', 'smw'),
381
  'meetup' => __('http://www.meetup.com/your-group', 'smw'),
382
+ 'digitaltunes' => __('http://www.digital-tunes.net/user_profile/yourname', 'smw'),
383
+ 'soundcloud' => __('http://www.soundcloud.com/your-name', 'smw'),
384
  'rss_url' => __('http://www.yoursite.com/feed', 'smw'),
385
  'icon_size' => 'default',
386
  'icon_pack' => 'default',
528
  <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%;" />
529
  </p>
530
 
531
+ <!-- Digital Tunes URL: Text Input -->
532
+ <p>
533
+ <label for="<?php echo $this->get_field_id( 'digitaltunes' ); ?>"><?php _e('Digital Tunes URL:', 'smw'); ?></label>
534
+ <input id="<?php echo $this->get_field_id( 'digitaltunes' ); ?>" name="<?php echo $this->get_field_name( 'digitaltunes' ); ?>" value="<?php echo $instance['digitaltunes']; ?>" style="width:85%;" />
535
+ </p>
536
+
537
+ <p>
538
+ <label for="<?php echo $this->get_field_id( 'soundcloud' ); ?>"><?php _e('Soundcloud URL:', 'smw'); ?></label>
539
+ <input id="<?php echo $this->get_field_id( 'soundcloud' ); ?>" name="<?php echo $this->get_field_name( 'soundcloud' ); ?>" value="<?php echo $instance['soundcloud']; ?>" style="width:85%;" />
540
+ </p>
541
+
542
  <!-- RSS URL: Text Input -->
543
  <p>
544
  <label for="<?php echo $this->get_field_id( 'rss_url' ); ?>"><?php _e('RSS URL:', 'smw'); ?></label>