Version Description
- Bug fix
Download this release
Release Info
Developer | bmwebproperties |
Plugin | Social Media Widget |
Version | 3.0.1 |
Comparing to | |
See all releases |
Code changes from version 2.9.8 to 3.0.1
- readme.txt +12 -1
- social-widget.php +639 -1079
- social_widget.css +23 -2
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: bmwebproperties
|
|
3 |
Tags: social media, twitter, facebook, google+, googleplus, myspace, digg, email, rss, reddit, linkedin, orkut, youtube, buzz, social, icons, links, subscribe, follow, follow me, friendfeed, flickr, stumbleupon, vimeo, delicious, meetup, lastfm, foursquare, skype, blogger, wordpress, yelp, soundcloud, digital tunes, tumblr, hyves, etsy, tungle, plancast, slideshare, deviantart, better business bureau, merchant circle, asmallworld, live365, ping, itunes, picasa, steam, google talk, pandora, hulu, ebay, flixster, imdb, bandcamp, ustream, pinterest
|
4 |
Requires at least: 2.9.2
|
5 |
Tested up to: 3.5
|
6 |
-
Stable tag:
|
7 |
|
8 |
Adds links to all of your social media and sharing site profiles. Tons of icons come in 3 sizes, 4 icon styles, and 4 animations.
|
9 |
|
@@ -169,6 +169,17 @@ Please add a post on the Wordpress.org support forums with the plugin tagged.
|
|
169 |
|
170 |
== Changelog ==
|
171 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
172 |
= 2.9.8 =
|
173 |
|
174 |
* Added support for About.me, Cuttings.me, Instagram, Goodreads, Slashdot, and Github
|
3 |
Tags: social media, twitter, facebook, google+, googleplus, myspace, digg, email, rss, reddit, linkedin, orkut, youtube, buzz, social, icons, links, subscribe, follow, follow me, friendfeed, flickr, stumbleupon, vimeo, delicious, meetup, lastfm, foursquare, skype, blogger, wordpress, yelp, soundcloud, digital tunes, tumblr, hyves, etsy, tungle, plancast, slideshare, deviantart, better business bureau, merchant circle, asmallworld, live365, ping, itunes, picasa, steam, google talk, pandora, hulu, ebay, flixster, imdb, bandcamp, ustream, pinterest
|
4 |
Requires at least: 2.9.2
|
5 |
Tested up to: 3.5
|
6 |
+
Stable tag: 3.0.1
|
7 |
|
8 |
Adds links to all of your social media and sharing site profiles. Tons of icons come in 3 sizes, 4 icon styles, and 4 animations.
|
9 |
|
169 |
|
170 |
== Changelog ==
|
171 |
|
172 |
+
= 3.0.1 =
|
173 |
+
|
174 |
+
* Bug fix
|
175 |
+
|
176 |
+
= 3.0 =
|
177 |
+
|
178 |
+
* Made admin panel more condensed and user-friendly
|
179 |
+
* Added support for up to 12 custom services
|
180 |
+
* Added option to set the number of icons per row to '1'
|
181 |
+
* Reorganized and simplified code
|
182 |
+
|
183 |
= 2.9.8 =
|
184 |
|
185 |
* Added support for About.me, Cuttings.me, Instagram, Goodreads, Slashdot, and Github
|
social-widget.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Social Media Widget
|
4 |
* Plugin URI: http://wordpress.org/extend/plugins/social-media-widget/
|
5 |
* Description: Adds links to all of your social media and sharing site profiles. Tons of icons come in 3 sizes, 4 icon styles, and 4 animations.
|
6 |
-
* Version:
|
7 |
* Author: Blink Web Effects
|
8 |
* Author URI: http://blinkwebeffects.com/
|
9 |
**/
|
@@ -40,10 +40,234 @@ class Social_Widget extends WP_Widget {
|
|
40 |
$widget_ops = array( 'classname' => 'Social_Widget', 'description' => __('A widget that allows the user to display social media icons in their sidebar', 'smw') );
|
41 |
|
42 |
/* Widget control settings. */
|
43 |
-
$control_ops = array( '
|
44 |
|
45 |
/* Create the widget. */
|
46 |
$this->WP_Widget( 'social-widget', __('Social Media Widget', 'smw'), $widget_ops, $control_ops );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
}
|
48 |
|
49 |
/* Display the widget */
|
@@ -53,136 +277,81 @@ class Social_Widget extends WP_Widget {
|
|
53 |
/* Our variables from the widget settings. */
|
54 |
$title = apply_filters('widget_title', $instance['title'] );
|
55 |
$text = apply_filters( 'widget_text', $instance['text'], $instance );
|
56 |
-
|
57 |
-
$
|
58 |
-
$
|
59 |
-
$
|
60 |
-
$
|
61 |
-
$
|
62 |
-
$
|
63 |
-
$
|
64 |
-
$
|
65 |
-
$
|
66 |
-
$
|
67 |
-
|
68 |
-
$
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
$
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
$talk = $instance['talk'];
|
78 |
-
$vimeo = $instance['vimeo'];
|
79 |
-
$blogger = $instance['blogger'];
|
80 |
-
$wordpress = $instance['wordpress'];
|
81 |
-
$yelp = $instance['yelp'];
|
82 |
-
$lastfm = $instance['lastfm'];
|
83 |
-
$pandora = $instance['pandora'];
|
84 |
-
$ustream = $instance['ustream'];
|
85 |
-
$imdb = $instance['imdb'];
|
86 |
-
$hulu = $instance['hulu'];
|
87 |
-
$flixster = $instance['flixster'];
|
88 |
-
$foursquare = $instance['foursquare'];
|
89 |
-
$meetup = $instance['meetup'];
|
90 |
-
$plancast = $instance['plancast'];
|
91 |
-
$slideshare = $instance['slideshare'];
|
92 |
-
$deviantart = $instance['deviantart'];
|
93 |
-
$ping = $instance['ping'];
|
94 |
-
$live365 = $instance['live365'];
|
95 |
-
$digitaltunes = $instance['digitaltunes'];
|
96 |
-
$soundcloud = $instance['soundcloud'];
|
97 |
-
$bandcamp = $instance['bandcamp'];
|
98 |
-
$etsy = $instance['etsy'];
|
99 |
-
$bbb = $instance['bbb'];
|
100 |
-
$merchantcircle = $instance['merchantcircle'];
|
101 |
-
$ebay = $instance['ebay'];
|
102 |
-
$steam = $instance['steam'];
|
103 |
-
$rss = $instance['rss_url'];
|
104 |
-
$subscribe = $instance['subscribe'];
|
105 |
-
$icon_size = $instance['icon_size'];
|
106 |
-
$icon_pack = $instance['icon_pack'];
|
107 |
$customiconsurl = $instance['customiconsurl'];
|
108 |
$customiconspath = $instance['customiconspath'];
|
109 |
-
$
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
$custom1icon = $instance['custom1icon'];
|
115 |
-
$custom2icon = $instance['custom2icon'];
|
116 |
-
$custom3icon = $instance['custom3icon'];
|
117 |
-
$custom4icon = $instance['custom4icon'];
|
118 |
-
$custom5icon = $instance['custom5icon'];
|
119 |
-
$custom6icon = $instance['custom6icon'];
|
120 |
-
$custom1name = $instance['custom1name'];
|
121 |
-
$custom2name = $instance['custom2name'];
|
122 |
-
$custom3name = $instance['custom3name'];
|
123 |
-
$custom4name = $instance['custom4name'];
|
124 |
-
$custom5name = $instance['custom5name'];
|
125 |
-
$custom6name = $instance['custom6name'];
|
126 |
-
$custom1url = $instance['custom1url'];
|
127 |
-
$custom2url = $instance['custom2url'];
|
128 |
-
$custom3url = $instance['custom3url'];
|
129 |
-
$custom4url = $instance['custom4url'];
|
130 |
-
$custom5url = $instance['custom5url'];
|
131 |
-
$custom6url = $instance['custom6url'];
|
132 |
|
133 |
-
$aboutme = $instance['aboutme'];
|
134 |
-
$instagram = $instance['instagram'];
|
135 |
-
$slashdot = $instance['slashdot'];
|
136 |
-
$github = $instance['github'];
|
137 |
-
$goodreads = $instance['goodreads'];
|
138 |
-
$cuttingsme = $instance['cuttingsme'];
|
139 |
-
|
140 |
|
141 |
/* Choose Icon Size if Value is 'default' */
|
142 |
-
if($icon_size == 'default') {
|
143 |
-
$icon_size = '32';
|
144 |
}
|
145 |
|
146 |
/* Choose icon opacity if Value is 'default' */
|
147 |
-
if($icon_opacity == 'default') {
|
148 |
-
$icon_opacity = '0.8';
|
149 |
}
|
150 |
|
151 |
/* Need to make opacity a whole number for IE styling filter() */
|
152 |
-
$icon_ie = $icon_opacity * 100;
|
153 |
|
154 |
/* Check to see if nofollow is set or not */
|
155 |
-
if ($nofollow == 'on') {
|
156 |
-
$nofollow = "rel=\"nofollow\"";
|
157 |
} else {
|
158 |
-
$nofollow = '';
|
159 |
}
|
160 |
|
161 |
|
162 |
/* Check to see if New Tab is set to yes */
|
163 |
-
if ($newtab == 'yes') {
|
164 |
-
$newtab = "target=\"_blank\"";
|
165 |
} else {
|
166 |
-
$newtab = '';
|
167 |
}
|
168 |
|
169 |
/* Set alignment */
|
170 |
if ($alignment == 'centered') {
|
171 |
$alignment = 'smw_center';
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
|
178 |
/* Get Plugin Path */
|
179 |
if($icon_pack == 'custom') {
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
|
187 |
/* Before widget (defined by themes). */
|
188 |
echo $before_widget;
|
@@ -193,441 +362,68 @@ class Social_Widget extends WP_Widget {
|
|
193 |
|
194 |
|
195 |
|
196 |
-
echo "<div class=\"socialmedia-buttons ".$alignment."\">";
|
197 |
/* Display short description */
|
198 |
|
199 |
if ( $text )
|
200 |
echo "<div class=\"socialmedia-text\>" . $instance['filter'] ? wpautop($text) : $text . '</div>';
|
201 |
|
202 |
/* Display linked images to profiles from widget settings if one was input. */
|
203 |
-
|
204 |
-
|
205 |
-
if ( $facebook != '' && $facebook != ' ' && file_exists($smw_dir.'/facebook.png')) {
|
206 |
-
?><a href="<?php echo $facebook; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/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
|
207 |
-
} else {
|
208 |
-
echo ''; //If no URL inputed
|
209 |
-
}
|
210 |
-
|
211 |
-
// Google Plus
|
212 |
-
if ( $googleplus != '' && $googleplus != ' ' && file_exists($smw_dir.'/googleplus.png')) {
|
213 |
-
?><a href="<?php echo $googleplus; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/googleplus.png" alt="<?php echo $imgcaption; ?> Google+" title="<?php echo $imgcaption ?> Google+" <?php if($animation == 'fade' || $animation == 'combo') { ?> style="opacity: <?php echo $icon_opacity; ?>; -moz-opacity: <?php echo $icon_opacity;?>;" <?php } ?>class="<?php echo $animation; ?>" /></a><?php
|
214 |
-
} else {
|
215 |
-
echo ''; //If no URL inputed
|
216 |
-
}
|
217 |
-
|
218 |
-
// Twitter
|
219 |
-
if ( $twitter != '' && $twitter != ' ' && file_exists($smw_dir.'/twitter.png')) {
|
220 |
-
?><a href="<?php echo $twitter; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/twitter.png" alt="<?php echo $imgcaption; ?> Twitter" title="<?php echo $imgcaption; ?> Twitter" <?php if($animation == 'fade' || $animation == 'combo') { ?> style="opacity: <?php echo $icon_opacity; ?>; -moz-opacity: <?php echo $icon_opacity;?>;" <?php } ?>class="<?php echo $animation; ?>" /></a><?php
|
221 |
-
} else {
|
222 |
-
echo ''; //If no URL inputed
|
223 |
-
}
|
224 |
|
225 |
-
|
226 |
-
|
227 |
-
if ( $myspace != '' && $myspace != ' ' && file_exists($smw_dir.'/myspace.png')) {
|
228 |
-
?><a href="<?php echo $myspace; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/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
|
229 |
-
} else {
|
230 |
-
echo ''; //If no URL inputed
|
231 |
-
}
|
232 |
-
|
233 |
-
// FriendFeed
|
234 |
-
if ( $friendfeed != '' && $friendfeed != ' ' && file_exists($smw_dir.'/friendfeed.png')) {
|
235 |
-
?><a href="<?php echo $friendfeed; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/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
|
236 |
-
} else {
|
237 |
-
echo ''; //If no URL inputed
|
238 |
-
}
|
239 |
-
|
240 |
-
// Orkut
|
241 |
-
if ( $orkut != '' && $orkut != ' ' && file_exists($smw_dir.'/orkut.png')) {
|
242 |
-
?><a href="<?php echo $orkut; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/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
|
243 |
-
} else {
|
244 |
-
echo ''; //If no URL inputed
|
245 |
-
}
|
246 |
-
|
247 |
-
// Hyves
|
248 |
-
if ( $hyves != '' && $hyves != ' ' && file_exists($smw_dir.'/hyves.png')) {
|
249 |
-
?><a href="<?php echo $hyves; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/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
|
250 |
-
} else {
|
251 |
-
echo ''; //If no URL inputed
|
252 |
-
}
|
253 |
-
|
254 |
-
// LinkedIN
|
255 |
-
if ( $linkedin != '' && $linkedin != ' ' && file_exists($smw_dir.'/linkedin.png')) {
|
256 |
-
?><a href="<?php echo $linkedin; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/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
|
257 |
-
} else {
|
258 |
-
echo ''; //If no URL inputed
|
259 |
-
}
|
260 |
-
|
261 |
-
// aSmallWorld
|
262 |
-
if ( $asmallworld != '' && $asmallworld != ' ' && file_exists($smw_dir.'/asmallworld.png')) {
|
263 |
-
?><a href="<?php echo $asmallworld; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/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
|
264 |
-
} else {
|
265 |
-
echo ''; //If no URL inputed
|
266 |
-
}
|
267 |
-
|
268 |
-
// Flickr
|
269 |
-
if ( $flickr != '' && $flickr != ' ' && file_exists($smw_dir.'/flickr.png')) {
|
270 |
-
?><a href="<?php echo $flickr; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/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
|
271 |
-
} else {
|
272 |
-
echo ''; //If no URL inputed
|
273 |
-
}
|
274 |
-
|
275 |
-
// Instagram
|
276 |
-
if ( $instagram != '' && $instagram != ' ' && file_exists($smw_dir.'/instagram.png')) {
|
277 |
-
?><a href="<?php echo $instagram; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/instagram.png" alt="<?php echo $imgcaption; ?> Instagram" title="<?php echo $imgcaption ?> Instagram" <?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
|
278 |
-
} else {
|
279 |
-
echo ''; //If no URL inputed
|
280 |
-
}
|
281 |
-
|
282 |
-
// Picasa
|
283 |
-
if ( $picasa != '' && $picasa != ' ' && file_exists($smw_dir.'/picasa.png')) {
|
284 |
-
?><a href="<?php echo $picasa; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/picasa.png" alt="<?php echo $imgcaption; ?> Picasa" title="<?php echo $imgcaption; ?> Picasa" <?php if($animation == 'fade' || $animation == 'combo') { ?> style="opacity: <?php echo $icon_opacity; ?>; -moz-opacity: <?php echo $icon_opacity;?>;" <?php } ?>class="<?php echo $animation; ?>" /></a><?php
|
285 |
-
} else {
|
286 |
-
echo ''; //If no URL inputed
|
287 |
-
}
|
288 |
-
|
289 |
-
// Pinterest
|
290 |
-
if ( $pinterest != '' && $pinterest != ' ' && file_exists($smw_dir.'/pinterest.png')) {
|
291 |
-
?><a href="<?php echo $pinterest; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/pinterest.png" alt="<?php echo $imgcaption; ?> Pinterest" title="<?php echo $imgcaption; ?> Pinterest" <?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
|
292 |
-
} else {
|
293 |
-
echo ''; //If No URL Inputed
|
294 |
-
}
|
295 |
-
|
296 |
-
// YouTube
|
297 |
-
if ( $youtube != '' && $youtube != ' ' && file_exists($smw_dir.'/youtube.png')) {
|
298 |
-
?><a href="<?php echo $youtube; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/youtube.png" alt="<?php echo $imgcaption; ?> YouTube" title="<?php echo $imgcaption; ?> YouTube" <?php if($animation == 'fade' || $animation == 'combo') { ?> style="opacity: <?php echo $icon_opacity; ?>; -moz-opacity: <?php echo $icon_opacity;?>;" <?php } ?>class="<?php echo $animation; ?>" /></a><?php
|
299 |
-
} else {
|
300 |
-
echo ''; //If No URL Inputed
|
301 |
-
}
|
302 |
-
|
303 |
-
// About.me
|
304 |
-
if ( $aboutme != '' && $aboutme != ' ' && file_exists($smw_dir.'/aboutme.png')) {
|
305 |
-
?><a href="<?php echo $aboutme; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/aboutme.png" alt="<?php echo $imgcaption; ?> About.me" title="<?php echo $imgcaption ?> About.me" <?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
|
306 |
-
} else {
|
307 |
-
echo ''; //If no URL inputed
|
308 |
-
}
|
309 |
-
|
310 |
-
// Skype
|
311 |
-
if ( $skype != '' && $skype != ' ' && file_exists($smw_dir.'/skype.png')) {
|
312 |
-
?><a href="<?php echo $skype; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/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
|
313 |
-
} else {
|
314 |
-
echo ''; //If No URL Inputed
|
315 |
-
}
|
316 |
-
|
317 |
-
// Digg
|
318 |
-
if ( $digg != '' && $digg != ' ' && file_exists($smw_dir.'/digg.png')) {
|
319 |
-
?><a href="<?php echo $digg; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/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
|
320 |
-
} else {
|
321 |
-
echo ''; //If no URL Inputed
|
322 |
-
}
|
323 |
-
|
324 |
-
// Reddit
|
325 |
-
if ( $reddit != '' && $reddit != ' ' && file_exists($smw_dir.'/reddit.png')) {
|
326 |
-
?><a href="<?php echo $reddit; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/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
|
327 |
-
} else {
|
328 |
-
echo ''; //If no URL Inputed
|
329 |
-
}
|
330 |
-
|
331 |
-
// Delicious
|
332 |
-
if ( $delicious != '' && $delicious != ' ' && file_exists($smw_dir.'/delicious.png')) {
|
333 |
-
?><a href="<?php echo $delicious; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/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
|
334 |
-
} else {
|
335 |
-
echo ''; //If no URL Inputed
|
336 |
-
}
|
337 |
-
|
338 |
-
// StumbleUpon
|
339 |
-
if ( $stumble != '' && $stumble != ' ' && file_exists($smw_dir.'/stumble.png')) {
|
340 |
-
?><a href="<?php echo $stumble; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/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
|
341 |
-
} else {
|
342 |
-
echo ''; //If no URL Inputed
|
343 |
-
}
|
344 |
-
|
345 |
-
// Tumblr
|
346 |
-
if ( $tumblr != '' && $tumblr != ' ' && file_exists($smw_dir.'/tumblr.png')) {
|
347 |
-
?><a href="<?php echo $tumblr; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/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
|
348 |
-
} else {
|
349 |
-
echo ''; //If no URL Inputed
|
350 |
-
}
|
351 |
-
|
352 |
-
// Github
|
353 |
-
if ( $github != '' && $github != ' ' && file_exists($smw_dir.'/github.png')) {
|
354 |
-
?><a href="<?php echo $github; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/github.png" alt="<?php echo $imgcaption; ?> Github" title="<?php echo $imgcaption ?> Github" <?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
|
355 |
-
} else {
|
356 |
-
echo ''; //If no URL inputed
|
357 |
-
}
|
358 |
-
|
359 |
-
// Google Buzz
|
360 |
-
if ( $buzz != '' && $buzz != ' ' && file_exists($smw_dir.'/buzz.png')) {
|
361 |
-
?><a href="<?php echo $buzz; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/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
|
362 |
-
} else {
|
363 |
-
echo ''; //If no URL Inputed
|
364 |
-
}
|
365 |
-
|
366 |
-
// Google Talk
|
367 |
-
if ( $talk != '' && $talk != ' ' && file_exists($smw_dir.'/talk.png')) {
|
368 |
-
?><a href="<?php echo $talk; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/talk.png" alt="<?php echo $imgcaption; ?> Google Talk" title="<?php echo $imgcaption; ?> Google Talk" <?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
|
369 |
-
} else {
|
370 |
-
echo ''; //If no URL Inputed
|
371 |
-
}
|
372 |
-
|
373 |
-
// Vimeo
|
374 |
-
if ( $vimeo != '' && $vimeo != ' ' && file_exists($smw_dir.'/vimeo.png')) {
|
375 |
-
?><a href="<?php echo $vimeo; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/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
|
376 |
-
} else {
|
377 |
-
echo ''; //If no URL Inputed
|
378 |
-
}
|
379 |
-
|
380 |
-
// Blogger
|
381 |
-
if ( $blogger != '' && $blogger != ' ' && file_exists($smw_dir.'/blogger.png')) {
|
382 |
-
?><a href="<?php echo $blogger; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/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
|
383 |
-
} else {
|
384 |
-
echo ''; //If No URL Inputed
|
385 |
-
}
|
386 |
-
|
387 |
-
// Wordpress
|
388 |
-
if ( $wordpress != '' && $wordpress != ' ' && file_exists($smw_dir.'/wordpress.png')) {
|
389 |
-
?><a href="<?php echo $wordpress; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/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
|
390 |
-
} else {
|
391 |
-
echo ''; //If No URL Inputed
|
392 |
-
}
|
393 |
-
|
394 |
-
// Yelp
|
395 |
-
if ( $yelp != '' && $yelp != ' ' && file_exists($smw_dir.'/yelp.png')) {
|
396 |
-
?><a href="<?php echo $yelp; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/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
|
397 |
-
} else {
|
398 |
-
echo ''; //If No URL Inputed
|
399 |
}
|
400 |
|
401 |
-
|
402 |
-
|
403 |
-
?><a href="<?php echo $lastfm; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/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
|
404 |
-
} else {
|
405 |
-
echo ''; //If no URL Inputed
|
406 |
-
}
|
407 |
-
|
408 |
-
// Pandora
|
409 |
-
if ( $pandora != '' && $pandora != ' ' && file_exists($smw_dir.'/pandora.png')) {
|
410 |
-
?><a href="<?php echo $pandora; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/pandora.png" alt="<?php echo $imgcaption; ?> Pandora" title="<?php echo $imgcaption; ?> Pandora" <?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
|
411 |
-
} else {
|
412 |
-
echo ''; //If no URL Inputed
|
413 |
-
}
|
414 |
-
|
415 |
-
// Ustream
|
416 |
-
if ( $ustream != '' && $ustream != ' ' && file_exists($smw_dir.'/ustream.png')) {
|
417 |
-
?><a href="<?php echo $ustream; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/ustream.png" alt="<?php echo $imgcaption; ?> UStream" title="<?php echo $imgcaption; ?> UStream" <?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
|
418 |
-
} else {
|
419 |
-
echo ''; //If no URL Inputed
|
420 |
-
}
|
421 |
-
|
422 |
-
// IMDb
|
423 |
-
if ( $imdb != '' && $imdb != ' ' && file_exists($smw_dir.'/imdb.png')) {
|
424 |
-
?><a href="<?php echo $imdb; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/imdb.png" alt="<?php echo $imgcaption; ?> IMDb" title="<?php echo $imgcaption; ?> IMDb" <?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
|
425 |
-
} else {
|
426 |
-
echo ''; //If no URL Inputed
|
427 |
-
}
|
428 |
-
|
429 |
-
// Hulu
|
430 |
-
if ( $hulu != '' && $hulu != ' ' && file_exists($smw_dir.'/hulu.png')) {
|
431 |
-
?><a href="<?php echo $hulu; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/hulu.png" alt="<?php echo $imgcaption; ?> hulu" title="<?php echo $imgcaption; ?> hulu" <?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
|
432 |
-
} else {
|
433 |
-
echo ''; //If no URL Inputed
|
434 |
}
|
435 |
|
436 |
-
|
437 |
-
|
438 |
-
?><a href="<?php echo $flixster; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/flixster.png" alt="<?php echo $imgcaption; ?> Flixster" title="<?php echo $imgcaption; ?> Flixster" <?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
|
439 |
-
} else {
|
440 |
-
echo ''; //If no URL Inputed
|
441 |
-
}
|
442 |
-
|
443 |
-
// Foursquare
|
444 |
-
if ( $foursquare != '' && $foursquare != ' ' && file_exists($smw_dir.'/foursquare.png')) {
|
445 |
-
?><a href="<?php echo $foursquare; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/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
|
446 |
-
} else {
|
447 |
-
echo ''; //If no URL Inputed
|
448 |
-
}
|
449 |
-
|
450 |
-
// Meetup
|
451 |
-
if ( $meetup != '' && $meetup != ' ' && file_exists($smw_dir.'/meetup.png')) {
|
452 |
-
?><a href="<?php echo $meetup; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/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
|
453 |
-
} else {
|
454 |
-
echo ''; //If no URL Inputed
|
455 |
-
}
|
456 |
-
|
457 |
-
// PlanCast
|
458 |
-
if ( $plancast != '' && $plancast != ' ' && file_exists($smw_dir.'/plancast.png')) {
|
459 |
-
?><a href="<?php echo $plancast; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/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
|
460 |
-
} else {
|
461 |
-
echo ''; //If no URL inputed
|
462 |
-
}
|
463 |
-
|
464 |
-
// Hyves
|
465 |
-
if ( $slideshare != '' && $slideshare != ' ' && file_exists($smw_dir.'/slideshare.png')) {
|
466 |
-
?><a href="<?php echo $slideshare; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/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
|
467 |
-
} else {
|
468 |
-
echo ''; //If no URL inputed
|
469 |
-
}
|
470 |
-
|
471 |
-
// DeviantArt
|
472 |
-
if ( $deviantart != '' && $deviantart != ' ' && file_exists($smw_dir.'/deviantart.png')) {
|
473 |
-
?><a href="<?php echo $deviantart; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/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
|
474 |
-
} else {
|
475 |
-
echo ''; //If no URL inputed
|
476 |
-
}
|
477 |
-
|
478 |
-
// iTunes Ping
|
479 |
-
if ( $ping != '' && $ping != ' ' && file_exists($smw_dir.'/ping.png')) {
|
480 |
-
?><a href="<?php echo $ping; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/ping.png" alt="<?php echo $imgcaption; ?> iTunes Ping" title="<?php echo $imgcaption; ?> iTunes Ping" <?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
|
481 |
-
} else {
|
482 |
-
echo ''; //If no URL inputed
|
483 |
-
}
|
484 |
-
|
485 |
-
// Live365
|
486 |
-
if ( $live365 != '' && $live365 != ' ' && file_exists($smw_dir.'/live365.png')) {
|
487 |
-
?><a href="<?php echo $live365; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/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
|
488 |
-
} else {
|
489 |
-
echo ''; //If no URL inputed
|
490 |
-
}
|
491 |
-
|
492 |
-
// Digital Tunes
|
493 |
-
if ( $digitaltunes != '' && $digitaltunes != ' ' && file_exists($smw_dir.'/digitaltunes.png')) {
|
494 |
-
?><a href="<?php echo $digitaltunes; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/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
|
495 |
-
} else {
|
496 |
-
echo ''; //If no URL Inputed
|
497 |
-
}
|
498 |
-
|
499 |
-
// Soundcloud
|
500 |
-
if ( $soundcloud != '' && $soundcloud != ' ' && file_exists($smw_dir.'/soundcloud.png')) {
|
501 |
-
?><a href="<?php echo $soundcloud; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/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
|
502 |
-
} else {
|
503 |
-
echo ''; //If no URL Inputed
|
504 |
-
}
|
505 |
-
|
506 |
-
// BandCamp
|
507 |
-
if ( $bandcamp != '' && $bandcamp != ' ' && file_exists($smw_dir.'/bandcamp.png')) {
|
508 |
-
?><a href="<?php echo $bandcamp; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/bandcamp.png" alt="<?php echo $imgcaption; ?> Bandcamp" title="<?php echo $imgcaption; ?> Bandcamp" <?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
|
509 |
-
} else {
|
510 |
-
echo ''; //If no URL Inputed
|
511 |
-
}
|
512 |
-
|
513 |
-
// Etsy
|
514 |
-
if ( $etsy != '' && $etsy != ' ' && file_exists($smw_dir.'/etsy.png')) {
|
515 |
-
?><a href="<?php echo $etsy; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/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
|
516 |
-
} else {
|
517 |
-
echo ''; //If no URL Inputed
|
518 |
-
}
|
519 |
-
|
520 |
-
// Better Business Bureau
|
521 |
-
if ( $bbb != '' && $bbb != ' ' && file_exists($smw_dir.'/bbb.png')) {
|
522 |
-
?><a href="<?php echo $bbb; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/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
|
523 |
-
} else {
|
524 |
-
echo ''; //If no URL inputed
|
525 |
-
}
|
526 |
-
|
527 |
-
// Merchant Circle
|
528 |
-
if ( $merchantcircle != '' && $merchantcircle != ' ' && file_exists($smw_dir.'/merchantcircle.png')) {
|
529 |
-
?><a href="<?php echo $merchantcircle; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/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
|
530 |
-
} else {
|
531 |
-
echo ''; //If no URL inputed
|
532 |
-
}
|
533 |
-
|
534 |
-
// Ebay
|
535 |
-
if ( $ebay != '' && $ebay != ' ' && file_exists($smw_dir.'/ebay.png')) {
|
536 |
-
?><a href="<?php echo $ebay; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/ebay.png" alt="<?php echo $imgcaption; ?> Ebay" title="<?php echo $imgcaption; ?> Ebay" <?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
|
537 |
-
} else {
|
538 |
-
echo ''; //If no URL Inputed
|
539 |
-
}
|
540 |
-
|
541 |
-
// Steam
|
542 |
-
if ( $steam != '' && $steam != ' ' && file_exists($smw_dir.'/steam.png')) {
|
543 |
-
?><a href="<?php echo $steam; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/steam.png" alt="<?php echo $imgcaption; ?> Steam" title="<?php echo $imgcaption; ?> Steam" <?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
|
544 |
-
} else {
|
545 |
-
echo ''; //If no URL Inputed
|
546 |
-
}
|
547 |
-
|
548 |
-
// Slashdot
|
549 |
-
if ( $slashdot != '' && $slashdot != ' ' && file_exists($smw_dir.'/slashdot.png')) {
|
550 |
-
?><a href="<?php echo $slashdot; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/slashdot.png" alt="<?php echo $imgcaption; ?> Slashdot" title="<?php echo $imgcaption ?> Slashdot" <?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
|
551 |
-
} else {
|
552 |
-
echo ''; //If no URL inputed
|
553 |
}
|
554 |
|
555 |
-
|
556 |
-
if ( $goodreads != '' && $goodreads != ' ' && file_exists($smw_dir.'/goodreads.png')) {
|
557 |
-
?><a href="<?php echo $goodreads; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/goodreads.png" alt="<?php echo $imgcaption; ?> Goodreads" title="<?php echo $imgcaption ?> Goodreads" <?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
|
558 |
-
} else {
|
559 |
-
echo ''; //If no URL inputed
|
560 |
-
}
|
561 |
-
|
562 |
-
// Cuttings.me
|
563 |
-
if ( $cuttingsme != '' && $cuttingsme != ' ' && file_exists($smw_dir.'/cuttings.png')) {
|
564 |
-
?><a href="<?php echo $cuttingsme; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/cuttings.png" alt="<?php echo $imgcaption; ?> Cuttings.me" title="<?php echo $imgcaption ?> Cuttings.me" <?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
|
565 |
-
} else {
|
566 |
-
echo ''; //If no URL inputed
|
567 |
-
}
|
568 |
-
|
569 |
-
// Custom Icon 1
|
570 |
-
if ( $custom1url != '' && $custom1name != '' && $custom1icon != '' ) {
|
571 |
-
?><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
|
572 |
-
} else {
|
573 |
-
echo ''; //If no URL inputed
|
574 |
-
}
|
575 |
-
|
576 |
-
// Custom Icon 2
|
577 |
-
if ( $custom2url != '' && $custom2name != '' && $custom2icon != '' ) {
|
578 |
-
?><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
|
579 |
-
} else {
|
580 |
-
echo ''; //If no URL inputed
|
581 |
-
}
|
582 |
-
|
583 |
-
// Custom Icon 3
|
584 |
-
if ( $custom3url != '' && $custom3name != '' && $custom3icon != '' ) {
|
585 |
-
?><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
|
586 |
-
} else {
|
587 |
-
echo ''; //If no URL inputed
|
588 |
-
}
|
589 |
-
|
590 |
-
// Custom Icon 4
|
591 |
-
if ( $custom4url != '' && $custom4name != '' && $custom4icon != '' ) {
|
592 |
-
?><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
|
593 |
-
} else {
|
594 |
-
echo ''; //If no URL inputed
|
595 |
-
}
|
596 |
-
|
597 |
-
// Custom Icon 5
|
598 |
-
if ( $custom5url != '' && $custom5name != '' && $custom5icon != '' ) {
|
599 |
-
?><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
|
600 |
-
} else {
|
601 |
-
echo ''; //If no URL inputed
|
602 |
-
}
|
603 |
-
|
604 |
-
// Custom Icon 6
|
605 |
-
if ( $custom6url != '' && $custom6name != '' && $custom6icon != '' ) {
|
606 |
-
?><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
|
607 |
-
} else {
|
608 |
-
echo ''; //If no URL inputed
|
609 |
-
}
|
610 |
|
611 |
-
|
612 |
-
if ( $rss != '' && $rss != ' ' && file_exists($smw_dir.'/rss.png')) {
|
613 |
-
?><a href="<?php echo $rss; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/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
|
614 |
-
} else {
|
615 |
-
echo '';// If no URL Inputed
|
616 |
-
}
|
617 |
|
618 |
-
// E-mail Subscription -- If Newsletter or Mailing List available
|
619 |
-
if ( $subscribe != '' && $subscribe != ' ' && file_exists($smw_dir.'/email.png')) {
|
620 |
-
?><a href="<?php echo $subscribe; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img width="<?php echo $icon_size; ?>" height="<?php echo $icon_size; ?>" src="<?php echo $smw_path; ?>/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
|
621 |
-
} else {
|
622 |
-
echo ''; // If no URL Inputed
|
623 |
-
}
|
624 |
-
|
625 |
-
/* After widget (defined by themes). */
|
626 |
echo "</div>";
|
627 |
|
628 |
echo $after_widget;
|
629 |
}
|
630 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
631 |
/* Update the widget settings */
|
632 |
function update( $new_instance, $old_instance ) {
|
633 |
$instance = $old_instance;
|
@@ -638,86 +434,32 @@ class Social_Widget extends WP_Widget {
|
|
638 |
$instance['text'] = $new_instance['text'];
|
639 |
else
|
640 |
$instance['text'] = stripslashes( wp_filter_post_kses( addslashes($new_instance['text']) ) ); // wp_filter_post_kses() expects slashed
|
641 |
-
$instance['imgcaption']
|
642 |
-
$instance['icon_size']
|
643 |
-
$instance['icon_pack']
|
644 |
-
$instance['animation']
|
645 |
-
$instance['icon_opacity']
|
646 |
-
$instance['newtab']
|
647 |
-
$instance['nofollow']
|
648 |
-
$instance['alignment']
|
649 |
-
$instance['
|
650 |
-
$instance['
|
651 |
-
|
652 |
-
$
|
653 |
-
|
654 |
-
|
655 |
-
|
656 |
-
|
657 |
-
$
|
658 |
-
|
659 |
-
|
660 |
-
|
661 |
-
|
662 |
-
$
|
663 |
-
|
664 |
-
|
665 |
-
|
666 |
-
|
667 |
-
$instance['youtube'] = strip_tags( $new_instance['youtube'] );
|
668 |
-
$instance['hulu'] = strip_tags( $new_instance['hulu'] );
|
669 |
-
$instance['ustream'] = strip_tags( $new_instance['ustream'] );
|
670 |
-
$instance['vimeo'] = strip_tags( $new_instance['vimeo'] );
|
671 |
-
$instance['flixster'] = strip_tags( $new_instance['flixster'] );
|
672 |
-
$instance['imdb'] = strip_tags( $new_instance['imdb'] );
|
673 |
-
$instance['steam'] = strip_tags( $new_instance['steam'] );
|
674 |
-
$instance['skype'] = strip_tags( $new_instance['skype'] );
|
675 |
-
$instance['talk'] = strip_tags( $new_instance['talk'] );
|
676 |
-
$instance['digg'] = strip_tags( $new_instance['digg'] );
|
677 |
-
$instance['reddit'] = strip_tags( $new_instance['reddit'] );
|
678 |
-
$instance['delicious'] = strip_tags( $new_instance['delicious'] );
|
679 |
-
$instance['stumble'] = strip_tags( $new_instance['stumble'] );
|
680 |
-
$instance['buzz'] = strip_tags( $new_instance['buzz'] );
|
681 |
-
$instance['friendfeed'] = strip_tags( $new_instance['friendfeed'] );
|
682 |
-
$instance['rss_url'] = strip_tags( $new_instance['rss_url'] );
|
683 |
-
$instance['slashdot'] = strip_tags( $new_instance['slashdot'] );
|
684 |
-
$instance['subscribe'] = strip_tags( $new_instance['subscribe'] );
|
685 |
-
$instance['tumblr'] = strip_tags( $new_instance['tumblr'] );
|
686 |
-
$instance['blogger'] = strip_tags( $new_instance['blogger'] );
|
687 |
-
$instance['wordpress'] = strip_tags( $new_instance['wordpress'] );
|
688 |
-
$instance['yelp'] = strip_tags( $new_instance['yelp'] );
|
689 |
-
$instance['slideshare'] = strip_tags( $new_instance['slideshare'] );
|
690 |
-
$instance['bbb'] = strip_tags( $new_instance['bbb'] );
|
691 |
-
$instance['merchantcircle'] = strip_tags( $new_instance['merchantcircle'] );
|
692 |
-
$instance['etsy'] = strip_tags( $new_instance['etsy'] );
|
693 |
-
$instance['ebay'] = strip_tags( $new_instance['ebay'] );
|
694 |
-
$instance['lastfm'] = strip_tags( $new_instance['lastfm'] );
|
695 |
-
$instance['pandora'] = strip_tags( $new_instance['pandora'] );
|
696 |
-
$instance['ping'] = strip_tags( $new_instance['ping'] );
|
697 |
-
$instance['live365'] = strip_tags( $new_instance['live365'] );
|
698 |
-
$instance['digitaltunes'] = strip_tags( $new_instance['digitaltunes'] );
|
699 |
-
$instance['soundcloud'] = strip_tags( $new_instance['soundcloud'] );
|
700 |
-
$instance['bandcamp'] = strip_tags( $new_instance['bandcamp'] );
|
701 |
-
$instance['plancast'] = strip_tags( $new_instance['plancast'] );
|
702 |
-
$instance['cuttingsme'] = strip_tags( $new_instance['cuttingsme'] );
|
703 |
-
$instance['custom1name'] = strip_tags( $new_instance['custom1name'] );
|
704 |
-
$instance['custom1icon'] = strip_tags( $new_instance['custom1icon'] );
|
705 |
-
$instance['custom1url'] = strip_tags( $new_instance['custom1url'] );
|
706 |
-
$instance['custom2name'] = strip_tags( $new_instance['custom2name'] );
|
707 |
-
$instance['custom2icon'] = strip_tags( $new_instance['custom2icon'] );
|
708 |
-
$instance['custom2url'] = strip_tags( $new_instance['custom2url'] );
|
709 |
-
$instance['custom3name'] = strip_tags( $new_instance['custom3name'] );
|
710 |
-
$instance['custom3icon'] = strip_tags( $new_instance['custom3icon'] );
|
711 |
-
$instance['custom3url'] = strip_tags( $new_instance['custom3url'] );
|
712 |
-
$instance['custom4name'] = strip_tags( $new_instance['custom4name'] );
|
713 |
-
$instance['custom4icon'] = strip_tags( $new_instance['custom4icon'] );
|
714 |
-
$instance['custom4url'] = strip_tags( $new_instance['custom4url'] );
|
715 |
-
$instance['custom5name'] = strip_tags( $new_instance['custom5name'] );
|
716 |
-
$instance['custom5icon'] = strip_tags( $new_instance['custom5icon'] );
|
717 |
-
$instance['custom5url'] = strip_tags( $new_instance['custom5url'] );
|
718 |
-
$instance['custom6name'] = strip_tags( $new_instance['custom6name'] );
|
719 |
-
$instance['custom6icon'] = strip_tags( $new_instance['custom6icon'] );
|
720 |
-
$instance['custom6url'] = strip_tags( $new_instance['custom6url'] );
|
721 |
$instance['customiconsurl'] = strip_tags( $new_instance['customiconsurl'] );
|
722 |
$instance['customiconspath'] = strip_tags( $new_instance['customiconspath'] );
|
723 |
|
@@ -733,90 +475,33 @@ class Social_Widget extends WP_Widget {
|
|
733 |
|
734 |
/* Set up some default widget settings. */
|
735 |
$defaults = array(
|
736 |
-
'title'
|
737 |
-
'text'
|
738 |
-
'imgcaption'
|
739 |
-
'icon_size'
|
740 |
-
'icon_pack'
|
741 |
-
'icon_opacity'
|
742 |
-
'newtab'
|
743 |
-
'nofollow'
|
744 |
-
'alignment'
|
745 |
-
'
|
746 |
-
'
|
747 |
-
'
|
748 |
-
'myspace' => __('', 'smw'),
|
749 |
-
'orkut' => __('', 'smw'),
|
750 |
-
'hyves' => __('', 'smw'),
|
751 |
-
'linkedin' => __('', 'smw'),
|
752 |
-
'asmallworld' => __('', 'smw'),
|
753 |
-
'foursquare' => __('', 'smw'),
|
754 |
-
'meetup' => __('', 'smw'),
|
755 |
-
'aboutme' => __('', 'smw'),
|
756 |
-
'goodreads' => __('', 'smw'),
|
757 |
-
'github' => __('', 'smw'),
|
758 |
-
'flickr' => __('', 'smw'),
|
759 |
-
'picasa' => __('', 'smw'),
|
760 |
-
'instagram' => __('', 'smw'),
|
761 |
-
'pinterest' => __('', 'smw'),
|
762 |
-
'deviantart' => __('', 'smw'),
|
763 |
-
'youtube' => __('', 'smw'),
|
764 |
-
'hulu' => __('', 'smw'),
|
765 |
-
'ustream' => __('', 'smw'),
|
766 |
-
'vimeo' => __('', 'smw'),
|
767 |
-
'flixster' => __('', 'smw'),
|
768 |
-
'imdb' => __('', 'smw'),
|
769 |
-
'steam' => __('', 'smw'),
|
770 |
-
'skype' => __('', 'smw'),
|
771 |
-
'talk' => __('', 'smw'),
|
772 |
-
'digg' => __('', 'smw'),
|
773 |
-
'reddit' => __('', 'smw'),
|
774 |
-
'delicious' => __('', 'smw'),
|
775 |
-
'stumble' => __('', 'smw'),
|
776 |
-
'buzz' => __('', 'smw'),
|
777 |
-
'friendfeed' => __('', 'smw'),
|
778 |
-
'rss_url' => __('', 'smw'),
|
779 |
-
'slashdot' => __('', 'smw'),
|
780 |
-
'subscribe' => __('mailto:', 'smw'),
|
781 |
-
'tumblr' => __('', 'smw'),
|
782 |
-
'blogger' => __('', 'smw'),
|
783 |
-
'wordpress' => __('', 'smw'),
|
784 |
-
'yelp' => __('', 'smw'),
|
785 |
-
'slideshare' => __('', 'smw'),
|
786 |
-
'bbb' => __('', 'smw'),
|
787 |
-
'merchantcircle' => __('', 'smw'),
|
788 |
-
'etsy' => __('', 'smw'),
|
789 |
-
'ebay' => __('', 'smw'),
|
790 |
-
'lastfm' => __('', 'smw'),
|
791 |
-
'pandora' => __('', 'smw'),
|
792 |
-
'ping' => __(''),
|
793 |
-
'live365' => __('', 'smw'),
|
794 |
-
'digitaltunes' => __('', 'smw'),
|
795 |
-
'soundcloud' => __('', 'smw'),
|
796 |
-
'bandcamp' => __('', 'smw'),
|
797 |
-
'plancast' => __('', 'smw'),
|
798 |
-
'cuttingsme' => __('', 'smw'),
|
799 |
-
'custom1name' => __('', 'smw'),
|
800 |
-
'custom1icon' => __('', 'smw'),
|
801 |
-
'custom1url' => __('', 'smw'),
|
802 |
-
'custom2name' => __('', 'smw'),
|
803 |
-
'custom2icon' => __('', 'smw'),
|
804 |
-
'custom2url' => __('', 'smw'),
|
805 |
-
'custom3name' => __('', 'smw'),
|
806 |
-
'custom3icon' => __('', 'smw'),
|
807 |
-
'custom3url' => __('', 'smw'),
|
808 |
-
'custom4name' => __('', 'smw'),
|
809 |
-
'custom4icon' => __('', 'smw'),
|
810 |
-
'custom4url' => __('', 'smw'),
|
811 |
-
'custom5name' => __('', 'smw'),
|
812 |
-
'custom5icon' => __('', 'smw'),
|
813 |
-
'custom5url' => __('', 'smw'),
|
814 |
-
'custom6name' => __('', 'smw'),
|
815 |
-
'custom6icon' => __('', 'smw'),
|
816 |
-
'custom6url' => __('', 'smw'),
|
817 |
-
'customiconsurl' => __('http://wwww.yoursite.com/wordpress/wp-content/your-icons', 'smw'),
|
818 |
'customiconspath' => __('/path/to/your-icons', 'smw'),
|
819 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
820 |
|
821 |
$instance = wp_parse_args( (array) $instance, $defaults ); ?>
|
822 |
<p>
|
@@ -824,41 +509,43 @@ class Social_Widget extends WP_Widget {
|
|
824 |
If you do not want an icon to be visible, simply leave the input box blank.</em></b>
|
825 |
</p>
|
826 |
|
827 |
-
|
828 |
-
<
|
|
|
|
|
829 |
<!-- Widget Title: Text Input -->
|
830 |
<p>
|
831 |
<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Title:', 'smw'); ?></label>
|
832 |
-
<input id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $instance['title']; ?>"
|
833 |
</p>
|
834 |
|
835 |
<!-- Widget Text: Textarea -->
|
836 |
<p>
|
837 |
<label for"<?php echo $this->get_field_id( 'text' ); ?>"><?php _e('Widget Text:', 'smw'); ?></label>
|
838 |
-
<textarea id="<?php echo $this->get_field_id('text'); ?>" name="<?php echo $this->get_field_name('text'); ?>" rows="8" cols="20"
|
839 |
</p>
|
840 |
|
841 |
<!-- Image Caption: Text Input -->
|
842 |
<p>
|
843 |
<label for="<?php echo $this->get_field_id( 'imgcaption' ); ?>"><?php _e('Icon Alt and Title Tag:', 'smw'); ?></label>
|
844 |
-
<input id="<?php echo $this->get_field_id( 'imgcaption' ); ?>" name="<?php echo $this->get_field_name( 'imgcaption' ); ?>" value="<?php echo $instance['imgcaption']; ?>"
|
845 |
</p>
|
846 |
|
847 |
<!-- Choose Icon Size: Dropdown -->
|
848 |
-
|
849 |
<p>
|
850 |
<label for="<?php echo $this->get_field_id( 'icon_size' ); ?>"><?php _e('Icon Size', 'smw'); ?></label>
|
851 |
-
<select id="<?php echo $this->get_field_id( 'icon_size' ); ?>" name="<?php echo $this->get_field_name( 'icon_size' ); ?>">
|
852 |
<option value="16" <?php if($instance['icon_size'] == '16') { echo 'selected'; } ?>>16px</option>
|
853 |
<option value="default" <?php if($instance['icon_size'] == 'default') { echo 'selected'; } ?>>Default (32px)</option>
|
854 |
<option value="64" <?php if($instance['icon_size'] == '64') { echo 'selected'; } ?>>64px</option>
|
855 |
</select>
|
856 |
</p>
|
|
|
857 |
|
858 |
-
|
859 |
<p>
|
860 |
<label for="<?php echo $this->get_field_id( 'icon_pack' ); ?>"><?php _e('Icon Pack', 'smw'); ?></label>
|
861 |
-
<select id="<?php echo $this->get_field_id( 'icon_pack' ); ?>" name="<?php echo $this->get_field_name( 'icon_pack' ); ?>">
|
862 |
<option value="cutout" <?php if($instance['icon_pack'] == 'cutout') { echo 'selected'; } ?>>Cutout Icons</option>
|
863 |
<option value="heart" <?php if($instance['icon_pack'] == 'heart') { echo 'selected'; } ?>>Heart Icons</option>
|
864 |
<option value="default" <?php if($instance['icon_pack'] == 'default') { echo 'selected'; } ?>>Default Icons (Web2.0)</option>
|
@@ -866,22 +553,24 @@ class Social_Widget extends WP_Widget {
|
|
866 |
<option value="custom" <?php if($instance['icon_pack'] == 'custom') { echo 'selected'; } ?>>Custom Icons</option>
|
867 |
</select>
|
868 |
</p>
|
|
|
869 |
|
870 |
-
|
871 |
<p>
|
872 |
<label for="<?php echo $this->get_field_id( 'animation' ); ?>"><?php _e('Type of Animation', 'smw'); ?></label>
|
873 |
-
<select id="<?php echo $this->get_field_id( 'animation' ); ?>" name="<?php echo $this->get_field_name( 'animation' ); ?>">
|
874 |
<option value="fade" <?php if($instance['animation'] == 'fade') { echo 'selected'; } ?>>Fade In</option>
|
875 |
<option value="scale" <?php if($instance['animation'] == 'scale') { echo 'selected'; } ?>>Scale</option>
|
876 |
<option value="bounce" <?php if($instance['animation'] == 'bounce') { echo 'selected'; } ?>>Bounce</option>
|
877 |
<option value="combo" <?php if($instance['animation'] == 'combo') { echo 'selected'; } ?>>Combo</option>
|
878 |
</select>
|
879 |
</p>
|
|
|
880 |
|
881 |
-
|
882 |
<p>
|
883 |
<label for="<?php echo $this->get_field_id( 'icon_opacity' ); ?>"><?php _e('Default Icon Opacity', 'smw'); ?></label>
|
884 |
-
<select id="<?php echo $this->get_field_id( 'icon_opacity' ); ?>" name="<?php echo $this->get_field_name( 'icon_opacity' ); ?>">
|
885 |
<option value="0.5" <?php if($instance['icon_opacity'] == '0.5') { echo 'selected'; } ?>>50%</option>
|
886 |
<option value="0.6" <?php if($instance['icon_opacity'] == '0.6') { echo 'selected'; } ?>>60%</option>
|
887 |
<option value="0.7" <?php if($instance['icon_opacity'] == '0.7') { echo 'selected'; } ?>>70%</option>
|
@@ -891,450 +580,321 @@ class Social_Widget extends WP_Widget {
|
|
891 |
</select>
|
892 |
<span style="color: #999;"><em>Only applies to Fade and Combo animations</em></span>
|
893 |
</p>
|
894 |
-
|
895 |
|
896 |
<!-- No Follow On or Off: Dropdown -->
|
897 |
<p>
|
898 |
<label for="<?php echo $this->get_field_id( 'nofollow' ); ?>"><?php _e('Use rel="nofollow" for links', 'smw'); ?></label>
|
899 |
-
<select id="<?php echo $this->get_field_id( 'nofollow' ); ?>" name="<?php echo $this->get_field_name( 'nofollow' ); ?>">
|
900 |
<option value="on" <?php if($instance['nofollow'] == 'on') { echo 'selected'; } ?>>On</option>
|
901 |
<option value="off" <?php if($instance['nofollow'] == 'off') { echo 'selected'; } ?>>Off</option>
|
902 |
</select>
|
903 |
</p>
|
904 |
-
|
905 |
|
906 |
<!-- Open in new tab: Dropdown -->
|
907 |
<p>
|
908 |
<label for="<?php echo $this->get_field_id( 'newtab' ); ?>"><?php _e('Open in new tab?', 'smw'); ?></label>
|
909 |
-
<select id="<?php echo $this->get_field_id( 'newtab' ); ?>" name="<?php echo $this->get_field_name( 'newtab' ); ?>">
|
910 |
<option value="yes" <?php if($instance['newtab'] == 'yes') { echo 'selected'; } ?>>Yes</option>
|
911 |
<option value="no" <?php if($instance['newtab'] == 'no') { echo 'selected'; } ?>>No</option>
|
912 |
</select>
|
913 |
</p>
|
|
|
914 |
|
915 |
<!-- Alignment: Dropdown -->
|
916 |
<p>
|
917 |
<label for="<?php echo $this->get_field_id( 'alignment' ); ?>"><?php _e('Icon Alignment', 'smw'); ?></label>
|
918 |
-
<select id="<?php echo $this->get_field_id( 'alignment' ); ?>" name="<?php echo $this->get_field_name( 'alignment' ); ?>">
|
919 |
<option value="left" <?php if($instance['alignment'] == 'left') { echo 'selected'; } ?>>Left</option>
|
920 |
<option value="centered" <?php if($instance['alignment'] == 'centered') { echo 'selected'; } ?>>Centered</option>
|
921 |
<option value="right" <?php if($instance['alignment'] == 'right') { echo 'selected'; } ?>>Right</option>
|
922 |
</select>
|
923 |
</p>
|
|
|
924 |
|
925 |
-
|
926 |
-
<!--
|
927 |
<p>
|
928 |
-
<label for="<?php echo $this->get_field_id( '
|
929 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
930 |
</p>
|
|
|
|
|
931 |
|
932 |
-
<!--
|
933 |
<p>
|
934 |
-
<label for="<?php echo $this->get_field_id( '
|
935 |
-
<
|
|
|
|
|
|
|
936 |
</p>
|
|
|
|
|
|
|
937 |
|
938 |
-
|
939 |
-
<p>
|
940 |
-
<label for="<?php echo $this->get_field_id( 'twitter' ); ?>"><?php _e('Twitter URL:', 'smw'); ?></label>
|
941 |
-
<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%;" />
|
942 |
-
</p>
|
943 |
|
944 |
-
|
945 |
-
|
946 |
-
|
947 |
-
<
|
948 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
949 |
|
950 |
-
<!-- Orkut URL: Text Input -->
|
951 |
-
<p>
|
952 |
-
<label for="<?php echo $this->get_field_id( 'orkut' ); ?>"><?php _e('Orkut URL:', 'smw'); ?></label>
|
953 |
-
<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%;" />
|
954 |
-
</p>
|
955 |
-
|
956 |
-
<!-- Hyves URL: Text Input -->
|
957 |
-
<p>
|
958 |
-
<label for="<?php echo $this->get_field_id( 'hyves' ); ?>"><?php _e('Hyves URL:', 'smw'); ?></label>
|
959 |
-
<input id="<?php echo $this->get_field_id( 'hyves' ); ?>" name="<?php echo $this->get_field_name( 'hyves' ); ?>" value="<?php echo $instance['hyves']; ?>" style="width:85%;" />
|
960 |
-
</p>
|
961 |
-
|
962 |
-
<!-- LinkedIn URL: Text Input -->
|
963 |
-
<p>
|
964 |
-
<label for="<?php echo $this->get_field_id( 'linkedin' ); ?>"><?php _e('LinkedIn URL:', 'smw'); ?></label>
|
965 |
-
<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%;" />
|
966 |
-
</p>
|
967 |
-
|
968 |
-
<!-- aSmallWorld URL: Text Input -->
|
969 |
-
<p>
|
970 |
-
<label for="<?php echo $this->get_field_id( 'asmallworld' ); ?>"><?php _e('aSmallWorld URL:', 'smw'); ?></label>
|
971 |
-
<input id="<?php echo $this->get_field_id( 'asmallworld' ); ?>" name="<?php echo $this->get_field_name( 'asmallworld' ); ?>" value="<?php echo $instance['asmallworld']; ?>" style="width:85%;" />
|
972 |
-
</p>
|
973 |
-
|
974 |
-
<!-- Foursquare URL: Text Input -->
|
975 |
-
<p>
|
976 |
-
<label for="<?php echo $this->get_field_id( 'foursquare' ); ?>"><?php _e('Foursquare URL:', 'smw'); ?></label>
|
977 |
-
<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%;" />
|
978 |
-
</p>
|
979 |
-
|
980 |
-
<!-- Meetup URL: Text Input -->
|
981 |
-
<p>
|
982 |
-
<label for="<?php echo $this->get_field_id( 'meetup' ); ?>"><?php _e('Meetup URL:', 'smw'); ?></label>
|
983 |
-
<input id="<?php echo $this->get_field_id( 'meetup' ); ?>" name="<?php echo $this->get_field_name( 'meetup' ); ?>" value="<?php echo $instance['meetup']; ?>" style="width:85%;" />
|
984 |
-
</p>
|
985 |
-
|
986 |
-
<!-- About.me URL: Text Input -->
|
987 |
-
<p>
|
988 |
-
<label for="<?php echo $this->get_field_id( 'aboutme' ); ?>"><?php _e('About.me URL:', 'smw'); ?></label>
|
989 |
-
<input id="<?php echo $this->get_field_id( 'aboutme' ); ?>" name="<?php echo $this->get_field_name( 'aboutme' ); ?>" value="<?php echo $instance['aboutme']; ?>" style="width:85%;" />
|
990 |
-
</p>
|
991 |
-
|
992 |
-
<!-- Goodreads URL: Text Input -->
|
993 |
-
<p>
|
994 |
-
<label for="<?php echo $this->get_field_id( 'goodreads' ); ?>"><?php _e('Goodreads URL:', 'smw'); ?></label>
|
995 |
-
<input id="<?php echo $this->get_field_id( 'goodreads' ); ?>" name="<?php echo $this->get_field_name( 'goodreads' ); ?>" value="<?php echo $instance['goodreads']; ?>" style="width:85%;" />
|
996 |
-
</p>
|
997 |
-
|
998 |
-
<!-- Github URL: Text Input -->
|
999 |
-
<p>
|
1000 |
-
<label for="<?php echo $this->get_field_id( 'github' ); ?>"><?php _e('Github URL:', 'smw'); ?></label>
|
1001 |
-
<input id="<?php echo $this->get_field_id( 'github' ); ?>" name="<?php echo $this->get_field_name( 'github' ); ?>" value="<?php echo $instance['github']; ?>" style="width:85%;" />
|
1002 |
-
</p>
|
1003 |
-
|
1004 |
-
<h3>Images and Video</h3>
|
1005 |
-
<!-- Flickr URL: Text Input -->
|
1006 |
-
<p>
|
1007 |
-
<label for="<?php echo $this->get_field_id( 'flickr' ); ?>"><?php _e('Flickr URL:', 'smw'); ?></label>
|
1008 |
-
<input id="<?php echo $this->get_field_id( 'flickr' ); ?>" name="<?php echo $this->get_field_name( 'flickr' ); ?>" value="<?php echo $instance['flickr']; ?>" style="width:85%;" />
|
1009 |
-
</p>
|
1010 |
-
|
1011 |
-
<!-- Picasa URL: Text Input -->
|
1012 |
-
<p>
|
1013 |
-
<label for="<?php echo $this->get_field_id( 'picasa' ); ?>"><?php _e('Picasa Web URL:', 'smw'); ?></label>
|
1014 |
-
<input id="<?php echo $this->get_field_id( 'picasa' ); ?>" name="<?php echo $this->get_field_name( 'picasa' ); ?>" value="<?php echo $instance['picasa']; ?>" style="width:85%;" />
|
1015 |
-
</p>
|
1016 |
|
1017 |
-
|
1018 |
-
|
1019 |
-
|
1020 |
-
|
1021 |
-
|
1022 |
-
|
1023 |
-
|
1024 |
-
|
1025 |
-
<label for="<?php echo $this->get_field_id(
|
1026 |
-
|
1027 |
-
|
1028 |
-
|
1029 |
-
|
1030 |
-
|
1031 |
-
<
|
1032 |
-
<
|
1033 |
-
|
1034 |
-
|
1035 |
-
|
1036 |
-
|
1037 |
-
|
1038 |
-
|
1039 |
-
</p>
|
1040 |
-
|
1041 |
-
|
1042 |
-
|
1043 |
-
|
1044 |
-
<
|
1045 |
-
|
1046 |
-
|
1047 |
-
|
1048 |
-
|
1049 |
-
<
|
1050 |
-
|
1051 |
-
|
1052 |
-
|
1053 |
-
|
1054 |
-
|
1055 |
-
|
1056 |
-
|
1057 |
-
|
1058 |
-
|
1059 |
-
|
1060 |
-
|
1061 |
-
|
1062 |
-
|
1063 |
-
|
1064 |
-
|
1065 |
-
|
1066 |
-
|
1067 |
-
|
1068 |
-
<
|
1069 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1070 |
</div>
|
1071 |
-
<div style="width:32%; float: left; padding-left: 10px; border-left: 1px solid #000">
|
1072 |
-
<h3>Gaming</h3>
|
1073 |
-
<!-- Steam URL: Text Input -->
|
1074 |
-
<p>
|
1075 |
-
<label for="<?php echo $this->get_field_id( 'steam' ); ?>"><?php _e('Steam URL:', 'smw'); ?></label>
|
1076 |
-
<input id="<?php echo $this->get_field_id( 'steam' ); ?>" name="<?php echo $this->get_field_name( 'steam' ); ?>" value="<?php echo $instance['steam']; ?>" style="width:85%;" />
|
1077 |
-
</p>
|
1078 |
-
<h3>Chatting</h3>
|
1079 |
-
<!-- Skype URL: Text Input -->
|
1080 |
-
<p>
|
1081 |
-
<label for="<?php echo $this->get_field_id( 'skype' ); ?>"><?php _e('Skype URL:', 'smw'); ?></label>
|
1082 |
-
<input id="<?php echo $this->get_field_id( 'skype' ); ?>" name="<?php echo $this->get_field_name( 'skype' ); ?>" value="<?php echo $instance['skype']; ?>" style="width:85%;" />
|
1083 |
-
</p>
|
1084 |
-
|
1085 |
-
<!-- Google Talk URL: Text Input -->
|
1086 |
-
<p>
|
1087 |
-
<label for="<?php echo $this->get_field_id( 'talk' ); ?>"><?php _e('Google Talk URL:', 'smw'); ?></label>
|
1088 |
-
<input id="<?php echo $this->get_field_id( 'talk' ); ?>" name="<?php echo $this->get_field_name( 'talk' ); ?>" value="<?php echo $instance['talk']; ?>" style="width:85%;" />
|
1089 |
-
</p>
|
1090 |
-
|
1091 |
-
<h3>Social News & Feeds</h3>
|
1092 |
-
<!-- Digg URL: Text Input -->
|
1093 |
-
<p>
|
1094 |
-
<label for="<?php echo $this->get_field_id( 'digg' ); ?>"><?php _e('Digg URL:', 'smw'); ?></label>
|
1095 |
-
<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%;" />
|
1096 |
-
</p>
|
1097 |
-
|
1098 |
-
<!-- Reddit URL: Text Input -->
|
1099 |
-
<p>
|
1100 |
-
<label for="<?php echo $this->get_field_id( 'reddit' ); ?>"><?php _e('Reddit URL:', 'smw'); ?></label>
|
1101 |
-
<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%;" />
|
1102 |
-
</p>
|
1103 |
-
|
1104 |
-
<!-- Delicious URL: Text Input -->
|
1105 |
-
<p>
|
1106 |
-
<label for="<?php echo $this->get_field_id( 'delicious' ); ?>"><?php _e('Delicious URL:', 'smw'); ?></label>
|
1107 |
-
<input id="<?php echo $this->get_field_id( 'delicious' ); ?>" name="<?php echo $this->get_field_name( 'delicious' ); ?>" value="<?php echo $instance['delicious']; ?>" style="width:85%;" />
|
1108 |
-
</p>
|
1109 |
|
1110 |
-
<!-- StumpleUpon URL: Text Input -->
|
1111 |
-
<p>
|
1112 |
-
<label for="<?php echo $this->get_field_id( 'stumble' ); ?>"><?php _e('StumbleUpon URL:', 'smw'); ?></label>
|
1113 |
-
<input id="<?php echo $this->get_field_id( 'stumble' ); ?>" name="<?php echo $this->get_field_name( 'stumble' ); ?>" value="<?php echo $instance['stumble']; ?>" style="width:85%;" />
|
1114 |
-
</p>
|
1115 |
-
|
1116 |
-
<!-- Buzz URL: Text Input -->
|
1117 |
-
<p>
|
1118 |
-
<label for="<?php echo $this->get_field_id( 'buzz' ); ?>"><?php _e('Buzz URL:', 'smw'); ?></label>
|
1119 |
-
<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%;" />
|
1120 |
-
</p>
|
1121 |
-
|
1122 |
-
<!-- FriendFeed URL: Text Input -->
|
1123 |
-
<p>
|
1124 |
-
<label for="<?php echo $this->get_field_id( 'friendfeed' ); ?>"><?php _e('FriendFeed URL:', 'smw'); ?></label>
|
1125 |
-
<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%;" />
|
1126 |
-
</p>
|
1127 |
-
|
1128 |
-
<!-- RSS URL: Text Input -->
|
1129 |
-
<p>
|
1130 |
-
<label for="<?php echo $this->get_field_id( 'rss_url' ); ?>"><?php _e('RSS URL:', 'smw'); ?></label>
|
1131 |
-
<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%;" />
|
1132 |
-
</p>
|
1133 |
-
|
1134 |
-
<!-- Slashdot URL: Text Input -->
|
1135 |
-
<p>
|
1136 |
-
<label for="<?php echo $this->get_field_id( 'slashdot' ); ?>"><?php _e('Slashdot URL:', 'smw'); ?></label>
|
1137 |
-
<input id="<?php echo $this->get_field_id( 'slashdot' ); ?>" name="<?php echo $this->get_field_name( 'slashdot' ); ?>" value="<?php echo $instance['slashdot']; ?>" style="width:85%;" />
|
1138 |
-
</p>
|
1139 |
-
|
1140 |
-
<!-- Subscribe URL: Text Input -->
|
1141 |
-
<p>
|
1142 |
-
<label for="<?php echo $this->get_field_id( 'subscribe' ); ?>"><?php _e('E-mail URL:', 'smw'); ?></label>
|
1143 |
-
<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%;" />
|
1144 |
-
</p>
|
1145 |
-
|
1146 |
-
<h3>Blogging</h3>
|
1147 |
-
<!-- Tumblr URL: Text Input -->
|
1148 |
-
<p>
|
1149 |
-
<label for="<?php echo $this->get_field_id( 'tumblr' ); ?>"><?php _e('Tumblr URL:', 'smw'); ?></label>
|
1150 |
-
<input id="<?php echo $this->get_field_id( 'tumblr' ); ?>" name="<?php echo $this->get_field_name( 'tumblr' ); ?>" value="<?php echo $instance['tumblr']; ?>" style="width:85%;" />
|
1151 |
-
</p>
|
1152 |
-
|
1153 |
-
<!-- Blogger URL: Text Input -->
|
1154 |
-
<p>
|
1155 |
-
<label for="<?php echo $this->get_field_id( 'blogger' ); ?>"><?php _e('Blogger URL:', 'smw'); ?></label>
|
1156 |
-
<input id="<?php echo $this->get_field_id( 'blogger' ); ?>" name="<?php echo $this->get_field_name( 'blogger' ); ?>" value="<?php echo $instance['blogger']; ?>" style="width:85%;" />
|
1157 |
-
</p>
|
1158 |
-
|
1159 |
-
<!-- Wordpress URL: Text Input -->
|
1160 |
-
<p>
|
1161 |
-
<label for="<?php echo $this->get_field_id( 'wordpress' ); ?>"><?php _e('Wordpress(Gravatar) URL:', 'smw'); ?></label>
|
1162 |
-
<input id="<?php echo $this->get_field_id( 'wordpress' ); ?>" name="<?php echo $this->get_field_name( 'wordpress' ); ?>" value="<?php echo $instance['wordpress']; ?>" style="width:85%;" />
|
1163 |
-
</p>
|
1164 |
-
|
1165 |
-
<h3>Business/Reviewing & Sharing</h3>
|
1166 |
-
<!-- Yelp URL: Text Input -->
|
1167 |
-
<p>
|
1168 |
-
<label for="<?php echo $this->get_field_id( 'yelp' ); ?>"><?php _e('Yelp URL:', 'smw'); ?></label>
|
1169 |
-
<input id="<?php echo $this->get_field_id( 'yelp' ); ?>" name="<?php echo $this->get_field_name( 'yelp' ); ?>" value="<?php echo $instance['yelp']; ?>" style="width:85%;" />
|
1170 |
-
</p>
|
1171 |
-
|
1172 |
-
<!-- SlideShare URL: Text Input -->
|
1173 |
-
<p>
|
1174 |
-
<label for="<?php echo $this->get_field_id( 'slideshare' ); ?>"><?php _e('SlideShare URL:', 'smw'); ?></label>
|
1175 |
-
<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%;" />
|
1176 |
-
</p>
|
1177 |
-
|
1178 |
-
<!-- Better Business Bureau URL: Text Input -->
|
1179 |
-
<p>
|
1180 |
-
<label for="<?php echo $this->get_field_id( 'bbb' ); ?>"><?php _e('Better Business Bureau URL:', 'smw'); ?></label>
|
1181 |
-
<input id="<?php echo $this->get_field_id( 'bbb' ); ?>" name="<?php echo $this->get_field_name( 'bbb' ); ?>" value="<?php echo $instance['bbb']; ?>" style="width:85%;" />
|
1182 |
-
</p>
|
1183 |
-
|
1184 |
-
<!-- Merchant Circle URL: Text Input -->
|
1185 |
-
<p>
|
1186 |
-
<label for="<?php echo $this->get_field_id( 'merchantcircle' ); ?>"><?php _e('Merchant Circle URL:', 'smw'); ?></label>
|
1187 |
-
<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%;" />
|
1188 |
-
</p>
|
1189 |
-
|
1190 |
-
<!-- Etsy URL: Text Input -->
|
1191 |
-
<p>
|
1192 |
-
<label for="<?php echo $this->get_field_id( 'etsy' ); ?>"><?php _e('Etsy URL:', 'smw'); ?></label>
|
1193 |
-
<input id="<?php echo $this->get_field_id( 'etsy' ); ?>" name="<?php echo $this->get_field_name( 'etsy' ); ?>" value="<?php echo $instance['etsy']; ?>" style="width:85%;" />
|
1194 |
-
</p>
|
1195 |
-
|
1196 |
-
<!-- Ebay URL: Text Input -->
|
1197 |
-
<p>
|
1198 |
-
<label for="<?php echo $this->get_field_id( 'ebay' ); ?>"><?php _e('Ebay URL:', 'smw'); ?></label>
|
1199 |
-
<input id="<?php echo $this->get_field_id( 'ebay' ); ?>" name="<?php echo $this->get_field_name( 'ebay' ); ?>" value="<?php echo $instance['ebay']; ?>" style="width:85%;" />
|
1200 |
-
</p>
|
1201 |
-
|
1202 |
-
<h3>Music & Audio</h3>
|
1203 |
-
<!-- Last.fm URL: Text Input -->
|
1204 |
-
<p>
|
1205 |
-
<label for="<?php echo $this->get_field_id( 'lastfm' ); ?>"><?php _e('Last.fm URL:', 'smw'); ?></label>
|
1206 |
-
<input id="<?php echo $this->get_field_id( 'lastfm' ); ?>" name="<?php echo $this->get_field_name( 'lastfm' ); ?>" value="<?php echo $instance['lastfm']; ?>" style="width:85%;" />
|
1207 |
-
</p>
|
1208 |
-
|
1209 |
-
<!-- Pandora URL: Text Input -->
|
1210 |
-
<p>
|
1211 |
-
<label for="<?php echo $this->get_field_id( 'pandora' ); ?>"><?php _e('Pandora URL:', 'smw'); ?></label>
|
1212 |
-
<input id="<?php echo $this->get_field_id( 'pandora' ); ?>" name="<?php echo $this->get_field_name( 'pandora' ); ?>" value="<?php echo $instance['pandora']; ?>" style="width:85%;" />
|
1213 |
-
</p>
|
1214 |
-
|
1215 |
-
<!-- iTunes Ping URL: Text Input -->
|
1216 |
-
<p>
|
1217 |
-
<label for="<?php echo $this->get_field_id( 'ping' ); ?>"><?php _e('iTunes Ping URL:', 'smw'); ?></label>
|
1218 |
-
<input id="<?php echo $this->get_field_id( 'ping' ); ?>" name="<?php echo $this->get_field_name( 'ping' ); ?>" value="<?php echo $instance['ping']; ?>" style="width:85%;" />
|
1219 |
-
</p>
|
1220 |
-
|
1221 |
-
<!-- Live365 URL: Text Input -->
|
1222 |
-
<p>
|
1223 |
-
<label for="<?php echo $this->get_field_id( 'live365' ); ?>"><?php _e('Live365 URL:', 'smw'); ?></label>
|
1224 |
-
<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%;" />
|
1225 |
-
</p>
|
1226 |
|
1227 |
-
|
1228 |
-
|
1229 |
-
|
1230 |
-
|
1231 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1232 |
|
1233 |
-
|
1234 |
-
|
1235 |
-
|
1236 |
-
|
1237 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1238 |
|
1239 |
-
|
1240 |
-
|
1241 |
-
|
1242 |
-
|
1243 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1244 |
|
1245 |
-
<
|
1246 |
-
|
1247 |
-
<
|
1248 |
-
|
1249 |
-
|
1250 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1251 |
|
1252 |
-
<
|
1253 |
-
|
1254 |
-
<
|
1255 |
-
|
1256 |
-
|
1257 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1258 |
</div>
|
1259 |
-
|
1260 |
|
1261 |
-
<p><
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1262 |
</p>
|
1263 |
-
<strong>Custom Services</strong>
|
1264 |
<!-- Custom Service 1: Text Input -->
|
1265 |
|
|
|
1266 |
<p>
|
1267 |
-
<label for="<?php echo $this->get_field_id( '
|
1268 |
-
<input id="<?php echo $this->get_field_id( '
|
1269 |
-
<
|
1270 |
-
<
|
1271 |
-
<
|
1272 |
-
<
|
1273 |
-
|
1274 |
-
|
1275 |
-
<!-- Custom Service 2: Text Input -->
|
1276 |
-
<p>
|
1277 |
-
<label for="<?php echo $this->get_field_id( 'custom2name' ); ?>"><?php _e('Custom Service 2 Name:', 'smw'); ?></label>
|
1278 |
-
<input id="<?php echo $this->get_field_id( 'custom2name' ); ?>" name="<?php echo $this->get_field_name( 'custom2name' ); ?>" value="<?php echo $instance['custom2name']; ?>" style="width:85%;" />
|
1279 |
-
<label for="<?php echo $this->get_field_id( 'custom2icon' ); ?>"><?php _e('Custom Service 2 Icon URL:', 'smw'); ?></label>
|
1280 |
-
<input id="<?php echo $this->get_field_id( 'custom2icon' ); ?>" name="<?php echo $this->get_field_name( 'custom2icon' ); ?>" value="<?php echo $instance['custom2icon']; ?>" style="width:85%;" />
|
1281 |
-
<label for="<?php echo $this->get_field_id( 'custom2url' ); ?>"><?php _e('Custom Service 2 Profile URL:', 'smw'); ?></label>
|
1282 |
-
<input id="<?php echo $this->get_field_id( 'custom2url' ); ?>" name="<?php echo $this->get_field_name( 'custom2url' ); ?>" value="<?php echo $instance['custom2url']; ?>" style="width:85%;" />
|
1283 |
</p>
|
|
|
1284 |
|
1285 |
-
|
1286 |
-
<p>
|
1287 |
-
<label for="<?php echo $this->get_field_id( 'custom3name' ); ?>"><?php _e('Custom Service 3 Name:', 'smw'); ?></label>
|
1288 |
-
<input id="<?php echo $this->get_field_id( 'custom3name' ); ?>" name="<?php echo $this->get_field_name( 'custom3name' ); ?>" value="<?php echo $instance['custom3name']; ?>" style="width:85%;" />
|
1289 |
-
<label for="<?php echo $this->get_field_id( 'custom3icon' ); ?>"><?php _e('Custom Service 3 Icon URL:', 'smw'); ?></label>
|
1290 |
-
<input id="<?php echo $this->get_field_id( 'custom3icon' ); ?>" name="<?php echo $this->get_field_name( 'custom3icon' ); ?>" value="<?php echo $instance['custom3icon']; ?>" style="width:85%;" />
|
1291 |
-
<label for="<?php echo $this->get_field_id( 'custom3url' ); ?>"><?php _e('Custom Service 3 Profile URL:', 'smw'); ?></label>
|
1292 |
-
<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%;" />
|
1293 |
-
</p>
|
1294 |
-
|
1295 |
-
<!-- Custom Service 4: Text Input -->
|
1296 |
-
<p>
|
1297 |
-
<label for="<?php echo $this->get_field_id( 'custom4name' ); ?>"><?php _e('Custom Service 4 Name:', 'smw'); ?></label>
|
1298 |
-
<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%;" />
|
1299 |
-
<label for="<?php echo $this->get_field_id( 'custom4icon' ); ?>"><?php _e('Custom Service 4 Icon URL:', 'smw'); ?></label>
|
1300 |
-
<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%;" />
|
1301 |
-
<label for="<?php echo $this->get_field_id( 'custom4url' ); ?>"><?php _e('Custom Service 4 Profile URL:', 'smw'); ?></label>
|
1302 |
-
<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%;" />
|
1303 |
-
</p>
|
1304 |
-
|
1305 |
-
<!-- Custom Service 5: Text Input -->
|
1306 |
-
<p>
|
1307 |
-
<label for="<?php echo $this->get_field_id( 'custom5name' ); ?>"><?php _e('Custom Service 5 Name:', 'smw'); ?></label>
|
1308 |
-
<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%;" />
|
1309 |
-
<label for="<?php echo $this->get_field_id( 'custom5icon' ); ?>"><?php _e('Custom Service 5 Icon URL:', 'smw'); ?></label>
|
1310 |
-
<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%;" />
|
1311 |
-
<label for="<?php echo $this->get_field_id( 'custom5url' ); ?>"><?php _e('Custom Service 5 Profile URL:', 'smw'); ?></label>
|
1312 |
-
<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%;" />
|
1313 |
-
</p>
|
1314 |
-
|
1315 |
-
<!-- Custom Service 6: Text Input -->
|
1316 |
-
<p>
|
1317 |
-
<label for="<?php echo $this->get_field_id( 'custom6name' ); ?>"><?php _e('Custom Service 6 Name:', 'smw'); ?></label>
|
1318 |
-
<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%;" />
|
1319 |
-
<label for="<?php echo $this->get_field_id( 'custom6icon' ); ?>"><?php _e('Custom Service 6 Icon URL:', 'smw'); ?></label>
|
1320 |
-
<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%;" />
|
1321 |
-
<label for="<?php echo $this->get_field_id( 'custom6url' ); ?>"><?php _e('Custom Service 6 Profile URL:', 'smw'); ?></label>
|
1322 |
-
<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%;" />
|
1323 |
-
</p>
|
1324 |
|
1325 |
-
|
1326 |
-
|
1327 |
|
1328 |
<!-- Custom Icon Pack URL: Text Input -->
|
1329 |
<p>
|
1330 |
<label for="<?php echo $this->get_field_id( 'customiconsurl' ); ?>"><?php _e('Custom Icons URL:', 'smw'); ?></label>
|
1331 |
-
<input id="<?php echo $this->get_field_id( 'customiconsurl' ); ?>" name="<?php echo $this->get_field_name( 'customiconsurl' ); ?>" value="<?php echo $instance['customiconsurl']; ?>"
|
1332 |
</p>
|
1333 |
|
1334 |
<!-- Custom Icon Pack Path: Text Input -->
|
1335 |
<p>
|
1336 |
<label for="<?php echo $this->get_field_id( 'customiconspath' ); ?>"><?php _e('Custom Icons Path:', 'smw'); ?></label>
|
1337 |
-
<input id="<?php echo $this->get_field_id( 'customiconspath' ); ?>" name="<?php echo $this->get_field_name( 'customiconspath' ); ?>" value="<?php echo $instance['customiconspath']; ?>"
|
1338 |
</p>
|
1339 |
|
1340 |
|
3 |
* Plugin Name: Social Media Widget
|
4 |
* Plugin URI: http://wordpress.org/extend/plugins/social-media-widget/
|
5 |
* Description: Adds links to all of your social media and sharing site profiles. Tons of icons come in 3 sizes, 4 icon styles, and 4 animations.
|
6 |
+
* Version: 3.0.1
|
7 |
* Author: Blink Web Effects
|
8 |
* Author URI: http://blinkwebeffects.com/
|
9 |
**/
|
40 |
$widget_ops = array( 'classname' => 'Social_Widget', 'description' => __('A widget that allows the user to display social media icons in their sidebar', 'smw') );
|
41 |
|
42 |
/* Widget control settings. */
|
43 |
+
$control_ops = array( 'id_base' => 'social-widget' );
|
44 |
|
45 |
/* Create the widget. */
|
46 |
$this->WP_Widget( 'social-widget', __('Social Media Widget', 'smw'), $widget_ops, $control_ops );
|
47 |
+
|
48 |
+
$this->networks = array(
|
49 |
+
'facebook' => array(
|
50 |
+
'title' => 'Facebook',
|
51 |
+
'image' => 'facebook.png'
|
52 |
+
),
|
53 |
+
'googleplus' => array(
|
54 |
+
'title' => 'Google+',
|
55 |
+
'image' => 'googleplus.png'
|
56 |
+
),
|
57 |
+
'twitter' => array(
|
58 |
+
'title' => 'Twitter',
|
59 |
+
'image' => 'twitter.png'
|
60 |
+
),
|
61 |
+
'myspace' => array(
|
62 |
+
'title' => 'MySpace',
|
63 |
+
'image' => 'myspace.png'
|
64 |
+
),
|
65 |
+
'friendfeed' => array(
|
66 |
+
'title' => 'FriendFeed',
|
67 |
+
'image' => 'friendfeed.png'
|
68 |
+
),
|
69 |
+
'orkut' => array(
|
70 |
+
'title' => 'Orkut',
|
71 |
+
'image' => 'orkut.png'
|
72 |
+
),
|
73 |
+
'hyves' => array(
|
74 |
+
'title' => 'Hyves',
|
75 |
+
'image' => 'hyves.png'
|
76 |
+
),
|
77 |
+
'linkedin' => array(
|
78 |
+
'title' => 'LinkedIn',
|
79 |
+
'image' => 'linkedin.png'
|
80 |
+
),
|
81 |
+
'asmallworld' => array(
|
82 |
+
'title' => 'aSmallWorld',
|
83 |
+
'image' => 'asmallworld.png'
|
84 |
+
),
|
85 |
+
'flickr' => array(
|
86 |
+
'title' => 'Flickr',
|
87 |
+
'image' => 'flickr.png'
|
88 |
+
),
|
89 |
+
'instagram' => array(
|
90 |
+
'title' => 'Instagram',
|
91 |
+
'image' => 'instagram.png'
|
92 |
+
),
|
93 |
+
'picasa' => array(
|
94 |
+
'title' => 'Picasa',
|
95 |
+
'image' => 'picasa.png'
|
96 |
+
),
|
97 |
+
'pinterest' => array(
|
98 |
+
'title' => 'Pinterest',
|
99 |
+
'image' => 'pinterest.png'
|
100 |
+
),
|
101 |
+
'youtube' => array(
|
102 |
+
'title' => 'YouTube',
|
103 |
+
'image' => 'youtube.png'
|
104 |
+
),
|
105 |
+
'aboutme' => array(
|
106 |
+
'title' => 'About.me',
|
107 |
+
'image' => 'aboutme.png'
|
108 |
+
),
|
109 |
+
'skype' => array(
|
110 |
+
'title' => 'Skype',
|
111 |
+
'image' => 'skype.png'
|
112 |
+
),
|
113 |
+
'digg' => array(
|
114 |
+
'title' => 'Digg',
|
115 |
+
'image' => 'digg.png'
|
116 |
+
),
|
117 |
+
'reddit' => array(
|
118 |
+
'title' => 'Reddit',
|
119 |
+
'image' => 'reddit.png'
|
120 |
+
),
|
121 |
+
'delicious' => array(
|
122 |
+
'title' => 'Delicious',
|
123 |
+
'image' => 'delicious.png'
|
124 |
+
),
|
125 |
+
'stumble' => array(
|
126 |
+
'title' => 'StumbleUpon',
|
127 |
+
'image' => 'stumble.png'
|
128 |
+
),
|
129 |
+
'tumblr' => array(
|
130 |
+
'title' => 'Tumblr',
|
131 |
+
'image' => 'tumblr.png'
|
132 |
+
),
|
133 |
+
'github' => array(
|
134 |
+
'title' => 'Github',
|
135 |
+
'image' => 'github.png'
|
136 |
+
),
|
137 |
+
'buzz' => array(
|
138 |
+
'title' => 'Buzz',
|
139 |
+
'image' => 'buzz.png'
|
140 |
+
),
|
141 |
+
'talk' => array(
|
142 |
+
'title' => 'Google Talk',
|
143 |
+
'image' => 'talk.png'
|
144 |
+
),
|
145 |
+
'vimeo' => array(
|
146 |
+
'title' => 'Vimeo',
|
147 |
+
'image' => 'vimeo.png'
|
148 |
+
),
|
149 |
+
'blogger' => array(
|
150 |
+
'title' => 'Blogger',
|
151 |
+
'image' => 'blogger.png'
|
152 |
+
),
|
153 |
+
'wordpress' => array(
|
154 |
+
'title' => 'Wordpress',
|
155 |
+
'image' => 'wordpress.png'
|
156 |
+
),
|
157 |
+
'yelp' => array(
|
158 |
+
'title' => 'Yelp',
|
159 |
+
'image' => 'yelp.png'
|
160 |
+
),
|
161 |
+
'lastfm' => array(
|
162 |
+
'title' => 'Last.fm',
|
163 |
+
'image' => 'lastfm.png'
|
164 |
+
),
|
165 |
+
'pandora' => array(
|
166 |
+
'title' => 'Pandora',
|
167 |
+
'image' => 'pandora.png'
|
168 |
+
),
|
169 |
+
'ustream' => array(
|
170 |
+
'title' => 'UStream',
|
171 |
+
'image' => 'ustream.png'
|
172 |
+
),
|
173 |
+
'imdb' => array(
|
174 |
+
'title' => 'IMDb',
|
175 |
+
'image' => 'imdb.png'
|
176 |
+
),
|
177 |
+
'hulu' => array(
|
178 |
+
'title' => 'Hulu',
|
179 |
+
'image' => 'hulu.png'
|
180 |
+
),
|
181 |
+
'flixster' => array(
|
182 |
+
'title' => 'Flixster',
|
183 |
+
'image' => 'flixster.png'
|
184 |
+
),
|
185 |
+
'foursquare' => array(
|
186 |
+
'title' => 'Foursquare',
|
187 |
+
'image' => 'foursquare.png'
|
188 |
+
),
|
189 |
+
'meetup' => array(
|
190 |
+
'title' => 'Meetup',
|
191 |
+
'image' => 'meetup.png'
|
192 |
+
),
|
193 |
+
'plancast' => array(
|
194 |
+
'title' => 'PlanCast',
|
195 |
+
'image' => 'plancast.png'
|
196 |
+
),
|
197 |
+
'slideshare' => array(
|
198 |
+
'title' => 'SlideShare',
|
199 |
+
'image' => 'slideshare.png'
|
200 |
+
),
|
201 |
+
'deviantart' => array(
|
202 |
+
'title' => 'DeviantArt',
|
203 |
+
'image' => 'deviantart.png'
|
204 |
+
),
|
205 |
+
'ping' => array(
|
206 |
+
'title' => 'iTunes Ping',
|
207 |
+
'image' => 'ping.png'
|
208 |
+
),
|
209 |
+
'live365' => array(
|
210 |
+
'title' => 'Live365',
|
211 |
+
'image' => 'live365.png'
|
212 |
+
),
|
213 |
+
'digitaltunes' => array(
|
214 |
+
'title' => 'Digital Tunes',
|
215 |
+
'image' => 'digitaltunes.png'
|
216 |
+
),
|
217 |
+
'soundcloud' => array(
|
218 |
+
'title' => 'Soundcloud',
|
219 |
+
'image' => 'soundcloud.png'
|
220 |
+
),
|
221 |
+
'bandcamp' => array(
|
222 |
+
'title' => 'Bandcamp',
|
223 |
+
'image' => 'bandcamp.png'
|
224 |
+
),
|
225 |
+
'etsy' => array(
|
226 |
+
'title' => 'Etsy',
|
227 |
+
'image' => 'etsy.png'
|
228 |
+
),
|
229 |
+
'bbb' => array(
|
230 |
+
'title' => 'Better Business Bureau',
|
231 |
+
'image' => 'bbb.png'
|
232 |
+
),
|
233 |
+
'merchantcircle' => array(
|
234 |
+
'title' => 'Merchant Circle',
|
235 |
+
'image' => 'merchantcircle.png'
|
236 |
+
),
|
237 |
+
'ebay' => array(
|
238 |
+
'title' => 'Ebay',
|
239 |
+
'image' => 'ebay.png'
|
240 |
+
),
|
241 |
+
'steam' => array(
|
242 |
+
'title' => 'Steam',
|
243 |
+
'image' => 'steam.png'
|
244 |
+
),
|
245 |
+
'slashdot' => array(
|
246 |
+
'title' => 'Slashdot',
|
247 |
+
'image' => 'slashdot.png'
|
248 |
+
),
|
249 |
+
'goodreads' => array(
|
250 |
+
'title' => 'Goodreads',
|
251 |
+
'image' => 'goodreads.png'
|
252 |
+
),
|
253 |
+
'cuttingsme' => array(
|
254 |
+
'title' => 'Cuttings.me',
|
255 |
+
'image' => 'cuttings.png'
|
256 |
+
),
|
257 |
+
);
|
258 |
+
|
259 |
+
$this->networks_end = array(
|
260 |
+
'rss_url' => array(
|
261 |
+
'title' => 'RSS',
|
262 |
+
'image' => 'rss.png'
|
263 |
+
),
|
264 |
+
'subscribe' => array(
|
265 |
+
'title' => 'E-mail',
|
266 |
+
'image' => 'email.png'
|
267 |
+
),
|
268 |
+
);
|
269 |
+
|
270 |
+
$this->custom_count = 12;
|
271 |
}
|
272 |
|
273 |
/* Display the widget */
|
277 |
/* Our variables from the widget settings. */
|
278 |
$title = apply_filters('widget_title', $instance['title'] );
|
279 |
$text = apply_filters( 'widget_text', $instance['text'], $instance );
|
280 |
+
|
281 |
+
$this->imgcaption = $instance['imgcaption'];
|
282 |
+
$this->animation = $instance['animation'];
|
283 |
+
$this->icon_opacity = $instance['icon_opacity'];
|
284 |
+
$this->newtab = $instance['newtab'];
|
285 |
+
$this->nofollow = $instance['nofollow'];
|
286 |
+
$this->icon_size = $instance['icon_size'];
|
287 |
+
// $this->display_titles = $instance['display_titles'];
|
288 |
+
$this->icons_per_row = $instance['icons_per_row'];
|
289 |
+
$alignment = $instance['alignment'];
|
290 |
+
$icon_pack = $instance['icon_pack'];
|
291 |
+
|
292 |
+
foreach ($this->networks as $slug => $ndata) {
|
293 |
+
$$slug = $instance[$slug];
|
294 |
+
${$slug."_title"} = $instance[$slug."_title"];
|
295 |
+
}
|
296 |
+
foreach ($this->networks_end as $slug => $ndata) {
|
297 |
+
$$slug = $instance[$slug];
|
298 |
+
${$slug."_title"} = $instance[$slug."_title"];
|
299 |
+
}
|
300 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
301 |
$customiconsurl = $instance['customiconsurl'];
|
302 |
$customiconspath = $instance['customiconspath'];
|
303 |
+
for ($i = 1; $i <= $this->custom_count; $i++) {
|
304 |
+
${"custom".$i."icon"} = $instance['custom'.$i.'icon'];
|
305 |
+
${"custom".$i."name"} = $instance['custom'.$i.'name'];
|
306 |
+
${"custom".$i."url"} = $instance['custom'.$i.'url'];
|
307 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
308 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
309 |
|
310 |
/* Choose Icon Size if Value is 'default' */
|
311 |
+
if($this->icon_size == 'default') {
|
312 |
+
$this->icon_size = '32';
|
313 |
}
|
314 |
|
315 |
/* Choose icon opacity if Value is 'default' */
|
316 |
+
if($this->icon_opacity == 'default') {
|
317 |
+
$this->icon_opacity = '0.8';
|
318 |
}
|
319 |
|
320 |
/* Need to make opacity a whole number for IE styling filter() */
|
321 |
+
$icon_ie = $this->icon_opacity * 100;
|
322 |
|
323 |
/* Check to see if nofollow is set or not */
|
324 |
+
if ($this->nofollow == 'on') {
|
325 |
+
$this->nofollow = "rel=\"nofollow\"";
|
326 |
} else {
|
327 |
+
$this->nofollow = '';
|
328 |
}
|
329 |
|
330 |
|
331 |
/* Check to see if New Tab is set to yes */
|
332 |
+
if ($this->newtab == 'yes') {
|
333 |
+
$this->newtab = "target=\"_blank\"";
|
334 |
} else {
|
335 |
+
$this->newtab = '';
|
336 |
}
|
337 |
|
338 |
/* Set alignment */
|
339 |
if ($alignment == 'centered') {
|
340 |
$alignment = 'smw_center';
|
341 |
+
} elseif ($alignment == 'right') {
|
342 |
+
$alignment = 'smw_right';
|
343 |
+
} else {
|
344 |
+
$alignment = 'smw_left';
|
345 |
+
}
|
346 |
|
347 |
/* Get Plugin Path */
|
348 |
if($icon_pack == 'custom') {
|
349 |
+
$this->smw_path = $customiconsurl;
|
350 |
+
$this->smw_dir = $customiconspath;
|
351 |
+
} else {
|
352 |
+
$this->smw_path = SMW_PLUGINPATH . 'images/' . $icon_pack. '/' . $this->icon_size;
|
353 |
+
$this->smw_dir = SMW_PLUGINDIR . 'images/' . $icon_pack. '/' . $this->icon_size;
|
354 |
+
}
|
355 |
|
356 |
/* Before widget (defined by themes). */
|
357 |
echo $before_widget;
|
362 |
|
363 |
|
364 |
|
365 |
+
echo "<div class=\"socialmedia-buttons ".$alignment.($this->icons_per_row == 'one' ? ' icons_per_row_1' : '')."\">";
|
366 |
/* Display short description */
|
367 |
|
368 |
if ( $text )
|
369 |
echo "<div class=\"socialmedia-text\>" . $instance['filter'] ? wpautop($text) : $text . '</div>';
|
370 |
|
371 |
/* Display linked images to profiles from widget settings if one was input. */
|
372 |
+
|
373 |
+
$html_chunks = array();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
374 |
|
375 |
+
foreach ($this->networks as $slug => $ndata) {
|
376 |
+
$html_chunks[] = $this->html_chunk( $$slug, $ndata['image'], ${$slug."_title"} );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
377 |
}
|
378 |
|
379 |
+
for ($i = 1; $i <= $this->custom_count; $i++) {
|
380 |
+
$html_chunks[] = $this->html_chunk( ${"custom".$i."url"}, ${"custom".$i."icon"}, ${"custom".$i."name"}, true );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
381 |
}
|
382 |
|
383 |
+
foreach ($this->networks_end as $slug => $ndata) {
|
384 |
+
$html_chunks[] = $this->html_chunk( $$slug, $ndata['image'], ${$slug."_title"} );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
385 |
}
|
386 |
|
387 |
+
echo implode('', $html_chunks);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
388 |
|
389 |
+
/* After widget (defined by themes). */
|
|
|
|
|
|
|
|
|
|
|
390 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
391 |
echo "</div>";
|
392 |
|
393 |
echo $after_widget;
|
394 |
}
|
395 |
|
396 |
+
function html_chunk( $slug, $image, $title, $custom = false ) {
|
397 |
+
if ($slug != '' && $slug != ' ' && $slug != 'mailto:' && $slug != 'http://' && (($custom === false && file_exists($this->smw_dir . '/' . $image)) || ($custom === true && $image != ''))) {
|
398 |
+
$img = $custom === false ? $this->smw_path . '/' . $image : $image;
|
399 |
+
$html = '<span class="smw_icon">';
|
400 |
+
/*
|
401 |
+
if ($this->display_titles == 'left') {
|
402 |
+
$html .= '<span> ' . $title . ' </span>';
|
403 |
+
}
|
404 |
+
elseif ($this->display_titles == 'above') {
|
405 |
+
$html .= '<span> ' . $title . ' </span><br/>';
|
406 |
+
}
|
407 |
+
*/
|
408 |
+
$html .= '<a href="' . $slug . '" ' . $this->nofollow . ' ' . $this->newtab.'>';
|
409 |
+
$html .= '<img width="' . $this->icon_size .'" height="' . $this->icon_size . '" src="' . $img . '" alt="' . $this->imgcaption . ' ' . $title . '" title="' . $this->imgcaption .' ' . $title . '" ' . ($this->animation == 'fade' || $this->animation == 'combo' ? 'style="opacity: ' . $this->icon_opacity . '; -moz-opacity: ' . $this->icon_opacity . ';"' : '') . 'class="' . $this->animation . '" />';
|
410 |
+
$html .= '</a>';
|
411 |
+
/*
|
412 |
+
if ($this->display_titles == 'right') {
|
413 |
+
$html .= '<span> ' . $title . ' </span>';
|
414 |
+
}
|
415 |
+
elseif ($this->display_titles == 'below') {
|
416 |
+
$html .= '<br/><span> ' . $title . ' </span>';
|
417 |
+
}
|
418 |
+
*/
|
419 |
+
$html .= '</span>';
|
420 |
+
if ($this->icons_per_row == 'one') {
|
421 |
+
$html .= '<br/>';
|
422 |
+
}
|
423 |
+
return $html;
|
424 |
+
}
|
425 |
+
}
|
426 |
+
|
427 |
/* Update the widget settings */
|
428 |
function update( $new_instance, $old_instance ) {
|
429 |
$instance = $old_instance;
|
434 |
$instance['text'] = $new_instance['text'];
|
435 |
else
|
436 |
$instance['text'] = stripslashes( wp_filter_post_kses( addslashes($new_instance['text']) ) ); // wp_filter_post_kses() expects slashed
|
437 |
+
$instance['imgcaption'] = $new_instance['imgcaption'];
|
438 |
+
$instance['icon_size'] = $new_instance['icon_size'];
|
439 |
+
$instance['icon_pack'] = $new_instance['icon_pack'];
|
440 |
+
$instance['animation'] = $new_instance['animation'];
|
441 |
+
$instance['icon_opacity'] = $new_instance['icon_opacity'];
|
442 |
+
$instance['newtab'] = $new_instance['newtab'];
|
443 |
+
$instance['nofollow'] = $new_instance['nofollow'];
|
444 |
+
$instance['alignment'] = $new_instance['alignment'];
|
445 |
+
$instance['display_titles'] = $new_instance['display_titles'];
|
446 |
+
$instance['icons_per_row'] = $new_instance['icons_per_row'];
|
447 |
+
|
448 |
+
foreach ($this->networks as $slug => $ndata) {
|
449 |
+
$instance[$slug] = !empty($new_instance[$slug]) ? strip_tags( $new_instance[$slug] ) : 'http://';
|
450 |
+
// $instance[$slug.'_title'] = strip_tags( $new_instance[$slug.'_title'] );
|
451 |
+
}
|
452 |
+
|
453 |
+
foreach ($this->networks_end as $slug => $ndata) {
|
454 |
+
$instance[$slug] = strip_tags( $new_instance[$slug] );
|
455 |
+
// $instance[$slug.'_title'] = strip_tags( $new_instance[$slug.'_title'] );
|
456 |
+
}
|
457 |
+
|
458 |
+
for ($i = 1; $i <= $this->custom_count; $i++) {
|
459 |
+
$instance['custom'.$i.'name'] = strip_tags( $new_instance['custom'.$i.'name'] );
|
460 |
+
$instance['custom'.$i.'icon'] = strip_tags( $new_instance['custom'.$i.'icon'] );
|
461 |
+
$instance['custom'.$i.'url'] = strip_tags( $new_instance['custom'.$i.'url'] );
|
462 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
463 |
$instance['customiconsurl'] = strip_tags( $new_instance['customiconsurl'] );
|
464 |
$instance['customiconspath'] = strip_tags( $new_instance['customiconspath'] );
|
465 |
|
475 |
|
476 |
/* Set up some default widget settings. */
|
477 |
$defaults = array(
|
478 |
+
'title' => __('Follow Us!', 'smw'),
|
479 |
+
'text' => '',
|
480 |
+
'imgcaption' => __('Follow Us on', 'smw'),
|
481 |
+
'icon_size' => 'default',
|
482 |
+
'icon_pack' => 'default',
|
483 |
+
'icon_opacity' => 'default',
|
484 |
+
'newtab' => 'yes',
|
485 |
+
'nofollow' => 'on',
|
486 |
+
'alignment' => 'left',
|
487 |
+
// 'display_titles' => 'no',
|
488 |
+
'icons_per_row' => 'auto',
|
489 |
+
'customiconsurl' => __('http://wwww.yoursite.com/wordpress/wp-content/your-icons', 'smw'),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
490 |
'customiconspath' => __('/path/to/your-icons', 'smw'),
|
491 |
);
|
492 |
+
foreach ($this->networks as $slug => $ndata) {
|
493 |
+
$defaults[$slug] = __('http://', 'smw');
|
494 |
+
// $defaults[$slug.'_title'] = __($ndata['title'], 'smw');
|
495 |
+
}
|
496 |
+
foreach ($this->networks_end as $slug => $ndata) {
|
497 |
+
$defaults[$slug] = __($slug == 'subscribe' ? 'mailto:' : 'http://', 'smw');
|
498 |
+
// $defaults[$slug.'_title'] = __($ndata['title'], 'smw');
|
499 |
+
}
|
500 |
+
for ($i = 1; $i <= $this->custom_count; $i++) {
|
501 |
+
$defaults['custom'.$i.'name'] = __('', 'smw');
|
502 |
+
$defaults['custom'.$i.'icon'] = __('', 'smw');
|
503 |
+
$defaults['custom'.$i.'url'] = __('', 'smw');
|
504 |
+
}
|
505 |
|
506 |
$instance = wp_parse_args( (array) $instance, $defaults ); ?>
|
507 |
<p>
|
509 |
If you do not want an icon to be visible, simply leave the input box blank.</em></b>
|
510 |
</p>
|
511 |
|
512 |
+
<div>
|
513 |
+
<p><a href="javascript:;" onclick="jQuery(this).parent().next('div').slideToggle();" style="background: url('images/arrows.png') no-repeat; padding-left: 15px;"><strong>General Settings</strong></a></p>
|
514 |
+
|
515 |
+
<div style="display: none;">
|
516 |
<!-- Widget Title: Text Input -->
|
517 |
<p>
|
518 |
<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Title:', 'smw'); ?></label>
|
519 |
+
<input id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $instance['title']; ?>" class="widefat" type="text" />
|
520 |
</p>
|
521 |
|
522 |
<!-- Widget Text: Textarea -->
|
523 |
<p>
|
524 |
<label for"<?php echo $this->get_field_id( 'text' ); ?>"><?php _e('Widget Text:', 'smw'); ?></label>
|
525 |
+
<textarea id="<?php echo $this->get_field_id('text'); ?>" name="<?php echo $this->get_field_name('text'); ?>" rows="8" cols="20" class="widefat"><?php echo $instance['text']; ?></textarea>
|
526 |
</p>
|
527 |
|
528 |
<!-- Image Caption: Text Input -->
|
529 |
<p>
|
530 |
<label for="<?php echo $this->get_field_id( 'imgcaption' ); ?>"><?php _e('Icon Alt and Title Tag:', 'smw'); ?></label>
|
531 |
+
<input id="<?php echo $this->get_field_id( 'imgcaption' ); ?>" name="<?php echo $this->get_field_name( 'imgcaption' ); ?>" value="<?php echo $instance['imgcaption']; ?>" class="widefat" type="text" />
|
532 |
</p>
|
533 |
|
534 |
<!-- Choose Icon Size: Dropdown -->
|
|
|
535 |
<p>
|
536 |
<label for="<?php echo $this->get_field_id( 'icon_size' ); ?>"><?php _e('Icon Size', 'smw'); ?></label>
|
537 |
+
<select id="<?php echo $this->get_field_id( 'icon_size' ); ?>" name="<?php echo $this->get_field_name( 'icon_size' ); ?>" style="float:right;">
|
538 |
<option value="16" <?php if($instance['icon_size'] == '16') { echo 'selected'; } ?>>16px</option>
|
539 |
<option value="default" <?php if($instance['icon_size'] == 'default') { echo 'selected'; } ?>>Default (32px)</option>
|
540 |
<option value="64" <?php if($instance['icon_size'] == '64') { echo 'selected'; } ?>>64px</option>
|
541 |
</select>
|
542 |
</p>
|
543 |
+
<div class="clear"></div>
|
544 |
|
545 |
+
<!-- Choose Icon Pack: Dropdown -->
|
546 |
<p>
|
547 |
<label for="<?php echo $this->get_field_id( 'icon_pack' ); ?>"><?php _e('Icon Pack', 'smw'); ?></label>
|
548 |
+
<select id="<?php echo $this->get_field_id( 'icon_pack' ); ?>" name="<?php echo $this->get_field_name( 'icon_pack' ); ?>" style="float:right;">
|
549 |
<option value="cutout" <?php if($instance['icon_pack'] == 'cutout') { echo 'selected'; } ?>>Cutout Icons</option>
|
550 |
<option value="heart" <?php if($instance['icon_pack'] == 'heart') { echo 'selected'; } ?>>Heart Icons</option>
|
551 |
<option value="default" <?php if($instance['icon_pack'] == 'default') { echo 'selected'; } ?>>Default Icons (Web2.0)</option>
|
553 |
<option value="custom" <?php if($instance['icon_pack'] == 'custom') { echo 'selected'; } ?>>Custom Icons</option>
|
554 |
</select>
|
555 |
</p>
|
556 |
+
<div class="clear"></div>
|
557 |
|
558 |
+
<!-- Type of Animation: Dropdown -->
|
559 |
<p>
|
560 |
<label for="<?php echo $this->get_field_id( 'animation' ); ?>"><?php _e('Type of Animation', 'smw'); ?></label>
|
561 |
+
<select id="<?php echo $this->get_field_id( 'animation' ); ?>" name="<?php echo $this->get_field_name( 'animation' ); ?>" style="float:right;">
|
562 |
<option value="fade" <?php if($instance['animation'] == 'fade') { echo 'selected'; } ?>>Fade In</option>
|
563 |
<option value="scale" <?php if($instance['animation'] == 'scale') { echo 'selected'; } ?>>Scale</option>
|
564 |
<option value="bounce" <?php if($instance['animation'] == 'bounce') { echo 'selected'; } ?>>Bounce</option>
|
565 |
<option value="combo" <?php if($instance['animation'] == 'combo') { echo 'selected'; } ?>>Combo</option>
|
566 |
</select>
|
567 |
</p>
|
568 |
+
<div class="clear"></div>
|
569 |
|
570 |
+
<!--Starting Icon Opacity: Dropdown -->
|
571 |
<p>
|
572 |
<label for="<?php echo $this->get_field_id( 'icon_opacity' ); ?>"><?php _e('Default Icon Opacity', 'smw'); ?></label>
|
573 |
+
<select id="<?php echo $this->get_field_id( 'icon_opacity' ); ?>" name="<?php echo $this->get_field_name( 'icon_opacity' ); ?>" style="float:right;">
|
574 |
<option value="0.5" <?php if($instance['icon_opacity'] == '0.5') { echo 'selected'; } ?>>50%</option>
|
575 |
<option value="0.6" <?php if($instance['icon_opacity'] == '0.6') { echo 'selected'; } ?>>60%</option>
|
576 |
<option value="0.7" <?php if($instance['icon_opacity'] == '0.7') { echo 'selected'; } ?>>70%</option>
|
580 |
</select>
|
581 |
<span style="color: #999;"><em>Only applies to Fade and Combo animations</em></span>
|
582 |
</p>
|
583 |
+
<div class="clear"></div>
|
584 |
|
585 |
<!-- No Follow On or Off: Dropdown -->
|
586 |
<p>
|
587 |
<label for="<?php echo $this->get_field_id( 'nofollow' ); ?>"><?php _e('Use rel="nofollow" for links', 'smw'); ?></label>
|
588 |
+
<select id="<?php echo $this->get_field_id( 'nofollow' ); ?>" name="<?php echo $this->get_field_name( 'nofollow' ); ?>" style="float:right;">
|
589 |
<option value="on" <?php if($instance['nofollow'] == 'on') { echo 'selected'; } ?>>On</option>
|
590 |
<option value="off" <?php if($instance['nofollow'] == 'off') { echo 'selected'; } ?>>Off</option>
|
591 |
</select>
|
592 |
</p>
|
593 |
+
<div class="clear"></div>
|
594 |
|
595 |
<!-- Open in new tab: Dropdown -->
|
596 |
<p>
|
597 |
<label for="<?php echo $this->get_field_id( 'newtab' ); ?>"><?php _e('Open in new tab?', 'smw'); ?></label>
|
598 |
+
<select id="<?php echo $this->get_field_id( 'newtab' ); ?>" name="<?php echo $this->get_field_name( 'newtab' ); ?>" style="float:right;">
|
599 |
<option value="yes" <?php if($instance['newtab'] == 'yes') { echo 'selected'; } ?>>Yes</option>
|
600 |
<option value="no" <?php if($instance['newtab'] == 'no') { echo 'selected'; } ?>>No</option>
|
601 |
</select>
|
602 |
</p>
|
603 |
+
<div class="clear"></div>
|
604 |
|
605 |
<!-- Alignment: Dropdown -->
|
606 |
<p>
|
607 |
<label for="<?php echo $this->get_field_id( 'alignment' ); ?>"><?php _e('Icon Alignment', 'smw'); ?></label>
|
608 |
+
<select id="<?php echo $this->get_field_id( 'alignment' ); ?>" name="<?php echo $this->get_field_name( 'alignment' ); ?>" style="float:right;">
|
609 |
<option value="left" <?php if($instance['alignment'] == 'left') { echo 'selected'; } ?>>Left</option>
|
610 |
<option value="centered" <?php if($instance['alignment'] == 'centered') { echo 'selected'; } ?>>Centered</option>
|
611 |
<option value="right" <?php if($instance['alignment'] == 'right') { echo 'selected'; } ?>>Right</option>
|
612 |
</select>
|
613 |
</p>
|
614 |
+
<div class="clear"></div>
|
615 |
|
616 |
+
<?php /*
|
617 |
+
<!-- Display titles: Dropdown -->
|
618 |
<p>
|
619 |
+
<label for="<?php echo $this->get_field_id( 'display_titles' ); ?>"><?php _e('Display Titles', 'smw'); ?></label>
|
620 |
+
<select id="<?php echo $this->get_field_id( 'display_titles' ); ?>" name="<?php echo $this->get_field_name( 'display_titles' ); ?>" style="float:right;">
|
621 |
+
<option value="no" <?php if($instance['display_titles'] == 'no') { echo 'selected'; } ?>>No</option>
|
622 |
+
<option value="left" <?php if($instance['display_titles'] == 'left') { echo 'selected'; } ?>>Left to the icon</option>
|
623 |
+
<option value="right" <?php if($instance['display_titles'] == 'right') { echo 'selected'; } ?>>Right to the icon</option>
|
624 |
+
<option value="above" <?php if($instance['display_titles'] == 'above') { echo 'selected'; } ?>>Above the icon</option>
|
625 |
+
<option value="below" <?php if($instance['display_titles'] == 'below') { echo 'selected'; } ?>>Below the icon</option>
|
626 |
+
</select>
|
627 |
</p>
|
628 |
+
<div class="clear"></div>
|
629 |
+
*/ ?>
|
630 |
|
631 |
+
<!-- Icons per row: Dropdown -->
|
632 |
<p>
|
633 |
+
<label for="<?php echo $this->get_field_id( 'icons_per_row' ); ?>"><?php _e('Icons per row', 'smw'); ?></label>
|
634 |
+
<select id="<?php echo $this->get_field_id( 'icons_per_row' ); ?>" name="<?php echo $this->get_field_name( 'icons_per_row' ); ?>" style="float:right;">
|
635 |
+
<option value="auto" <?php if($instance['icons_per_row'] == 'auto') { echo 'selected'; } ?>>Auto</option>
|
636 |
+
<option value="one" <?php if($instance['icons_per_row'] == 'one') { echo 'selected'; } ?>>1</option>
|
637 |
+
</select>
|
638 |
</p>
|
639 |
+
<div class="clear"></div>
|
640 |
+
</div>
|
641 |
+
|
642 |
|
643 |
+
<p><a href="javascript:;" onclick="jQuery(this).parent().next('div').slideToggle();" style="background: url('images/arrows.png') no-repeat; padding-left: 15px;"><strong>Social Networking</strong></a></p>
|
|
|
|
|
|
|
|
|
644 |
|
645 |
+
<div style="display: none;">
|
646 |
+
<?php foreach (array('facebook', 'googleplus', 'twitter', 'myspace', 'orkut', 'hyves', 'linkedin', 'asmallworld', 'foursquare', 'meetup', 'aboutme', 'goodreads', 'github') as $slug) : ?>
|
647 |
+
<p>
|
648 |
+
<label><strong><?php _e((isset($this->networks[$slug]) ? $this->networks[$slug]['title'] : $this->networks_end[$slug]['title']).' URL:', 'smw'); ?></strong></label>
|
649 |
+
<?php /*
|
650 |
+
<div class="clear"></div>
|
651 |
+
<label for="<?php echo $this->get_field_id( $slug); ?>"><?php _e('URL:', 'smw'); ?></label>
|
652 |
+
*/ ?>
|
653 |
+
<input id="<?php echo $this->get_field_id( $slug ); ?>" name="<?php echo $this->get_field_name( $slug ); ?>" value="<?php echo !empty($instance[$slug]) ? $instance[$slug] : 'http://'; ?>" class="widefat" type="text" />
|
654 |
+
<?php /*
|
655 |
+
<div class="clear"></div>
|
656 |
+
<label for="<?php echo $this->get_field_id( $slug.'_title' ); ?>"><?php _e('Title:', 'smw'); ?></label>
|
657 |
+
<input id="<?php echo $this->get_field_id( $slug.'_title' ); ?>" name="<?php echo $this->get_field_name( $slug.'_title' ); ?>" value="<?php echo $instance[$slug.'_title']; ?>" class="alignright" type="text" size="30" />
|
658 |
+
<div class="clear"></div>
|
659 |
+
*/?>
|
660 |
+
</p>
|
661 |
+
<?php endforeach; ?>
|
662 |
+
</div>
|
663 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
664 |
|
665 |
+
<p><a href="javascript:;" onclick="jQuery(this).parent().next('div').slideToggle();" style="background: url('images/arrows.png') no-repeat; padding-left: 15px;"><strong>Images and Video</strong></a></p>
|
666 |
+
|
667 |
+
<div style="display: none;">
|
668 |
+
<?php foreach (array('flickr', 'picasa', 'instagram', 'pinterest', 'deviantart', 'youtube', 'hulu', 'ustream', 'vimeo', 'flixster', 'imdb') as $slug) : ?>
|
669 |
+
<p>
|
670 |
+
<label><strong><?php _e((isset($this->networks[$slug]) ? $this->networks[$slug]['title'] : $this->networks_end[$slug]['title']).' URL:', 'smw'); ?></strong></label>
|
671 |
+
<?php /*
|
672 |
+
<div class="clear"></div>
|
673 |
+
<label for="<?php echo $this->get_field_id( $slug); ?>"><?php _e('URL:', 'smw'); ?></label>
|
674 |
+
*/ ?>
|
675 |
+
<input id="<?php echo $this->get_field_id( $slug ); ?>" name="<?php echo $this->get_field_name( $slug ); ?>" value="<?php echo !empty($instance[$slug]) ? $instance[$slug] : 'http://'; ?>" class="widefat" type="text" />
|
676 |
+
<?php /*
|
677 |
+
<div class="clear"></div>
|
678 |
+
<label for="<?php echo $this->get_field_id( $slug.'_title' ); ?>"><?php _e('Title:', 'smw'); ?></label>
|
679 |
+
<input id="<?php echo $this->get_field_id( $slug.'_title' ); ?>" name="<?php echo $this->get_field_name( $slug.'_title' ); ?>" value="<?php echo $instance[$slug.'_title']; ?>" class="alignright" type="text" size="30" />
|
680 |
+
<div class="clear"></div>
|
681 |
+
*/?>
|
682 |
+
</p>
|
683 |
+
<?php endforeach; ?>
|
684 |
+
</div>
|
685 |
+
|
686 |
+
|
687 |
+
<p><a href="javascript:;" onclick="jQuery(this).parent().next('div').slideToggle();" style="background: url('images/arrows.png') no-repeat; padding-left: 15px;"><strong>Gaming</strong></a></p>
|
688 |
+
|
689 |
+
<div style="display: none;">
|
690 |
+
<?php foreach (array('steam') as $slug) : ?>
|
691 |
+
<p>
|
692 |
+
<label><strong><?php _e((isset($this->networks[$slug]) ? $this->networks[$slug]['title'] : $this->networks_end[$slug]['title']).' URL:', 'smw'); ?></strong></label>
|
693 |
+
<?php /*
|
694 |
+
<div class="clear"></div>
|
695 |
+
<label for="<?php echo $this->get_field_id( $slug); ?>"><?php _e('URL:', 'smw'); ?></label>
|
696 |
+
*/ ?>
|
697 |
+
<input id="<?php echo $this->get_field_id( $slug ); ?>" name="<?php echo $this->get_field_name( $slug ); ?>" value="<?php echo !empty($instance[$slug]) ? $instance[$slug] : 'http://'; ?>" class="widefat" type="text" />
|
698 |
+
<?php /*
|
699 |
+
<div class="clear"></div>
|
700 |
+
<label for="<?php echo $this->get_field_id( $slug.'_title' ); ?>"><?php _e('Title:', 'smw'); ?></label>
|
701 |
+
<input id="<?php echo $this->get_field_id( $slug.'_title' ); ?>" name="<?php echo $this->get_field_name( $slug.'_title' ); ?>" value="<?php echo $instance[$slug.'_title']; ?>" class="alignright" type="text" size="30" />
|
702 |
+
<div class="clear"></div>
|
703 |
+
*/?>
|
704 |
+
</p>
|
705 |
+
<?php endforeach; ?>
|
706 |
+
</div>
|
707 |
+
|
708 |
+
|
709 |
+
<p><a href="javascript:;" onclick="jQuery(this).parent().next('div').slideToggle();" style="background: url('images/arrows.png') no-repeat; padding-left: 15px;"><strong>Chatting</strong></a></p>
|
710 |
+
|
711 |
+
<div style="display: none;">
|
712 |
+
<?php foreach (array('skype', 'talk') as $slug) : ?>
|
713 |
+
<p>
|
714 |
+
<label><strong><?php _e((isset($this->networks[$slug]) ? $this->networks[$slug]['title'] : $this->networks_end[$slug]['title']).' URL:', 'smw'); ?></strong></label>
|
715 |
+
<?php /*
|
716 |
+
<div class="clear"></div>
|
717 |
+
<label for="<?php echo $this->get_field_id( $slug); ?>"><?php _e('URL:', 'smw'); ?></label>
|
718 |
+
*/ ?>
|
719 |
+
<input id="<?php echo $this->get_field_id( $slug ); ?>" name="<?php echo $this->get_field_name( $slug ); ?>" value="<?php echo !empty($instance[$slug]) ? $instance[$slug] : 'http://'; ?>" class="widefat" type="text" />
|
720 |
+
<?php /*
|
721 |
+
<div class="clear"></div>
|
722 |
+
<label for="<?php echo $this->get_field_id( $slug.'_title' ); ?>"><?php _e('Title:', 'smw'); ?></label>
|
723 |
+
<input id="<?php echo $this->get_field_id( $slug.'_title' ); ?>" name="<?php echo $this->get_field_name( $slug.'_title' ); ?>" value="<?php echo $instance[$slug.'_title']; ?>" class="alignright" type="text" size="30" />
|
724 |
+
<div class="clear"></div>
|
725 |
+
*/?>
|
726 |
+
</p>
|
727 |
+
<?php endforeach; ?>
|
728 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
729 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
730 |
|
731 |
+
<p><a href="javascript:;" onclick="jQuery(this).parent().next('div').slideToggle();" style="background: url('images/arrows.png') no-repeat; padding-left: 15px;"><strong>Social News & Feeds</strong></a></p>
|
732 |
+
|
733 |
+
<div style="display: none;">
|
734 |
+
<?php foreach (array('digg', 'reddit', 'delicious', 'stumble', 'buzz', 'friendfeed', 'rss_url', 'slashdot', 'subscribe') as $slug) : ?>
|
735 |
+
<p>
|
736 |
+
<label><strong><?php _e((isset($this->networks[$slug]) ? $this->networks[$slug]['title'] : $this->networks_end[$slug]['title']).' URL:', 'smw'); ?></strong></label>
|
737 |
+
<?php /*
|
738 |
+
<div class="clear"></div>
|
739 |
+
<label for="<?php echo $this->get_field_id( $slug); ?>"><?php _e('URL:', 'smw'); ?></label>
|
740 |
+
*/ ?>
|
741 |
+
<input id="<?php echo $this->get_field_id( $slug ); ?>" name="<?php echo $this->get_field_name( $slug ); ?>" value="<?php echo !empty($instance[$slug]) ? $instance[$slug] : 'http://'; ?>" class="widefat" type="text" />
|
742 |
+
<?php /*
|
743 |
+
<div class="clear"></div>
|
744 |
+
<label for="<?php echo $this->get_field_id( $slug.'_title' ); ?>"><?php _e('Title:', 'smw'); ?></label>
|
745 |
+
<input id="<?php echo $this->get_field_id( $slug.'_title' ); ?>" name="<?php echo $this->get_field_name( $slug.'_title' ); ?>" value="<?php echo $instance[$slug.'_title']; ?>" class="alignright" type="text" size="30" />
|
746 |
+
<div class="clear"></div>
|
747 |
+
*/?>
|
748 |
+
</p>
|
749 |
+
<?php endforeach; ?>
|
750 |
+
</div>
|
751 |
+
|
752 |
|
753 |
+
<p><a href="javascript:;" onclick="jQuery(this).parent().next('div').slideToggle();" style="background: url('images/arrows.png') no-repeat; padding-left: 15px;"><strong>Blogging</strong></a></p>
|
754 |
+
|
755 |
+
<div style="display: none;">
|
756 |
+
<?php foreach (array('tumblr', 'blogger', 'wordpress') as $slug) : ?>
|
757 |
+
<p>
|
758 |
+
<label><strong><?php _e((isset($this->networks[$slug]) ? $this->networks[$slug]['title'] : $this->networks_end[$slug]['title']).' URL:', 'smw'); ?></strong></label>
|
759 |
+
<?php /*
|
760 |
+
<div class="clear"></div>
|
761 |
+
<label for="<?php echo $this->get_field_id( $slug); ?>"><?php _e('URL:', 'smw'); ?></label>
|
762 |
+
*/ ?>
|
763 |
+
<input id="<?php echo $this->get_field_id( $slug ); ?>" name="<?php echo $this->get_field_name( $slug ); ?>" value="<?php echo !empty($instance[$slug]) ? $instance[$slug] : 'http://'; ?>" class="widefat" type="text" />
|
764 |
+
<?php /*
|
765 |
+
<div class="clear"></div>
|
766 |
+
<label for="<?php echo $this->get_field_id( $slug.'_title' ); ?>"><?php _e('Title:', 'smw'); ?></label>
|
767 |
+
<input id="<?php echo $this->get_field_id( $slug.'_title' ); ?>" name="<?php echo $this->get_field_name( $slug.'_title' ); ?>" value="<?php echo $instance[$slug.'_title']; ?>" class="alignright" type="text" size="30" />
|
768 |
+
<div class="clear"></div>
|
769 |
+
*/?>
|
770 |
+
</p>
|
771 |
+
<?php endforeach; ?>
|
772 |
+
</div>
|
773 |
+
|
774 |
|
775 |
+
<p><a href="javascript:;" onclick="jQuery(this).parent().next('div').slideToggle();" style="background: url('images/arrows.png') no-repeat; padding-left: 15px;"><strong>Business/Reviewing & Sharing</strong></a></p>
|
776 |
+
|
777 |
+
<div style="display: none;">
|
778 |
+
<?php foreach (array('yelp', 'slideshare', 'bbb', 'merchantcircle', 'etsy', 'ebay') as $slug) : ?>
|
779 |
+
<p>
|
780 |
+
<label><strong><?php _e((isset($this->networks[$slug]) ? $this->networks[$slug]['title'] : $this->networks_end[$slug]['title']).' URL:', 'smw'); ?></strong></label>
|
781 |
+
<?php /*
|
782 |
+
<div class="clear"></div>
|
783 |
+
<label for="<?php echo $this->get_field_id( $slug); ?>"><?php _e('URL:', 'smw'); ?></label>
|
784 |
+
*/ ?>
|
785 |
+
<input id="<?php echo $this->get_field_id( $slug ); ?>" name="<?php echo $this->get_field_name( $slug ); ?>" value="<?php echo !empty($instance[$slug]) ? $instance[$slug] : 'http://'; ?>" class="widefat" type="text" />
|
786 |
+
<?php /*
|
787 |
+
<div class="clear"></div>
|
788 |
+
<label for="<?php echo $this->get_field_id( $slug.'_title' ); ?>"><?php _e('Title:', 'smw'); ?></label>
|
789 |
+
<input id="<?php echo $this->get_field_id( $slug.'_title' ); ?>" name="<?php echo $this->get_field_name( $slug.'_title' ); ?>" value="<?php echo $instance[$slug.'_title']; ?>" class="alignright" type="text" size="30" />
|
790 |
+
<div class="clear"></div>
|
791 |
+
*/?>
|
792 |
+
</p>
|
793 |
+
<?php endforeach; ?>
|
794 |
+
</div>
|
795 |
+
|
796 |
|
797 |
+
<p><a href="javascript:;" onclick="jQuery(this).parent().next('div').slideToggle();" style="background: url('images/arrows.png') no-repeat; padding-left: 15px;"><strong>Music & Audio</strong></a></p>
|
798 |
+
|
799 |
+
<div style="display: none;">
|
800 |
+
<?php foreach (array('lastfm', 'pandora', 'ping', 'live365', 'digitaltunes', 'soundcloud', 'bandcamp') as $slug) : ?>
|
801 |
+
<p>
|
802 |
+
<label><strong><?php _e((isset($this->networks[$slug]) ? $this->networks[$slug]['title'] : $this->networks_end[$slug]['title']).' URL:', 'smw'); ?></strong></label>
|
803 |
+
<?php /*
|
804 |
+
<div class="clear"></div>
|
805 |
+
<label for="<?php echo $this->get_field_id( $slug); ?>"><?php _e('URL:', 'smw'); ?></label>
|
806 |
+
*/ ?>
|
807 |
+
<input id="<?php echo $this->get_field_id( $slug ); ?>" name="<?php echo $this->get_field_name( $slug ); ?>" value="<?php echo !empty($instance[$slug]) ? $instance[$slug] : 'http://'; ?>" class="widefat" type="text" />
|
808 |
+
<?php /*
|
809 |
+
<div class="clear"></div>
|
810 |
+
<label for="<?php echo $this->get_field_id( $slug.'_title' ); ?>"><?php _e('Title:', 'smw'); ?></label>
|
811 |
+
<input id="<?php echo $this->get_field_id( $slug.'_title' ); ?>" name="<?php echo $this->get_field_name( $slug.'_title' ); ?>" value="<?php echo $instance[$slug.'_title']; ?>" class="alignright" type="text" size="30" />
|
812 |
+
<div class="clear"></div>
|
813 |
+
*/?>
|
814 |
+
</p>
|
815 |
+
<?php endforeach; ?>
|
816 |
+
</div>
|
817 |
+
|
818 |
|
819 |
+
<p><a href="javascript:;" onclick="jQuery(this).parent().next('div').slideToggle();" style="background: url('images/arrows.png') no-repeat; padding-left: 15px;"><strong>Scheduling</strong></a></p>
|
820 |
+
|
821 |
+
<div style="display: none;">
|
822 |
+
<?php foreach (array('plancast') as $slug) : ?>
|
823 |
+
<p>
|
824 |
+
<label><strong><?php _e((isset($this->networks[$slug]) ? $this->networks[$slug]['title'] : $this->networks_end[$slug]['title']).' URL:', 'smw'); ?></strong></label>
|
825 |
+
<?php /*
|
826 |
+
<div class="clear"></div>
|
827 |
+
<label for="<?php echo $this->get_field_id( $slug); ?>"><?php _e('URL:', 'smw'); ?></label>
|
828 |
+
*/ ?>
|
829 |
+
<input id="<?php echo $this->get_field_id( $slug ); ?>" name="<?php echo $this->get_field_name( $slug ); ?>" value="<?php echo !empty($instance[$slug]) ? $instance[$slug] : 'http://'; ?>" class="widefat" type="text" />
|
830 |
+
<?php /*
|
831 |
+
<div class="clear"></div>
|
832 |
+
<label for="<?php echo $this->get_field_id( $slug.'_title' ); ?>"><?php _e('Title:', 'smw'); ?></label>
|
833 |
+
<input id="<?php echo $this->get_field_id( $slug.'_title' ); ?>" name="<?php echo $this->get_field_name( $slug.'_title' ); ?>" value="<?php echo $instance[$slug.'_title']; ?>" class="alignright" type="text" size="30" />
|
834 |
+
<div class="clear"></div>
|
835 |
+
*/?>
|
836 |
+
</p>
|
837 |
+
<?php endforeach; ?>
|
838 |
</div>
|
839 |
+
|
840 |
|
841 |
+
<p><a href="javascript:;" onclick="jQuery(this).parent().next('div').slideToggle();" style="background: url('images/arrows.png') no-repeat; padding-left: 15px;"><strong>Portfolio</strong></a></p>
|
842 |
+
|
843 |
+
<div style="display: none;">
|
844 |
+
<?php foreach (array('cuttingsme') as $slug) : ?>
|
845 |
+
<p>
|
846 |
+
<label><strong><?php _e((isset($this->networks[$slug]) ? $this->networks[$slug]['title'] : $this->networks_end[$slug]['title']).' URL:', 'smw'); ?></strong></label>
|
847 |
+
<?php /*
|
848 |
+
<div class="clear"></div>
|
849 |
+
<label for="<?php echo $this->get_field_id( $slug); ?>"><?php _e('URL:', 'smw'); ?></label>
|
850 |
+
*/ ?>
|
851 |
+
<input id="<?php echo $this->get_field_id( $slug ); ?>" name="<?php echo $this->get_field_name( $slug ); ?>" value="<?php echo !empty($instance[$slug]) ? $instance[$slug] : 'http://'; ?>" class="widefat" type="text" />
|
852 |
+
<?php /*
|
853 |
+
<div class="clear"></div>
|
854 |
+
<label for="<?php echo $this->get_field_id( $slug.'_title' ); ?>"><?php _e('Title:', 'smw'); ?></label>
|
855 |
+
<input id="<?php echo $this->get_field_id( $slug.'_title' ); ?>" name="<?php echo $this->get_field_name( $slug.'_title' ); ?>" value="<?php echo $instance[$slug.'_title']; ?>" class="alignright" type="text" size="30" />
|
856 |
+
<div class="clear"></div>
|
857 |
+
*/?>
|
858 |
+
</p>
|
859 |
+
<?php endforeach; ?>
|
860 |
+
</div>
|
861 |
+
|
862 |
+
|
863 |
+
<p><a href="javascript:;" onclick="jQuery(this).parent().next('div').slideToggle();" style="background: url('images/arrows.png') no-repeat; padding-left: 15px;"><strong>Custom Services</strong></a></p>
|
864 |
+
|
865 |
+
<div style="display: none;">
|
866 |
+
<p><em>Here you can input <?php echo $this->custom_count; ?> 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><br />
|
867 |
</p>
|
|
|
868 |
<!-- Custom Service 1: Text Input -->
|
869 |
|
870 |
+
<?php for ($i = 1; $i <= $this->custom_count; $i++) : ?>
|
871 |
<p>
|
872 |
+
<label for="<?php echo $this->get_field_id( 'custom'.$i.'name' ); ?>"><?php _e('Custom Service '.$i.' Name:', 'smw'); ?></label>
|
873 |
+
<input id="<?php echo $this->get_field_id( 'custom'.$i.'name' ); ?>" name="<?php echo $this->get_field_name( 'custom'.$i.'name' ); ?>" value="<?php echo $instance['custom'.$i.'name']; ?>" class="widefat" type="text" />
|
874 |
+
<br>
|
875 |
+
<label for="<?php echo $this->get_field_id( 'custom'.$i.'icon' ); ?>"><?php _e('Custom Service '.$i.' Icon URL:', 'smw'); ?></label>
|
876 |
+
<input id="<?php echo $this->get_field_id( 'custom'.$i.'icon' ); ?>" name="<?php echo $this->get_field_name( 'custom'.$i.'icon' ); ?>" value="<?php echo $instance['custom'.$i.'icon']; ?>" class="widefat" type="text" />
|
877 |
+
<br>
|
878 |
+
<label for="<?php echo $this->get_field_id( 'custom'.$i.'url' ); ?>"><?php _e('Custom Service '.$i.' Profile URL:', 'smw'); ?></label>
|
879 |
+
<input id="<?php echo $this->get_field_id( 'custom'.$i.'url' ); ?>" name="<?php echo $this->get_field_name( 'custom'.$i.'url' ); ?>" value="<?php echo $instance['custom'.$i.'url']; ?>" class="widefat" type="text" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
880 |
</p>
|
881 |
+
<?php endfor; ?>
|
882 |
|
883 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
884 |
|
885 |
+
<p><em>If you selected "Custom Icon Pack" from the beginning of this form, input the URL and path to those icons in the following boxes. See the README.txt for more information on how to use this.</em><br />
|
886 |
+
</p>
|
887 |
|
888 |
<!-- Custom Icon Pack URL: Text Input -->
|
889 |
<p>
|
890 |
<label for="<?php echo $this->get_field_id( 'customiconsurl' ); ?>"><?php _e('Custom Icons URL:', 'smw'); ?></label>
|
891 |
+
<input id="<?php echo $this->get_field_id( 'customiconsurl' ); ?>" name="<?php echo $this->get_field_name( 'customiconsurl' ); ?>" value="<?php echo $instance['customiconsurl']; ?>" class="widefat" type="text" />
|
892 |
</p>
|
893 |
|
894 |
<!-- Custom Icon Pack Path: Text Input -->
|
895 |
<p>
|
896 |
<label for="<?php echo $this->get_field_id( 'customiconspath' ); ?>"><?php _e('Custom Icons Path:', 'smw'); ?></label>
|
897 |
+
<input id="<?php echo $this->get_field_id( 'customiconspath' ); ?>" name="<?php echo $this->get_field_name( 'customiconspath' ); ?>" value="<?php echo $instance['customiconspath']; ?>" class="widefat" type="text" />
|
898 |
</p>
|
899 |
|
900 |
|
social_widget.css
CHANGED
@@ -20,13 +20,27 @@ li.Social_Widget a {
|
|
20 |
padding: 0 !important;
|
21 |
margin: 0 !important;
|
22 |
background: none !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
}
|
24 |
|
25 |
.smw_center img,
|
26 |
.smw_left img {
|
27 |
border: 0;
|
28 |
border: 0 !important;
|
29 |
-
margin-right: 10px !important;
|
30 |
display: inline;
|
31 |
-webkit-transition: all 0.2s ease-in;
|
32 |
-moz-transition: all 0.2s ease-in;
|
@@ -36,13 +50,17 @@ li.Social_Widget a {
|
|
36 |
.smw_right img {
|
37 |
border: 0;
|
38 |
border: 0 !important;
|
39 |
-
margin-left: 10px !important;
|
40 |
display: inline;
|
41 |
-webkit-transition: all 0.2s ease-in;
|
42 |
-moz-transition: all 0.2s ease-in;
|
43 |
transition: all 0.2s ease;
|
44 |
}
|
45 |
|
|
|
|
|
|
|
|
|
|
|
46 |
.socialmedia-buttons a {
|
47 |
background: none !important;
|
48 |
}
|
@@ -51,6 +69,9 @@ li.Social_Widget a {
|
|
51 |
text-decoration: none;
|
52 |
border: 0;
|
53 |
}
|
|
|
|
|
|
|
54 |
.socialmedia-buttons img.fade:hover {
|
55 |
opacity: 1 !important;
|
56 |
-moz-opacity: 1 !important;
|
20 |
padding: 0 !important;
|
21 |
margin: 0 !important;
|
22 |
background: none !important;
|
23 |
+
text-align: center;
|
24 |
+
}
|
25 |
+
|
26 |
+
.smw_center a,
|
27 |
+
.smw_left a {
|
28 |
+
margin-right: 10px !important;
|
29 |
+
}
|
30 |
+
|
31 |
+
.smw_right a {
|
32 |
+
margin-left: 10px !important;
|
33 |
+
}
|
34 |
+
|
35 |
+
.icons_per_row_1 a {
|
36 |
+
margin-right: 0 !important;
|
37 |
+
margin-left: 0 !important;
|
38 |
}
|
39 |
|
40 |
.smw_center img,
|
41 |
.smw_left img {
|
42 |
border: 0;
|
43 |
border: 0 !important;
|
|
|
44 |
display: inline;
|
45 |
-webkit-transition: all 0.2s ease-in;
|
46 |
-moz-transition: all 0.2s ease-in;
|
50 |
.smw_right img {
|
51 |
border: 0;
|
52 |
border: 0 !important;
|
|
|
53 |
display: inline;
|
54 |
-webkit-transition: all 0.2s ease-in;
|
55 |
-moz-transition: all 0.2s ease-in;
|
56 |
transition: all 0.2s ease;
|
57 |
}
|
58 |
|
59 |
+
.smw_icon {
|
60 |
+
display: inline-block;
|
61 |
+
margin-top: 1px;
|
62 |
+
}
|
63 |
+
|
64 |
.socialmedia-buttons a {
|
65 |
background: none !important;
|
66 |
}
|
69 |
text-decoration: none;
|
70 |
border: 0;
|
71 |
}
|
72 |
+
.socialmedia-buttons img {
|
73 |
+
vertical-align: middle;
|
74 |
+
}
|
75 |
.socialmedia-buttons img.fade:hover {
|
76 |
opacity: 1 !important;
|
77 |
-moz-opacity: 1 !important;
|