Social Media Widget - Version 2.8

Version Description

  • Added Google Picasa Web Albums support
Download this release

Release Info

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

Code changes from version 2.7 to 2.8

images/cutout/16/picasa.png ADDED
Binary file
images/cutout/32/picasa.png ADDED
Binary file
images/cutout/64/picasa.png ADDED
Binary file
images/default/16/picasa.png ADDED
Binary file
images/default/32/picasa.png ADDED
Binary file
images/default/64/picasa.png ADDED
Binary file
images/heart/16/picasa.png ADDED
Binary file
images/heart/32/picasa.png ADDED
Binary file
images/heart/64/picasa.png ADDED
Binary file
images/sketch/16/picasa.png ADDED
Binary file
images/sketch/32/picasa.png ADDED
Binary file
images/sketch/64/picasa.png ADDED
Binary file
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, ping, itunes
5
  Requires at least: 2.9.1
6
  Tested up to: 3.0.1
7
- Stable tag: 2.7
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
 
@@ -24,6 +24,7 @@ The Social Media Widget is a simple sidebar widget that allows users to input th
24
  * LinkedIn
25
  * aSmallWorld
26
  * Flickr
 
27
  * YouTube
28
  * Skype
29
  * Digg
@@ -150,6 +151,10 @@ First - calm down. I'm happy to help you, and, if you ask those I've helped alre
150
  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!
151
 
152
  == Changelog ==
 
 
 
 
153
  = 2.7 =
154
 
155
  * Added iTunes Ping support
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
5
  Requires at least: 2.9.1
6
  Tested up to: 3.0.1
7
+ Stable tag: 2.8
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
 
24
  * LinkedIn
25
  * aSmallWorld
26
  * Flickr
27
+ * Picasa Web Albums
28
  * YouTube
29
  * Skype
30
  * Digg
151
  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!
152
 
153
  == Changelog ==
154
+ = 2.8 =
155
+
156
+ * Added Google Picasa Web Albums support
157
+
158
  = 2.7 =
159
 
160
  * Added iTunes Ping support
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.7
7
  * Author: Brian Freytag
8
  * Author URI: http://www.idontlikethisgame.com/
9
  **/
@@ -63,6 +63,7 @@ class Social_Widget extends WP_Widget {
63
  $linkedin = $instance['linkedin'];
64
  $asmallworld = $instance['asmallworld'];
65
  $flickr = $instance['flickr'];
 
66
  $youtube = $instance['youtube'];
67
  $skype = $instance['skype'];
68
  $digg = $instance['digg'];
@@ -247,6 +248,13 @@ class Social_Widget extends WP_Widget {
247
  echo ''; //If no URL inputed
248
  }
249
 
 
 
 
 
 
 
 
250
  // YouTube
251
  if ( $youtube != '' && $youtube != ' ' && file_exists($smw_dir.'/youtube.png')) {
252
  ?><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
@@ -511,6 +519,7 @@ class Social_Widget extends WP_Widget {
511
  $instance['linkedin'] = strip_tags( $new_instance['linkedin'] );
512
  $instance['asmallworld'] = strip_tags( $new_instance['asmallworld'] );
513
  $instance['flickr'] = strip_tags( $new_instance['flickr'] );
 
514
  $instance['youtube'] = strip_tags( $new_instance['youtube'] );
515
  $instance['skype'] = strip_tags( $new_instance['skype'] );
516
  $instance['digg'] = strip_tags( $new_instance['digg'] );
@@ -591,6 +600,7 @@ class Social_Widget extends WP_Widget {
591
  'linkedin' => __('http://www.linkedin.com/in/yourname', 'smw'),
592
  'asmallworld' => __('', 'smw'),
593
  'flickr' => __('http://www.flickr.com/photos/yourname', 'smw'),
 
594
  'youtube' => __('http://www.youtube.com/user/yourname', 'smw'),
595
  'skype' => __('skype:yourusername?add', 'smw'),
596
  'digg' => __('http://www.digg.com/users/yourname', 'smw'),
@@ -723,6 +733,12 @@ class Social_Widget extends WP_Widget {
723
  <input id="<?php echo $this->get_field_id( 'flickr' ); ?>" name="<?php echo $this->get_field_name( 'flickr' ); ?>" value="<?php echo $instance['flickr']; ?>" style="width:85%;" />
724
  </p>
725
 
 
 
 
 
 
 
726
  <!-- YouTube URL: Text Input -->
727
  <p>
728
  <label for="<?php echo $this->get_field_id( 'youtube' ); ?>"><?php _e('YouTube URL:', 'smw'); ?></label>
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.8
7
  * Author: Brian Freytag
8
  * Author URI: http://www.idontlikethisgame.com/
9
  **/
63
  $linkedin = $instance['linkedin'];
64
  $asmallworld = $instance['asmallworld'];
65
  $flickr = $instance['flickr'];
66
+ $picasa = $instance['picasa'];
67
  $youtube = $instance['youtube'];
68
  $skype = $instance['skype'];
69
  $digg = $instance['digg'];
248
  echo ''; //If no URL inputed
249
  }
250
 
251
+ // Picasa
252
+ if ( $picasa != '' && $picasa != ' ' && file_exists($smw_dir.'/picasa.png')) {
253
+ ?><a href="<?php echo $picasa; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $smw_path; ?>/picasa.png" alt="<?php echo $imgcaption; ?> Picasa"title="<?php echo $imgcaption; ?> Picasa" <?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
254
+ } else {
255
+ echo ''; //If no URL inputed
256
+ }
257
+
258
  // YouTube
259
  if ( $youtube != '' && $youtube != ' ' && file_exists($smw_dir.'/youtube.png')) {
260
  ?><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
519
  $instance['linkedin'] = strip_tags( $new_instance['linkedin'] );
520
  $instance['asmallworld'] = strip_tags( $new_instance['asmallworld'] );
521
  $instance['flickr'] = strip_tags( $new_instance['flickr'] );
522
+ $instance['picasa'] = strip_tags( $new_instance['picasa'] );
523
  $instance['youtube'] = strip_tags( $new_instance['youtube'] );
524
  $instance['skype'] = strip_tags( $new_instance['skype'] );
525
  $instance['digg'] = strip_tags( $new_instance['digg'] );
600
  'linkedin' => __('http://www.linkedin.com/in/yourname', 'smw'),
601
  'asmallworld' => __('', 'smw'),
602
  'flickr' => __('http://www.flickr.com/photos/yourname', 'smw'),
603
+ 'picasa' => __('http://picasaweb.google.com/yourname', 'smw'),
604
  'youtube' => __('http://www.youtube.com/user/yourname', 'smw'),
605
  'skype' => __('skype:yourusername?add', 'smw'),
606
  'digg' => __('http://www.digg.com/users/yourname', 'smw'),
733
  <input id="<?php echo $this->get_field_id( 'flickr' ); ?>" name="<?php echo $this->get_field_name( 'flickr' ); ?>" value="<?php echo $instance['flickr']; ?>" style="width:85%;" />
734
  </p>
735
 
736
+ <!-- Picasa URL: Text Input -->
737
+ <p>
738
+ <label for="<?php echo $this->get_field_id( 'picasa' ); ?>"><?php _e('Picasa Web URL:', 'smw'); ?></label>
739
+ <input id="<?php echo $this->get_field_id( 'picasa' ); ?>" name="<?php echo $this->get_field_name( 'picasa' ); ?>" value="<?php echo $instance['picasa']; ?>" style="width:85%;" />
740
+ </p>
741
+
742
  <!-- YouTube URL: Text Input -->
743
  <p>
744
  <label for="<?php echo $this->get_field_id( 'youtube' ); ?>"><?php _e('YouTube URL:', 'smw'); ?></label>