Version Description
Download this release
Release Info
Developer | brianfreytag |
Plugin | Social Media Widget |
Version | 1.3 |
Comparing to | |
See all releases |
Code changes from version 1.2.8 to 1.3
- images/cutout/16/friendfeed.png +0 -0
- images/cutout/32/friendfeed.png +0 -0
- images/cutout/64/friendfeed.png +0 -0
- images/default/16/friendfeed.png +0 -0
- images/default/32/friendfeed.png +0 -0
- images/default/64/friendfeed.png +0 -0
- images/heart/16/friendfeed.png +0 -0
- images/heart/32/friendfeed.png +0 -0
- images/heart/64/friendfeed.png +0 -0
- images/sketch/16/friendfeed.png +0 -0
- images/sketch/32/friendfeed.png +0 -0
- images/sketch/64/friendfeed.png +0 -0
- readme.txt +21 -8
- social-widget.php +47 -30
images/cutout/16/friendfeed.png
ADDED
Binary file
|
images/cutout/32/friendfeed.png
ADDED
Binary file
|
images/cutout/64/friendfeed.png
ADDED
Binary file
|
images/default/16/friendfeed.png
ADDED
Binary file
|
images/default/32/friendfeed.png
ADDED
Binary file
|
images/default/64/friendfeed.png
ADDED
Binary file
|
images/heart/16/friendfeed.png
ADDED
Binary file
|
images/heart/32/friendfeed.png
ADDED
Binary file
|
images/heart/64/friendfeed.png
ADDED
Binary file
|
images/sketch/16/friendfeed.png
ADDED
Binary file
|
images/sketch/32/friendfeed.png
ADDED
Binary file
|
images/sketch/64/friendfeed.png
ADDED
Binary file
|
readme.txt
CHANGED
@@ -1,9 +1,12 @@
|
|
1 |
=== Social Media Widget ===
|
2 |
Contributors: Brian Freytag
|
3 |
-
|
|
|
4 |
Requires at least: 2.9.1
|
5 |
Tested up to: 3.0
|
6 |
-
Stable tag: 1.
|
|
|
|
|
7 |
|
8 |
== Description ==
|
9 |
|
@@ -15,6 +18,7 @@ The Social Media Widget is a simple sidebar widget that allows users to input th
|
|
15 |
* Facebook
|
16 |
* Twitter
|
17 |
* MySpace
|
|
|
18 |
* Orkut
|
19 |
* LinkedIn
|
20 |
* YouTube
|
@@ -30,10 +34,10 @@ The Social Media Widget is a simple sidebar widget that allows users to input th
|
|
30 |
* 64x64
|
31 |
|
32 |
* Ability to select from 4 different icon packages:
|
33 |
-
* Web 2.0 (Default) - Icons from
|
34 |
-
* Sketch -
|
35 |
-
* Heart -
|
36 |
-
* Cutout -
|
37 |
|
38 |
* Ability to choose starting icon opacity from 50% opacity to 100% opacity
|
39 |
note: on hover, icons are 100% opaque. Does not work in Internet Explorer due to bad transparent .png support. IE6+ made the buttons look terrible in most cases (black border around the icons) - removed alpha filter to fix this.
|
@@ -56,11 +60,20 @@ Follow the steps below to install the plugin.
|
|
56 |
3. Shows all of the 16px icon packs
|
57 |
4. Shows the widget control panel
|
58 |
|
|
|
|
|
|
|
|
|
|
|
59 |
== Help ==
|
60 |
|
61 |
-
For help, you can send an e-mail to brifreytag_at_gmail.com or get ahold of me via twitter at
|
62 |
|
63 |
== Changelog ==
|
|
|
|
|
|
|
|
|
64 |
1.2.8 - 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.
|
65 |
|
66 |
1.2.7 - 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.
|
@@ -90,4 +103,4 @@ For help, you can send an e-mail to brifreytag_at_gmail.com or get ahold of me v
|
|
90 |
|
91 |
1.1 - Added support for LinkedIn
|
92 |
|
93 |
-
1.0 - Added support for varying sizes, added 2 new icon packages, added support for varying opacities.
|
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
|
5 |
Requires at least: 2.9.1
|
6 |
Tested up to: 3.0
|
7 |
+
Stable tag: 1.3
|
8 |
+
|
9 |
+
Adds links to all of your social media and sharing site profiles. Icons come in 3 sizes and 4 different icon styles.
|
10 |
|
11 |
== Description ==
|
12 |
|
18 |
* Facebook
|
19 |
* Twitter
|
20 |
* MySpace
|
21 |
+
* FriendFeed
|
22 |
* Orkut
|
23 |
* LinkedIn
|
24 |
* YouTube
|
34 |
* 64x64
|
35 |
|
36 |
* Ability to select from 4 different icon packages:
|
37 |
+
* Web 2.0 (Default) - Icons from <a href="http://www.iconspedia.com/">various artists</a>
|
38 |
+
* 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
|
39 |
+
* Heart - <a href="http://thedesignsuperhero.com/2009/03/heart-v2-free-social-iconset-in-heart-shape/">Heart v2</a> by The Design Superhero
|
40 |
+
* Cutout - <a href="http://www.iconspedia.com/pack/icontexto-inside-2222/">Icontexto Inside Icons</a>
|
41 |
|
42 |
* Ability to choose starting icon opacity from 50% opacity to 100% opacity
|
43 |
note: on hover, icons are 100% opaque. Does not work in Internet Explorer due to bad transparent .png support. IE6+ made the buttons look terrible in most cases (black border around the icons) - removed alpha filter to fix this.
|
60 |
3. Shows all of the 16px icon packs
|
61 |
4. Shows the widget control panel
|
62 |
|
63 |
+
== Frequently Asked Questions ==
|
64 |
+
|
65 |
+
1) Can you add [insert social media service] support?
|
66 |
+
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/.
|
67 |
+
|
68 |
== Help ==
|
69 |
|
70 |
+
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>
|
71 |
|
72 |
== Changelog ==
|
73 |
+
1.3.1 - Quick changes to make the Readme.txt standardized.
|
74 |
+
|
75 |
+
1.3 - Added requested support for FriendFeed
|
76 |
+
|
77 |
1.2.8 - 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.
|
78 |
|
79 |
1.2.7 - 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.
|
103 |
|
104 |
1.1 - Added support for LinkedIn
|
105 |
|
106 |
+
1.0 - Added support for varying sizes, added 2 new icon packages, added support for varying opacities.
|
social-widget.php
CHANGED
@@ -3,9 +3,9 @@
|
|
3 |
* Plugin Name: Social Media Widget
|
4 |
* Plugin URI: http://www.idontlikethisgame.com/updates/social-media-widget/
|
5 |
* Description: Place social media icons on your Sidebar by inputting URLs to your profiles!
|
6 |
-
* Version: 1.
|
7 |
* Author: Brian Freytag
|
8 |
-
* Author
|
9 |
**/
|
10 |
|
11 |
|
@@ -31,13 +31,13 @@ class Social_Widget extends WP_Widget {
|
|
31 |
/* Widget setup */
|
32 |
function Social_Widget() {
|
33 |
/* Widget settings. */
|
34 |
-
$widget_ops = array( 'classname' => 'Social_Widget', 'description' => __('A widget that allows the user to display social media icons in their sidebar', '
|
35 |
|
36 |
/* Widget control settings. */
|
37 |
$control_ops = array( 'width' => 300, 'height' => 350, 'id_base' => 'social-widget' );
|
38 |
|
39 |
/* Create the widget. */
|
40 |
-
$this->WP_Widget( 'social-widget', __('Social Widget', '
|
41 |
}
|
42 |
|
43 |
/* Display the widget */
|
@@ -49,6 +49,7 @@ class Social_Widget extends WP_Widget {
|
|
49 |
$facebook = $instance['facebook'];
|
50 |
$twitter = $instance['twitter'];
|
51 |
$myspace = $instance['myspace'];
|
|
|
52 |
$orkut = $instance['orkut'];
|
53 |
$linkedin = $instance['linkedin'];
|
54 |
$youtube = $instance['youtube'];
|
@@ -115,6 +116,14 @@ class Social_Widget extends WP_Widget {
|
|
115 |
echo ''; //If no URL inputed
|
116 |
}
|
117 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
118 |
// Orkut
|
119 |
if ( $orkut != '' ) {
|
120 |
?><a href="<?php echo $orkut; ?>" <?php echo $nofollow; ?> target="_blank"><img class="subscribes" src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/orkut.png" alt="<?php echo $title; ?> on Orkut"
|
@@ -192,6 +201,7 @@ class Social_Widget extends WP_Widget {
|
|
192 |
$instance['facebook'] = strip_tags( $new_instance['facebook'] );
|
193 |
$instance['twitter'] = strip_tags( $new_instance['twitter'] );
|
194 |
$instance['myspace'] = strip_tags( $new_instance['myspace'] );
|
|
|
195 |
$instance['orkut'] = strip_tags( $new_instance['orkut'] );
|
196 |
$instance['linkedin'] = strip_tags( $new_instance['linkedin'] );
|
197 |
$instance['youtube'] = strip_tags( $new_instance['youtube'] );
|
@@ -218,16 +228,17 @@ class Social_Widget extends WP_Widget {
|
|
218 |
/* Set up some default widget settings. */
|
219 |
$defaults = array(
|
220 |
'title' => __('Follow Us!', 'test'),
|
221 |
-
'facebook' => __('http://www.facebook.com/your_name', '
|
222 |
-
'twitter' => __('http://www.twitter.com/yourname', '
|
223 |
-
'myspace' => __('http://www.myspace.com/yourname', '
|
224 |
-
'
|
225 |
-
'
|
226 |
-
'
|
227 |
-
'
|
228 |
-
'
|
229 |
-
'
|
230 |
-
'
|
|
|
231 |
'icon_size' => 'default',
|
232 |
'icon_pack' => 'default',
|
233 |
'icon_opacity' => 'default',
|
@@ -240,80 +251,86 @@ class Social_Widget extends WP_Widget {
|
|
240 |
</p>
|
241 |
<!-- Widget Title: Text Input -->
|
242 |
<p>
|
243 |
-
<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Title:', '
|
244 |
<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%;" />
|
245 |
</p>
|
246 |
|
247 |
<!-- Facebook URL: Text Input -->
|
248 |
<p>
|
249 |
-
<label for="<?php echo $this->get_field_id( 'facebook' ); ?>"><?php _e('Facebook URL:', '
|
250 |
<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%;" />
|
251 |
</p>
|
252 |
|
253 |
<!-- Twitter URL: Text Input -->
|
254 |
<p>
|
255 |
-
<label for="<?php echo $this->get_field_id( 'twitter' ); ?>"><?php _e('Twitter URL:', '
|
256 |
<input id="<?php echo $this->get_field_id( 'twitter' ); ?>" name="<?php echo $this->get_field_name( 'twitter' ); ?>" value="<?php echo $instance['twitter']; ?>" style="width:85%;" />
|
257 |
</p>
|
258 |
|
259 |
<!-- MySpace URL: Text Input -->
|
260 |
<p>
|
261 |
-
<label for="<?php echo $this->get_field_id( 'myspace' ); ?>"><?php _e('MySpace URL:', '
|
262 |
<input id="<?php echo $this->get_field_id( 'myspace' ); ?>" name="<?php echo $this->get_field_name( 'myspace' ); ?>" value="<?php echo $instance['myspace']; ?>" style="width:85%;" />
|
263 |
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
264 |
|
265 |
<!-- Orkut URL: Text Input -->
|
266 |
<p>
|
267 |
-
<label for="<?php echo $this->get_field_id( 'orkut' ); ?>"><?php _e('Orkut URL:', '
|
268 |
<input id="<?php echo $this->get_field_id( 'orkut' ); ?>" name="<?php echo $this->get_field_name( 'orkut' ); ?>" value="<?php echo $instance['orkut']; ?>" style="width:85%;" />
|
269 |
</p>
|
270 |
|
271 |
<!-- LinkedIn URL: Text Input -->
|
272 |
<p>
|
273 |
-
<label for="<?php echo $this->get_field_id( 'linkedin' ); ?>"><?php _e('LinkedIn URL:', '
|
274 |
<input id="<?php echo $this->get_field_id( 'linkedin' ); ?>" name="<?php echo $this->get_field_name( 'linkedin' ); ?>" value="<?php echo $instance['linkedin']; ?>" style="width:85%;" />
|
275 |
</p>
|
276 |
|
277 |
<!-- YouTube URL: Text Input -->
|
278 |
<p>
|
279 |
-
<label for="<?php echo $this->get_field_id( 'youtube' ); ?>"><?php _e('YouTube URL:', '
|
280 |
<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%;" />
|
281 |
</p>
|
282 |
|
283 |
<!-- Digg URL: Text Input -->
|
284 |
<p>
|
285 |
-
<label for="<?php echo $this->get_field_id( 'digg' ); ?>"><?php _e('Digg URL:', '
|
286 |
<input id="<?php echo $this->get_field_id( 'digg' ); ?>" name="<?php echo $this->get_field_name( 'digg' ); ?>" value="<?php echo $instance['digg']; ?>" style="width:85%;" />
|
287 |
</p>
|
288 |
|
289 |
<!-- Reddit URL: Text Input -->
|
290 |
<p>
|
291 |
-
<label for="<?php echo $this->get_field_id( 'reddit' ); ?>"><?php _e('Reddit URL:', '
|
292 |
<input id="<?php echo $this->get_field_id( 'reddit' ); ?>" name="<?php echo $this->get_field_name( 'reddit' ); ?>" value="<?php echo $instance['reddit']; ?>" style="width:85%;" />
|
293 |
</p>
|
294 |
|
295 |
<!-- Buzz URL: Text Input -->
|
296 |
<p>
|
297 |
-
<label for="<?php echo $this->get_field_id( 'buzz' ); ?>"><?php _e('Buzz URL:', '
|
298 |
<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%;" />
|
299 |
</p>
|
300 |
|
301 |
<!-- RSS URL: Text Input -->
|
302 |
<p>
|
303 |
-
<label for="<?php echo $this->get_field_id( 'rss_url' ); ?>"><?php _e('RSS URL:', '
|
304 |
<input id="<?php echo $this->get_field_id( 'rss_url' ); ?>" name="<?php echo $this->get_field_name( 'rss_url' ); ?>" value="<?php echo $instance['rss_url']; ?>" style="width:85%;" />
|
305 |
</p>
|
306 |
|
307 |
|
308 |
<!-- Subscribe URL: Text Input -->
|
309 |
<p>
|
310 |
-
<label for="<?php echo $this->get_field_id( 'subscribe' ); ?>"><?php _e('Subscription URL:', '
|
311 |
<input id="<?php echo $this->get_field_id( 'subscribe' ); ?>" name="<?php echo $this->get_field_name( 'subscribe' ); ?>" value="<?php echo $instance['subscribe'] ?>" style="width:85%;" />
|
312 |
</p>
|
313 |
|
314 |
<!-- Choose Icon Size: Dropdown -->
|
315 |
<p>
|
316 |
-
<label for="<?php echo $this->get_field_id( 'icon_size' ); ?>"><?php _e('Icon Size', '
|
317 |
<select id="<?php echo $this->get_field_id( 'icon_size' ); ?>" name="<?php echo $this->get_field_name( 'icon_size' ); ?>">
|
318 |
<option value="16" <?php if($instance['icon_size'] == '16') { echo 'selected'; } ?>>16px</option>
|
319 |
<option value="default" <?php if($instance['icon_size'] == 'default') { echo 'selected'; } ?>>Default (32px)</option>
|
@@ -323,7 +340,7 @@ class Social_Widget extends WP_Widget {
|
|
323 |
|
324 |
<!-- Choose Icon Pack: Dropdown -->
|
325 |
<p>
|
326 |
-
<label for="<?php echo $this->get_field_id( 'icon_pack' ); ?>"><?php _e('Icon Pack', '
|
327 |
<select id="<?php echo $this->get_field_id( 'icon_pack' ); ?>" name="<?php echo $this->get_field_name( 'icon_pack' ); ?>">
|
328 |
<option value="cutout" <?php if($instance['icon_pack'] == 'cutout') { echo 'selected'; } ?>>Cutout Icons</option>
|
329 |
<option value="heart" <?php if($instance['icon_pack'] == 'heart') { echo 'selected'; } ?>>Heart Icons</option>
|
@@ -334,7 +351,7 @@ class Social_Widget extends WP_Widget {
|
|
334 |
|
335 |
<!--Starting Icon Opacity -->
|
336 |
<p>
|
337 |
-
<label for="<?php echo $this->get_field_id( 'icon_opacity' ); ?>"><?php _e('Default Icon Opacity', '
|
338 |
<select id="<?php echo $this->get_field_id( 'icon_opacity' ); ?>" name="<?php echo $this->get_field_name( 'icon_opacity' ); ?>">
|
339 |
<option value="0.5" <?php if($instance['icon_opacity'] == '0.5') { echo 'selected'; } ?>>50%</option>
|
340 |
<option value="0.6" <?php if($instance['icon_opacity'] == '0.6') { echo 'selected'; } ?>>60%</option>
|
@@ -348,7 +365,7 @@ class Social_Widget extends WP_Widget {
|
|
348 |
|
349 |
<!-- No Follow On or Off -->
|
350 |
<p>
|
351 |
-
<label for="<?php echo $this->get_field_id( 'nofollow' ); ?>"><?php _e('Use rel="nofollow" for links', '
|
352 |
<select id="<?php echo $this->get_field_id( 'nofollow' ); ?>" name="<?php echo $this->get_field_name( 'nofollow' ); ?>">
|
353 |
<option value="on" <?php if($instance['nofollow'] == 'on') { echo 'selected'; } ?>>On</option>
|
354 |
<option value="off" <?php if($instance['nofollow'] == 'off') { echo 'selected'; } ?>>Off</option>
|
3 |
* Plugin Name: Social Media Widget
|
4 |
* Plugin URI: http://www.idontlikethisgame.com/updates/social-media-widget/
|
5 |
* Description: Place social media icons on your Sidebar by inputting URLs to your profiles!
|
6 |
+
* Version: 1.3
|
7 |
* Author: Brian Freytag
|
8 |
+
* Author URI: http://www.idontlikethisgame.com/
|
9 |
**/
|
10 |
|
11 |
|
31 |
/* Widget setup */
|
32 |
function Social_Widget() {
|
33 |
/* Widget settings. */
|
34 |
+
$widget_ops = array( 'classname' => 'Social_Widget', 'description' => __('A widget that allows the user to display social media icons in their sidebar', 'smw') );
|
35 |
|
36 |
/* Widget control settings. */
|
37 |
$control_ops = array( 'width' => 300, '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 */
|
49 |
$facebook = $instance['facebook'];
|
50 |
$twitter = $instance['twitter'];
|
51 |
$myspace = $instance['myspace'];
|
52 |
+
$friendfeed = $instance['friendfeed'];
|
53 |
$orkut = $instance['orkut'];
|
54 |
$linkedin = $instance['linkedin'];
|
55 |
$youtube = $instance['youtube'];
|
116 |
echo ''; //If no URL inputed
|
117 |
}
|
118 |
|
119 |
+
// FriendFeed
|
120 |
+
if ( $friendfeed != '' ) {
|
121 |
+
?><a href="<?php echo $friendfeed; ?>" <?php echo $nofollow; ?> target="_blank"><img class="subscribes" src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/friendfeed.png" alt="<?php echo $title; ?> on FriendFeed"
|
122 |
+
title="<?php echo $title; ?> on FriendFeed" style="opacity: <?php echo $icon_opacity;?>; -moz-opacity: <?php echo $icon_opacity;?>;" /></a><?php
|
123 |
+
} else {
|
124 |
+
echo ''; //If no URL inputed
|
125 |
+
}
|
126 |
+
|
127 |
// Orkut
|
128 |
if ( $orkut != '' ) {
|
129 |
?><a href="<?php echo $orkut; ?>" <?php echo $nofollow; ?> target="_blank"><img class="subscribes" src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/orkut.png" alt="<?php echo $title; ?> on Orkut"
|
201 |
$instance['facebook'] = strip_tags( $new_instance['facebook'] );
|
202 |
$instance['twitter'] = strip_tags( $new_instance['twitter'] );
|
203 |
$instance['myspace'] = strip_tags( $new_instance['myspace'] );
|
204 |
+
$instance['friendfeed'] = strip_tags( $new_instance['friendfeed'] );
|
205 |
$instance['orkut'] = strip_tags( $new_instance['orkut'] );
|
206 |
$instance['linkedin'] = strip_tags( $new_instance['linkedin'] );
|
207 |
$instance['youtube'] = strip_tags( $new_instance['youtube'] );
|
228 |
/* Set up some default widget settings. */
|
229 |
$defaults = array(
|
230 |
'title' => __('Follow Us!', 'test'),
|
231 |
+
'facebook' => __('http://www.facebook.com/your_name', 'smw'),
|
232 |
+
'twitter' => __('http://www.twitter.com/yourname', 'smw'),
|
233 |
+
'myspace' => __('http://www.myspace.com/yourname', 'smw'),
|
234 |
+
'friendfeed' => __('http://www.friendfeed.com/yourname', 'smw'),
|
235 |
+
'orkut' => __('http://www.orkut.com/Main#Profile?uid=youruid', 'smw'),
|
236 |
+
'linkedin' => __('http://www.linkedin.com/in/yourname', 'smw'),
|
237 |
+
'youtube' => __('http://www.youtube.com/user/yourname', 'smw'),
|
238 |
+
'digg' => __('http://www.digg.com/users/yourname', 'smw'),
|
239 |
+
'reddit' => __('http://www.reddit.com/user/yourname', 'smw'),
|
240 |
+
'buzz' => __('http://www.google.com/profiles/yourname#buzz', 'smw'),
|
241 |
+
'rss_url' => __('http://www.yoursite.com/feed', 'smw'),
|
242 |
'icon_size' => 'default',
|
243 |
'icon_pack' => 'default',
|
244 |
'icon_opacity' => 'default',
|
251 |
</p>
|
252 |
<!-- Widget Title: Text Input -->
|
253 |
<p>
|
254 |
+
<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Title:', 'smw'); ?></label>
|
255 |
<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%;" />
|
256 |
</p>
|
257 |
|
258 |
<!-- Facebook URL: Text Input -->
|
259 |
<p>
|
260 |
+
<label for="<?php echo $this->get_field_id( 'facebook' ); ?>"><?php _e('Facebook URL:', 'smw'); ?></label>
|
261 |
<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%;" />
|
262 |
</p>
|
263 |
|
264 |
<!-- Twitter URL: Text Input -->
|
265 |
<p>
|
266 |
+
<label for="<?php echo $this->get_field_id( 'twitter' ); ?>"><?php _e('Twitter URL:', 'smw'); ?></label>
|
267 |
<input id="<?php echo $this->get_field_id( 'twitter' ); ?>" name="<?php echo $this->get_field_name( 'twitter' ); ?>" value="<?php echo $instance['twitter']; ?>" style="width:85%;" />
|
268 |
</p>
|
269 |
|
270 |
<!-- MySpace URL: Text Input -->
|
271 |
<p>
|
272 |
+
<label for="<?php echo $this->get_field_id( 'myspace' ); ?>"><?php _e('MySpace URL:', 'smw'); ?></label>
|
273 |
<input id="<?php echo $this->get_field_id( 'myspace' ); ?>" name="<?php echo $this->get_field_name( 'myspace' ); ?>" value="<?php echo $instance['myspace']; ?>" style="width:85%;" />
|
274 |
</p>
|
275 |
+
|
276 |
+
<!-- FriendFeed URL: Text Input -->
|
277 |
+
<p>
|
278 |
+
<label for="<?php echo $this->get_field_id( 'friendfeed' ); ?>"><?php _e('FriendFeed URL:', 'smw'); ?></label>
|
279 |
+
<input id="<?php echo $this->get_field_id( 'friendfeed' ); ?>" name="<?php echo $this->get_field_name( 'friendfeed' ); ?>" value="<?php echo $instance['friendfeed']; ?>" style="width:85%;" />
|
280 |
+
</p>
|
281 |
|
282 |
<!-- Orkut URL: Text Input -->
|
283 |
<p>
|
284 |
+
<label for="<?php echo $this->get_field_id( 'orkut' ); ?>"><?php _e('Orkut URL:', 'smw'); ?></label>
|
285 |
<input id="<?php echo $this->get_field_id( 'orkut' ); ?>" name="<?php echo $this->get_field_name( 'orkut' ); ?>" value="<?php echo $instance['orkut']; ?>" style="width:85%;" />
|
286 |
</p>
|
287 |
|
288 |
<!-- LinkedIn URL: Text Input -->
|
289 |
<p>
|
290 |
+
<label for="<?php echo $this->get_field_id( 'linkedin' ); ?>"><?php _e('LinkedIn URL:', 'smw'); ?></label>
|
291 |
<input id="<?php echo $this->get_field_id( 'linkedin' ); ?>" name="<?php echo $this->get_field_name( 'linkedin' ); ?>" value="<?php echo $instance['linkedin']; ?>" style="width:85%;" />
|
292 |
</p>
|
293 |
|
294 |
<!-- YouTube URL: Text Input -->
|
295 |
<p>
|
296 |
+
<label for="<?php echo $this->get_field_id( 'youtube' ); ?>"><?php _e('YouTube URL:', 'smw'); ?></label>
|
297 |
<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%;" />
|
298 |
</p>
|
299 |
|
300 |
<!-- Digg URL: Text Input -->
|
301 |
<p>
|
302 |
+
<label for="<?php echo $this->get_field_id( 'digg' ); ?>"><?php _e('Digg URL:', 'smw'); ?></label>
|
303 |
<input id="<?php echo $this->get_field_id( 'digg' ); ?>" name="<?php echo $this->get_field_name( 'digg' ); ?>" value="<?php echo $instance['digg']; ?>" style="width:85%;" />
|
304 |
</p>
|
305 |
|
306 |
<!-- Reddit URL: Text Input -->
|
307 |
<p>
|
308 |
+
<label for="<?php echo $this->get_field_id( 'reddit' ); ?>"><?php _e('Reddit URL:', 'smw'); ?></label>
|
309 |
<input id="<?php echo $this->get_field_id( 'reddit' ); ?>" name="<?php echo $this->get_field_name( 'reddit' ); ?>" value="<?php echo $instance['reddit']; ?>" style="width:85%;" />
|
310 |
</p>
|
311 |
|
312 |
<!-- Buzz URL: Text Input -->
|
313 |
<p>
|
314 |
+
<label for="<?php echo $this->get_field_id( 'buzz' ); ?>"><?php _e('Buzz URL:', 'smw'); ?></label>
|
315 |
<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%;" />
|
316 |
</p>
|
317 |
|
318 |
<!-- RSS URL: Text Input -->
|
319 |
<p>
|
320 |
+
<label for="<?php echo $this->get_field_id( 'rss_url' ); ?>"><?php _e('RSS URL:', 'smw'); ?></label>
|
321 |
<input id="<?php echo $this->get_field_id( 'rss_url' ); ?>" name="<?php echo $this->get_field_name( 'rss_url' ); ?>" value="<?php echo $instance['rss_url']; ?>" style="width:85%;" />
|
322 |
</p>
|
323 |
|
324 |
|
325 |
<!-- Subscribe URL: Text Input -->
|
326 |
<p>
|
327 |
+
<label for="<?php echo $this->get_field_id( 'subscribe' ); ?>"><?php _e('Subscription URL:', 'smw'); ?></label>
|
328 |
<input id="<?php echo $this->get_field_id( 'subscribe' ); ?>" name="<?php echo $this->get_field_name( 'subscribe' ); ?>" value="<?php echo $instance['subscribe'] ?>" style="width:85%;" />
|
329 |
</p>
|
330 |
|
331 |
<!-- Choose Icon Size: Dropdown -->
|
332 |
<p>
|
333 |
+
<label for="<?php echo $this->get_field_id( 'icon_size' ); ?>"><?php _e('Icon Size', 'smw'); ?></label>
|
334 |
<select id="<?php echo $this->get_field_id( 'icon_size' ); ?>" name="<?php echo $this->get_field_name( 'icon_size' ); ?>">
|
335 |
<option value="16" <?php if($instance['icon_size'] == '16') { echo 'selected'; } ?>>16px</option>
|
336 |
<option value="default" <?php if($instance['icon_size'] == 'default') { echo 'selected'; } ?>>Default (32px)</option>
|
340 |
|
341 |
<!-- Choose Icon Pack: Dropdown -->
|
342 |
<p>
|
343 |
+
<label for="<?php echo $this->get_field_id( 'icon_pack' ); ?>"><?php _e('Icon Pack', 'smw'); ?></label>
|
344 |
<select id="<?php echo $this->get_field_id( 'icon_pack' ); ?>" name="<?php echo $this->get_field_name( 'icon_pack' ); ?>">
|
345 |
<option value="cutout" <?php if($instance['icon_pack'] == 'cutout') { echo 'selected'; } ?>>Cutout Icons</option>
|
346 |
<option value="heart" <?php if($instance['icon_pack'] == 'heart') { echo 'selected'; } ?>>Heart Icons</option>
|
351 |
|
352 |
<!--Starting Icon Opacity -->
|
353 |
<p>
|
354 |
+
<label for="<?php echo $this->get_field_id( 'icon_opacity' ); ?>"><?php _e('Default Icon Opacity', 'smw'); ?></label>
|
355 |
<select id="<?php echo $this->get_field_id( 'icon_opacity' ); ?>" name="<?php echo $this->get_field_name( 'icon_opacity' ); ?>">
|
356 |
<option value="0.5" <?php if($instance['icon_opacity'] == '0.5') { echo 'selected'; } ?>>50%</option>
|
357 |
<option value="0.6" <?php if($instance['icon_opacity'] == '0.6') { echo 'selected'; } ?>>60%</option>
|
365 |
|
366 |
<!-- No Follow On or Off -->
|
367 |
<p>
|
368 |
+
<label for="<?php echo $this->get_field_id( 'nofollow' ); ?>"><?php _e('Use rel="nofollow" for links', 'smw'); ?></label>
|
369 |
<select id="<?php echo $this->get_field_id( 'nofollow' ); ?>" name="<?php echo $this->get_field_name( 'nofollow' ); ?>">
|
370 |
<option value="on" <?php if($instance['nofollow'] == 'on') { echo 'selected'; } ?>>On</option>
|
371 |
<option value="off" <?php if($instance['nofollow'] == 'off') { echo 'selected'; } ?>>Off</option>
|