Version Description
- Added support for Skype, Blogger, Wordpress.com and Yelp
- Fixed Readme.txt changelog to be more readable
Download this release
Release Info
Developer | brianfreytag |
Plugin | Social Media Widget |
Version | 2.2 |
Comparing to | |
See all releases |
Code changes from version 2.1 to 2.2
- images/cutout/16/blogger.png +0 -0
- images/cutout/16/skype.png +0 -0
- images/cutout/16/wordpress.png +0 -0
- images/cutout/16/yelp.png +0 -0
- images/cutout/32/blogger.png +0 -0
- images/cutout/32/skype.png +0 -0
- images/cutout/32/wordpress.png +0 -0
- images/cutout/32/yelp.png +0 -0
- images/cutout/64/blogger.png +0 -0
- images/cutout/64/skype.png +0 -0
- images/cutout/64/wordpress.png +0 -0
- images/cutout/64/yelp.png +0 -0
- images/default/16/blogger.png +0 -0
- images/default/16/skype.png +0 -0
- images/default/16/wordpress.png +0 -0
- images/default/16/yelp.png +0 -0
- images/default/32/blogger.png +0 -0
- images/default/32/skype.png +0 -0
- images/default/32/wordpress.png +0 -0
- images/default/32/yelp.png +0 -0
- images/default/64/blogger.png +0 -0
- images/default/64/skype.png +0 -0
- images/default/64/wordpress.png +0 -0
- images/default/64/yelp.png +0 -0
- images/heart/16/blogger.png +0 -0
- images/heart/16/skype.png +0 -0
- images/heart/16/wordpress.png +0 -0
- images/heart/16/yelp.png +0 -0
- images/heart/32/blogger.png +0 -0
- images/heart/32/skype.png +0 -0
- images/heart/32/wordpress.png +0 -0
- images/heart/32/yelp.png +0 -0
- images/heart/64/blogger.png +0 -0
- images/heart/64/skype.png +0 -0
- images/heart/64/wordpress.png +0 -0
- images/heart/64/yelp.png +0 -0
- images/sketch/16/blogger.png +0 -0
- images/sketch/16/skype.png +0 -0
- images/sketch/16/wordpress.png +0 -0
- images/sketch/16/yelp.png +0 -0
- images/sketch/32/blogger.png +0 -0
- images/sketch/32/skype.png +0 -0
- images/sketch/32/wordpress.png +0 -0
- images/sketch/32/yelp.png +0 -0
- images/sketch/64/blogger.png +0 -0
- images/sketch/64/skype.png +0 -0
- images/sketch/64/wordpress.png +0 -0
- images/sketch/64/yelp.png +0 -0
- readme.txt +76 -25
- social-widget.php +71 -6
images/cutout/16/blogger.png
ADDED
Binary file
|
images/cutout/16/skype.png
ADDED
Binary file
|
images/cutout/16/wordpress.png
ADDED
Binary file
|
images/cutout/16/yelp.png
ADDED
Binary file
|
images/cutout/32/blogger.png
ADDED
Binary file
|
images/cutout/32/skype.png
ADDED
Binary file
|
images/cutout/32/wordpress.png
ADDED
Binary file
|
images/cutout/32/yelp.png
ADDED
Binary file
|
images/cutout/64/blogger.png
ADDED
Binary file
|
images/cutout/64/skype.png
ADDED
Binary file
|
images/cutout/64/wordpress.png
ADDED
Binary file
|
images/cutout/64/yelp.png
ADDED
Binary file
|
images/default/16/blogger.png
ADDED
Binary file
|
images/default/16/skype.png
ADDED
Binary file
|
images/default/16/wordpress.png
ADDED
Binary file
|
images/default/16/yelp.png
ADDED
Binary file
|
images/default/32/blogger.png
ADDED
Binary file
|
images/default/32/skype.png
ADDED
Binary file
|
images/default/32/wordpress.png
ADDED
Binary file
|
images/default/32/yelp.png
ADDED
Binary file
|
images/default/64/blogger.png
ADDED
Binary file
|
images/default/64/skype.png
ADDED
Binary file
|
images/default/64/wordpress.png
ADDED
Binary file
|
images/default/64/yelp.png
ADDED
Binary file
|
images/heart/16/blogger.png
ADDED
Binary file
|
images/heart/16/skype.png
ADDED
Binary file
|
images/heart/16/wordpress.png
ADDED
Binary file
|
images/heart/16/yelp.png
ADDED
Binary file
|
images/heart/32/blogger.png
ADDED
Binary file
|
images/heart/32/skype.png
ADDED
Binary file
|
images/heart/32/wordpress.png
ADDED
Binary file
|
images/heart/32/yelp.png
ADDED
Binary file
|
images/heart/64/blogger.png
ADDED
Binary file
|
images/heart/64/skype.png
ADDED
Binary file
|
images/heart/64/wordpress.png
ADDED
Binary file
|
images/heart/64/yelp.png
ADDED
Binary file
|
images/sketch/16/blogger.png
ADDED
Binary file
|
images/sketch/16/skype.png
ADDED
Binary file
|
images/sketch/16/wordpress.png
ADDED
Binary file
|
images/sketch/16/yelp.png
ADDED
Binary file
|
images/sketch/32/blogger.png
ADDED
Binary file
|
images/sketch/32/skype.png
ADDED
Binary file
|
images/sketch/32/wordpress.png
ADDED
Binary file
|
images/sketch/32/yelp.png
ADDED
Binary file
|
images/sketch/64/blogger.png
ADDED
Binary file
|
images/sketch/64/skype.png
ADDED
Binary file
|
images/sketch/64/wordpress.png
ADDED
Binary file
|
images/sketch/64/yelp.png
ADDED
Binary file
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Social Media Widget ===
|
2 |
Contributors: Brian Freytag
|
3 |
Donate link: http://www.idontlikethisgame.com/code/donate/
|
4 |
-
Tags: social media, twitter, facebook, myspace, digg, email, rss, reddit, linkedin, orkut, youtube, buzz, social, icons, links, subscribe, follow, follow me, friendfeed, flickr, stumbleupon, vimeo, delicious, meetup, lastfm, foursquare
|
5 |
Requires at least: 2.9.1
|
6 |
Tested up to: 3.0
|
7 |
-
Stable tag: 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 |
|
@@ -23,12 +23,16 @@ The Social Media Widget is a simple sidebar widget that allows users to input th
|
|
23 |
* LinkedIn
|
24 |
* Flickr
|
25 |
* YouTube
|
|
|
26 |
* Digg
|
27 |
* Reddit
|
28 |
* Delicious
|
29 |
* StumbleUpon
|
30 |
* Buzz
|
31 |
* Vimeo
|
|
|
|
|
|
|
32 |
* Last.fm
|
33 |
* FourSquare
|
34 |
* Meetup
|
@@ -42,7 +46,7 @@ The Social Media Widget is a simple sidebar widget that allows users to input th
|
|
42 |
|
43 |
* Select from 4 icon packages:
|
44 |
* Web 2.0 (Default) - Icons from <a href="http://www.iconspedia.com/">various artists</a>
|
45 |
-
* Sketch - <a href="http://www.jankoatwarpspeed.com/post/2008/10/20/handycons-a-free-hand-drawn-social-media-icon-set.aspx">Handycons</a> by Janko At Warp Speed
|
46 |
* Heart - <a href="http://thedesignsuperhero.com/2009/03/heart-v2-free-social-iconset-in-heart-shape/">Heart v2</a> by The Design Superhero
|
47 |
* Cutout - <a href="http://www.iconspedia.com/pack/icontexto-inside-2222/">Icontexto Inside Icons</a>
|
48 |
* Note that some of the icons in the packs were created and added for this widget by myself. Not all of the requested social media sites were included so I attempted to create icons that mimicked the original artist icons. These are unattributed to myself. I keep attribution to the original artists since it is there design I modified.
|
@@ -91,16 +95,19 @@ Follow the steps below to upgrade.
|
|
91 |
|
92 |
== Frequently Asked Questions ==
|
93 |
|
94 |
-
|
95 |
Yes I can. Just e-mail me at <a href="mailto:brifreytag@gmail.com">brifreytag_at_gmail.com</a> or leave a comment at http://www.idontlikethisgame.com/updates/social-media-widget/.
|
96 |
|
97 |
-
|
98 |
The only animation supported by Internet Explorer is Scale, and that only works reliably with Internet Explorer 8. Scale is also included in Combo. No other animations will work. This is because I do not want to use Javascript to animate my icons. All of these animations are using CSS3 styles. The animations work the best with Webkit based browsers such as Chrome and Safari, though Firefox is fully supported without transition animations.
|
99 |
|
100 |
-
|
|
|
|
|
|
|
101 |
There is probably a compatibility issue with another plugin. These things happen. Because there are thousands of plugins from thousands of developers, all who which develop in completely different ways, there are going to be issues that arise from time-to-time. These are more prevalent, however, from plugins that make system-wide changes (such as SEO Packs). Try disabling, one at a time, the other plugins until you find that one that is breaking my widget. Then e-mail me and tell me which plugin it was. I will then try to fix it. Unless I know what plugin is breaking it, I won't be able to fix it, ya see?
|
102 |
|
103 |
-
|
104 |
First - calm down. I'm happy to help you, and, if you ask those I've helped already, I don't mind providing individual service to people to get my widget working and looking right with your theme. If your theme is especially jacked up, I do do freelance work and would be happy to fix your entire theme for a fee. But back to the point, if something isn't working quite right on your site, INCLUDE A LINK. I can't help you with your site unless there is a link so I can see what's going on. Make sure my widget is enabled to. It gets old getting asked, "Why doesn't it look right on my site" and then finding that the comment-leaver left no link and if they did, my widget isn't even enabled on their site anymore.
|
105 |
|
106 |
== Help ==
|
@@ -108,43 +115,87 @@ First - calm down. I'm happy to help you, and, if you ask those I've helped alre
|
|
108 |
For help, you can send an e-mail to <a href="mailto:brifreytag@gmail.com">brifreytag_at_gmail.com</a> or get ahold of me via twitter at <a href="http://www.twitter.com/brianfreytag">@brianfreytag</a>
|
109 |
|
110 |
== Changelog ==
|
111 |
-
2.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
|
113 |
-
|
114 |
|
115 |
-
1.
|
116 |
|
117 |
-
|
118 |
|
119 |
-
1.
|
|
|
120 |
|
121 |
-
1.2.
|
122 |
|
123 |
-
|
|
|
124 |
|
125 |
-
1.2.
|
126 |
|
127 |
-
|
128 |
|
129 |
-
1.2.4
|
130 |
|
131 |
-
|
132 |
|
133 |
-
1.2.
|
134 |
|
135 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
136 |
|
137 |
-
1.2 -
|
138 |
* Fixed issue with RSS URL being reset after save in the widget control panel (did not affect functionality, but caused confusion)
|
139 |
* Added support for Orkut
|
140 |
* Added Cutout icon pack
|
141 |
* Changed default image alt and title tags to Widget title (i.e. if widget title is Follow Me, Facebook alt/title tags are "Follow Me on Facebook." If it is Follow Us, alt/title is "Follow Us on Facebook)
|
142 |
* Cleaned up image location code from the WP_CONTENT_URL to the WP_PLUGIN_URL function to attempt to correct some file location issues with Windows servers.
|
143 |
|
144 |
-
1.1.2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
145 |
|
146 |
-
|
147 |
|
148 |
-
1.
|
149 |
|
150 |
-
|
1 |
=== Social Media Widget ===
|
2 |
Contributors: Brian Freytag
|
3 |
Donate link: http://www.idontlikethisgame.com/code/donate/
|
4 |
+
Tags: social media, twitter, facebook, myspace, digg, email, rss, reddit, linkedin, orkut, youtube, buzz, social, icons, links, subscribe, follow, follow me, friendfeed, flickr, stumbleupon, vimeo, delicious, meetup, lastfm, foursquare, skype, blogger, wordpress, yelp
|
5 |
Requires at least: 2.9.1
|
6 |
Tested up to: 3.0
|
7 |
+
Stable tag: 2.2
|
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 |
|
23 |
* LinkedIn
|
24 |
* Flickr
|
25 |
* YouTube
|
26 |
+
* Skype
|
27 |
* Digg
|
28 |
* Reddit
|
29 |
* Delicious
|
30 |
* StumbleUpon
|
31 |
* Buzz
|
32 |
* Vimeo
|
33 |
+
* Blogger
|
34 |
+
* Wordpress
|
35 |
+
* Yelp
|
36 |
* Last.fm
|
37 |
* FourSquare
|
38 |
* Meetup
|
46 |
|
47 |
* Select from 4 icon packages:
|
48 |
* Web 2.0 (Default) - Icons from <a href="http://www.iconspedia.com/">various artists</a>
|
49 |
+
* 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
|
50 |
* Heart - <a href="http://thedesignsuperhero.com/2009/03/heart-v2-free-social-iconset-in-heart-shape/">Heart v2</a> by The Design Superhero
|
51 |
* Cutout - <a href="http://www.iconspedia.com/pack/icontexto-inside-2222/">Icontexto Inside Icons</a>
|
52 |
* 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.
|
95 |
|
96 |
== Frequently Asked Questions ==
|
97 |
|
98 |
+
= Can you add [insert social media service] support =
|
99 |
Yes I can. Just e-mail me at <a href="mailto:brifreytag@gmail.com">brifreytag_at_gmail.com</a> or leave a comment at http://www.idontlikethisgame.com/updates/social-media-widget/.
|
100 |
|
101 |
+
= Why aren't the animations working in Internet Explorer 6+ =
|
102 |
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.
|
103 |
|
104 |
+
= I can't find my {insert social media service} profile link! What is it? =
|
105 |
+
While I attempt to provide you with the most logical guide to start with as default values in the control panel (e.g. http://www.twitter.com/yourname where you just replace yourname), not all of these services follow the same profile links that I provided. In some cases, you need to customize your "public link" such as in Yelp, and LinkedIn to use the default urls that I provide. If you don't know your public profile, I will have a very hard time figuring it out for you. The easiest way to figure it out is to log in to your social media site, and find a button that says, "View Profile." This is more often than not the profile URL you should input. This is the method I used in adding the default URLs. Also note that I don't use all of these social media sites. I just created accounts quickly to find a likely default URL. They could be wrong.
|
106 |
+
|
107 |
+
= The icons aren't showing up - They are just showing the alt text! =
|
108 |
There is probably a compatibility issue with another plugin. These things happen. Because there are thousands of plugins from thousands of developers, all who which develop in completely different ways, there are going to be issues that arise from time-to-time. These are more prevalent, however, from plugins that make system-wide changes (such as SEO Packs). Try disabling, one at a time, the other plugins until you find that one that is breaking my widget. Then e-mail me and tell me which plugin it was. I will then try to fix it. Unless I know what plugin is breaking it, I won't be able to fix it, ya see?
|
109 |
|
110 |
+
= Something else isn't right! =
|
111 |
First - calm down. I'm happy to help you, and, if you ask those I've helped already, I don't mind providing individual service to people to get my widget working and looking right with your theme. If your theme is especially jacked up, I do do freelance work and would be happy to fix your entire theme for a fee. But back to the point, if something isn't working quite right on your site, INCLUDE A LINK. I can't help you with your site unless there is a link so I can see what's going on. Make sure my widget is enabled to. It gets old getting asked, "Why doesn't it look right on my site" and then finding that the comment-leaver left no link and if they did, my widget isn't even enabled on their site anymore.
|
112 |
|
113 |
== Help ==
|
115 |
For help, you can send an e-mail to <a href="mailto:brifreytag@gmail.com">brifreytag_at_gmail.com</a> or get ahold of me via twitter at <a href="http://www.twitter.com/brianfreytag">@brianfreytag</a>
|
116 |
|
117 |
== Changelog ==
|
118 |
+
= 2.2 =
|
119 |
+
|
120 |
+
* Added support for Skype, Blogger, Wordpress.com and Yelp
|
121 |
+
* Fixed Readme.txt changelog to be more readable
|
122 |
+
|
123 |
+
= 2.1 =
|
124 |
+
* Added support for Foursquare, Meetup, and Last.fm
|
125 |
+
* Included option to select whether or not to open the links in a new tab (or browser window)
|
126 |
+
* Fixed a compatibility issue with Platinum SEO Pack - Thank you Niko! Updated FAQ
|
127 |
+
* Updated installation section to include upgrading information and corrected plugin directory name
|
128 |
+
* Split Widget control panel into two columns to reduce scrolling - It was getting really long as I added more features.
|
129 |
+
|
130 |
+
= 2.0 =
|
131 |
+
|
132 |
+
* Added support for Vimeo and StumbleUpon
|
133 |
+
* Added Fade In, Scale, Bounce, Combo animations.
|
134 |
+
|
135 |
+
= 1.4 =
|
136 |
+
|
137 |
+
* Added support for Flickr and Delicious
|
138 |
+
|
139 |
+
= 1.3.1 =
|
140 |
+
|
141 |
+
* Quick changes to make the Readme.txt standardized.
|
142 |
+
|
143 |
+
= 1.3 =
|
144 |
|
145 |
+
* Added requested support for FriendFeed
|
146 |
|
147 |
+
= 1.2.8 =
|
148 |
|
149 |
+
*Fixed an issue with widget not showing up on peoples' websites. There was an errant </form> in the code from when I attempted to use the form method of Paypal donate. Didn't delete this code and it borked the plugin.
|
150 |
|
151 |
+
= 1.2.7 =
|
152 |
+
* Removed filter: alpha(opacity=x); from both the CSS and inline style (create initial transparency and hover to 100% opacity). This stops Internet Explorer from using opacity, but it also doesn't make the icons look terrible. If you have a problem with this, take it up with Microsoft. I'm not paid enough to hack around a crappy browser that can easily support png transparencies with little-to-no effort by the developers. All other browsers are unaffected.
|
153 |
|
154 |
+
= 1.2.6 =
|
155 |
|
156 |
+
* Added ability to add rel="nofollow" to icon links
|
157 |
+
* Added a Donate button due to the massive time commitment of this plugin.
|
158 |
|
159 |
+
= 1.2.5 =
|
160 |
|
161 |
+
* Updated readme.txt to improve visibility and adding screenshots
|
162 |
|
163 |
+
= 1.2.4 =
|
164 |
|
165 |
+
* Trying something else to fix the issues with 1.2.2 and 1.2.3.
|
166 |
|
167 |
+
= 1.2.3 =
|
168 |
|
169 |
+
* As expected, changes in 1.2.2 broke some peoples' stuff. Made a couple CSS changes to see if this fixes it.
|
170 |
+
|
171 |
+
= 1.2.2 =
|
172 |
+
|
173 |
+
* Some of you were complaining about it breaking your theme because I wasn't using the default arguments to wrap the widget. I decided to give it a try. I'm sure this is going to break more than it's going to fix, but I'm doing it "properly" now. Note: You're going to have to do a lot more CSS hacks to get it to look right in some themes.
|
174 |
+
|
175 |
+
= 1.2.1 =
|
176 |
+
|
177 |
+
* Fixed an issue with Orkut icon staying on even if the field is blank. Fixed an issue with 32 pixel default icons appearing as 64 pixels.
|
178 |
+
|
179 |
+
= 1.2 =
|
180 |
|
|
|
181 |
* Fixed issue with RSS URL being reset after save in the widget control panel (did not affect functionality, but caused confusion)
|
182 |
* Added support for Orkut
|
183 |
* Added Cutout icon pack
|
184 |
* Changed default image alt and title tags to Widget title (i.e. if widget title is Follow Me, Facebook alt/title tags are "Follow Me on Facebook." If it is Follow Us, alt/title is "Follow Us on Facebook)
|
185 |
* Cleaned up image location code from the WP_CONTENT_URL to the WP_PLUGIN_URL function to attempt to correct some file location issues with Windows servers.
|
186 |
|
187 |
+
= 1.1.2 =
|
188 |
+
|
189 |
+
* Fixed an issue with LinkedIn icons not appearing
|
190 |
+
|
191 |
+
= 1.1.1 =
|
192 |
+
|
193 |
+
* Fixed an issue with some users plugin.php breaking at line 339.
|
194 |
+
|
195 |
+
= 1.1 =
|
196 |
|
197 |
+
* Added support for LinkedIn
|
198 |
|
199 |
+
= 1.0 =
|
200 |
|
201 |
+
* Added support for varying sizes, added 2 new icon packages, added support for varying opacities.
|
social-widget.php
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
/**
|
3 |
* Plugin Name: Social Media Widget
|
4 |
* Plugin URI: http://www.idontlikethisgame.com/updates/social-media-widget/
|
5 |
-
*
|
6 |
-
* Version: 2.
|
7 |
* Author: Brian Freytag
|
8 |
* Author URI: http://www.idontlikethisgame.com/
|
9 |
**/
|
@@ -37,7 +37,7 @@ class Social_Widget extends WP_Widget {
|
|
37 |
$control_ops = array( 'width' => 600, 'height' => 350, 'id_base' => 'social-widget' );
|
38 |
|
39 |
/* Create the widget. */
|
40 |
-
$this->WP_Widget( 'social-widget', __('Social Widget', 'smw'), $widget_ops, $control_ops );
|
41 |
}
|
42 |
|
43 |
/* Display the widget */
|
@@ -54,12 +54,16 @@ class Social_Widget extends WP_Widget {
|
|
54 |
$linkedin = $instance['linkedin'];
|
55 |
$flickr = $instance['flickr'];
|
56 |
$youtube = $instance['youtube'];
|
|
|
57 |
$digg = $instance['digg'];
|
58 |
$reddit = $instance['reddit'];
|
59 |
$delicious = $instance['delicious'];
|
60 |
$stumble = $instance['stumble'];
|
61 |
$buzz = $instance['buzz'];
|
62 |
$vimeo = $instance['vimeo'];
|
|
|
|
|
|
|
63 |
$lastfm = $instance['lastfm'];
|
64 |
$foursquare = $instance['foursquare'];
|
65 |
$meetup = $instance['meetup'];
|
@@ -166,6 +170,13 @@ class Social_Widget extends WP_Widget {
|
|
166 |
echo ''; //If No URL Inputed
|
167 |
}
|
168 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
169 |
// Digg
|
170 |
if ( $digg != '' ) {
|
171 |
?><a href="<?php echo $digg; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/digg.png" alt="<?php echo $title; ?> on Digg" title="<?php echo $title; ?> on Digg" <?php if($animation == 'fade' || $animation == 'combo') { ?> style="opacity: <?php echo $icon_opacity; ?>; -moz-opacity: <?php echo $icon_opacity;?>;" <?php } ?>class="<?php echo $animation; ?>" /></a><?php
|
@@ -207,6 +218,27 @@ class Social_Widget extends WP_Widget {
|
|
207 |
} else {
|
208 |
echo ''; //If no URL Inputed
|
209 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
210 |
|
211 |
// Last.fm
|
212 |
if ( $lastfm != '' ) {
|
@@ -263,12 +295,16 @@ class Social_Widget extends WP_Widget {
|
|
263 |
$instance['linkedin'] = strip_tags( $new_instance['linkedin'] );
|
264 |
$instance['flickr'] = strip_tags( $new_instance['flickr'] );
|
265 |
$instance['youtube'] = strip_tags( $new_instance['youtube'] );
|
|
|
266 |
$instance['digg'] = strip_tags( $new_instance['digg'] );
|
267 |
$instance['reddit'] = strip_tags( $new_instance['reddit'] );
|
268 |
$instance['delicious'] = strip_tags( $new_instance['delicious'] );
|
269 |
$instance['stumble'] = strip_tags( $new_instance['stumble'] );
|
270 |
$instance['buzz'] = strip_tags( $new_instance['buzz'] );
|
271 |
$instance['vimeo'] = strip_tags( $new_instance['vimeo'] );
|
|
|
|
|
|
|
272 |
$instance['lastfm'] = strip_tags( $new_instance['lastfm'] );
|
273 |
$instance['foursquare'] = strip_tags( $new_instance['foursquare'] );
|
274 |
$instance['meetup'] = strip_tags( $new_instance['meetup'] );
|
@@ -302,12 +338,16 @@ class Social_Widget extends WP_Widget {
|
|
302 |
'linkedin' => __('http://www.linkedin.com/in/yourname', 'smw'),
|
303 |
'flickr' => __('http://www.flickr.com/photos/yourname', 'smw'),
|
304 |
'youtube' => __('http://www.youtube.com/user/yourname', 'smw'),
|
|
|
305 |
'digg' => __('http://www.digg.com/users/yourname', 'smw'),
|
306 |
'reddit' => __('http://www.reddit.com/user/yourname', 'smw'),
|
307 |
'delicious' => __('http://delicious.com/yourname', 'smw'),
|
308 |
'stumble' => __('http://www.stumbleupon.com/stumbler/yourname', 'smw'),
|
309 |
'buzz' => __('http://www.google.com/profiles/yourname#buzz', 'smw'),
|
310 |
'vimeo' => __('http://www.vimeo.com/yourname', 'smw'),
|
|
|
|
|
|
|
311 |
'lastfm' => __('http://www.last.fm/user/yourname', 'smw'),
|
312 |
'foursquare' => __('http://foursquare.com/user/yourname', 'smw'),
|
313 |
'meetup' => __('http://www.meetup.com/your-group', 'smw'),
|
@@ -378,6 +418,12 @@ class Social_Widget extends WP_Widget {
|
|
378 |
<input id="<?php echo $this->get_field_id( 'youtube' ); ?>" name="<?php echo $this->get_field_name( 'youtube' ); ?>" value="<?php echo $instance['youtube']; ?>" style="width:85%;" />
|
379 |
</p>
|
380 |
|
|
|
|
|
|
|
|
|
|
|
|
|
381 |
<!-- Digg URL: Text Input -->
|
382 |
<p>
|
383 |
<label for="<?php echo $this->get_field_id( 'digg' ); ?>"><?php _e('Digg URL:', 'smw'); ?></label>
|
@@ -395,26 +441,45 @@ class Social_Widget extends WP_Widget {
|
|
395 |
<label for="<?php echo $this->get_field_id( 'delicious' ); ?>"><?php _e('Delicious URL:', 'smw'); ?></label>
|
396 |
<input id="<?php echo $this->get_field_id( 'delicious' ); ?>" name="<?php echo $this->get_field_name( 'delicious' ); ?>" value="<?php echo $instance['delicious']; ?>" style="width:85%;" />
|
397 |
</p>
|
398 |
-
|
399 |
-
<div style="width: 48%; float: right; border-left: 1px solid #000; padding-left: 20px;">
|
400 |
<!-- StumpleUpon URL: Text Input -->
|
401 |
<p>
|
402 |
<label for="<?php echo $this->get_field_id( 'stumble' ); ?>"><?php _e('StumbleUpon URL:', 'smw'); ?></label>
|
403 |
<input id="<?php echo $this->get_field_id( 'stumble' ); ?>" name="<?php echo $this->get_field_name( 'stumble' ); ?>" value="<?php echo $instance['stumble']; ?>" style="width:85%;" />
|
404 |
</p>
|
405 |
-
|
|
|
406 |
<!-- Buzz URL: Text Input -->
|
407 |
<p>
|
408 |
<label for="<?php echo $this->get_field_id( 'buzz' ); ?>"><?php _e('Buzz URL:', 'smw'); ?></label>
|
409 |
<input id="<?php echo $this->get_field_id( 'buzz' ); ?>" name="<?php echo $this->get_field_name( 'buzz' ); ?>" value="<?php echo $instance['buzz']; ?>" style="width:85%;" />
|
410 |
</p>
|
411 |
|
|
|
412 |
<!-- Vimeo URL: Text Input -->
|
413 |
<p>
|
414 |
<label for="<?php echo $this->get_field_id( 'vimeo' ); ?>"><?php _e('Vimeo URL:', 'smw'); ?></label>
|
415 |
<input id="<?php echo $this->get_field_id( 'vimeo' ); ?>" name="<?php echo $this->get_field_name( 'vimeo' ); ?>" value="<?php echo $instance['vimeo']; ?>" style="width:85%;" />
|
416 |
</p>
|
417 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
418 |
<!-- Last.fm URL: Text Input -->
|
419 |
<p>
|
420 |
<label for="<?php echo $this->get_field_id( 'lastfm' ); ?>"><?php _e('Last.fm URL:', 'smw'); ?></label>
|
2 |
/**
|
3 |
* Plugin Name: Social Media Widget
|
4 |
* Plugin URI: http://www.idontlikethisgame.com/updates/social-media-widget/
|
5 |
+
* Adds links to all of your social media and sharing site profiles. Icons come in 3 sizes, 4 icon styles, and 4 animations.
|
6 |
+
* Version: 2.2
|
7 |
* Author: Brian Freytag
|
8 |
* Author URI: http://www.idontlikethisgame.com/
|
9 |
**/
|
37 |
$control_ops = array( 'width' => 600, 'height' => 350, 'id_base' => 'social-widget' );
|
38 |
|
39 |
/* Create the widget. */
|
40 |
+
$this->WP_Widget( 'social-widget', __('Social Media Widget', 'smw'), $widget_ops, $control_ops );
|
41 |
}
|
42 |
|
43 |
/* Display the widget */
|
54 |
$linkedin = $instance['linkedin'];
|
55 |
$flickr = $instance['flickr'];
|
56 |
$youtube = $instance['youtube'];
|
57 |
+
$skype = $instance['skype'];
|
58 |
$digg = $instance['digg'];
|
59 |
$reddit = $instance['reddit'];
|
60 |
$delicious = $instance['delicious'];
|
61 |
$stumble = $instance['stumble'];
|
62 |
$buzz = $instance['buzz'];
|
63 |
$vimeo = $instance['vimeo'];
|
64 |
+
$blogger = $instance['blogger'];
|
65 |
+
$wordpress = $instance['wordpress'];
|
66 |
+
$yelp = $instance['yelp'];
|
67 |
$lastfm = $instance['lastfm'];
|
68 |
$foursquare = $instance['foursquare'];
|
69 |
$meetup = $instance['meetup'];
|
170 |
echo ''; //If No URL Inputed
|
171 |
}
|
172 |
|
173 |
+
// Skype
|
174 |
+
if ( $skype != '' ) {
|
175 |
+
?><a href="<?php echo $skype; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/skype.png" alt="<?php echo $title; ?> on Skype" title="<?php echo $title; ?> on Skype" <?php if($animation == 'fade' || $animation == 'combo') { ?> style="opacity: <?php echo $icon_opacity; ?>; -moz-opacity: <?php echo $icon_opacity;?>;" <?php } ?>class="<?php echo $animation; ?>" /></a><?php
|
176 |
+
} else {
|
177 |
+
echo ''; //If No URL Inputed
|
178 |
+
}
|
179 |
+
|
180 |
// Digg
|
181 |
if ( $digg != '' ) {
|
182 |
?><a href="<?php echo $digg; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/digg.png" alt="<?php echo $title; ?> on Digg" title="<?php echo $title; ?> on Digg" <?php if($animation == 'fade' || $animation == 'combo') { ?> style="opacity: <?php echo $icon_opacity; ?>; -moz-opacity: <?php echo $icon_opacity;?>;" <?php } ?>class="<?php echo $animation; ?>" /></a><?php
|
218 |
} else {
|
219 |
echo ''; //If no URL Inputed
|
220 |
}
|
221 |
+
|
222 |
+
// Blogger
|
223 |
+
if ( $blogger != '' ) {
|
224 |
+
?><a href="<?php echo $blogger; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/blogger.png" alt="<?php echo $title; ?> on Blogger" title="<?php echo $title; ?> on Blogger" <?php if($animation == 'fade' || $animation == 'combo') { ?> style="opacity: <?php echo $icon_opacity; ?>; -moz-opacity: <?php echo $icon_opacity;?>;" <?php } ?>class="<?php echo $animation; ?>" /></a><?php
|
225 |
+
} else {
|
226 |
+
echo ''; //If No URL Inputed
|
227 |
+
}
|
228 |
+
|
229 |
+
// Wordpress
|
230 |
+
if ( $wordpress != '' ) {
|
231 |
+
?><a href="<?php echo $wordpress; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/wordpress.png" alt="<?php echo $title; ?> on Wordpress" title="<?php echo $title; ?> on Wordpress" <?php if($animation == 'fade' || $animation == 'combo') { ?> style="opacity: <?php echo $icon_opacity; ?>; -moz-opacity: <?php echo $icon_opacity;?>;" <?php } ?>class="<?php echo $animation; ?>" /></a><?php
|
232 |
+
} else {
|
233 |
+
echo ''; //If No URL Inputed
|
234 |
+
}
|
235 |
+
|
236 |
+
// Wordpress
|
237 |
+
if ( $yelp != '' ) {
|
238 |
+
?><a href="<?php echo $yelp; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/yelp.png" alt="<?php echo $title; ?> on Yelp" title="<?php echo $title; ?> on Yelp" <?php if($animation == 'fade' || $animation == 'combo') { ?> style="opacity: <?php echo $icon_opacity; ?>; -moz-opacity: <?php echo $icon_opacity;?>;" <?php } ?>class="<?php echo $animation; ?>" /></a><?php
|
239 |
+
} else {
|
240 |
+
echo ''; //If No URL Inputed
|
241 |
+
}
|
242 |
|
243 |
// Last.fm
|
244 |
if ( $lastfm != '' ) {
|
295 |
$instance['linkedin'] = strip_tags( $new_instance['linkedin'] );
|
296 |
$instance['flickr'] = strip_tags( $new_instance['flickr'] );
|
297 |
$instance['youtube'] = strip_tags( $new_instance['youtube'] );
|
298 |
+
$instance['skype'] = strip_tags( $new_instance['skype'] );
|
299 |
$instance['digg'] = strip_tags( $new_instance['digg'] );
|
300 |
$instance['reddit'] = strip_tags( $new_instance['reddit'] );
|
301 |
$instance['delicious'] = strip_tags( $new_instance['delicious'] );
|
302 |
$instance['stumble'] = strip_tags( $new_instance['stumble'] );
|
303 |
$instance['buzz'] = strip_tags( $new_instance['buzz'] );
|
304 |
$instance['vimeo'] = strip_tags( $new_instance['vimeo'] );
|
305 |
+
$instance['blogger'] = strip_tags( $new_instance['blogger'] );
|
306 |
+
$instance['wordpress'] = strip_tags( $new_instance['wordpress'] );
|
307 |
+
$instance['yelp'] = strip_tags( $new_instance['yelp'] );
|
308 |
$instance['lastfm'] = strip_tags( $new_instance['lastfm'] );
|
309 |
$instance['foursquare'] = strip_tags( $new_instance['foursquare'] );
|
310 |
$instance['meetup'] = strip_tags( $new_instance['meetup'] );
|
338 |
'linkedin' => __('http://www.linkedin.com/in/yourname', 'smw'),
|
339 |
'flickr' => __('http://www.flickr.com/photos/yourname', 'smw'),
|
340 |
'youtube' => __('http://www.youtube.com/user/yourname', 'smw'),
|
341 |
+
'skype' => __('skype:yourusername?add', 'smw'),
|
342 |
'digg' => __('http://www.digg.com/users/yourname', 'smw'),
|
343 |
'reddit' => __('http://www.reddit.com/user/yourname', 'smw'),
|
344 |
'delicious' => __('http://delicious.com/yourname', 'smw'),
|
345 |
'stumble' => __('http://www.stumbleupon.com/stumbler/yourname', 'smw'),
|
346 |
'buzz' => __('http://www.google.com/profiles/yourname#buzz', 'smw'),
|
347 |
'vimeo' => __('http://www.vimeo.com/yourname', 'smw'),
|
348 |
+
'blogger' => __('http://www.blogger.com/profile/youridnumber', 'smw'),
|
349 |
+
'wordpress' => __('http://en.gravatar.com/yourname', 'smw'),
|
350 |
+
'yelp' => __('http://yourname.yelp.com', 'smw'),
|
351 |
'lastfm' => __('http://www.last.fm/user/yourname', 'smw'),
|
352 |
'foursquare' => __('http://foursquare.com/user/yourname', 'smw'),
|
353 |
'meetup' => __('http://www.meetup.com/your-group', 'smw'),
|
418 |
<input id="<?php echo $this->get_field_id( 'youtube' ); ?>" name="<?php echo $this->get_field_name( 'youtube' ); ?>" value="<?php echo $instance['youtube']; ?>" style="width:85%;" />
|
419 |
</p>
|
420 |
|
421 |
+
<!-- YouTube URL: Text Input -->
|
422 |
+
<p>
|
423 |
+
<label for="<?php echo $this->get_field_id( 'skype' ); ?>"><?php _e('Skype URL:', 'smw'); ?></label>
|
424 |
+
<input id="<?php echo $this->get_field_id( 'skype' ); ?>" name="<?php echo $this->get_field_name( 'skype' ); ?>" value="<?php echo $instance['skype']; ?>" style="width:85%;" />
|
425 |
+
</p>
|
426 |
+
|
427 |
<!-- Digg URL: Text Input -->
|
428 |
<p>
|
429 |
<label for="<?php echo $this->get_field_id( 'digg' ); ?>"><?php _e('Digg URL:', 'smw'); ?></label>
|
441 |
<label for="<?php echo $this->get_field_id( 'delicious' ); ?>"><?php _e('Delicious URL:', 'smw'); ?></label>
|
442 |
<input id="<?php echo $this->get_field_id( 'delicious' ); ?>" name="<?php echo $this->get_field_name( 'delicious' ); ?>" value="<?php echo $instance['delicious']; ?>" style="width:85%;" />
|
443 |
</p>
|
444 |
+
|
|
|
445 |
<!-- StumpleUpon URL: Text Input -->
|
446 |
<p>
|
447 |
<label for="<?php echo $this->get_field_id( 'stumble' ); ?>"><?php _e('StumbleUpon URL:', 'smw'); ?></label>
|
448 |
<input id="<?php echo $this->get_field_id( 'stumble' ); ?>" name="<?php echo $this->get_field_name( 'stumble' ); ?>" value="<?php echo $instance['stumble']; ?>" style="width:85%;" />
|
449 |
</p>
|
450 |
+
</div>
|
451 |
+
<div style="width: 48%; float: right; border-left: 1px solid #000; padding-left: 20px;">
|
452 |
<!-- Buzz URL: Text Input -->
|
453 |
<p>
|
454 |
<label for="<?php echo $this->get_field_id( 'buzz' ); ?>"><?php _e('Buzz URL:', 'smw'); ?></label>
|
455 |
<input id="<?php echo $this->get_field_id( 'buzz' ); ?>" name="<?php echo $this->get_field_name( 'buzz' ); ?>" value="<?php echo $instance['buzz']; ?>" style="width:85%;" />
|
456 |
</p>
|
457 |
|
458 |
+
|
459 |
<!-- Vimeo URL: Text Input -->
|
460 |
<p>
|
461 |
<label for="<?php echo $this->get_field_id( 'vimeo' ); ?>"><?php _e('Vimeo URL:', 'smw'); ?></label>
|
462 |
<input id="<?php echo $this->get_field_id( 'vimeo' ); ?>" name="<?php echo $this->get_field_name( 'vimeo' ); ?>" value="<?php echo $instance['vimeo']; ?>" style="width:85%;" />
|
463 |
</p>
|
464 |
|
465 |
+
<!-- Blogger URL: Text Input -->
|
466 |
+
<p>
|
467 |
+
<label for="<?php echo $this->get_field_id( 'blogger' ); ?>"><?php _e('Blogger URL:', 'smw'); ?></label>
|
468 |
+
<input id="<?php echo $this->get_field_id( 'blogger' ); ?>" name="<?php echo $this->get_field_name( 'blogger' ); ?>" value="<?php echo $instance['blogger']; ?>" style="width:85%;" />
|
469 |
+
</p>
|
470 |
+
|
471 |
+
<!-- Wordpress URL: Text Input -->
|
472 |
+
<p>
|
473 |
+
<label for="<?php echo $this->get_field_id( 'wordpress' ); ?>"><?php _e('Wordpress(Gravatar) URL:', 'smw'); ?></label>
|
474 |
+
<input id="<?php echo $this->get_field_id( 'wordpress' ); ?>" name="<?php echo $this->get_field_name( 'wordpress' ); ?>" value="<?php echo $instance['wordpress']; ?>" style="width:85%;" />
|
475 |
+
</p>
|
476 |
+
|
477 |
+
<!-- Yelp URL: Text Input -->
|
478 |
+
<p>
|
479 |
+
<label for="<?php echo $this->get_field_id( 'yelp' ); ?>"><?php _e('Yelp URL:', 'smw'); ?></label>
|
480 |
+
<input id="<?php echo $this->get_field_id( 'yelp' ); ?>" name="<?php echo $this->get_field_name( 'yelp' ); ?>" value="<?php echo $instance['yelp']; ?>" style="width:85%;" />
|
481 |
+
</p>
|
482 |
+
|
483 |
<!-- Last.fm URL: Text Input -->
|
484 |
<p>
|
485 |
<label for="<?php echo $this->get_field_id( 'lastfm' ); ?>"><?php _e('Last.fm URL:', 'smw'); ?></label>
|