Social Media Widget - Version 2.6

Version Description

  • Changed the way that the custom icons worked. Turns out, when Wordpress upgrades a plugin, it completely removes the plugin folder and uploads it verbatim from the SVN package. Thus, all custom icons were lost.
  • Added a text field to allow a brief description of the widget that appears before the icons as requested on my support forums.
Download this release

Release Info

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

Code changes from version 2.5.5 to 2.6

Files changed (3) hide show
  1. images/custom/readme.txt +0 -7
  2. readme.txt +22 -18
  3. social-widget.php +132 -86
images/custom/readme.txt DELETED
@@ -1,7 +0,0 @@
1
- Using your favorite sftp client, navigate to wp-content/plugins/social-media-widget/images/custom. Within this folder you'll see three more 16/32/64.
2
-
3
- Depending on your icon size, toss your icons into one of those folders using the same naming scheme as the other icon packs (see the other packs for that information).
4
-
5
- From within the widget control panel, select custom as the icon pack, and whatever widget size you put the custom icons in.
6
-
7
- If you have any other question, please contact me via my SMW Support Forum.
 
 
 
 
 
 
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ 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, tumblr, hyves, etsy, tungle, plancast, slideshare, deviantart, better business bureau, merchant circle, asmallworld, live365
5
  Requires at least: 2.9.1
6
  Tested up to: 3.0.1
7
- Stable tag: 2.5.5
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
 
@@ -63,7 +63,7 @@ The Social Media Widget is a simple sidebar widget that allows users to input th
63
  * Sketch - <a href="http://theg-force.deviantart.com">Social Icons Hand Drawn</a> by TheG-Force and <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
64
  * Heart - <a href="http://thedesignsuperhero.com/2009/03/heart-v2-free-social-iconset-in-heart-shape/">Heart v2</a> by The Design Superhero
65
  * Cutout - <a href="http://www.iconspedia.com/pack/icontexto-inside-2222/">Icontexto Inside Icons</a>
66
- * Custom - Upload your own icons into this folder on the filesystem. These will be unaltered via updates. Make sure you follow the same naming scheme as the other icons (facebook.png, twitter.png). You can look at the other icon packs if you are unsure about the naming. See the FAQ for more information.
67
  * 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.
68
  * 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.
69
 
@@ -95,15 +95,6 @@ Follow the steps below to install the plugin.
95
  3. Go to Appearance->Widgets and activate the widget (Social Widget), set options and click save
96
 
97
 
98
- Follow the steps below to upgrade.
99
-
100
- 1. Disable the plugin
101
- 2. Overwrite all files in the social-media-widget folder within the /wp-content/plugins directory
102
- 3. Enable the plugin
103
- 4. Go to Appearance->Widgets and activate the widget (Social Widget), set options and click save
104
- 5. Note that newly added services will more than likely automatically generate URLs. You'll need to go in there and delete them
105
-
106
-
107
  == Screenshots ==
108
  1. Web 2.0 icon pack
109
  2. Cutout icon pack
@@ -115,22 +106,30 @@ Follow the steps below to upgrade.
115
 
116
  == Frequently Asked Questions ==
117
 
118
- = How can I use my own custom icon pack =
119
- Using your favorite sftp client, navigate to wp-content/plugins/social-media-widget/images/custom. Within this folder you'll see three more 16/32/64.
120
 
121
- Depending on your icon size, toss your icons into one of those folders using the same naming scheme as the other icon packs (see the other packs for that information).
 
 
 
 
 
 
 
122
 
123
- From within the widget control panel, select custom as the icon pack, and whatever widget size you put the custom icons in.
124
 
125
- If you have any other question, please contact me via my <a href="http://forums.idontlikethisgame.com/viewforum.php?f=3">SMW Support Forum</a>
126
 
127
- As a check, the plugin now ensures that the proper image file exists. If it doesn't nothing will be displayed. If you're not seeing your icon, make sure you have the image uploaded with the right file name (and in .png format), and make sure that the widget is calling to the correct icon size folder.
 
 
128
 
129
  = Can you add [insert social media service] support =
130
  Yes I can. Please go to my <a href="http://forums.idontlikethisgame.com/viewforum.php?f=3">SMW Forums</a> and request it there!
131
 
132
  = Why aren't the animations working in Internet Explorer 6+ =
133
- 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.
134
 
135
  = Why aren't my icons aligning? =
136
  Check your style.css file. I'm sure you have something in there that is forcing alignment of your widgets. You'll have to modify that. If you don't know how to do CSS... Learn.
@@ -149,6 +148,11 @@ First - calm down. I'm happy to help you, and, if you ask those I've helped alre
149
  For help, please go to my <a href="http://forums.idontlikethisgame.com/viewforum.php?f=3">SMW Forums</a> and ask whatever questions you need!
150
 
151
  == Changelog ==
 
 
 
 
 
152
  = 2.5.5 =
153
 
154
  * Added ability to align the widget left, right, or center.
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, tumblr, hyves, etsy, tungle, plancast, slideshare, deviantart, better business bureau, merchant circle, asmallworld, live365
5
  Requires at least: 2.9.1
6
  Tested up to: 3.0.1
7
+ Stable tag: 2.6
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
 
63
  * Sketch - <a href="http://theg-force.deviantart.com">Social Icons Hand Drawn</a> by TheG-Force and <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
64
  * Heart - <a href="http://thedesignsuperhero.com/2009/03/heart-v2-free-social-iconset-in-heart-shape/">Heart v2</a> by The Design Superhero
65
  * Cutout - <a href="http://www.iconspedia.com/pack/icontexto-inside-2222/">Icontexto Inside Icons</a>
66
+ * Custom - These will be unaltered via updates. Make sure you follow the same naming scheme as the other icons (facebook.png, twitter.png). You can look at the other icon packs if you are unsure about the naming. See the FAQ for more information on usage.
67
  * 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.
68
  * 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.
69
 
95
  3. Go to Appearance->Widgets and activate the widget (Social Widget), set options and click save
96
 
97
 
 
 
 
 
 
 
 
 
 
98
  == Screenshots ==
99
  1. Web 2.0 icon pack
100
  2. Cutout icon pack
106
 
107
  == Frequently Asked Questions ==
108
 
109
+ = How can I use my own custom icon pack? =
 
110
 
111
+ 1. Create a folder on the filesystem that is publicly accessible via the interwebs. I suggest putting it in your wp-content folder and name it 'icons'
112
+ 2. Upload your icons into that folder. It'll probably be a good idea if they are all the same size.
113
+ 3. Go to the Widget Control Panel (Admin -> Appearance -> Widgets)
114
+ 4. Select "Custom Icons" as the Icon Pack
115
+ 5. Enter the URL to the icon pack folder (http://www.yoursite.com/blog/wp-content/icons)
116
+ 6. Enter the FULL PATH to the icon pack folder (/var/www/html/yoursite/blog/wp-content/icons)
117
+ 7. Click Save
118
+ 8. Check out your site.
119
 
120
+ Your custom icon pack should be there and should be safe from upgrades.
121
 
122
+ NOTE: IN ORDER FOR IT TO BE SAFE FROM UPGRADES, DO NOT UPLOAD THE ICONS INTO THE SOCIAL-MEDIA-WIDGET FOLDER! During upgrades, this folder is completely deleted, thus, you lose all of the icons.
123
 
124
+ You can also upload the icons individually through Wordpress. These will be uploaded to your /wp-content/uploads/year/month/ folder by default. Use this as a starting point for your custom icon pack URL and Path
125
+
126
+ If you don't understand what it means to create a folder and upload to that folder on the filesystem, or if you don't know what a path to a folder is, I would suggest sticking with one of the four default icon packs.
127
 
128
  = Can you add [insert social media service] support =
129
  Yes I can. Please go to my <a href="http://forums.idontlikethisgame.com/viewforum.php?f=3">SMW Forums</a> and request it there!
130
 
131
  = Why aren't the animations working in Internet Explorer 6+ =
132
+ The only animation supported by Internet Explorer is Scale, and that only works reliably with Internet Explorer 8. Scale is also included in Combo. No other animations will work. This is because I do not want to use Javascript to animate my icons. All of these animations are using CSS3 styles. The animations work the best with Webkit based browsers such as Chrome and Safari or Firefox 4. Firefox 3.x is fully supported, without CSS3 transition animations.
133
 
134
  = Why aren't my icons aligning? =
135
  Check your style.css file. I'm sure you have something in there that is forcing alignment of your widgets. You'll have to modify that. If you don't know how to do CSS... Learn.
148
  For help, please go to my <a href="http://forums.idontlikethisgame.com/viewforum.php?f=3">SMW Forums</a> and ask whatever questions you need!
149
 
150
  == Changelog ==
151
+ = 2.6 =
152
+
153
+ * Changed the way that the custom icons worked. Turns out, when Wordpress upgrades a plugin, it completely removes the plugin folder and uploads it verbatim from the SVN package. Thus, all custom icons were lost.
154
+ * Added a text field to allow a brief description of the widget that appears before the icons as requested on my support forums.
155
+
156
  = 2.5.5 =
157
 
158
  * Added ability to align the widget left, right, or center.
social-widget.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Social Media Widget
4
  * Plugin URI: http://forums.idontlikethisgame.com/viewforum.php?f=3
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.5.5
7
  * Author: Brian Freytag
8
  * Author URI: http://www.idontlikethisgame.com/
9
  **/
@@ -26,7 +26,6 @@ function Social_Widget_Scripts(){
26
  <link rel="stylesheet" type="text/css" href="<?php echo $social_widget_path; ?>social_widget.css" />
27
  <?php }
28
 
29
-
30
  /* Register the widget */
31
  function socialwidget_load_widgets() {
32
  register_widget( 'Social_Widget' );
@@ -53,6 +52,7 @@ class Social_Widget extends WP_Widget {
53
 
54
  /* Our variables from the widget settings. */
55
  $title = apply_filters('widget_title', $instance['title'] );
 
56
  $imgcaption = $instance['imgcaption'];
57
  $facebook = $instance['facebook'];
58
  $twitter = $instance['twitter'];
@@ -92,6 +92,8 @@ class Social_Widget extends WP_Widget {
92
  $subscribe = $instance['subscribe'];
93
  $icon_size = $instance['icon_size'];
94
  $icon_pack = $instance['icon_pack'];
 
 
95
  $animation = $instance['animation'];
96
  $icon_opacity = $instance['icon_opacity'];
97
  $newtab = $instance['newtab'];
@@ -155,10 +157,14 @@ class Social_Widget extends WP_Widget {
155
  }
156
 
157
  /* Get Plugin Path */
158
- $smw_path = SMW_PLUGINPATH;
159
-
160
- $smw_dir = SMW_PLUGINDIR;
161
-
 
 
 
 
162
  /* Before widget (defined by themes). */
163
  echo $before_widget;
164
 
@@ -166,244 +172,251 @@ class Social_Widget extends WP_Widget {
166
  if ( $title )
167
  echo $before_title . $title . $after_title;
168
 
 
 
169
  echo "<div class=\"socialmedia-buttons ".$alignment."\">";
 
 
 
 
 
170
  /* Display linked images to profiles from widget settings if one was input. */
171
 
172
  // Facebook
173
- if ( $facebook != '' && file_exists($smw_dir . '/images/' . $icon_pack. '/' . $icon_size .'/facebook.png')) {
174
- ?><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 $imgcaption; ?> Facebook" title="<?php echo $imgcaption ?> 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
175
  } else {
176
  echo ''; //If no URL inputed
177
  }
178
 
179
  // Twitter
180
- if ( $twitter != '' && file_exists($smw_dir . '/images/' . $icon_pack. '/' . $icon_size .'/twitter.png')) {
181
- ?><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 $imgcaption; ?> Twitter"title="<?php echo $imgcaption; ?> 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
182
  } else {
183
  echo ''; //If no URL inputed
184
  }
185
 
186
 
187
  // MySpace
188
- if ( $myspace != '' && file_exists($smw_dir . '/images/' . $icon_pack. '/' . $icon_size .'/myspace.png')) {
189
- ?><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 $imgcaption; ?> MySpace"title="<?php echo $imgcaption; ?> 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
190
  } else {
191
  echo ''; //If no URL inputed
192
  }
193
 
194
  // FriendFeed
195
- if ( $friendfeed != '' && file_exists($smw_dir . '/images/' . $icon_pack. '/' . $icon_size .'/friendfeed.png')) {
196
- ?><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 $imgcaption; ?> FriendFeed"title="<?php echo $imgcaption; ?> 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
197
  } else {
198
  echo ''; //If no URL inputed
199
  }
200
 
201
  // Orkut
202
- if ( $orkut != '' && file_exists($smw_dir . '/images/' . $icon_pack. '/' . $icon_size .'/orkut.png')) {
203
- ?><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 $imgcaption; ?> Orkut"title="<?php echo $imgcaption; ?> 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
204
  } else {
205
  echo ''; //If no URL inputed
206
  }
207
 
208
  // Hyves
209
- if ( $hyves != '' && file_exists($smw_dir . '/images/' . $icon_pack. '/' . $icon_size .'/hyves.png')) {
210
- ?><a href="<?php echo $hyves; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/hyves.png"alt="<?php echo $imgcaption; ?> Hyves"title="<?php echo $imgcaption; ?> Hyves" <?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
  // LinkedIN
216
- if ( $linkedin != '' && file_exists($smw_dir . '/images/' . $icon_pack. '/' . $icon_size .'/linkedin.png')) {
217
- ?><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 $imgcaption; ?> LinkedIn"title="<?php echo $imgcaption; ?> 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
218
  } else {
219
  echo ''; //If no URL inputed
220
  }
221
 
222
  // aSmallWorld
223
- if ( $asmallworld != '' && file_exists($smw_dir . '/images/' . $icon_pack. '/' . $icon_size .'/asmallworld.png')) {
224
- ?><a href="<?php echo $asmallworld; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/asmallworld.png"alt="<?php echo $imgcaption; ?> aSmallWorld"title="<?php echo $imgcaption; ?> aSmallWorld" <?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
  // Flickr
230
- if ( $flickr != '' && file_exists($smw_dir . '/images/' . $icon_pack. '/' . $icon_size .'/flickr.png')) {
231
- ?><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 $imgcaption; ?> Flickr"title="<?php echo $imgcaption; ?> 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
232
  } else {
233
  echo ''; //If no URL inputed
234
  }
235
 
236
  // YouTube
237
- if ( $youtube != '' && file_exists($smw_dir . '/images/' . $icon_pack. '/' . $icon_size .'/youtube.png')) {
238
- ?><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 $imgcaption; ?> YouTube"title="<?php echo $imgcaption; ?> YouTube" <?php if($animation == 'fade' || $animation == 'combo') { ?> style="opacity: <?php echo $icon_opacity; ?>; -moz-opacity: <?php echo $icon_opacity;?>;" <?php } ?>class="<?php echo $animation; ?>" /></a><?php
239
  } else {
240
  echo ''; //If No URL Inputed
241
  }
242
 
243
  // Skype
244
- if ( $skype != '' && file_exists($smw_dir . '/images/' . $icon_pack. '/' . $icon_size .'/skype.png')) {
245
- ?><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 $imgcaption; ?> Skype"title="<?php echo $imgcaption; ?> 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
246
  } else {
247
  echo ''; //If No URL Inputed
248
  }
249
 
250
  // Digg
251
- if ( $digg != '' && file_exists($smw_dir . '/images/' . $icon_pack. '/' . $icon_size .'/digg.png')) {
252
- ?><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 $imgcaption; ?> Digg"title="<?php echo $imgcaption; ?> 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
253
  } else {
254
  echo ''; //If no URL Inputed
255
  }
256
 
257
  // Reddit
258
- if ( $reddit != '' && file_exists($smw_dir . '/images/' . $icon_pack. '/' . $icon_size .'/reddit.png')) {
259
- ?><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 $imgcaption; ?> Reddit"title="<?php echo $imgcaption; ?> 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
260
  } else {
261
  echo ''; //If no URL Inputed
262
  }
263
 
264
  // Delicious
265
- if ( $delicious != '' && file_exists($smw_dir . '/images/' . $icon_pack. '/' . $icon_size .'/delicious.png')) {
266
- ?><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 $imgcaption; ?> Delicious"title="<?php echo $imgcaption; ?> 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
267
  } else {
268
  echo ''; //If no URL Inputed
269
  }
270
 
271
  // StumbleUpon
272
- if ( $stumble != '' && file_exists($smw_dir . '/images/' . $icon_pack. '/' . $icon_size .'/stumble.png')) {
273
- ?><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 $imgcaption; ?> StumbleUpon"title="<?php echo $imgcaption; ?> 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
274
  } else {
275
  echo ''; //If no URL Inputed
276
  }
277
 
278
  // Tumblr
279
- if ( $tumblr != '' && file_exists($smw_dir . '/images/' . $icon_pack. '/' . $icon_size .'/tumblr.png')) {
280
- ?><a href="<?php echo $tumblr; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/tumblr.png"alt="<?php echo $imgcaption; ?> Tumblr"title="<?php echo $imgcaption; ?> Tumblr" <?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
281
  } else {
282
  echo ''; //If no URL Inputed
283
  }
284
 
285
  // Google Buzz
286
- if ( $buzz != '' && file_exists($smw_dir . '/images/' . $icon_pack. '/' . $icon_size .'/buzz.png')) {
287
- ?><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 $imgcaption; ?> Buzz"title="<?php echo $imgcaption; ?> 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
288
  } else {
289
  echo ''; //If no URL Inputed
290
  }
291
 
292
  // Vimeo
293
- if ( $vimeo != '' && file_exists($smw_dir . '/images/' . $icon_pack. '/' . $icon_size .'/vimeo.png')) {
294
- ?><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 $imgcaption; ?> Vimeo"title="<?php echo $imgcaption; ?> 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
295
  } else {
296
  echo ''; //If no URL Inputed
297
  }
298
 
299
  // Blogger
300
- if ( $blogger != '' && file_exists($smw_dir . '/images/' . $icon_pack. '/' . $icon_size .'/blogger.png')) {
301
- ?><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 $imgcaption; ?> Blogger"title="<?php echo $imgcaption; ?> 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
302
  } else {
303
  echo ''; //If No URL Inputed
304
  }
305
 
306
  // Wordpress
307
- if ( $wordpress != '' && file_exists($smw_dir . '/images/' . $icon_pack. '/' . $icon_size .'/wordpress.png')) {
308
- ?><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 $imgcaption; ?> Wordpress"title="<?php echo $imgcaption; ?> 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
309
  } else {
310
  echo ''; //If No URL Inputed
311
  }
312
 
313
  // Yelp
314
- if ( $yelp != '' && file_exists($smw_dir . '/images/' . $icon_pack. '/' . $icon_size .'/yelp.png')) {
315
- ?><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 $imgcaption; ?> Yelp"title="<?php echo $imgcaption; ?> 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
316
  } else {
317
  echo ''; //If No URL Inputed
318
  }
319
 
320
  // Last.fm
321
- if ( $lastfm != '' && file_exists($smw_dir . '/images/' . $icon_pack. '/' . $icon_size .'/lastfm.png')) {
322
- ?><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 $imgcaption; ?> Last.fm"title="<?php echo $imgcaption; ?> 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
323
  } else {
324
  echo ''; //If no URL Inputed
325
  }
326
 
327
  // Foursquare
328
- if ( $foursquare != '' && file_exists($smw_dir . '/images/' . $icon_pack. '/' . $icon_size .'/foursquare.png')) {
329
- ?><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 $imgcaption; ?> Foursquare"title="<?php echo $imgcaption; ?> 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
330
  } else {
331
  echo ''; //If no URL Inputed
332
  }
333
 
334
  // Meetup
335
- if ( $meetup != '' && file_exists($smw_dir . '/images/' . $icon_pack. '/' . $icon_size .'/meetup.png')) {
336
- ?><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 $imgcaption; ?> Meetup"title="<?php echo $imgcaption; ?> 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
337
  } else {
338
  echo ''; //If no URL Inputed
339
  }
340
 
341
  // Tungle.me
342
- if ( $tungle != '' && file_exists($smw_dir . '/images/' . $icon_pack. '/' . $icon_size .'/tungle.png')) {
343
- ?><a href="<?php echo $tungle; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/tungle.png"alt="<?php echo $imgcaption; ?> Tungle"title="<?php echo $imgcaption; ?> Tungle" <?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
344
  } else {
345
  echo ''; //If no URL inputed
346
  }
347
 
348
  // PlanCast
349
- if ( $plancast != '' && file_exists($smw_dir . '/images/' . $icon_pack. '/' . $icon_size .'/plancast.png')) {
350
- ?><a href="<?php echo $plancast; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/plancast.png"alt="<?php echo $imgcaption; ?> PlanCast"title="<?php echo $imgcaption; ?> PlanCast" <?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
351
  } else {
352
  echo ''; //If no URL inputed
353
  }
354
 
355
  // Hyves
356
- if ( $slideshare != '' && file_exists($smw_dir . '/images/' . $icon_pack. '/' . $icon_size .'/slideshare.png')) {
357
- ?><a href="<?php echo $slideshare; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/slideshare.png"alt="<?php echo $imgcaption; ?> SlideShare"title="<?php echo $imgcaption; ?> SlideShare" <?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
358
  } else {
359
  echo ''; //If no URL inputed
360
  }
361
 
362
  // DeviantArt
363
- if ( $deviantart != '' && file_exists($smw_dir . '/images/' . $icon_pack. '/' . $icon_size .'/deviantart.png')) {
364
- ?><a href="<?php echo $deviantart; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/deviantart.png"alt="<?php echo $imgcaption; ?> DeviantArt"title="<?php echo $imgcaption; ?> DeviantArt" <?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
365
  } else {
366
  echo ''; //If no URL inputed
367
  }
368
 
369
  // Live365
370
- if ( $live365 != '' && file_exists($smw_dir . '/images/' . $icon_pack. '/' . $icon_size .'/live365.png')) {
371
- ?><a href="<?php echo $live365; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/live365.png"alt="<?php echo $imgcaption; ?> Live365"title="<?php echo $imgcaption; ?> Live365" <?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
372
  } else {
373
  echo ''; //If no URL inputed
374
  }
375
 
376
  // Digital Tunes
377
- if ( $digitaltunes != '' && file_exists($smw_dir . '/images/' . $icon_pack. '/' . $icon_size .'/digitaltunes.png')) {
378
- ?><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 $imgcaption; ?> Digital Tunes"title="<?php echo $imgcaption; ?> 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
379
  } else {
380
  echo ''; //If no URL Inputed
381
  }
382
 
383
  // Soundcloud
384
- if ( $soundcloud != '' && file_exists($smw_dir . '/images/' . $icon_pack. '/' . $icon_size .'/soundcloud.png')) {
385
- ?><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 $imgcaption; ?> Soundcloud"title="<?php echo $imgcaption; ?> 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
386
  } else {
387
  echo ''; //If no URL Inputed
388
  }
389
 
390
  // Etsy
391
- if ( $etsy != '' && file_exists($smw_dir . '/images/' . $icon_pack. '/' . $icon_size .'/etsy.png')) {
392
- ?><a href="<?php echo $etsy; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/etsy.png"alt="<?php echo $imgcaption; ?> Etsy"title="<?php echo $imgcaption; ?> Etsy" <?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
393
  } else {
394
  echo ''; //If no URL Inputed
395
  }
396
 
397
  // Better Business Bureau
398
- if ( $bbb != '' && file_exists($smw_dir . '/images/' . $icon_pack. '/' . $icon_size .'/bbb.png')) {
399
- ?><a href="<?php echo $bbb; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/bbb.png"alt="<?php echo $imgcaption; ?> Better Business Bureau"title="<?php echo $imgcaption; ?> Better Business Bureau" <?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
400
  } else {
401
  echo ''; //If no URL inputed
402
  }
403
 
404
  // Merchant Circle
405
- if ( $merchantcircle != '' && file_exists($smw_dir . '/images/' . $icon_pack. '/' . $icon_size .'/merchantcircle.png')) {
406
- ?><a href="<?php echo $merchantcircle; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/merchantcircle.png"alt="<?php echo $imgcaption; ?> Merchant Circle"title="<?php echo $imgcaption; ?> Merchant Circle" <?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
407
  } else {
408
  echo ''; //If no URL inputed
409
  }
@@ -451,15 +464,15 @@ class Social_Widget extends WP_Widget {
451
  }
452
 
453
  // RSS
454
- if ( $rss != '' && file_exists($smw_dir . '/images/' . $icon_pack. '/' . $icon_size .'/rss.png')) {
455
- ?><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 $imgcaption ?> RSS" title="<?php echo $imgcaption ?> 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
456
  } else {
457
  echo '';// If no URL Inputed
458
  }
459
 
460
  // E-mail Subscription -- If Newsletter or Mailing List available
461
- if ( $subscribe != '' && file_exists($smw_dir . '/images/' . $icon_pack. '/' . $icon_size .'/email.png')) {
462
- ?><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 $imgcaption ?> E-mail" title="<?php echo $imgcaption ?> 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
463
  } else {
464
  echo ''; // If no URL Inputed
465
  }
@@ -476,6 +489,10 @@ class Social_Widget extends WP_Widget {
476
 
477
  /* Strip Tags For Text Boxes */
478
  $instance['title'] = strip_tags( $new_instance['title'] );
 
 
 
 
479
  $instance['imgcaption'] = strip_tags( $new_instance['imgcaption'] );
480
  $instance['facebook'] = strip_tags( $new_instance['facebook'] );
481
  $instance['twitter'] = strip_tags( $new_instance['twitter'] );
@@ -533,6 +550,8 @@ class Social_Widget extends WP_Widget {
533
  $instance['subscribe'] = strip_tags( $new_instance['subscribe'] );
534
  $instance['icon_size'] = $new_instance['icon_size'];
535
  $instance['icon_pack'] = $new_instance['icon_pack'];
 
 
536
  $instance['animation'] = $new_instance['animation'];
537
  $instance['icon_opacity'] = $new_instance['icon_opacity'];
538
  $instance['newtab'] = $new_instance['newtab'];
@@ -551,7 +570,8 @@ class Social_Widget extends WP_Widget {
551
 
552
  /* Set up some default widget settings. */
553
  $defaults = array(
554
- 'title' => __('Follow Us!', 'smw'),
 
555
  'imgcaption' => __('Follow Us on', 'smw'),
556
  'facebook' => __('http://www.facebook.com/your_name', 'smw'),
557
  'twitter' => __('http://www.twitter.com/yourname', 'smw'),
@@ -608,6 +628,8 @@ class Social_Widget extends WP_Widget {
608
  'rss_url' => __('http://www.yoursite.com/feed', 'smw'),
609
  'icon_size' => 'default',
610
  'icon_pack' => 'default',
 
 
611
  'icon_opacity' => 'default',
612
  'newtab' => 'yes',
613
  'nofollow' => 'on',
@@ -624,7 +646,13 @@ class Social_Widget extends WP_Widget {
624
  <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Title:', 'smw'); ?></label>
625
  <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%;" />
626
  </p>
627
-
 
 
 
 
 
 
628
  <!-- Image Caption: Text Input -->
629
  <p>
630
  <label for="<?php echo $this->get_field_id( 'imgcaption' ); ?>"><?php _e('Icon Alt and Title Tag:', 'smw'); ?></label>
@@ -787,14 +815,14 @@ class Social_Widget extends WP_Widget {
787
  <label for="<?php echo $this->get_field_id( 'plancast' ); ?>"><?php _e('PlanCast URL:', 'smw'); ?></label>
788
  <input id="<?php echo $this->get_field_id( 'plancast' ); ?>" name="<?php echo $this->get_field_name( 'plancast' ); ?>" value="<?php echo $instance['plancast']; ?>" style="width:85%;" />
789
  </p>
790
-
 
791
  <!-- SlideShare URL: Text Input -->
792
  <p>
793
  <label for="<?php echo $this->get_field_id( 'slideshare' ); ?>"><?php _e('SlideShare URL:', 'smw'); ?></label>
794
  <input id="<?php echo $this->get_field_id( 'slideshare' ); ?>" name="<?php echo $this->get_field_name( 'slideshare' ); ?>" value="<?php echo $instance['slideshare']; ?>" style="width:85%;" />
795
  </p>
796
- </div>
797
- <div style="width: 48%; float: right; border-left: 1px solid #000; padding-left: 20px;">
798
  <!-- DeviantArt URL: Text Input -->
799
  <p>
800
  <label for="<?php echo $this->get_field_id( 'deviantart' ); ?>"><?php _e('DeviantArt URL:', 'smw'); ?></label>
@@ -836,8 +864,14 @@ class Social_Widget extends WP_Widget {
836
  <label for="<?php echo $this->get_field_id( 'merchantcircle' ); ?>"><?php _e('Merchant Circle URL:', 'smw'); ?></label>
837
  <input id="<?php echo $this->get_field_id( 'merchantcircle' ); ?>" name="<?php echo $this->get_field_name( 'merchantcircle' ); ?>" value="<?php echo $instance['merchantcircle']; ?>" style="width:85%;" />
838
  </p>
839
- <p><em>Here you can input 6 custom icons. Make sure you input FULL urls to the icon (including http://). The images will resize both width and height to the icon size chosen.</em></p>
 
 
 
 
 
840
  <!-- Custom Service 1: Text Input -->
 
841
  <p>
842
  <label for="<?php echo $this->get_field_id( 'custom1name' ); ?>"><?php _e('Custom Service 1 Name:', 'smw'); ?></label>
843
  <input id="<?php echo $this->get_field_id( 'custom1name' ); ?>" name="<?php echo $this->get_field_name( 'custom1name' ); ?>" value="<?php echo $instance['custom1name']; ?>" style="width:85%;" />
@@ -896,7 +930,7 @@ class Social_Widget extends WP_Widget {
896
  <label for="<?php echo $this->get_field_id( 'custom6url' ); ?>"><?php _e('Custom Service 6 Profile URL:', 'smw'); ?></label>
897
  <input id="<?php echo $this->get_field_id( 'custom6url' ); ?>" name="<?php echo $this->get_field_name( 'custom6url' ); ?>" value="<?php echo $instance['custom6url']; ?>" style="width:85%;" />
898
  </p>
899
-
900
  <!-- RSS URL: Text Input -->
901
  <p>
902
  <label for="<?php echo $this->get_field_id( 'rss_url' ); ?>"><?php _e('RSS URL:', 'smw'); ?></label>
@@ -932,6 +966,19 @@ class Social_Widget extends WP_Widget {
932
  <option value="custom" <?php if($instance['icon_pack'] == 'custom') { echo 'selected'; } ?>>Custom Icons</option>
933
  </select>
934
  </p>
 
 
 
 
 
 
 
 
 
 
 
 
 
935
 
936
  <!-- Type of Animation: Dropdown -->
937
  <p>
@@ -1006,7 +1053,6 @@ class Social_Widget extends WP_Widget {
1006
  /* Add scripts to header */
1007
  add_action('wp_head', 'Social_Widget_Scripts');
1008
 
1009
-
1010
  /* Load the widget */
1011
  add_action( 'widgets_init', 'socialwidget_load_widgets' );
1012
  ?>
3
  * Plugin Name: Social Media Widget
4
  * Plugin URI: http://forums.idontlikethisgame.com/viewforum.php?f=3
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.6
7
  * Author: Brian Freytag
8
  * Author URI: http://www.idontlikethisgame.com/
9
  **/
26
  <link rel="stylesheet" type="text/css" href="<?php echo $social_widget_path; ?>social_widget.css" />
27
  <?php }
28
 
 
29
  /* Register the widget */
30
  function socialwidget_load_widgets() {
31
  register_widget( 'Social_Widget' );
52
 
53
  /* Our variables from the widget settings. */
54
  $title = apply_filters('widget_title', $instance['title'] );
55
+ $text = apply_filters( 'widget_text', $instance['text'], $instance );
56
  $imgcaption = $instance['imgcaption'];
57
  $facebook = $instance['facebook'];
58
  $twitter = $instance['twitter'];
92
  $subscribe = $instance['subscribe'];
93
  $icon_size = $instance['icon_size'];
94
  $icon_pack = $instance['icon_pack'];
95
+ $customiconsurl = $instance['customiconsurl'];
96
+ $customiconspath = $instance['customiconspath'];
97
  $animation = $instance['animation'];
98
  $icon_opacity = $instance['icon_opacity'];
99
  $newtab = $instance['newtab'];
157
  }
158
 
159
  /* Get Plugin Path */
160
+ if($icon_pack == 'custom') {
161
+ $smw_path = $customiconsurl;
162
+ $smw_dir = $customiconspath;
163
+ } else {
164
+ $smw_path = SMW_PLUGINPATH . 'images/' . $icon_pack. '/' . $icon_size;
165
+ $smw_dir = SMW_PLUGINDIR . 'images/' . $icon_pack. '/' . $icon_size;
166
+ }
167
+
168
  /* Before widget (defined by themes). */
169
  echo $before_widget;
170
 
172
  if ( $title )
173
  echo $before_title . $title . $after_title;
174
 
175
+
176
+
177
  echo "<div class=\"socialmedia-buttons ".$alignment."\">";
178
+ /* Display short description */
179
+
180
+ if ( $text )
181
+ echo "<div class=\"socialmedia-text\>" . $instance['filter'] ? wpautop($text) : $text . '</div>';
182
+
183
  /* Display linked images to profiles from widget settings if one was input. */
184
 
185
  // Facebook
186
+ if ( $facebook != '' && file_exists($smw_dir.'/facebook.png')) {
187
+ ?><a href="<?php echo $facebook; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>/facebook.png" alt="<?php echo $imgcaption; ?> Facebook" title="<?php echo $imgcaption ?> 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
188
  } else {
189
  echo ''; //If no URL inputed
190
  }
191
 
192
  // Twitter
193
+ if ( $twitter != '' && file_exists($smw_dir.'/twitter.png')) {
194
+ ?><a href="<?php echo $twitter; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>/twitter.png" alt="<?php echo $imgcaption; ?> Twitter"title="<?php echo $imgcaption; ?> 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
195
  } else {
196
  echo ''; //If no URL inputed
197
  }
198
 
199
 
200
  // MySpace
201
+ if ( $myspace != '' && file_exists($smw_dir.'/myspace.png')) {
202
+ ?><a href="<?php echo $myspace; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>/myspace.png"alt="<?php echo $imgcaption; ?> MySpace"title="<?php echo $imgcaption; ?> 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
203
  } else {
204
  echo ''; //If no URL inputed
205
  }
206
 
207
  // FriendFeed
208
+ if ( $friendfeed != '' && file_exists($smw_dir.'/friendfeed.png')) {
209
+ ?><a href="<?php echo $friendfeed; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>/friendfeed.png"alt="<?php echo $imgcaption; ?> FriendFeed"title="<?php echo $imgcaption; ?> 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
210
  } else {
211
  echo ''; //If no URL inputed
212
  }
213
 
214
  // Orkut
215
+ if ( $orkut != '' && file_exists($smw_dir.'/orkut.png')) {
216
+ ?><a href="<?php echo $orkut; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>/orkut.png"alt="<?php echo $imgcaption; ?> Orkut"title="<?php echo $imgcaption; ?> 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
217
  } else {
218
  echo ''; //If no URL inputed
219
  }
220
 
221
  // Hyves
222
+ if ( $hyves != '' && file_exists($smw_dir.'/hyves.png')) {
223
+ ?><a href="<?php echo $hyves; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>/hyves.png"alt="<?php echo $imgcaption; ?> Hyves"title="<?php echo $imgcaption; ?> Hyves" <?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
224
  } else {
225
  echo ''; //If no URL inputed
226
  }
227
 
228
  // LinkedIN
229
+ if ( $linkedin != '' && file_exists($smw_dir.'/linkedin.png')) {
230
+ ?><a href="<?php echo $linkedin; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>/linkedin.png"alt="<?php echo $imgcaption; ?> LinkedIn"title="<?php echo $imgcaption; ?> 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
231
  } else {
232
  echo ''; //If no URL inputed
233
  }
234
 
235
  // aSmallWorld
236
+ if ( $asmallworld != '' && file_exists($smw_dir.'/asmallworld.png')) {
237
+ ?><a href="<?php echo $asmallworld; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>/asmallworld.png"alt="<?php echo $imgcaption; ?> aSmallWorld"title="<?php echo $imgcaption; ?> aSmallWorld" <?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
238
  } else {
239
  echo ''; //If no URL inputed
240
  }
241
 
242
  // Flickr
243
+ if ( $flickr != '' && file_exists($smw_dir.'/flickr.png')) {
244
+ ?><a href="<?php echo $flickr; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>/flickr.png" alt="<?php echo $imgcaption; ?> Flickr"title="<?php echo $imgcaption; ?> 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
245
  } else {
246
  echo ''; //If no URL inputed
247
  }
248
 
249
  // YouTube
250
+ if ( $youtube != '' && file_exists($smw_dir.'/youtube.png')) {
251
+ ?><a href="<?php echo $youtube; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>/youtube.png"alt="<?php echo $imgcaption; ?> YouTube"title="<?php echo $imgcaption; ?> YouTube" <?php if($animation == 'fade' || $animation == 'combo') { ?> style="opacity: <?php echo $icon_opacity; ?>; -moz-opacity: <?php echo $icon_opacity;?>;" <?php } ?>class="<?php echo $animation; ?>" /></a><?php
252
  } else {
253
  echo ''; //If No URL Inputed
254
  }
255
 
256
  // Skype
257
+ if ( $skype != '' && file_exists($smw_dir.'/skype.png')) {
258
+ ?><a href="<?php echo $skype; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>/skype.png"alt="<?php echo $imgcaption; ?> Skype"title="<?php echo $imgcaption; ?> 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
259
  } else {
260
  echo ''; //If No URL Inputed
261
  }
262
 
263
  // Digg
264
+ if ( $digg != '' && file_exists($smw_dir.'/digg.png')) {
265
+ ?><a href="<?php echo $digg; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>/digg.png"alt="<?php echo $imgcaption; ?> Digg"title="<?php echo $imgcaption; ?> 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
266
  } else {
267
  echo ''; //If no URL Inputed
268
  }
269
 
270
  // Reddit
271
+ if ( $reddit != '' && file_exists($smw_dir.'/reddit.png')) {
272
+ ?><a href="<?php echo $reddit; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>/reddit.png"alt="<?php echo $imgcaption; ?> Reddit"title="<?php echo $imgcaption; ?> 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
273
  } else {
274
  echo ''; //If no URL Inputed
275
  }
276
 
277
  // Delicious
278
+ if ( $delicious != '' && file_exists($smw_dir.'/delicious.png')) {
279
+ ?><a href="<?php echo $delicious; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>/delicious.png"alt="<?php echo $imgcaption; ?> Delicious"title="<?php echo $imgcaption; ?> 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
280
  } else {
281
  echo ''; //If no URL Inputed
282
  }
283
 
284
  // StumbleUpon
285
+ if ( $stumble != '' && file_exists($smw_dir.'/stumble.png')) {
286
+ ?><a href="<?php echo $stumble; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>/stumble.png"alt="<?php echo $imgcaption; ?> StumbleUpon"title="<?php echo $imgcaption; ?> 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
287
  } else {
288
  echo ''; //If no URL Inputed
289
  }
290
 
291
  // Tumblr
292
+ if ( $tumblr != '' && file_exists($smw_dir.'/tumblr.png')) {
293
+ ?><a href="<?php echo $tumblr; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>/tumblr.png"alt="<?php echo $imgcaption; ?> Tumblr"title="<?php echo $imgcaption; ?> Tumblr" <?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
294
  } else {
295
  echo ''; //If no URL Inputed
296
  }
297
 
298
  // Google Buzz
299
+ if ( $buzz != '' && file_exists($smw_dir.'/buzz.png')) {
300
+ ?><a href="<?php echo $buzz; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>/buzz.png"alt="<?php echo $imgcaption; ?> Buzz"title="<?php echo $imgcaption; ?> 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
301
  } else {
302
  echo ''; //If no URL Inputed
303
  }
304
 
305
  // Vimeo
306
+ if ( $vimeo != '' && file_exists($smw_dir.'/vimeo.png')) {
307
+ ?><a href="<?php echo $vimeo; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>/vimeo.png"alt="<?php echo $imgcaption; ?> Vimeo"title="<?php echo $imgcaption; ?> 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
308
  } else {
309
  echo ''; //If no URL Inputed
310
  }
311
 
312
  // Blogger
313
+ if ( $blogger != '' && file_exists($smw_dir.'/blogger.png')) {
314
+ ?><a href="<?php echo $blogger; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>/blogger.png"alt="<?php echo $imgcaption; ?> Blogger"title="<?php echo $imgcaption; ?> 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
315
  } else {
316
  echo ''; //If No URL Inputed
317
  }
318
 
319
  // Wordpress
320
+ if ( $wordpress != '' && file_exists($smw_dir.'/wordpress.png')) {
321
+ ?><a href="<?php echo $wordpress; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>/wordpress.png"alt="<?php echo $imgcaption; ?> Wordpress"title="<?php echo $imgcaption; ?> 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
322
  } else {
323
  echo ''; //If No URL Inputed
324
  }
325
 
326
  // Yelp
327
+ if ( $yelp != '' && file_exists($smw_dir.'/yelp.png')) {
328
+ ?><a href="<?php echo $yelp; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>/yelp.png"alt="<?php echo $imgcaption; ?> Yelp"title="<?php echo $imgcaption; ?> 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
329
  } else {
330
  echo ''; //If No URL Inputed
331
  }
332
 
333
  // Last.fm
334
+ if ( $lastfm != '' && file_exists($smw_dir.'/lastfm.png')) {
335
+ ?><a href="<?php echo $lastfm; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>/lastfm.png"alt="<?php echo $imgcaption; ?> Last.fm"title="<?php echo $imgcaption; ?> 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
336
  } else {
337
  echo ''; //If no URL Inputed
338
  }
339
 
340
  // Foursquare
341
+ if ( $foursquare != '' && file_exists($smw_dir.'/foursquare.png')) {
342
+ ?><a href="<?php echo $foursquare; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>/foursquare.png"alt="<?php echo $imgcaption; ?> Foursquare"title="<?php echo $imgcaption; ?> 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
343
  } else {
344
  echo ''; //If no URL Inputed
345
  }
346
 
347
  // Meetup
348
+ if ( $meetup != '' && file_exists($smw_dir.'/meetup.png')) {
349
+ ?><a href="<?php echo $meetup; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>/meetup.png"alt="<?php echo $imgcaption; ?> Meetup"title="<?php echo $imgcaption; ?> 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
350
  } else {
351
  echo ''; //If no URL Inputed
352
  }
353
 
354
  // Tungle.me
355
+ if ( $tungle != '' && file_exists($smw_dir.'/tungle.png')) {
356
+ ?><a href="<?php echo $tungle; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>/tungle.png"alt="<?php echo $imgcaption; ?> Tungle"title="<?php echo $imgcaption; ?> Tungle" <?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
357
  } else {
358
  echo ''; //If no URL inputed
359
  }
360
 
361
  // PlanCast
362
+ if ( $plancast != '' && file_exists($smw_dir.'/plancast.png')) {
363
+ ?><a href="<?php echo $plancast; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>/plancast.png"alt="<?php echo $imgcaption; ?> PlanCast"title="<?php echo $imgcaption; ?> PlanCast" <?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
364
  } else {
365
  echo ''; //If no URL inputed
366
  }
367
 
368
  // Hyves
369
+ if ( $slideshare != '' && file_exists($smw_dir.'/slideshare.png')) {
370
+ ?><a href="<?php echo $slideshare; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>/slideshare.png"alt="<?php echo $imgcaption; ?> SlideShare"title="<?php echo $imgcaption; ?> SlideShare" <?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
371
  } else {
372
  echo ''; //If no URL inputed
373
  }
374
 
375
  // DeviantArt
376
+ if ( $deviantart != '' && file_exists($smw_dir.'/deviantart.png')) {
377
+ ?><a href="<?php echo $deviantart; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>/deviantart.png"alt="<?php echo $imgcaption; ?> DeviantArt"title="<?php echo $imgcaption; ?> DeviantArt" <?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
378
  } else {
379
  echo ''; //If no URL inputed
380
  }
381
 
382
  // Live365
383
+ if ( $live365 != '' && file_exists($smw_dir.'/live365.png')) {
384
+ ?><a href="<?php echo $live365; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>/live365.png"alt="<?php echo $imgcaption; ?> Live365"title="<?php echo $imgcaption; ?> Live365" <?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
385
  } else {
386
  echo ''; //If no URL inputed
387
  }
388
 
389
  // Digital Tunes
390
+ if ( $digitaltunes != '' && file_exists($smw_dir.'/digitaltunes.png')) {
391
+ ?><a href="<?php echo $digitaltunes; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>/digitaltunes.png"alt="<?php echo $imgcaption; ?> Digital Tunes"title="<?php echo $imgcaption; ?> 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
392
  } else {
393
  echo ''; //If no URL Inputed
394
  }
395
 
396
  // Soundcloud
397
+ if ( $soundcloud != '' && file_exists($smw_dir.'/soundcloud.png')) {
398
+ ?><a href="<?php echo $soundcloud; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>/soundcloud.png"alt="<?php echo $imgcaption; ?> Soundcloud"title="<?php echo $imgcaption; ?> 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
399
  } else {
400
  echo ''; //If no URL Inputed
401
  }
402
 
403
  // Etsy
404
+ if ( $etsy != '' && file_exists($smw_dir.'/etsy.png')) {
405
+ ?><a href="<?php echo $etsy; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>/etsy.png"alt="<?php echo $imgcaption; ?> Etsy"title="<?php echo $imgcaption; ?> Etsy" <?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
406
  } else {
407
  echo ''; //If no URL Inputed
408
  }
409
 
410
  // Better Business Bureau
411
+ if ( $bbb != '' && file_exists($smw_dir.'/bbb.png')) {
412
+ ?><a href="<?php echo $bbb; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>/bbb.png"alt="<?php echo $imgcaption; ?> Better Business Bureau"title="<?php echo $imgcaption; ?> Better Business Bureau" <?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
413
  } else {
414
  echo ''; //If no URL inputed
415
  }
416
 
417
  // Merchant Circle
418
+ if ( $merchantcircle != '' && file_exists($smw_dir.'/merchantcircle.png')) {
419
+ ?><a href="<?php echo $merchantcircle; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>/merchantcircle.png"alt="<?php echo $imgcaption; ?> Merchant Circle"title="<?php echo $imgcaption; ?> Merchant Circle" <?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
420
  } else {
421
  echo ''; //If no URL inputed
422
  }
464
  }
465
 
466
  // RSS
467
+ if ( $rss != '' && file_exists($smw_dir.'/rss.png')) {
468
+ ?><a href="<?php echo $rss; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>/rss.png" alt="<?php echo $imgcaption ?> RSS" title="<?php echo $imgcaption ?> 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
469
  } else {
470
  echo '';// If no URL Inputed
471
  }
472
 
473
  // E-mail Subscription -- If Newsletter or Mailing List available
474
+ if ( $subscribe != '' && file_exists($smw_dir.'/email.png')) {
475
+ ?><a href="<?php echo $subscribe; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>/email.png" alt="<?php echo $imgcaption ?> E-mail" title="<?php echo $imgcaption ?> 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
476
  } else {
477
  echo ''; // If no URL Inputed
478
  }
489
 
490
  /* Strip Tags For Text Boxes */
491
  $instance['title'] = strip_tags( $new_instance['title'] );
492
+ if ( current_user_can('unfiltered_html') )
493
+ $instance['text'] = $new_instance['text'];
494
+ else
495
+ $instance['text'] = stripslashes( wp_filter_post_kses( addslashes($new_instance['text']) ) ); // wp_filter_post_kses() expects slashed
496
  $instance['imgcaption'] = strip_tags( $new_instance['imgcaption'] );
497
  $instance['facebook'] = strip_tags( $new_instance['facebook'] );
498
  $instance['twitter'] = strip_tags( $new_instance['twitter'] );
550
  $instance['subscribe'] = strip_tags( $new_instance['subscribe'] );
551
  $instance['icon_size'] = $new_instance['icon_size'];
552
  $instance['icon_pack'] = $new_instance['icon_pack'];
553
+ $instance['customiconsurl'] = strip_tags( $new_instance['customiconsurl'] );
554
+ $instance['customiconspath'] = strip_tags( $new_instance['customiconspath'] );
555
  $instance['animation'] = $new_instance['animation'];
556
  $instance['icon_opacity'] = $new_instance['icon_opacity'];
557
  $instance['newtab'] = $new_instance['newtab'];
570
 
571
  /* Set up some default widget settings. */
572
  $defaults = array(
573
+ 'title' => __('Follow Us!', 'smw'),
574
+ 'text' => '',
575
  'imgcaption' => __('Follow Us on', 'smw'),
576
  'facebook' => __('http://www.facebook.com/your_name', 'smw'),
577
  'twitter' => __('http://www.twitter.com/yourname', 'smw'),
628
  'rss_url' => __('http://www.yoursite.com/feed', 'smw'),
629
  'icon_size' => 'default',
630
  'icon_pack' => 'default',
631
+ 'customiconsurl' => __('http://wwww.yoursite.com/wordpress/wp-content/your-icons', 'smw'),
632
+ 'customiconspath' => __('/path/to/your-icons', 'smw'),
633
  'icon_opacity' => 'default',
634
  'newtab' => 'yes',
635
  'nofollow' => 'on',
646
  <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Title:', 'smw'); ?></label>
647
  <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%;" />
648
  </p>
649
+
650
+ <!-- Widget Text: Textarea -->
651
+ <p>
652
+ <label for"<?php echo $this->get_field_id( 'text' ); ?>"><?php _e('Widget Text:', 'smw'); ?></label>
653
+ <textarea id="<?php echo $this->get_field_id('text'); ?>" name="<?php echo $this->get_field_name('text'); ?>" rows="8" cols="20" style="width:85%;" ><?php echo $instance['text']; ?></textarea>
654
+ </p>
655
+
656
  <!-- Image Caption: Text Input -->
657
  <p>
658
  <label for="<?php echo $this->get_field_id( 'imgcaption' ); ?>"><?php _e('Icon Alt and Title Tag:', 'smw'); ?></label>
815
  <label for="<?php echo $this->get_field_id( 'plancast' ); ?>"><?php _e('PlanCast URL:', 'smw'); ?></label>
816
  <input id="<?php echo $this->get_field_id( 'plancast' ); ?>" name="<?php echo $this->get_field_name( 'plancast' ); ?>" value="<?php echo $instance['plancast']; ?>" style="width:85%;" />
817
  </p>
818
+ </div>
819
+ <div style="width: 48%; float: right; border-left: 1px solid #000; padding-left: 20px;">
820
  <!-- SlideShare URL: Text Input -->
821
  <p>
822
  <label for="<?php echo $this->get_field_id( 'slideshare' ); ?>"><?php _e('SlideShare URL:', 'smw'); ?></label>
823
  <input id="<?php echo $this->get_field_id( 'slideshare' ); ?>" name="<?php echo $this->get_field_name( 'slideshare' ); ?>" value="<?php echo $instance['slideshare']; ?>" style="width:85%;" />
824
  </p>
825
+
 
826
  <!-- DeviantArt URL: Text Input -->
827
  <p>
828
  <label for="<?php echo $this->get_field_id( 'deviantart' ); ?>"><?php _e('DeviantArt URL:', 'smw'); ?></label>
864
  <label for="<?php echo $this->get_field_id( 'merchantcircle' ); ?>"><?php _e('Merchant Circle URL:', 'smw'); ?></label>
865
  <input id="<?php echo $this->get_field_id( 'merchantcircle' ); ?>" name="<?php echo $this->get_field_name( 'merchantcircle' ); ?>" value="<?php echo $instance['merchantcircle']; ?>" style="width:85%;" />
866
  </p>
867
+
868
+
869
+ <p><em>Here you can input 6 custom icons. Make sure you input FULL urls to the icon (including http://). The images will resize both width and height to the icon size chosen.</em><br />
870
+
871
+ </p>
872
+
873
  <!-- Custom Service 1: Text Input -->
874
+
875
  <p>
876
  <label for="<?php echo $this->get_field_id( 'custom1name' ); ?>"><?php _e('Custom Service 1 Name:', 'smw'); ?></label>
877
  <input id="<?php echo $this->get_field_id( 'custom1name' ); ?>" name="<?php echo $this->get_field_name( 'custom1name' ); ?>" value="<?php echo $instance['custom1name']; ?>" style="width:85%;" />
930
  <label for="<?php echo $this->get_field_id( 'custom6url' ); ?>"><?php _e('Custom Service 6 Profile URL:', 'smw'); ?></label>
931
  <input id="<?php echo $this->get_field_id( 'custom6url' ); ?>" name="<?php echo $this->get_field_name( 'custom6url' ); ?>" value="<?php echo $instance['custom6url']; ?>" style="width:85%;" />
932
  </p>
933
+
934
  <!-- RSS URL: Text Input -->
935
  <p>
936
  <label for="<?php echo $this->get_field_id( 'rss_url' ); ?>"><?php _e('RSS URL:', 'smw'); ?></label>
966
  <option value="custom" <?php if($instance['icon_pack'] == 'custom') { echo 'selected'; } ?>>Custom Icons</option>
967
  </select>
968
  </p>
969
+
970
+ <!-- Custom Icon Pack URL: Text Input -->
971
+ <p>
972
+ <label for="<?php echo $this->get_field_id( 'customiconsurl' ); ?>"><?php _e('Custom Icons URL:', 'smw'); ?></label>
973
+ <input id="<?php echo $this->get_field_id( 'customiconsurl' ); ?>" name="<?php echo $this->get_field_name( 'customiconsurl' ); ?>" value="<?php echo $instance['customiconsurl']; ?>" style="width:85%;" />
974
+ </p>
975
+
976
+ <!-- Custom Icon Pack Path: Text Input -->
977
+ <p>
978
+ <label for="<?php echo $this->get_field_id( 'customiconspath' ); ?>"><?php _e('Custom Icons Path:', 'smw'); ?></label>
979
+ <input id="<?php echo $this->get_field_id( 'customiconspath' ); ?>" name="<?php echo $this->get_field_name( 'customiconspath' ); ?>" value="<?php echo $instance['customiconspath']; ?>" style="width:85%;" />
980
+ </p>
981
+
982
 
983
  <!-- Type of Animation: Dropdown -->
984
  <p>
1053
  /* Add scripts to header */
1054
  add_action('wp_head', 'Social_Widget_Scripts');
1055
 
 
1056
  /* Load the widget */
1057
  add_action( 'widgets_init', 'socialwidget_load_widgets' );
1058
  ?>