Version Description
- Added ability to align the widget left, right, or center.
Download this release
Release Info
Developer | brianfreytag |
Plugin | Social Media Widget |
Version | 2.5.5 |
Comparing to | |
See all releases |
Code changes from version 2.4.1 to 2.5.5
- images/custom/readme.txt +7 -0
- images/cutout/16/buzz.png +0 -0
- images/cutout/16/live365.png +0 -0
- images/cutout/32/buzz.png +0 -0
- images/cutout/32/live365.png +0 -0
- images/cutout/64/buzz.png +0 -0
- images/cutout/64/live365.png +0 -0
- images/default/16/live365.png +0 -0
- images/default/32/live365.png +0 -0
- images/default/64/live365.png +0 -0
- images/heart/16/live365.png +0 -0
- images/heart/32/live365.png +0 -0
- images/heart/64/live365.png +0 -0
- images/sketch/16/live365.png +0 -0
- images/sketch/32/live365.png +0 -0
- images/sketch/64/live365.png +0 -0
- readme.txt +35 -5
- screenshot-1.png +0 -0
- screenshot-2.png +0 -0
- screenshot-3.png +0 -0
- screenshot-4.png +0 -0
- screenshot-5.png +0 -0
- screenshot-6.png +0 -0
- screenshot-7.png +0 -0
- social-widget.php +222 -91
- social_widget.css +12 -0
images/custom/readme.txt
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
images/cutout/16/buzz.png
CHANGED
Binary file
|
images/cutout/16/live365.png
ADDED
Binary file
|
images/cutout/32/buzz.png
CHANGED
Binary file
|
images/cutout/32/live365.png
ADDED
Binary file
|
images/cutout/64/buzz.png
CHANGED
Binary file
|
images/cutout/64/live365.png
ADDED
Binary file
|
images/default/16/live365.png
ADDED
Binary file
|
images/default/32/live365.png
ADDED
Binary file
|
images/default/64/live365.png
ADDED
Binary file
|
images/heart/16/live365.png
ADDED
Binary file
|
images/heart/32/live365.png
ADDED
Binary file
|
images/heart/64/live365.png
ADDED
Binary file
|
images/sketch/16/live365.png
ADDED
Binary file
|
images/sketch/32/live365.png
ADDED
Binary file
|
images/sketch/64/live365.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, skype, blogger, wordpress, yelp, soundcloud, digital tunes, tumblr, hyves, etsy, tungle, plancast, slideshare, deviantart, better business bureau, merchant circle, asmallworld
|
5 |
Requires at least: 2.9.1
|
6 |
Tested up to: 3.0.1
|
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 |
|
@@ -43,6 +43,7 @@ The Social Media Widget is a simple sidebar widget that allows users to input th
|
|
43 |
* PlanCast
|
44 |
* SlideShare
|
45 |
* DeviantArt
|
|
|
46 |
* Digital Tunes
|
47 |
* Soundcloud
|
48 |
* Etsy
|
@@ -50,7 +51,7 @@ The Social Media Widget is a simple sidebar widget that allows users to input th
|
|
50 |
* Merchant Circle
|
51 |
* RSS
|
52 |
* E-mail (mailto: or a link to mailing list service)
|
53 |
-
* Plus create
|
54 |
|
55 |
* Select from the following icon sizes:
|
56 |
* 16x16
|
@@ -62,6 +63,7 @@ The Social Media Widget is a simple sidebar widget that allows users to input th
|
|
62 |
* 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
|
63 |
* Heart - <a href="http://thedesignsuperhero.com/2009/03/heart-v2-free-social-iconset-in-heart-shape/">Heart v2</a> by The Design Superhero
|
64 |
* Cutout - <a href="http://www.iconspedia.com/pack/icontexto-inside-2222/">Icontexto Inside Icons</a>
|
|
|
65 |
* 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.
|
66 |
* 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.
|
67 |
|
@@ -72,11 +74,14 @@ The Social Media Widget is a simple sidebar widget that allows users to input th
|
|
72 |
* Combo (All three)
|
73 |
* Note: Because these are all CSS3 style animations, IE6-7 aren't supported at all, although IE8 will support Scale. In IE6-8, icons will not be animated and use 100% opacity.
|
74 |
|
|
|
75 |
|
76 |
* Choose whether or not to use the rel="nofollow" tag in your links. (Recommended see http://en.wikipedia.org/wiki/Nofollow)
|
77 |
|
78 |
* Choose whether or not to open links in a new tab (or browser window).
|
79 |
|
|
|
|
|
80 |
If you like this plugin, please rate it and click "Works" for your Wordpress version!
|
81 |
|
82 |
Please donate if you like this plugin.
|
@@ -104,17 +109,32 @@ Follow the steps below to upgrade.
|
|
104 |
2. Cutout icon pack
|
105 |
3. Heart icon pack
|
106 |
4. Sketch icon pack
|
107 |
-
5. Top
|
108 |
-
6.
|
|
|
109 |
|
110 |
== Frequently Asked Questions ==
|
111 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
= Can you add [insert social media service] support =
|
113 |
Yes I can. Please go to my <a href="http://forums.idontlikethisgame.com/viewforum.php?f=3">SMW Forums</a> and request it there!
|
114 |
|
115 |
= Why aren't the animations working in Internet Explorer 6+ =
|
116 |
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.
|
117 |
|
|
|
|
|
|
|
118 |
= I can't find my {insert social media service} profile link! What is it? =
|
119 |
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.
|
120 |
|
@@ -129,6 +149,16 @@ First - calm down. I'm happy to help you, and, if you ask those I've helped alre
|
|
129 |
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!
|
130 |
|
131 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
132 |
= 2.4.1 =
|
133 |
|
134 |
* Changed plugin uri to reflect change to a forum-based system. It became too jumbled a mess trying to sort through comments on multiple posts and e-mails.
|
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, 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 |
|
43 |
* PlanCast
|
44 |
* SlideShare
|
45 |
* DeviantArt
|
46 |
+
* Live365
|
47 |
* Digital Tunes
|
48 |
* Soundcloud
|
49 |
* Etsy
|
51 |
* Merchant Circle
|
52 |
* RSS
|
53 |
* E-mail (mailto: or a link to mailing list service)
|
54 |
+
* Plus create 6 of your own using a URL to an icon and URL to the service
|
55 |
|
56 |
* Select from the following icon sizes:
|
57 |
* 16x16
|
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 |
|
74 |
* Combo (All three)
|
75 |
* Note: Because these are all CSS3 style animations, IE6-7 aren't supported at all, although IE8 will support Scale. In IE6-8, icons will not be animated and use 100% opacity.
|
76 |
|
77 |
+
* Create your own image alt/title tags for hover-over text (i.e. Follow Us On {service})
|
78 |
|
79 |
* Choose whether or not to use the rel="nofollow" tag in your links. (Recommended see http://en.wikipedia.org/wiki/Nofollow)
|
80 |
|
81 |
* Choose whether or not to open links in a new tab (or browser window).
|
82 |
|
83 |
+
* Align your widget left, center, or right.
|
84 |
+
|
85 |
If you like this plugin, please rate it and click "Works" for your Wordpress version!
|
86 |
|
87 |
Please donate if you like this plugin.
|
109 |
2. Cutout icon pack
|
110 |
3. Heart icon pack
|
111 |
4. Sketch icon pack
|
112 |
+
5. Top of widget control panel
|
113 |
+
6. Middle of widget control panel
|
114 |
+
7. Bottom of widget control panel
|
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.
|
137 |
+
|
138 |
= I can't find my {insert social media service} profile link! What is it? =
|
139 |
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.
|
140 |
|
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.
|
155 |
+
|
156 |
+
= 2.5 =
|
157 |
+
|
158 |
+
* Added 'custom' icon pack option. See FAQ for usage.
|
159 |
+
* Added 3 more custom icon fields for custom services
|
160 |
+
* Added ability to create the image alt/title tags so that it is not always {Widget Title} on {Service}.
|
161 |
+
|
162 |
= 2.4.1 =
|
163 |
|
164 |
* Changed plugin uri to reflect change to a forum-based system. It became too jumbled a mess trying to sort through comments on multiple posts and e-mails.
|
screenshot-1.png
CHANGED
Binary file
|
screenshot-2.png
CHANGED
Binary file
|
screenshot-3.png
CHANGED
Binary file
|
screenshot-4.png
CHANGED
Binary file
|
screenshot-5.png
CHANGED
Binary file
|
screenshot-6.png
CHANGED
Binary file
|
screenshot-7.png
ADDED
Binary file
|
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 |
* Author: Brian Freytag
|
8 |
* Author URI: http://www.idontlikethisgame.com/
|
9 |
**/
|
@@ -50,9 +50,10 @@ class Social_Widget extends WP_Widget {
|
|
50 |
/* Display the widget */
|
51 |
function widget( $args, $instance ) {
|
52 |
extract( $args );
|
53 |
-
|
54 |
/* Our variables from the widget settings. */
|
55 |
$title = apply_filters('widget_title', $instance['title'] );
|
|
|
56 |
$facebook = $instance['facebook'];
|
57 |
$twitter = $instance['twitter'];
|
58 |
$myspace = $instance['myspace'];
|
@@ -81,6 +82,7 @@ class Social_Widget extends WP_Widget {
|
|
81 |
$plancast = $instance['plancast'];
|
82 |
$slideshare = $instance['slideshare'];
|
83 |
$deviantart = $instance['deviantart'];
|
|
|
84 |
$digitaltunes = $instance['digitaltunes'];
|
85 |
$soundcloud = $instance['soundcloud'];
|
86 |
$etsy = $instance['etsy'];
|
@@ -94,16 +96,27 @@ class Social_Widget extends WP_Widget {
|
|
94 |
$icon_opacity = $instance['icon_opacity'];
|
95 |
$newtab = $instance['newtab'];
|
96 |
$nofollow = $instance['nofollow'];
|
|
|
97 |
$custom1icon = $instance['custom1icon'];
|
98 |
$custom2icon = $instance['custom2icon'];
|
99 |
$custom3icon = $instance['custom3icon'];
|
|
|
|
|
|
|
100 |
$custom1name = $instance['custom1name'];
|
101 |
$custom2name = $instance['custom2name'];
|
102 |
$custom3name = $instance['custom3name'];
|
|
|
|
|
|
|
103 |
$custom1url = $instance['custom1url'];
|
104 |
$custom2url = $instance['custom2url'];
|
105 |
$custom3url = $instance['custom3url'];
|
|
|
|
|
|
|
106 |
|
|
|
107 |
/* Choose Icon Size if Value is 'default' */
|
108 |
if($icon_size == 'default') {
|
109 |
$icon_size = '32';
|
@@ -123,7 +136,8 @@ class Social_Widget extends WP_Widget {
|
|
123 |
} else {
|
124 |
$nofollow = '';
|
125 |
}
|
126 |
-
|
|
|
127 |
/* Check to see if New Tab is set to yes */
|
128 |
if ($newtab == 'yes') {
|
129 |
$newtab = "target=\"_blank\"";
|
@@ -131,9 +145,20 @@ class Social_Widget extends WP_Widget {
|
|
131 |
$newtab = '';
|
132 |
}
|
133 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
134 |
/* Get Plugin Path */
|
135 |
$smw_path = SMW_PLUGINPATH;
|
136 |
|
|
|
|
|
137 |
/* Before widget (defined by themes). */
|
138 |
echo $before_widget;
|
139 |
|
@@ -141,272 +166,300 @@ class Social_Widget extends WP_Widget {
|
|
141 |
if ( $title )
|
142 |
echo $before_title . $title . $after_title;
|
143 |
|
144 |
-
echo "<div class=\"socialmedia-buttons\">";
|
145 |
/* Display linked images to profiles from widget settings if one was input. */
|
146 |
|
147 |
// Facebook
|
148 |
-
if ( $facebook != '') {
|
149 |
-
?><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 $
|
150 |
} else {
|
151 |
echo ''; //If no URL inputed
|
152 |
}
|
153 |
|
154 |
// Twitter
|
155 |
-
if ( $twitter != '' ) {
|
156 |
-
?><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"
|
157 |
} else {
|
158 |
echo ''; //If no URL inputed
|
159 |
}
|
160 |
|
161 |
|
162 |
// MySpace
|
163 |
-
if ( $myspace != '' ) {
|
164 |
-
?><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"
|
165 |
} else {
|
166 |
echo ''; //If no URL inputed
|
167 |
}
|
168 |
|
169 |
// FriendFeed
|
170 |
-
if ( $friendfeed != '' ) {
|
171 |
-
?><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"
|
172 |
} else {
|
173 |
echo ''; //If no URL inputed
|
174 |
}
|
175 |
|
176 |
// Orkut
|
177 |
-
if ( $orkut != '' ) {
|
178 |
-
?><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"
|
179 |
} else {
|
180 |
echo ''; //If no URL inputed
|
181 |
}
|
182 |
|
183 |
// Hyves
|
184 |
-
if ( $hyves != '' ) {
|
185 |
-
?><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"
|
186 |
} else {
|
187 |
echo ''; //If no URL inputed
|
188 |
}
|
189 |
|
190 |
// LinkedIN
|
191 |
-
if ( $linkedin != '' ) {
|
192 |
-
?><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"
|
193 |
} else {
|
194 |
echo ''; //If no URL inputed
|
195 |
}
|
196 |
|
197 |
// aSmallWorld
|
198 |
-
if ( $asmallworld != '' ) {
|
199 |
-
?><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"
|
200 |
} else {
|
201 |
echo ''; //If no URL inputed
|
202 |
}
|
203 |
|
204 |
// Flickr
|
205 |
-
if ( $flickr != '' ) {
|
206 |
-
?><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"
|
207 |
} else {
|
208 |
echo ''; //If no URL inputed
|
209 |
}
|
210 |
|
211 |
// YouTube
|
212 |
-
if ( $youtube != '' ) {
|
213 |
-
?><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"
|
214 |
} else {
|
215 |
echo ''; //If No URL Inputed
|
216 |
}
|
217 |
|
218 |
// Skype
|
219 |
-
if ( $skype != '' ) {
|
220 |
-
?><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"
|
221 |
} else {
|
222 |
echo ''; //If No URL Inputed
|
223 |
}
|
224 |
|
225 |
// Digg
|
226 |
-
if ( $digg != '' ) {
|
227 |
-
?><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"
|
228 |
} else {
|
229 |
echo ''; //If no URL Inputed
|
230 |
}
|
231 |
|
232 |
// Reddit
|
233 |
-
if ( $reddit != '' ) {
|
234 |
-
?><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"
|
235 |
} else {
|
236 |
echo ''; //If no URL Inputed
|
237 |
}
|
238 |
|
239 |
// Delicious
|
240 |
-
if ( $delicious != '' ) {
|
241 |
-
?><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"
|
242 |
} else {
|
243 |
echo ''; //If no URL Inputed
|
244 |
}
|
245 |
|
246 |
// StumbleUpon
|
247 |
-
if ( $stumble != '' ) {
|
248 |
-
?><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"
|
249 |
} else {
|
250 |
echo ''; //If no URL Inputed
|
251 |
}
|
252 |
|
253 |
// Tumblr
|
254 |
-
if ( $tumblr != '' ) {
|
255 |
-
?><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"
|
256 |
} else {
|
257 |
echo ''; //If no URL Inputed
|
258 |
}
|
259 |
|
260 |
// Google Buzz
|
261 |
-
if ( $buzz != '' ) {
|
262 |
-
?><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"
|
263 |
} else {
|
264 |
echo ''; //If no URL Inputed
|
265 |
}
|
266 |
|
267 |
// Vimeo
|
268 |
-
if ( $vimeo != '' ) {
|
269 |
-
?><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"
|
270 |
} else {
|
271 |
echo ''; //If no URL Inputed
|
272 |
}
|
273 |
|
274 |
// Blogger
|
275 |
-
if ( $blogger != '' ) {
|
276 |
-
?><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"
|
277 |
} else {
|
278 |
echo ''; //If No URL Inputed
|
279 |
}
|
280 |
|
281 |
// Wordpress
|
282 |
-
if ( $wordpress != '' ) {
|
283 |
-
?><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"
|
284 |
} else {
|
285 |
echo ''; //If No URL Inputed
|
286 |
}
|
287 |
|
288 |
// Yelp
|
289 |
-
if ( $yelp != '' ) {
|
290 |
-
?><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"
|
291 |
} else {
|
292 |
echo ''; //If No URL Inputed
|
293 |
}
|
294 |
|
295 |
// Last.fm
|
296 |
-
if ( $lastfm != '' ) {
|
297 |
-
?><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"
|
298 |
} else {
|
299 |
echo ''; //If no URL Inputed
|
300 |
}
|
301 |
|
302 |
// Foursquare
|
303 |
-
if ( $foursquare != '' ) {
|
304 |
-
?><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"
|
305 |
} else {
|
306 |
echo ''; //If no URL Inputed
|
307 |
}
|
308 |
|
309 |
// Meetup
|
310 |
-
if ( $meetup != '' ) {
|
311 |
-
?><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"
|
312 |
} else {
|
313 |
echo ''; //If no URL Inputed
|
314 |
}
|
315 |
|
316 |
// Tungle.me
|
317 |
-
if ( $tungle != '' ) {
|
318 |
-
?><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"
|
319 |
} else {
|
320 |
echo ''; //If no URL inputed
|
321 |
}
|
322 |
|
323 |
// PlanCast
|
324 |
-
if ( $plancast != '' ) {
|
325 |
-
?><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"
|
326 |
} else {
|
327 |
echo ''; //If no URL inputed
|
328 |
}
|
329 |
|
330 |
// Hyves
|
331 |
-
if ( $slideshare != '' ) {
|
332 |
-
?><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"
|
333 |
} else {
|
334 |
echo ''; //If no URL inputed
|
335 |
}
|
336 |
|
337 |
// DeviantArt
|
338 |
-
if ( $deviantart != '' ) {
|
339 |
-
?><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"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
340 |
} else {
|
341 |
echo ''; //If no URL inputed
|
342 |
}
|
343 |
|
344 |
// Digital Tunes
|
345 |
-
if ( $digitaltunes != '' ) {
|
346 |
-
?><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"
|
347 |
} else {
|
348 |
echo ''; //If no URL Inputed
|
349 |
}
|
350 |
|
351 |
// Soundcloud
|
352 |
-
if ( $soundcloud != '' ) {
|
353 |
-
?><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"
|
354 |
} else {
|
355 |
echo ''; //If no URL Inputed
|
356 |
}
|
357 |
|
358 |
// Etsy
|
359 |
-
if ( $etsy != '' ) {
|
360 |
-
?><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"
|
361 |
} else {
|
362 |
echo ''; //If no URL Inputed
|
363 |
}
|
364 |
|
365 |
// Better Business Bureau
|
366 |
-
if ( $bbb != '' ) {
|
367 |
-
?><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"
|
368 |
} else {
|
369 |
echo ''; //If no URL inputed
|
370 |
}
|
371 |
|
372 |
// Merchant Circle
|
373 |
-
if ( $merchantcircle != '' ) {
|
374 |
-
?><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"
|
375 |
} else {
|
376 |
echo ''; //If no URL inputed
|
377 |
}
|
378 |
|
379 |
// Custom Icon 1
|
380 |
if ( $custom1url != '' && $custom1name != '' && $custom1icon != '' ) {
|
381 |
-
?><a href="<?php echo $custom1url; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $custom1icon; ?>"
|
382 |
} else {
|
383 |
echo ''; //If no URL inputed
|
384 |
}
|
385 |
|
386 |
// Custom Icon 2
|
387 |
if ( $custom2url != '' && $custom2name != '' && $custom2icon != '' ) {
|
388 |
-
?><a href="<?php echo $custom2url; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $custom2icon; ?>"
|
389 |
} else {
|
390 |
echo ''; //If no URL inputed
|
391 |
}
|
392 |
|
393 |
// Custom Icon 3
|
394 |
if ( $custom3url != '' && $custom3name != '' && $custom3icon != '' ) {
|
395 |
-
?><a href="<?php echo $custom3url; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $custom3icon; ?>"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
396 |
} else {
|
397 |
echo ''; //If no URL inputed
|
398 |
}
|
399 |
|
400 |
// RSS
|
401 |
-
if ( $rss != '') {
|
402 |
-
?><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 $
|
403 |
} else {
|
404 |
echo '';// If no URL Inputed
|
405 |
}
|
406 |
|
407 |
// E-mail Subscription -- If Newsletter or Mailing List available
|
408 |
-
if ( $subscribe != '' ) {
|
409 |
-
?><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 $
|
410 |
} else {
|
411 |
echo ''; // If no URL Inputed
|
412 |
}
|
@@ -423,6 +476,7 @@ class Social_Widget extends WP_Widget {
|
|
423 |
|
424 |
/* Strip Tags For Text Boxes */
|
425 |
$instance['title'] = strip_tags( $new_instance['title'] );
|
|
|
426 |
$instance['facebook'] = strip_tags( $new_instance['facebook'] );
|
427 |
$instance['twitter'] = strip_tags( $new_instance['twitter'] );
|
428 |
$instance['myspace'] = strip_tags( $new_instance['myspace'] );
|
@@ -451,6 +505,7 @@ class Social_Widget extends WP_Widget {
|
|
451 |
$instance['plancast'] = strip_tags( $new_instance['plancast'] );
|
452 |
$instance['slideshare'] = strip_tags( $new_instance['slideshare'] );
|
453 |
$instance['deviantart'] = strip_tags( $new_instance['deviantart'] );
|
|
|
454 |
$instance['digitaltunes'] = strip_tags( $new_instance['digitaltunes'] );
|
455 |
$instance['soundcloud'] = strip_tags( $new_instance['soundcloud'] );
|
456 |
$instance['etsy'] = strip_tags( $new_instance['etsy'] );
|
@@ -461,10 +516,19 @@ class Social_Widget extends WP_Widget {
|
|
461 |
$instance['custom1url'] = strip_tags( $new_instance['custom1url'] );
|
462 |
$instance['custom2name'] = strip_tags( $new_instance['custom2name'] );
|
463 |
$instance['custom2icon'] = strip_tags( $new_instance['custom2icon'] );
|
464 |
-
$instance['
|
465 |
$instance['custom3name'] = strip_tags( $new_instance['custom3name'] );
|
466 |
$instance['custom3icon'] = strip_tags( $new_instance['custom3icon'] );
|
467 |
-
$instance['
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
468 |
$instance['rss_url'] = strip_tags( $new_instance['rss_url'] );
|
469 |
$instance['subscribe'] = strip_tags( $new_instance['subscribe'] );
|
470 |
$instance['icon_size'] = $new_instance['icon_size'];
|
@@ -473,6 +537,7 @@ class Social_Widget extends WP_Widget {
|
|
473 |
$instance['icon_opacity'] = $new_instance['icon_opacity'];
|
474 |
$instance['newtab'] = $new_instance['newtab'];
|
475 |
$instance['nofollow'] = $new_instance['nofollow'];
|
|
|
476 |
|
477 |
return $instance;
|
478 |
}
|
@@ -486,7 +551,8 @@ class Social_Widget extends WP_Widget {
|
|
486 |
|
487 |
/* Set up some default widget settings. */
|
488 |
$defaults = array(
|
489 |
-
'title' => __('Follow Us!', '
|
|
|
490 |
'facebook' => __('http://www.facebook.com/your_name', 'smw'),
|
491 |
'twitter' => __('http://www.twitter.com/yourname', 'smw'),
|
492 |
'myspace' => __('http://www.myspace.com/yourname', 'smw'),
|
@@ -502,7 +568,7 @@ class Social_Widget extends WP_Widget {
|
|
502 |
'reddit' => __('http://www.reddit.com/user/yourname', 'smw'),
|
503 |
'delicious' => __('http://delicious.com/yourname', 'smw'),
|
504 |
'stumble' => __('http://www.stumbleupon.com/stumbler/yourname', 'smw'),
|
505 |
-
'tumblr' => __('', 'smw'),
|
506 |
'buzz' => __('http://www.google.com/profiles/yourname#buzz', 'smw'),
|
507 |
'vimeo' => __('http://www.vimeo.com/yourname', 'smw'),
|
508 |
'blogger' => __('http://www.blogger.com/profile/youridnumber', 'smw'),
|
@@ -513,13 +579,14 @@ class Social_Widget extends WP_Widget {
|
|
513 |
'meetup' => __('http://www.meetup.com/your-group', 'smw'),
|
514 |
'tungle' => __('', 'smw'),
|
515 |
'plancast' => __('', 'smw'),
|
516 |
-
'slideshare' => __('', 'smw'),
|
517 |
-
'deviantart' => __('', 'smw'),
|
|
|
518 |
'digitaltunes' => __('http://www.digital-tunes.net/user_profile/yourname', 'smw'),
|
519 |
'soundcloud' => __('http://www.soundcloud.com/your-name', 'smw'),
|
520 |
-
'etsy' => __('', 'smw'),
|
521 |
-
'bbb' => __('', 'smw'),
|
522 |
-
'merchantcircle' => __('', 'smw'),
|
523 |
'custom1name' => __('', 'smw'),
|
524 |
'custom1icon' => __('', 'smw'),
|
525 |
'custom1url' => __('', 'smw'),
|
@@ -529,12 +596,22 @@ class Social_Widget extends WP_Widget {
|
|
529 |
'custom3name' => __('', 'smw'),
|
530 |
'custom3icon' => __('', 'smw'),
|
531 |
'custom3url' => __('', 'smw'),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
532 |
'rss_url' => __('http://www.yoursite.com/feed', 'smw'),
|
533 |
'icon_size' => 'default',
|
534 |
'icon_pack' => 'default',
|
535 |
'icon_opacity' => 'default',
|
536 |
'newtab' => 'yes',
|
537 |
-
'nofollow' => 'on'
|
|
|
538 |
|
539 |
$instance = wp_parse_args( (array) $instance, $defaults ); ?>
|
540 |
<p>
|
@@ -547,6 +624,12 @@ class Social_Widget extends WP_Widget {
|
|
547 |
<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Title:', 'smw'); ?></label>
|
548 |
<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%;" />
|
549 |
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
550 |
|
551 |
<!-- Facebook URL: Text Input -->
|
552 |
<p>
|
@@ -686,8 +769,7 @@ class Social_Widget extends WP_Widget {
|
|
686 |
<label for="<?php echo $this->get_field_id( 'foursquare' ); ?>"><?php _e('Foursquare URL:', 'smw'); ?></label>
|
687 |
<input id="<?php echo $this->get_field_id( 'foursquare' ); ?>" name="<?php echo $this->get_field_name( 'foursquare' ); ?>" value="<?php echo $instance['foursquare']; ?>" style="width:85%;" />
|
688 |
</p>
|
689 |
-
|
690 |
-
<div style="width: 48%; float: right; border-left: 1px solid #000; padding-left: 20px;">
|
691 |
<!-- Meetup URL: Text Input -->
|
692 |
<p>
|
693 |
<label for="<?php echo $this->get_field_id( 'meetup' ); ?>"><?php _e('Meetup URL:', 'smw'); ?></label>
|
@@ -711,13 +793,20 @@ class Social_Widget extends WP_Widget {
|
|
711 |
<label for="<?php echo $this->get_field_id( 'slideshare' ); ?>"><?php _e('SlideShare URL:', 'smw'); ?></label>
|
712 |
<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%;" />
|
713 |
</p>
|
714 |
-
|
|
|
715 |
<!-- DeviantArt URL: Text Input -->
|
716 |
<p>
|
717 |
<label for="<?php echo $this->get_field_id( 'deviantart' ); ?>"><?php _e('DeviantArt URL:', 'smw'); ?></label>
|
718 |
<input id="<?php echo $this->get_field_id( 'deviantart' ); ?>" name="<?php echo $this->get_field_name( 'deviantart' ); ?>" value="<?php echo $instance['deviantart']; ?>" style="width:85%;" />
|
719 |
</p>
|
720 |
|
|
|
|
|
|
|
|
|
|
|
|
|
721 |
<!-- Digital Tunes URL: Text Input -->
|
722 |
<p>
|
723 |
<label for="<?php echo $this->get_field_id( 'digitaltunes' ); ?>"><?php _e('Digital Tunes URL:', 'smw'); ?></label>
|
@@ -747,7 +836,7 @@ class Social_Widget extends WP_Widget {
|
|
747 |
<label for="<?php echo $this->get_field_id( 'merchantcircle' ); ?>"><?php _e('Merchant Circle URL:', 'smw'); ?></label>
|
748 |
<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%;" />
|
749 |
</p>
|
750 |
-
<p><em>Here you can input
|
751 |
<!-- Custom Service 1: Text Input -->
|
752 |
<p>
|
753 |
<label for="<?php echo $this->get_field_id( 'custom1name' ); ?>"><?php _e('Custom Service 1 Name:', 'smw'); ?></label>
|
@@ -778,6 +867,36 @@ class Social_Widget extends WP_Widget {
|
|
778 |
<input id="<?php echo $this->get_field_id( 'custom3url' ); ?>" name="<?php echo $this->get_field_name( 'custom3url' ); ?>" value="<?php echo $instance['custom3url']; ?>" style="width:85%;" />
|
779 |
</p>
|
780 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
781 |
<!-- RSS URL: Text Input -->
|
782 |
<p>
|
783 |
<label for="<?php echo $this->get_field_id( 'rss_url' ); ?>"><?php _e('RSS URL:', 'smw'); ?></label>
|
@@ -810,6 +929,7 @@ class Social_Widget extends WP_Widget {
|
|
810 |
<option value="heart" <?php if($instance['icon_pack'] == 'heart') { echo 'selected'; } ?>>Heart Icons</option>
|
811 |
<option value="default" <?php if($instance['icon_pack'] == 'default') { echo 'selected'; } ?>>Default Icons (Web2.0)</option>
|
812 |
<option value="sketch" <?php if($instance['icon_pack'] == 'sketch') { echo 'selected'; } ?>>Sketch Icons</option>
|
|
|
813 |
</select>
|
814 |
</p>
|
815 |
|
@@ -857,6 +977,17 @@ class Social_Widget extends WP_Widget {
|
|
857 |
<option value="no" <?php if($instance['newtab'] == 'no') { echo 'selected'; } ?>>No</option>
|
858 |
</select>
|
859 |
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
860 |
</div>
|
861 |
<div style="clear: both;"></div>
|
862 |
<!-- Donate -->
|
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 |
**/
|
50 |
/* Display the widget */
|
51 |
function widget( $args, $instance ) {
|
52 |
extract( $args );
|
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'];
|
59 |
$myspace = $instance['myspace'];
|
82 |
$plancast = $instance['plancast'];
|
83 |
$slideshare = $instance['slideshare'];
|
84 |
$deviantart = $instance['deviantart'];
|
85 |
+
$live365 = $instance['live365'];
|
86 |
$digitaltunes = $instance['digitaltunes'];
|
87 |
$soundcloud = $instance['soundcloud'];
|
88 |
$etsy = $instance['etsy'];
|
96 |
$icon_opacity = $instance['icon_opacity'];
|
97 |
$newtab = $instance['newtab'];
|
98 |
$nofollow = $instance['nofollow'];
|
99 |
+
$alignment = $instance['alignment'];
|
100 |
$custom1icon = $instance['custom1icon'];
|
101 |
$custom2icon = $instance['custom2icon'];
|
102 |
$custom3icon = $instance['custom3icon'];
|
103 |
+
$custom4icon = $instance['custom4icon'];
|
104 |
+
$custom5icon = $instance['custom5icon'];
|
105 |
+
$custom6icon = $instance['custom6icon'];
|
106 |
$custom1name = $instance['custom1name'];
|
107 |
$custom2name = $instance['custom2name'];
|
108 |
$custom3name = $instance['custom3name'];
|
109 |
+
$custom4name = $instance['custom4name'];
|
110 |
+
$custom5name = $instance['custom5name'];
|
111 |
+
$custom6name = $instance['custom6name'];
|
112 |
$custom1url = $instance['custom1url'];
|
113 |
$custom2url = $instance['custom2url'];
|
114 |
$custom3url = $instance['custom3url'];
|
115 |
+
$custom4url = $instance['custom4url'];
|
116 |
+
$custom5url = $instance['custom5url'];
|
117 |
+
$custom6url = $instance['custom6url'];
|
118 |
|
119 |
+
|
120 |
/* Choose Icon Size if Value is 'default' */
|
121 |
if($icon_size == 'default') {
|
122 |
$icon_size = '32';
|
136 |
} else {
|
137 |
$nofollow = '';
|
138 |
}
|
139 |
+
|
140 |
+
|
141 |
/* Check to see if New Tab is set to yes */
|
142 |
if ($newtab == 'yes') {
|
143 |
$newtab = "target=\"_blank\"";
|
145 |
$newtab = '';
|
146 |
}
|
147 |
|
148 |
+
/* Set alignment */
|
149 |
+
if ($alignment == 'centered') {
|
150 |
+
$alignment = 'smw_center';
|
151 |
+
} elseif ($alignment == 'right') {
|
152 |
+
$alignment = 'smw_right';
|
153 |
+
} else {
|
154 |
+
$alignment = 'smw_left';
|
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 |
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 |
}
|
410 |
|
411 |
// Custom Icon 1
|
412 |
if ( $custom1url != '' && $custom1name != '' && $custom1icon != '' ) {
|
413 |
+
?><a href="<?php echo $custom1url; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $custom1icon; ?>"alt="<?php echo $imgcaption; ?> <?php echo $custom1name; ?>"title="<?php echo $imgcaption; ?> <?php echo $custom1name; ?>" <?php if($animation == 'fade' || $animation == 'combo') { ?> style="opacity: <?php echo $icon_opacity; ?>; -moz-opacity: <?php echo $icon_opacity;?>;" <?php } ?>class="<?php echo $animation; ?>" width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" /></a><?php
|
414 |
} else {
|
415 |
echo ''; //If no URL inputed
|
416 |
}
|
417 |
|
418 |
// Custom Icon 2
|
419 |
if ( $custom2url != '' && $custom2name != '' && $custom2icon != '' ) {
|
420 |
+
?><a href="<?php echo $custom2url; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $custom2icon; ?>"alt="<?php echo $imgcaption; ?> <?php echo $custom2name; ?>"title="<?php echo $imgcaption; ?> <?php echo $custom2name; ?>" <?php if($animation == 'fade' || $animation == 'combo') { ?> style="opacity: <?php echo $icon_opacity; ?>; -moz-opacity: <?php echo $icon_opacity;?>;" <?php } ?>class="<?php echo $animation; ?>" width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" /></a><?php
|
421 |
} else {
|
422 |
echo ''; //If no URL inputed
|
423 |
}
|
424 |
|
425 |
// Custom Icon 3
|
426 |
if ( $custom3url != '' && $custom3name != '' && $custom3icon != '' ) {
|
427 |
+
?><a href="<?php echo $custom3url; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $custom3icon; ?>"alt="<?php echo $imgcaption; ?> <?php echo $custom3name; ?>"title="<?php echo $imgcaption; ?> <?php echo $custom3name; ?>" <?php if($animation == 'fade' || $animation == 'combo') { ?> style="opacity: <?php echo $icon_opacity; ?>; -moz-opacity: <?php echo $icon_opacity;?>;" <?php } ?>class="<?php echo $animation; ?>" width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" /></a><?php
|
428 |
+
} else {
|
429 |
+
echo ''; //If no URL inputed
|
430 |
+
}
|
431 |
+
|
432 |
+
// Custom Icon 4
|
433 |
+
if ( $custom4url != '' && $custom4name != '' && $custom4icon != '' ) {
|
434 |
+
?><a href="<?php echo $custom4url; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $custom4icon; ?>"alt="<?php echo $imgcaption; ?> <?php echo $custom4name; ?>"title="<?php echo $imgcaption; ?> <?php echo $custom4name; ?>" <?php if($animation == 'fade' || $animation == 'combo') { ?> style="opacity: <?php echo $icon_opacity; ?>; -moz-opacity: <?php echo $icon_opacity;?>;" <?php } ?>class="<?php echo $animation; ?>" width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" /></a><?php
|
435 |
+
} else {
|
436 |
+
echo ''; //If no URL inputed
|
437 |
+
}
|
438 |
+
|
439 |
+
// Custom Icon 5
|
440 |
+
if ( $custom5url != '' && $custom5name != '' && $custom5icon != '' ) {
|
441 |
+
?><a href="<?php echo $custom5url; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $custom5icon; ?>"alt="<?php echo $imgcaption; ?> <?php echo $custom5name; ?>"title="<?php echo $imgcaption; ?> <?php echo $custom5name; ?>" <?php if($animation == 'fade' || $animation == 'combo') { ?> style="opacity: <?php echo $icon_opacity; ?>; -moz-opacity: <?php echo $icon_opacity;?>;" <?php } ?>class="<?php echo $animation; ?>" width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" /></a><?php
|
442 |
+
} else {
|
443 |
+
echo ''; //If no URL inputed
|
444 |
+
}
|
445 |
+
|
446 |
+
// Custom Icon 6
|
447 |
+
if ( $custom6url != '' && $custom6name != '' && $custom6icon != '' ) {
|
448 |
+
?><a href="<?php echo $custom6url; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img src="<?php echo $custom6icon; ?>"alt="<?php echo $imgcaption; ?> <?php echo $custom6name; ?>"title="<?php echo $imgcaption; ?> <?php echo $custom6name; ?>" <?php if($animation == 'fade' || $animation == 'combo') { ?> style="opacity: <?php echo $icon_opacity; ?>; -moz-opacity: <?php echo $icon_opacity;?>;" <?php } ?>class="<?php echo $animation; ?>" width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" /></a><?php
|
449 |
} else {
|
450 |
echo ''; //If no URL inputed
|
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 |
|
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'] );
|
482 |
$instance['myspace'] = strip_tags( $new_instance['myspace'] );
|
505 |
$instance['plancast'] = strip_tags( $new_instance['plancast'] );
|
506 |
$instance['slideshare'] = strip_tags( $new_instance['slideshare'] );
|
507 |
$instance['deviantart'] = strip_tags( $new_instance['deviantart'] );
|
508 |
+
$instance['live365'] = strip_tags( $new_instance['live365'] );
|
509 |
$instance['digitaltunes'] = strip_tags( $new_instance['digitaltunes'] );
|
510 |
$instance['soundcloud'] = strip_tags( $new_instance['soundcloud'] );
|
511 |
$instance['etsy'] = strip_tags( $new_instance['etsy'] );
|
516 |
$instance['custom1url'] = strip_tags( $new_instance['custom1url'] );
|
517 |
$instance['custom2name'] = strip_tags( $new_instance['custom2name'] );
|
518 |
$instance['custom2icon'] = strip_tags( $new_instance['custom2icon'] );
|
519 |
+
$instance['custom2url'] = strip_tags( $new_instance['custom2url'] );
|
520 |
$instance['custom3name'] = strip_tags( $new_instance['custom3name'] );
|
521 |
$instance['custom3icon'] = strip_tags( $new_instance['custom3icon'] );
|
522 |
+
$instance['custom3url'] = strip_tags( $new_instance['custom3url'] );
|
523 |
+
$instance['custom4name'] = strip_tags( $new_instance['custom4name'] );
|
524 |
+
$instance['custom4icon'] = strip_tags( $new_instance['custom4icon'] );
|
525 |
+
$instance['custom4url'] = strip_tags( $new_instance['custom4url'] );
|
526 |
+
$instance['custom5name'] = strip_tags( $new_instance['custom5name'] );
|
527 |
+
$instance['custom5icon'] = strip_tags( $new_instance['custom5icon'] );
|
528 |
+
$instance['custom5url'] = strip_tags( $new_instance['custom5url'] );
|
529 |
+
$instance['custom6name'] = strip_tags( $new_instance['custom6name'] );
|
530 |
+
$instance['custom6icon'] = strip_tags( $new_instance['custom6icon'] );
|
531 |
+
$instance['custom6url'] = strip_tags( $new_instance['custom6url'] );
|
532 |
$instance['rss_url'] = strip_tags( $new_instance['rss_url'] );
|
533 |
$instance['subscribe'] = strip_tags( $new_instance['subscribe'] );
|
534 |
$instance['icon_size'] = $new_instance['icon_size'];
|
537 |
$instance['icon_opacity'] = $new_instance['icon_opacity'];
|
538 |
$instance['newtab'] = $new_instance['newtab'];
|
539 |
$instance['nofollow'] = $new_instance['nofollow'];
|
540 |
+
$instance['alignment'] = $new_instance['alignment'];
|
541 |
|
542 |
return $instance;
|
543 |
}
|
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'),
|
558 |
'myspace' => __('http://www.myspace.com/yourname', 'smw'),
|
568 |
'reddit' => __('http://www.reddit.com/user/yourname', 'smw'),
|
569 |
'delicious' => __('http://delicious.com/yourname', 'smw'),
|
570 |
'stumble' => __('http://www.stumbleupon.com/stumbler/yourname', 'smw'),
|
571 |
+
'tumblr' => __('http://yourname.tumblr.com', 'smw'),
|
572 |
'buzz' => __('http://www.google.com/profiles/yourname#buzz', 'smw'),
|
573 |
'vimeo' => __('http://www.vimeo.com/yourname', 'smw'),
|
574 |
'blogger' => __('http://www.blogger.com/profile/youridnumber', 'smw'),
|
579 |
'meetup' => __('http://www.meetup.com/your-group', 'smw'),
|
580 |
'tungle' => __('', 'smw'),
|
581 |
'plancast' => __('', 'smw'),
|
582 |
+
'slideshare' => __('http://www.slideshare.net/nolimit2it/yourname', 'smw'),
|
583 |
+
'deviantart' => __('http://yourname.deviantart.com/', 'smw'),
|
584 |
+
'live365' => __('', 'smw'),
|
585 |
'digitaltunes' => __('http://www.digital-tunes.net/user_profile/yourname', 'smw'),
|
586 |
'soundcloud' => __('http://www.soundcloud.com/your-name', 'smw'),
|
587 |
+
'etsy' => __('http://www.etsy.com/people/yourname', 'smw'),
|
588 |
+
'bbb' => __('http://www.bbb.org/location/business-reviews/service/yourname', 'smw'),
|
589 |
+
'merchantcircle' => __('http://www.merchantcircle.com/business/Your.Name.Number', 'smw'),
|
590 |
'custom1name' => __('', 'smw'),
|
591 |
'custom1icon' => __('', 'smw'),
|
592 |
'custom1url' => __('', 'smw'),
|
596 |
'custom3name' => __('', 'smw'),
|
597 |
'custom3icon' => __('', 'smw'),
|
598 |
'custom3url' => __('', 'smw'),
|
599 |
+
'custom4name' => __('', 'smw'),
|
600 |
+
'custom4icon' => __('', 'smw'),
|
601 |
+
'custom4url' => __('', 'smw'),
|
602 |
+
'custom5name' => __('', 'smw'),
|
603 |
+
'custom5icon' => __('', 'smw'),
|
604 |
+
'custom5url' => __('', 'smw'),
|
605 |
+
'custom6name' => __('', 'smw'),
|
606 |
+
'custom6icon' => __('', 'smw'),
|
607 |
+
'custom6url' => __('', 'smw'),
|
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',
|
614 |
+
'alignment' => 'left');
|
615 |
|
616 |
$instance = wp_parse_args( (array) $instance, $defaults ); ?>
|
617 |
<p>
|
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>
|
631 |
+
<input id="<?php echo $this->get_field_id( 'imgcaption' ); ?>" name="<?php echo $this->get_field_name( 'imgcaption' ); ?>" value="<?php echo $instance['imgcaption']; ?>" style="width:85%;" />
|
632 |
+
</p>
|
633 |
|
634 |
<!-- Facebook URL: Text Input -->
|
635 |
<p>
|
769 |
<label for="<?php echo $this->get_field_id( 'foursquare' ); ?>"><?php _e('Foursquare URL:', 'smw'); ?></label>
|
770 |
<input id="<?php echo $this->get_field_id( 'foursquare' ); ?>" name="<?php echo $this->get_field_name( 'foursquare' ); ?>" value="<?php echo $instance['foursquare']; ?>" style="width:85%;" />
|
771 |
</p>
|
772 |
+
|
|
|
773 |
<!-- Meetup URL: Text Input -->
|
774 |
<p>
|
775 |
<label for="<?php echo $this->get_field_id( 'meetup' ); ?>"><?php _e('Meetup URL:', 'smw'); ?></label>
|
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>
|
801 |
<input id="<?php echo $this->get_field_id( 'deviantart' ); ?>" name="<?php echo $this->get_field_name( 'deviantart' ); ?>" value="<?php echo $instance['deviantart']; ?>" style="width:85%;" />
|
802 |
</p>
|
803 |
|
804 |
+
<!-- Live365 URL: Text Input -->
|
805 |
+
<p>
|
806 |
+
<label for="<?php echo $this->get_field_id( 'live365' ); ?>"><?php _e('Live365 URL:', 'smw'); ?></label>
|
807 |
+
<input id="<?php echo $this->get_field_id( 'live365' ); ?>" name="<?php echo $this->get_field_name( 'live365' ); ?>" value="<?php echo $instance['live365']; ?>" style="width:85%;" />
|
808 |
+
</p>
|
809 |
+
|
810 |
<!-- Digital Tunes URL: Text Input -->
|
811 |
<p>
|
812 |
<label for="<?php echo $this->get_field_id( 'digitaltunes' ); ?>"><?php _e('Digital Tunes URL:', 'smw'); ?></label>
|
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>
|
867 |
<input id="<?php echo $this->get_field_id( 'custom3url' ); ?>" name="<?php echo $this->get_field_name( 'custom3url' ); ?>" value="<?php echo $instance['custom3url']; ?>" style="width:85%;" />
|
868 |
</p>
|
869 |
|
870 |
+
<!-- Custom Service 4: Text Input -->
|
871 |
+
<p>
|
872 |
+
<label for="<?php echo $this->get_field_id( 'custom4name' ); ?>"><?php _e('Custom Service 4 Name:', 'smw'); ?></label>
|
873 |
+
<input id="<?php echo $this->get_field_id( 'custom4name' ); ?>" name="<?php echo $this->get_field_name( 'custom4name' ); ?>" value="<?php echo $instance['custom4name']; ?>" style="width:85%;" />
|
874 |
+
<label for="<?php echo $this->get_field_id( 'custom4icon' ); ?>"><?php _e('Custom Service 4 Icon URL:', 'smw'); ?></label>
|
875 |
+
<input id="<?php echo $this->get_field_id( 'custom4icon' ); ?>" name="<?php echo $this->get_field_name( 'custom4icon' ); ?>" value="<?php echo $instance['custom4icon']; ?>" style="width:85%;" />
|
876 |
+
<label for="<?php echo $this->get_field_id( 'custom4url' ); ?>"><?php _e('Custom Service 4 Profile URL:', 'smw'); ?></label>
|
877 |
+
<input id="<?php echo $this->get_field_id( 'custom4url' ); ?>" name="<?php echo $this->get_field_name( 'custom4url' ); ?>" value="<?php echo $instance['custom4url']; ?>" style="width:85%;" />
|
878 |
+
</p>
|
879 |
+
|
880 |
+
<!-- Custom Service 5: Text Input -->
|
881 |
+
<p>
|
882 |
+
<label for="<?php echo $this->get_field_id( 'custom5name' ); ?>"><?php _e('Custom Service 5 Name:', 'smw'); ?></label>
|
883 |
+
<input id="<?php echo $this->get_field_id( 'custom5name' ); ?>" name="<?php echo $this->get_field_name( 'custom5name' ); ?>" value="<?php echo $instance['custom5name']; ?>" style="width:85%;" />
|
884 |
+
<label for="<?php echo $this->get_field_id( 'custom5icon' ); ?>"><?php _e('Custom Service 5 Icon URL:', 'smw'); ?></label>
|
885 |
+
<input id="<?php echo $this->get_field_id( 'custom5icon' ); ?>" name="<?php echo $this->get_field_name( 'custom5icon' ); ?>" value="<?php echo $instance['custom5icon']; ?>" style="width:85%;" />
|
886 |
+
<label for="<?php echo $this->get_field_id( 'custom5url' ); ?>"><?php _e('Custom Service 5 Profile URL:', 'smw'); ?></label>
|
887 |
+
<input id="<?php echo $this->get_field_id( 'custom5url' ); ?>" name="<?php echo $this->get_field_name( 'custom5url' ); ?>" value="<?php echo $instance['custom5url']; ?>" style="width:85%;" />
|
888 |
+
</p>
|
889 |
+
|
890 |
+
<!-- Custom Service 6: Text Input -->
|
891 |
+
<p>
|
892 |
+
<label for="<?php echo $this->get_field_id( 'custom6name' ); ?>"><?php _e('Custom Service 6 Name:', 'smw'); ?></label>
|
893 |
+
<input id="<?php echo $this->get_field_id( 'custom6name' ); ?>" name="<?php echo $this->get_field_name( 'custom6name' ); ?>" value="<?php echo $instance['custom6name']; ?>" style="width:85%;" />
|
894 |
+
<label for="<?php echo $this->get_field_id( 'custom6icon' ); ?>"><?php _e('Custom Service 6 Icon URL:', 'smw'); ?></label>
|
895 |
+
<input id="<?php echo $this->get_field_id( 'custom6icon' ); ?>" name="<?php echo $this->get_field_name( 'custom6icon' ); ?>" value="<?php echo $instance['custom6icon']; ?>" style="width:85%;" />
|
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>
|
929 |
<option value="heart" <?php if($instance['icon_pack'] == 'heart') { echo 'selected'; } ?>>Heart Icons</option>
|
930 |
<option value="default" <?php if($instance['icon_pack'] == 'default') { echo 'selected'; } ?>>Default Icons (Web2.0)</option>
|
931 |
<option value="sketch" <?php if($instance['icon_pack'] == 'sketch') { echo 'selected'; } ?>>Sketch Icons</option>
|
932 |
+
<option value="custom" <?php if($instance['icon_pack'] == 'custom') { echo 'selected'; } ?>>Custom Icons</option>
|
933 |
</select>
|
934 |
</p>
|
935 |
|
977 |
<option value="no" <?php if($instance['newtab'] == 'no') { echo 'selected'; } ?>>No</option>
|
978 |
</select>
|
979 |
</p>
|
980 |
+
|
981 |
+
<!-- Alignment: Dropdown -->
|
982 |
+
<p>
|
983 |
+
<label for="<?php echo $this->get_field_id( 'alignment' ); ?>"><?php _e('Icon Alignment', 'smw'); ?></label>
|
984 |
+
<select id="<?php echo $this->get_field_id( 'alignment' ); ?>" name="<?php echo $this->get_field_name( 'alignment' ); ?>">
|
985 |
+
<option value="left" <?php if($instance['alignment'] == 'left') { echo 'selected'; } ?>>Left</option>
|
986 |
+
<option value="centered" <?php if($instance['alignment'] == 'centered') { echo 'selected'; } ?>>Centered</option>
|
987 |
+
<option value="right" <?php if($instance['alignment'] == 'right') { echo 'selected'; } ?>>Right</option>
|
988 |
+
</select>
|
989 |
+
</p>
|
990 |
+
|
991 |
</div>
|
992 |
<div style="clear: both;"></div>
|
993 |
<!-- Donate -->
|
social_widget.css
CHANGED
@@ -4,6 +4,18 @@
|
|
4 |
margin-top: 5px 0 0 0;
|
5 |
}
|
6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
li.Social_Widget a {
|
8 |
padding: 0 !important;
|
9 |
margin: 0 !important;
|
4 |
margin-top: 5px 0 0 0;
|
5 |
}
|
6 |
|
7 |
+
.smw_left {
|
8 |
+
text-align: left;
|
9 |
+
}
|
10 |
+
|
11 |
+
.smw_center {
|
12 |
+
text-align: center;
|
13 |
+
}
|
14 |
+
|
15 |
+
.smw_right {
|
16 |
+
text-align: right;
|
17 |
+
}
|
18 |
+
|
19 |
li.Social_Widget a {
|
20 |
padding: 0 !important;
|
21 |
margin: 0 !important;
|