Social Media Widget - Version 2.9.3

Version Description

  • Added support for Google+
  • Removed references to my website which has been down for some time. It crashed during my most recent move (HDD crashed with no way of recovering data... backups fail).
Download this release

Release Info

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

Code changes from version 2.9.2 to 2.9.3

images/cutout/16/googleplus.png ADDED
Binary file
images/cutout/32/googleplus.png ADDED
Binary file
images/cutout/64/googleplus.png ADDED
Binary file
images/default/16/googleplus.png ADDED
Binary file
images/default/32/googleplus.png ADDED
Binary file
images/default/64/googleplus.png ADDED
Binary file
images/heart/16/googleplus.png ADDED
Binary file
images/heart/32/googleplus.png ADDED
Binary file
images/heart/64/googleplus.png ADDED
Binary file
images/sketch/16/googleplus.png ADDED
Binary file
images/sketch/32/googleplus.png ADDED
Binary file
images/sketch/64/googleplus.png ADDED
Binary file
readme.txt CHANGED
@@ -1,12 +1,11 @@
1
  === Social Media Widget ===
2
  Contributors: brianfreytag
3
- Donate link: http://www.precisionwebdev.com/content/open-source-code-donations
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, ping, itunes, picasa, steam, google talk, pandora, hulu, ebay, flixster, imdb, bandcamp, ustream
5
  Requires at least: 2.9.2
6
- Tested up to: 3.1
7
- Stable tag: 2.9.2
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
 
11
  == Description ==
12
 
@@ -16,6 +15,7 @@ The Social Media Widget is a simple sidebar widget that allows users to input th
16
 
17
  * Supports the following social media sites:
18
  * Facebook
 
19
  * Twitter
20
  * MySpace
21
  * FriendFeed
@@ -76,7 +76,7 @@ The Social Media Widget is a simple sidebar widget that allows users to input th
76
  * Cutout - <a href="http://www.iconspedia.com/pack/icontexto-inside-2222/">Icontexto Inside Icons</a>
77
  * 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.
78
  * 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.
79
- * 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.
80
 
81
  * Choose from multiple animations including:
82
  * Fade In (you can choose the starting opacity too!)
@@ -144,7 +144,7 @@ If you
144
  If you don't understand what it means to create a folder and upload to that folder on the filesystem, or if you don't know what a path to a folder is, I would suggest sticking with one of the four default icon packs.
145
 
146
  = Can you add [insert social media service] support =
147
- Yes I can. Please go to my <a href="http://forums.idontlikethisgame.com/viewforum.php?f=3">SMW Forums</a> and request it there!
148
 
149
  = Why aren't the animations working in Internet Explorer 6+ =
150
  The only animation supported by Internet Explorer is Scale, and that only works reliably with Internet Explorer 8. Scale is also included in Combo. No other animations will work. This is because I do not want to use Javascript to animate my icons. All of these animations are using CSS3 styles. The animations work the best with Webkit based browsers such as Chrome and Safari or Firefox 4. Firefox 3.x is fully supported, without CSS3 transition animations.
@@ -165,9 +165,15 @@ First - calm down. I'm happy to help you, and, if you ask those I've helped alre
165
 
166
  == Help ==
167
 
168
- 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!
169
 
170
  == Changelog ==
 
 
 
 
 
 
171
  = 2.9.2 =
172
 
173
  * As I suspected, removing the !important tags from the CSS caused a lot more problems than it helped. I've added them back.
1
  === Social Media Widget ===
2
  Contributors: brianfreytag
3
+ Tags: social media, twitter, facebook, google+, googleplus, myspace, digg, email, rss, reddit, linkedin, orkut, youtube, buzz, social, icons, links, subscribe, follow, follow me, friendfeed, flickr, stumbleupon, vimeo, delicious, meetup, lastfm, foursquare, skype, blogger, wordpress, yelp, soundcloud, digital tunes, tumblr, hyves, etsy, tungle, plancast, slideshare, deviantart, better business bureau, merchant circle, asmallworld, live365, ping, itunes, picasa, steam, google talk, pandora, hulu, ebay, flixster, imdb, bandcamp, ustream
 
4
  Requires at least: 2.9.2
5
+ Tested up to: 3.2.1
6
+ Stable tag: 2.9.3
7
 
8
+ Adds links to all of your social media and sharing site profiles. Tons of icons come in 3 sizes, 4 icon styles, and 4 animations.
9
 
10
  == Description ==
11
 
15
 
16
  * Supports the following social media sites:
17
  * Facebook
18
+ * Google+
19
  * Twitter
20
  * MySpace
21
  * FriendFeed
76
  * Cutout - <a href="http://www.iconspedia.com/pack/icontexto-inside-2222/">Icontexto Inside Icons</a>
77
  * 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.
78
  * 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.
79
+ * All icons in this pack are licensed under the Creative Commons license. Note that some of these are non-commercial only. Please go to the sites linked above to get full information on their allowed uses.
80
 
81
  * Choose from multiple animations including:
82
  * Fade In (you can choose the starting opacity too!)
144
  If you don't understand what it means to create a folder and upload to that folder on the filesystem, or if you don't know what a path to a folder is, I would suggest sticking with one of the four default icon packs.
145
 
146
  = Can you add [insert social media service] support =
147
+ Yes I can. Please leave a comment in the Wordpress.org forums tagging my plugin or e-mailing me at info at precisionwebdev dot com.
148
 
149
  = Why aren't the animations working in Internet Explorer 6+ =
150
  The only animation supported by Internet Explorer is Scale, and that only works reliably with Internet Explorer 8. Scale is also included in Combo. No other animations will work. This is because I do not want to use Javascript to animate my icons. All of these animations are using CSS3 styles. The animations work the best with Webkit based browsers such as Chrome and Safari or Firefox 4. Firefox 3.x is fully supported, without CSS3 transition animations.
165
 
166
  == Help ==
167
 
168
+ Please e-mail me at info at precisionwebdev dot com for help. My web server died in my move and I have no intention of putting it back up, so I will be 100% e-mail based from now on.
169
 
170
  == Changelog ==
171
+
172
+ = 2.9.3 =
173
+
174
+ * Added support for Google+
175
+ * Removed references to my website which has been down for some time. It crashed during my most recent move (HDD crashed with no way of recovering data... backups fail).
176
+
177
  = 2.9.2 =
178
 
179
  * As I suspected, removing the !important tags from the CSS caused a lot more problems than it helped. I've added them back.
social-widget.php CHANGED
@@ -1,11 +1,9 @@
1
  <?php
2
  /**
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.9.2
7
  * Author: Brian Freytag
8
- * Author URI: http://www.precisionwebdev.com
9
  **/
10
 
11
 
@@ -54,7 +52,8 @@ class Social_Widget extends WP_Widget {
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'];
59
  $myspace = $instance['myspace'];
60
  $friendfeed = $instance['friendfeed'];
@@ -200,6 +199,13 @@ class Social_Widget extends WP_Widget {
200
  echo ''; //If no URL inputed
201
  }
202
 
 
 
 
 
 
 
 
203
  // Twitter
204
  if ( $twitter != '' && $twitter != ' ' && file_exists($smw_dir.'/twitter.png')) {
205
  ?><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
@@ -590,6 +596,7 @@ class Social_Widget extends WP_Widget {
590
  $instance['nofollow'] = $new_instance['nofollow'];
591
  $instance['alignment'] = $new_instance['alignment'];
592
  $instance['facebook'] = strip_tags( $new_instance['facebook'] );
 
593
  $instance['twitter'] = strip_tags( $new_instance['twitter'] );
594
  $instance['myspace'] = strip_tags( $new_instance['myspace'] );
595
  $instance['orkut'] = strip_tags( $new_instance['orkut'] );
@@ -680,6 +687,7 @@ class Social_Widget extends WP_Widget {
680
  'nofollow' => 'on',
681
  'alignment' => 'left',
682
  'facebook' => __('', 'smw'),
 
683
  'twitter' => __('', 'smw'),
684
  'myspace' => __('', 'smw'),
685
  'orkut' => __('', 'smw'),
@@ -858,6 +866,12 @@ class Social_Widget extends WP_Widget {
858
  <input id="<?php echo $this->get_field_id( 'facebook' ); ?>" name="<?php echo $this->get_field_name( 'facebook' ); ?>" value="<?php echo $instance['facebook']; ?>" style="width:85%;" />
859
  </p>
860
 
 
 
 
 
 
 
861
  <!-- Twitter URL: Text Input -->
862
  <p>
863
  <label for="<?php echo $this->get_field_id( 'twitter' ); ?>"><?php _e('Twitter URL:', 'smw'); ?></label>
1
  <?php
2
  /**
3
  * Plugin Name: Social Media Widget
4
+ * Description: Adds links to all of your social media and sharing site profiles. Tons of icons come in 3 sizes, 4 icon styles, and 4 animations.
5
+ * Version: 2.9.3
 
6
  * Author: Brian Freytag
 
7
  **/
8
 
9
 
52
  $title = apply_filters('widget_title', $instance['title'] );
53
  $text = apply_filters( 'widget_text', $instance['text'], $instance );
54
  $imgcaption = $instance['imgcaption'];
55
+ $facebook = $instance['facebook'];
56
+ $googleplus = $instance['googleplus'];
57
  $twitter = $instance['twitter'];
58
  $myspace = $instance['myspace'];
59
  $friendfeed = $instance['friendfeed'];
199
  echo ''; //If no URL inputed
200
  }
201
 
202
+ // Google Plus
203
+ if ( $googleplus != '' && $googleplus != ' ' && file_exists($smw_dir.'/googleplus.png')) {
204
+ ?><a href="<?php echo $googleplus; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>/googleplus.png" alt="<?php echo $imgcaption; ?> Google+" title="<?php echo $imgcaption ?> Google+" <?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
205
+ } else {
206
+ echo ''; //If no URL inputed
207
+ }
208
+
209
  // Twitter
210
  if ( $twitter != '' && $twitter != ' ' && file_exists($smw_dir.'/twitter.png')) {
211
  ?><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
596
  $instance['nofollow'] = $new_instance['nofollow'];
597
  $instance['alignment'] = $new_instance['alignment'];
598
  $instance['facebook'] = strip_tags( $new_instance['facebook'] );
599
+ $instance['googleplus'] = strip_tags( $new_instance['googleplus'] );
600
  $instance['twitter'] = strip_tags( $new_instance['twitter'] );
601
  $instance['myspace'] = strip_tags( $new_instance['myspace'] );
602
  $instance['orkut'] = strip_tags( $new_instance['orkut'] );
687
  'nofollow' => 'on',
688
  'alignment' => 'left',
689
  'facebook' => __('', 'smw'),
690
+ 'googleplus' => __('', 'smw'),
691
  'twitter' => __('', 'smw'),
692
  'myspace' => __('', 'smw'),
693
  'orkut' => __('', 'smw'),
866
  <input id="<?php echo $this->get_field_id( 'facebook' ); ?>" name="<?php echo $this->get_field_name( 'facebook' ); ?>" value="<?php echo $instance['facebook']; ?>" style="width:85%;" />
867
  </p>
868
 
869
+ <!-- Facebook URL: Text Input -->
870
+ <p>
871
+ <label for="<?php echo $this->get_field_id( 'googleplus' ); ?>"><?php _e('Google+ URL:', 'smw'); ?></label>
872
+ <input id="<?php echo $this->get_field_id( 'googleplus' ); ?>" name="<?php echo $this->get_field_name( 'googleplus' ); ?>" value="<?php echo $instance['googleplus']; ?>" style="width:85%;" />
873
+ </p>
874
+
875
  <!-- Twitter URL: Text Input -->
876
  <p>
877
  <label for="<?php echo $this->get_field_id( 'twitter' ); ?>"><?php _e('Twitter URL:', 'smw'); ?></label>