Version Description
- Added support for Steam, Google Talk, Pandora, Hulu, Ebay, Flixster, IMDb, BandCamp, UStream.tv
- Removed default URLs (they were causing confusion for some)
- CSS tweaks
- Removed strip_tags() from the image caption field for help with translations using qTranslate
- Separated Admin Widget Panel into groups based on icon type
- Changed Donation button to point to new Paypal account for Precision Web Development & Consulting -- My new web development company that I'm merging Social Media Widget in to
- Staging for version 3.0
Download this release
Release Info
Developer | brianfreytag |
Plugin | Social Media Widget |
Version | 2.9 |
Comparing to | |
See all releases |
Code changes from version 2.8.2 to 2.9
- images/cutout/16/bandcamp.png +0 -0
- images/cutout/16/ebay.png +0 -0
- images/cutout/16/flixster.png +0 -0
- images/cutout/16/hulu.png +0 -0
- images/cutout/16/imdb.png +0 -0
- images/cutout/16/pandora.png +0 -0
- images/cutout/16/steam.png +0 -0
- images/cutout/16/talk.png +0 -0
- images/cutout/16/ustream.png +0 -0
- images/cutout/32/bandcamp.png +0 -0
- images/cutout/32/ebay.png +0 -0
- images/cutout/32/flixster.png +0 -0
- images/cutout/32/hulu.png +0 -0
- images/cutout/32/imdb.png +0 -0
- images/cutout/32/pandora.png +0 -0
- images/cutout/32/steam.png +0 -0
- images/cutout/32/talk.png +0 -0
- images/cutout/32/ustream.png +0 -0
- images/cutout/64/bandcamp.png +0 -0
- images/cutout/64/ebay.png +0 -0
- images/cutout/64/flixster.png +0 -0
- images/cutout/64/hulu.png +0 -0
- images/cutout/64/imdb.png +0 -0
- images/cutout/64/pandora.png +0 -0
- images/cutout/64/steam.png +0 -0
- images/cutout/64/talk.png +0 -0
- images/cutout/64/ustream.png +0 -0
- images/default/16/bandcamp.png +0 -0
- images/default/16/ebay.png +0 -0
- images/default/16/facebook.png +0 -0
- images/default/16/flixster.png +0 -0
- images/default/16/hulu.png +0 -0
- images/default/16/imdb.png +0 -0
- images/default/16/pandora.png +0 -0
- images/default/16/steam.png +0 -0
- images/default/16/talk.png +0 -0
- images/default/16/ustream.png +0 -0
- images/default/32/bandcamp.png +0 -0
- images/default/32/ebay.png +0 -0
- images/default/32/facebook.png +0 -0
- images/default/32/flixster.png +0 -0
- images/default/32/hulu.png +0 -0
- images/default/32/imdb.png +0 -0
- images/default/32/pandora.png +0 -0
- images/default/32/steam.png +0 -0
- images/default/32/talk.png +0 -0
- images/default/32/ustream.png +0 -0
- images/default/64/bandcamp.png +0 -0
- images/default/64/ebay.png +0 -0
- images/default/64/facebook.png +0 -0
- images/default/64/flixter.png +0 -0
- images/default/64/hulu.png +0 -0
- images/default/64/imdb.png +0 -0
- images/default/64/pandora.png +0 -0
- images/default/64/steam.png +0 -0
- images/default/64/talk.png +0 -0
- images/default/64/ustream.png +0 -0
- images/heart/16/bandcamp.png +0 -0
- images/heart/16/ebay.png +0 -0
- images/heart/16/flixster.png +0 -0
- images/heart/16/hulu.png +0 -0
- images/heart/16/imdb.png +0 -0
- images/heart/16/pandora.png +0 -0
- images/heart/16/steam.png +0 -0
- images/heart/16/talk.png +0 -0
- images/heart/16/ustream.png +0 -0
- images/heart/32/bandcamp.png +0 -0
- images/heart/32/ebay.png +0 -0
- images/heart/32/flixster.png +0 -0
- images/heart/32/hulu.png +0 -0
- images/heart/32/imdb.png +0 -0
- images/heart/32/pandora.png +0 -0
- images/heart/32/steam.png +0 -0
- images/heart/32/talk.png +0 -0
- images/heart/32/ustream.png +0 -0
- images/heart/64/bandcamp.png +0 -0
- images/heart/64/ebay.png +0 -0
- images/heart/64/flixter.png +0 -0
- images/heart/64/hulu.png +0 -0
- images/heart/64/imdb.png +0 -0
- images/heart/64/pandora.png +0 -0
- images/heart/64/steam.png +0 -0
- images/heart/64/talk.png +0 -0
- images/heart/64/ustream.png +0 -0
- readme.txt +31 -4
- social-widget.php +377 -210
- social_widget.css +13 -8
images/cutout/16/bandcamp.png
ADDED
Binary file
|
images/cutout/16/ebay.png
ADDED
Binary file
|
images/cutout/16/flixster.png
ADDED
Binary file
|
images/cutout/16/hulu.png
ADDED
Binary file
|
images/cutout/16/imdb.png
ADDED
Binary file
|
images/cutout/16/pandora.png
ADDED
Binary file
|
images/cutout/16/steam.png
ADDED
Binary file
|
images/cutout/16/talk.png
ADDED
Binary file
|
images/cutout/16/ustream.png
ADDED
Binary file
|
images/cutout/32/bandcamp.png
ADDED
Binary file
|
images/cutout/32/ebay.png
ADDED
Binary file
|
images/cutout/32/flixster.png
ADDED
Binary file
|
images/cutout/32/hulu.png
ADDED
Binary file
|
images/cutout/32/imdb.png
ADDED
Binary file
|
images/cutout/32/pandora.png
ADDED
Binary file
|
images/cutout/32/steam.png
ADDED
Binary file
|
images/cutout/32/talk.png
ADDED
Binary file
|
images/cutout/32/ustream.png
ADDED
Binary file
|
images/cutout/64/bandcamp.png
ADDED
Binary file
|
images/cutout/64/ebay.png
ADDED
Binary file
|
images/cutout/64/flixster.png
ADDED
Binary file
|
images/cutout/64/hulu.png
ADDED
Binary file
|
images/cutout/64/imdb.png
ADDED
Binary file
|
images/cutout/64/pandora.png
ADDED
Binary file
|
images/cutout/64/steam.png
ADDED
Binary file
|
images/cutout/64/talk.png
ADDED
Binary file
|
images/cutout/64/ustream.png
ADDED
Binary file
|
images/default/16/bandcamp.png
ADDED
Binary file
|
images/default/16/ebay.png
ADDED
Binary file
|
images/default/16/facebook.png
CHANGED
Binary file
|
images/default/16/flixster.png
ADDED
Binary file
|
images/default/16/hulu.png
ADDED
Binary file
|
images/default/16/imdb.png
ADDED
Binary file
|
images/default/16/pandora.png
ADDED
Binary file
|
images/default/16/steam.png
ADDED
Binary file
|
images/default/16/talk.png
ADDED
Binary file
|
images/default/16/ustream.png
ADDED
Binary file
|
images/default/32/bandcamp.png
ADDED
Binary file
|
images/default/32/ebay.png
ADDED
Binary file
|
images/default/32/facebook.png
CHANGED
Binary file
|
images/default/32/flixster.png
ADDED
Binary file
|
images/default/32/hulu.png
ADDED
Binary file
|
images/default/32/imdb.png
ADDED
Binary file
|
images/default/32/pandora.png
ADDED
Binary file
|
images/default/32/steam.png
ADDED
Binary file
|
images/default/32/talk.png
ADDED
Binary file
|
images/default/32/ustream.png
ADDED
Binary file
|
images/default/64/bandcamp.png
ADDED
Binary file
|
images/default/64/ebay.png
ADDED
Binary file
|
images/default/64/facebook.png
CHANGED
Binary file
|
images/default/64/flixter.png
ADDED
Binary file
|
images/default/64/hulu.png
ADDED
Binary file
|
images/default/64/imdb.png
ADDED
Binary file
|
images/default/64/pandora.png
ADDED
Binary file
|
images/default/64/steam.png
ADDED
Binary file
|
images/default/64/talk.png
ADDED
Binary file
|
images/default/64/ustream.png
ADDED
Binary file
|
images/heart/16/bandcamp.png
ADDED
Binary file
|
images/heart/16/ebay.png
ADDED
Binary file
|
images/heart/16/flixster.png
ADDED
Binary file
|
images/heart/16/hulu.png
ADDED
Binary file
|
images/heart/16/imdb.png
ADDED
Binary file
|
images/heart/16/pandora.png
ADDED
Binary file
|
images/heart/16/steam.png
ADDED
Binary file
|
images/heart/16/talk.png
ADDED
Binary file
|
images/heart/16/ustream.png
ADDED
Binary file
|
images/heart/32/bandcamp.png
ADDED
Binary file
|
images/heart/32/ebay.png
ADDED
Binary file
|
images/heart/32/flixster.png
ADDED
Binary file
|
images/heart/32/hulu.png
ADDED
Binary file
|
images/heart/32/imdb.png
ADDED
Binary file
|
images/heart/32/pandora.png
ADDED
Binary file
|
images/heart/32/steam.png
ADDED
Binary file
|
images/heart/32/talk.png
ADDED
Binary file
|
images/heart/32/ustream.png
ADDED
Binary file
|
images/heart/64/bandcamp.png
ADDED
Binary file
|
images/heart/64/ebay.png
ADDED
Binary file
|
images/heart/64/flixter.png
ADDED
Binary file
|
images/heart/64/hulu.png
ADDED
Binary file
|
images/heart/64/imdb.png
ADDED
Binary file
|
images/heart/64/pandora.png
ADDED
Binary file
|
images/heart/64/steam.png
ADDED
Binary file
|
images/heart/64/talk.png
ADDED
Binary file
|
images/heart/64/ustream.png
ADDED
Binary file
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Social Media Widget ===
|
2 |
Contributors: brianfreytag
|
3 |
-
Donate link: http://www.
|
4 |
-
Tags: social media, twitter, facebook, myspace, digg, email, rss, reddit, linkedin, orkut, youtube, buzz, social, icons, links, subscribe, follow, follow me, friendfeed, flickr, stumbleupon, vimeo, delicious, meetup, lastfm, foursquare, skype, blogger, wordpress, yelp, soundcloud, digital tunes, tumblr, hyves, etsy, tungle, plancast, slideshare, deviantart, better business bureau, merchant circle, asmallworld, live365, ping, itunes, picasa
|
5 |
Requires at least: 2.9.1
|
6 |
-
Tested up to: 3.
|
7 |
-
Stable tag: 2.
|
8 |
|
9 |
Adds links to all of your social media and sharing site profiles. Icons come in 3 sizes, 4 icon styles, and 4 animations.
|
10 |
|
@@ -33,11 +33,17 @@ The Social Media Widget is a simple sidebar widget that allows users to input th
|
|
33 |
* StumbleUpon
|
34 |
* Tumblr
|
35 |
* Buzz
|
|
|
36 |
* Vimeo
|
37 |
* Blogger
|
38 |
* Wordpress
|
39 |
* Yelp
|
40 |
* Last.fm
|
|
|
|
|
|
|
|
|
|
|
41 |
* FourSquare
|
42 |
* Meetup
|
43 |
* Tungle.me
|
@@ -48,9 +54,12 @@ The Social Media Widget is a simple sidebar widget that allows users to input th
|
|
48 |
* Live365
|
49 |
* Digital Tunes
|
50 |
* Soundcloud
|
|
|
51 |
* Etsy
|
52 |
* Better Business Bureau
|
53 |
* Merchant Circle
|
|
|
|
|
54 |
* RSS
|
55 |
* E-mail (mailto: or a link to mailing list service)
|
56 |
* Plus create 6 of your own using a URL to an icon and URL to the service
|
@@ -107,6 +116,13 @@ Follow the steps below to install the plugin.
|
|
107 |
|
108 |
== Frequently Asked Questions ==
|
109 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
110 |
= How can I use my own custom icon pack? =
|
111 |
|
112 |
1. Create a folder on the filesystem that is publicly accessible via the interwebs. I suggest putting it in your wp-content folder and name it 'icons'
|
@@ -124,6 +140,7 @@ NOTE: IN ORDER FOR IT TO BE SAFE FROM UPGRADES, DO NOT UPLOAD THE ICONS INTO THE
|
|
124 |
|
125 |
You can also upload the icons individually through Wordpress. These will be uploaded to your /wp-content/uploads/year/month/ folder by default. Use this as a starting point for your custom icon pack URL and Path
|
126 |
|
|
|
127 |
If you don't understand what it means to create a folder and upload to that folder on the filesystem, or if you don't know what a path to a folder is, I would suggest sticking with one of the four default icon packs.
|
128 |
|
129 |
= Can you add [insert social media service] support =
|
@@ -151,6 +168,16 @@ First - calm down. I'm happy to help you, and, if you ask those I've helped alre
|
|
151 |
For help, please go to my <a href="http://forums.idontlikethisgame.com/viewforum.php?f=3">SMW Forums</a> and ask whatever questions you need!
|
152 |
|
153 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
154 |
= 2.8.2 =
|
155 |
|
156 |
* A quick fix to attempt to resolve some validation issues in my code.
|
1 |
=== Social Media Widget ===
|
2 |
Contributors: brianfreytag
|
3 |
+
Donate link: http://www.precisionwebdev.com/content/open-source-code-donations
|
4 |
+
Tags: social media, twitter, facebook, myspace, digg, email, rss, reddit, linkedin, orkut, youtube, buzz, social, icons, links, subscribe, follow, follow me, friendfeed, flickr, stumbleupon, vimeo, delicious, meetup, lastfm, foursquare, skype, blogger, wordpress, yelp, soundcloud, digital tunes, tumblr, hyves, etsy, tungle, plancast, slideshare, deviantart, better business bureau, merchant circle, asmallworld, live365, ping, itunes, picasa, steam, google talk, pandora, hulu, ebay, flixster, imdb, bandcamp, ustream
|
5 |
Requires at least: 2.9.1
|
6 |
+
Tested up to: 3.1
|
7 |
+
Stable tag: 2.9
|
8 |
|
9 |
Adds links to all of your social media and sharing site profiles. Icons come in 3 sizes, 4 icon styles, and 4 animations.
|
10 |
|
33 |
* StumbleUpon
|
34 |
* Tumblr
|
35 |
* Buzz
|
36 |
+
* Google Talk
|
37 |
* Vimeo
|
38 |
* Blogger
|
39 |
* Wordpress
|
40 |
* Yelp
|
41 |
* Last.fm
|
42 |
+
* Pandora
|
43 |
+
* UStream
|
44 |
+
* IMDb
|
45 |
+
* Hulu
|
46 |
+
* Flixter
|
47 |
* FourSquare
|
48 |
* Meetup
|
49 |
* Tungle.me
|
54 |
* Live365
|
55 |
* Digital Tunes
|
56 |
* Soundcloud
|
57 |
+
* BandCamp
|
58 |
* Etsy
|
59 |
* Better Business Bureau
|
60 |
* Merchant Circle
|
61 |
+
* Ebay
|
62 |
+
* Steam
|
63 |
* RSS
|
64 |
* E-mail (mailto: or a link to mailing list service)
|
65 |
* Plus create 6 of your own using a URL to an icon and URL to the service
|
116 |
|
117 |
== Frequently Asked Questions ==
|
118 |
|
119 |
+
= How can I include Localization? =
|
120 |
+
The easiest way to include translating the Social Media widget is to install the <a href="http://wordpress.org/extend/plugins/qtranslate/">qTranslate</a> Plugin then using the following (example) code in the "Widget Title" and "Image Caption" text fields:
|
121 |
+
|
122 |
+
`<!--:nl-->Volg ons<!--:--><!--:en-->Follow us<!--:--><!--:fr-->Suivre nous<!--:-->`
|
123 |
+
|
124 |
+
Use the README.txt for that plugin for more usage.
|
125 |
+
|
126 |
= How can I use my own custom icon pack? =
|
127 |
|
128 |
1. Create a folder on the filesystem that is publicly accessible via the interwebs. I suggest putting it in your wp-content folder and name it 'icons'
|
140 |
|
141 |
You can also upload the icons individually through Wordpress. These will be uploaded to your /wp-content/uploads/year/month/ folder by default. Use this as a starting point for your custom icon pack URL and Path
|
142 |
|
143 |
+
If you
|
144 |
If you don't understand what it means to create a folder and upload to that folder on the filesystem, or if you don't know what a path to a folder is, I would suggest sticking with one of the four default icon packs.
|
145 |
|
146 |
= Can you add [insert social media service] support =
|
168 |
For help, please go to my <a href="http://forums.idontlikethisgame.com/viewforum.php?f=3">SMW Forums</a> and ask whatever questions you need!
|
169 |
|
170 |
== Changelog ==
|
171 |
+
= 2.9 =
|
172 |
+
|
173 |
+
* Added support for Steam, Google Talk, Pandora, Hulu, Ebay, Flixster, IMDb, BandCamp, UStream.tv
|
174 |
+
* Removed default URLs (they were causing confusion for some)
|
175 |
+
* CSS tweaks
|
176 |
+
* Removed strip_tags() from the image caption field for help with translations using qTranslate
|
177 |
+
* Separated Admin Widget Panel into groups based on icon type
|
178 |
+
* Changed Donation button to point to new Paypal account for Precision Web Development & Consulting -- My new web development company that I'm merging Social Media Widget in to
|
179 |
+
* Staging for version 3.0
|
180 |
+
|
181 |
= 2.8.2 =
|
182 |
|
183 |
* A quick fix to attempt to resolve some validation issues in my code.
|
social-widget.php
CHANGED
@@ -3,9 +3,9 @@
|
|
3 |
* Plugin Name: Social Media Widget
|
4 |
* Plugin URI: http://forums.idontlikethisgame.com/viewforum.php?f=3
|
5 |
* Description: Adds links to all of your social media and sharing site profiles. Icons come in 3 sizes, 4 icon styles, and 4 animations.
|
6 |
-
* Version: 2.
|
7 |
* Author: Brian Freytag
|
8 |
-
* Author URI: http://www.
|
9 |
**/
|
10 |
|
11 |
|
@@ -40,7 +40,7 @@ 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( 'width' =>
|
44 |
|
45 |
/* Create the widget. */
|
46 |
$this->WP_Widget( 'social-widget', __('Social Media Widget', 'smw'), $widget_ops, $control_ops );
|
@@ -72,11 +72,17 @@ class Social_Widget extends WP_Widget {
|
|
72 |
$stumble = $instance['stumble'];
|
73 |
$tumblr = $instance['tumblr'];
|
74 |
$buzz = $instance['buzz'];
|
|
|
75 |
$vimeo = $instance['vimeo'];
|
76 |
$blogger = $instance['blogger'];
|
77 |
$wordpress = $instance['wordpress'];
|
78 |
$yelp = $instance['yelp'];
|
79 |
$lastfm = $instance['lastfm'];
|
|
|
|
|
|
|
|
|
|
|
80 |
$foursquare = $instance['foursquare'];
|
81 |
$meetup = $instance['meetup'];
|
82 |
$tungle = $instance['tungle'];
|
@@ -87,9 +93,12 @@ class Social_Widget extends WP_Widget {
|
|
87 |
$live365 = $instance['live365'];
|
88 |
$digitaltunes = $instance['digitaltunes'];
|
89 |
$soundcloud = $instance['soundcloud'];
|
|
|
90 |
$etsy = $instance['etsy'];
|
91 |
$bbb = $instance['bbb'];
|
92 |
$merchantcircle = $instance['merchantcircle'];
|
|
|
|
|
93 |
$rss = $instance['rss_url'];
|
94 |
$subscribe = $instance['subscribe'];
|
95 |
$icon_size = $instance['icon_size'];
|
@@ -311,6 +320,13 @@ class Social_Widget extends WP_Widget {
|
|
311 |
echo ''; //If no URL Inputed
|
312 |
}
|
313 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
314 |
// Vimeo
|
315 |
if ( $vimeo != '' && $vimeo != ' ' && file_exists($smw_dir.'/vimeo.png')) {
|
316 |
?><a href="<?php echo $vimeo; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img 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
|
@@ -346,6 +362,41 @@ class Social_Widget extends WP_Widget {
|
|
346 |
echo ''; //If no URL Inputed
|
347 |
}
|
348 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
349 |
// Foursquare
|
350 |
if ( $foursquare != '' && $foursquare != ' ' && file_exists($smw_dir.'/foursquare.png')) {
|
351 |
?><a href="<?php echo $foursquare; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img 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
|
@@ -416,6 +467,13 @@ class Social_Widget extends WP_Widget {
|
|
416 |
echo ''; //If no URL Inputed
|
417 |
}
|
418 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
419 |
// Etsy
|
420 |
if ( $etsy != '' && $etsy != ' ' && file_exists($smw_dir.'/etsy.png')) {
|
421 |
?><a href="<?php echo $etsy; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img 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
|
@@ -437,6 +495,20 @@ class Social_Widget extends WP_Widget {
|
|
437 |
echo ''; //If no URL inputed
|
438 |
}
|
439 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
440 |
// Custom Icon 1
|
441 |
if ( $custom1url != '' && $custom1name != '' && $custom1icon != '' ) {
|
442 |
?><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
|
@@ -509,43 +581,61 @@ class Social_Widget extends WP_Widget {
|
|
509 |
$instance['text'] = $new_instance['text'];
|
510 |
else
|
511 |
$instance['text'] = stripslashes( wp_filter_post_kses( addslashes($new_instance['text']) ) ); // wp_filter_post_kses() expects slashed
|
512 |
-
$instance['imgcaption'] =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
513 |
$instance['facebook'] = strip_tags( $new_instance['facebook'] );
|
514 |
$instance['twitter'] = strip_tags( $new_instance['twitter'] );
|
515 |
$instance['myspace'] = strip_tags( $new_instance['myspace'] );
|
516 |
-
$instance['friendfeed'] = strip_tags( $new_instance['friendfeed'] );
|
517 |
$instance['orkut'] = strip_tags( $new_instance['orkut'] );
|
518 |
$instance['hyves'] = strip_tags( $new_instance['hyves'] );
|
519 |
$instance['linkedin'] = strip_tags( $new_instance['linkedin'] );
|
520 |
$instance['asmallworld'] = strip_tags( $new_instance['asmallworld'] );
|
|
|
|
|
521 |
$instance['flickr'] = strip_tags( $new_instance['flickr'] );
|
522 |
$instance['picasa'] = strip_tags( $new_instance['picasa'] );
|
|
|
523 |
$instance['youtube'] = strip_tags( $new_instance['youtube'] );
|
|
|
|
|
|
|
|
|
|
|
|
|
524 |
$instance['skype'] = strip_tags( $new_instance['skype'] );
|
|
|
525 |
$instance['digg'] = strip_tags( $new_instance['digg'] );
|
526 |
$instance['reddit'] = strip_tags( $new_instance['reddit'] );
|
527 |
$instance['delicious'] = strip_tags( $new_instance['delicious'] );
|
528 |
$instance['stumble'] = strip_tags( $new_instance['stumble'] );
|
529 |
-
$instance['tumblr'] = strip_tags( $new_instance['tumblr'] );
|
530 |
$instance['buzz'] = strip_tags( $new_instance['buzz'] );
|
531 |
-
$instance['
|
|
|
|
|
|
|
532 |
$instance['blogger'] = strip_tags( $new_instance['blogger'] );
|
533 |
$instance['wordpress'] = strip_tags( $new_instance['wordpress'] );
|
534 |
$instance['yelp'] = strip_tags( $new_instance['yelp'] );
|
535 |
-
$instance['lastfm'] = strip_tags( $new_instance['lastfm'] );
|
536 |
-
$instance['foursquare'] = strip_tags( $new_instance['foursquare'] );
|
537 |
-
$instance['meetup'] = strip_tags( $new_instance['meetup'] );
|
538 |
-
$instance['tungle'] = strip_tags( $new_instance['tungle'] );
|
539 |
-
$instance['plancast'] = strip_tags( $new_instance['plancast'] );
|
540 |
$instance['slideshare'] = strip_tags( $new_instance['slideshare'] );
|
541 |
-
$instance['
|
|
|
|
|
|
|
|
|
|
|
542 |
$instance['ping'] = strip_tags( $new_instance['ping'] );
|
543 |
$instance['live365'] = strip_tags( $new_instance['live365'] );
|
544 |
$instance['digitaltunes'] = strip_tags( $new_instance['digitaltunes'] );
|
545 |
$instance['soundcloud'] = strip_tags( $new_instance['soundcloud'] );
|
546 |
-
$instance['
|
547 |
-
$instance['
|
548 |
-
$instance['
|
549 |
$instance['custom1name'] = strip_tags( $new_instance['custom1name'] );
|
550 |
$instance['custom1icon'] = strip_tags( $new_instance['custom1icon'] );
|
551 |
$instance['custom1url'] = strip_tags( $new_instance['custom1url'] );
|
@@ -564,17 +654,9 @@ class Social_Widget extends WP_Widget {
|
|
564 |
$instance['custom6name'] = strip_tags( $new_instance['custom6name'] );
|
565 |
$instance['custom6icon'] = strip_tags( $new_instance['custom6icon'] );
|
566 |
$instance['custom6url'] = strip_tags( $new_instance['custom6url'] );
|
567 |
-
$instance['rss_url'] = strip_tags( $new_instance['rss_url'] );
|
568 |
-
$instance['subscribe'] = strip_tags( $new_instance['subscribe'] );
|
569 |
-
$instance['icon_size'] = $new_instance['icon_size'];
|
570 |
-
$instance['icon_pack'] = $new_instance['icon_pack'];
|
571 |
$instance['customiconsurl'] = strip_tags( $new_instance['customiconsurl'] );
|
572 |
$instance['customiconspath'] = strip_tags( $new_instance['customiconspath'] );
|
573 |
-
|
574 |
-
$instance['icon_opacity'] = $new_instance['icon_opacity'];
|
575 |
-
$instance['newtab'] = $new_instance['newtab'];
|
576 |
-
$instance['nofollow'] = $new_instance['nofollow'];
|
577 |
-
$instance['alignment'] = $new_instance['alignment'];
|
578 |
|
579 |
return $instance;
|
580 |
}
|
@@ -591,42 +673,59 @@ class Social_Widget extends WP_Widget {
|
|
591 |
'title' => __('Follow Us!', 'smw'),
|
592 |
'text' => '',
|
593 |
'imgcaption' => __('Follow Us on', 'smw'),
|
594 |
-
'
|
595 |
-
'
|
596 |
-
'
|
597 |
-
'
|
598 |
-
'
|
599 |
-
'
|
600 |
-
'
|
|
|
|
|
|
|
|
|
|
|
601 |
'asmallworld' => __('', 'smw'),
|
602 |
-
'
|
603 |
-
'
|
604 |
-
'
|
605 |
-
'
|
606 |
-
'
|
607 |
-
'
|
608 |
-
'
|
609 |
-
'
|
610 |
-
'
|
611 |
-
'
|
612 |
-
'
|
613 |
-
'
|
614 |
-
'
|
615 |
-
'
|
616 |
-
'
|
617 |
-
'
|
618 |
-
'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
619 |
'tungle' => __('', 'smw'),
|
620 |
'plancast' => __('', 'smw'),
|
621 |
-
'slideshare' => __('http://www.slideshare.net/nolimit2it/yourname', 'smw'),
|
622 |
-
'deviantart' => __('http://yourname.deviantart.com/', 'smw'),
|
623 |
-
'ping' => __('http://c.itunes.apple.com/WebObjects/MZConnections.woa/wa/viewProfile?userId=youruserid'),
|
624 |
-
'live365' => __('', 'smw'),
|
625 |
-
'digitaltunes' => __('http://www.digital-tunes.net/user_profile/yourname', 'smw'),
|
626 |
-
'soundcloud' => __('http://www.soundcloud.com/your-name', 'smw'),
|
627 |
-
'etsy' => __('http://www.etsy.com/people/yourname', 'smw'),
|
628 |
-
'bbb' => __('http://www.bbb.org/location/business-reviews/service/yourname', 'smw'),
|
629 |
-
'merchantcircle' => __('http://www.merchantcircle.com/business/Your.Name.Number', 'smw'),
|
630 |
'custom1name' => __('', 'smw'),
|
631 |
'custom1icon' => __('', 'smw'),
|
632 |
'custom1url' => __('', 'smw'),
|
@@ -645,23 +744,18 @@ class Social_Widget extends WP_Widget {
|
|
645 |
'custom6name' => __('', 'smw'),
|
646 |
'custom6icon' => __('', 'smw'),
|
647 |
'custom6url' => __('', 'smw'),
|
648 |
-
'rss_url' => __('http://www.yoursite.com/feed', 'smw'),
|
649 |
-
'icon_size' => 'default',
|
650 |
-
'icon_pack' => 'default',
|
651 |
'customiconsurl' => __('http://wwww.yoursite.com/wordpress/wp-content/your-icons', 'smw'),
|
652 |
-
'customiconspath' => __('/path/to/your-icons', 'smw')
|
653 |
-
'icon_opacity' => 'default',
|
654 |
-
'newtab' => 'yes',
|
655 |
-
'nofollow' => 'on',
|
656 |
-
'alignment' => 'left');
|
657 |
|
658 |
$instance = wp_parse_args( (array) $instance, $defaults ); ?>
|
659 |
<p>
|
660 |
<em>Note: Make sure you include FULL URL (i.e. http://www.example.com)</em><br />
|
661 |
If you do not want an icon to be visible, simply delete the supplied URL and leave the input blox blank.
|
662 |
</p>
|
|
|
|
|
|
|
663 |
<!-- Widget Title: Text Input -->
|
664 |
-
<div style="width:48%; float: left;">
|
665 |
<p>
|
666 |
<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Title:', 'smw'); ?></label>
|
667 |
<input id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $instance['title']; ?>" style="width:85%;" />
|
@@ -678,7 +772,86 @@ class Social_Widget extends WP_Widget {
|
|
678 |
<label for="<?php echo $this->get_field_id( 'imgcaption' ); ?>"><?php _e('Icon Alt and Title Tag:', 'smw'); ?></label>
|
679 |
<input id="<?php echo $this->get_field_id( 'imgcaption' ); ?>" name="<?php echo $this->get_field_name( 'imgcaption' ); ?>" value="<?php echo $instance['imgcaption']; ?>" style="width:85%;" />
|
680 |
</p>
|
681 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
682 |
<!-- Facebook URL: Text Input -->
|
683 |
<p>
|
684 |
<label for="<?php echo $this->get_field_id( 'facebook' ); ?>"><?php _e('Facebook URL:', 'smw'); ?></label>
|
@@ -696,12 +869,6 @@ class Social_Widget extends WP_Widget {
|
|
696 |
<label for="<?php echo $this->get_field_id( 'myspace' ); ?>"><?php _e('MySpace URL:', 'smw'); ?></label>
|
697 |
<input id="<?php echo $this->get_field_id( 'myspace' ); ?>" name="<?php echo $this->get_field_name( 'myspace' ); ?>" value="<?php echo $instance['myspace']; ?>" style="width:85%;" />
|
698 |
</p>
|
699 |
-
|
700 |
-
<!-- FriendFeed URL: Text Input -->
|
701 |
-
<p>
|
702 |
-
<label for="<?php echo $this->get_field_id( 'friendfeed' ); ?>"><?php _e('FriendFeed URL:', 'smw'); ?></label>
|
703 |
-
<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%;" />
|
704 |
-
</p>
|
705 |
|
706 |
<!-- Orkut URL: Text Input -->
|
707 |
<p>
|
@@ -727,6 +894,19 @@ class Social_Widget extends WP_Widget {
|
|
727 |
<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%;" />
|
728 |
</p>
|
729 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
730 |
<!-- Flickr URL: Text Input -->
|
731 |
<p>
|
732 |
<label for="<?php echo $this->get_field_id( 'flickr' ); ?>"><?php _e('Flickr URL:', 'smw'); ?></label>
|
@@ -739,23 +919,78 @@ class Social_Widget extends WP_Widget {
|
|
739 |
<input id="<?php echo $this->get_field_id( 'picasa' ); ?>" name="<?php echo $this->get_field_name( 'picasa' ); ?>" value="<?php echo $instance['picasa']; ?>" style="width:85%;" />
|
740 |
</p>
|
741 |
|
|
|
|
|
|
|
|
|
|
|
|
|
742 |
<!-- YouTube URL: Text Input -->
|
743 |
<p>
|
744 |
<label for="<?php echo $this->get_field_id( 'youtube' ); ?>"><?php _e('YouTube URL:', 'smw'); ?></label>
|
745 |
<input id="<?php echo $this->get_field_id( 'youtube' ); ?>" name="<?php echo $this->get_field_name( 'youtube' ); ?>" value="<?php echo $instance['youtube']; ?>" style="width:85%;" />
|
746 |
</p>
|
747 |
|
748 |
-
<!--
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
749 |
<p>
|
750 |
<label for="<?php echo $this->get_field_id( 'skype' ); ?>"><?php _e('Skype URL:', 'smw'); ?></label>
|
751 |
<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%;" />
|
752 |
</p>
|
753 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
754 |
<!-- Digg URL: Text Input -->
|
755 |
<p>
|
756 |
<label for="<?php echo $this->get_field_id( 'digg' ); ?>"><?php _e('Digg URL:', 'smw'); ?></label>
|
757 |
<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%;" />
|
758 |
</p>
|
|
|
759 |
|
760 |
<!-- Reddit URL: Text Input -->
|
761 |
<p>
|
@@ -775,23 +1010,37 @@ class Social_Widget extends WP_Widget {
|
|
775 |
<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%;" />
|
776 |
</p>
|
777 |
|
778 |
-
<!-- Tumblr URL: Text Input -->
|
779 |
-
<p>
|
780 |
-
<label for="<?php echo $this->get_field_id( 'tumblr' ); ?>"><?php _e('Tumblr URL:', 'smw'); ?></label>
|
781 |
-
<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%;" />
|
782 |
-
</p>
|
783 |
-
|
784 |
<!-- Buzz URL: Text Input -->
|
785 |
<p>
|
786 |
<label for="<?php echo $this->get_field_id( 'buzz' ); ?>"><?php _e('Buzz URL:', 'smw'); ?></label>
|
787 |
<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%;" />
|
788 |
</p>
|
789 |
|
790 |
-
|
791 |
-
<!-- Vimeo URL: Text Input -->
|
792 |
<p>
|
793 |
-
<label for="<?php echo $this->get_field_id( '
|
794 |
-
<input id="<?php echo $this->get_field_id( '
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
795 |
</p>
|
796 |
|
797 |
<!-- Blogger URL: Text Input -->
|
@@ -806,55 +1055,56 @@ class Social_Widget extends WP_Widget {
|
|
806 |
<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%;" />
|
807 |
</p>
|
808 |
|
|
|
809 |
<!-- Yelp URL: Text Input -->
|
810 |
<p>
|
811 |
<label for="<?php echo $this->get_field_id( 'yelp' ); ?>"><?php _e('Yelp URL:', 'smw'); ?></label>
|
812 |
<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%;" />
|
813 |
</p>
|
814 |
|
815 |
-
<!--
|
816 |
<p>
|
817 |
-
<label for="<?php echo $this->get_field_id( '
|
818 |
-
<input id="<?php echo $this->get_field_id( '
|
819 |
</p>
|
820 |
|
821 |
-
<!--
|
822 |
<p>
|
823 |
-
<label for="<?php echo $this->get_field_id( '
|
824 |
-
<input id="<?php echo $this->get_field_id( '
|
825 |
</p>
|
826 |
|
827 |
-
<!--
|
828 |
<p>
|
829 |
-
<label for="<?php echo $this->get_field_id( '
|
830 |
-
<input id="<?php echo $this->get_field_id( '
|
831 |
</p>
|
832 |
|
833 |
-
<!--
|
834 |
<p>
|
835 |
-
<label for="<?php echo $this->get_field_id( '
|
836 |
-
<input id="<?php echo $this->get_field_id( '
|
837 |
</p>
|
838 |
|
839 |
-
<!--
|
840 |
<p>
|
841 |
-
<label for="<?php echo $this->get_field_id( '
|
842 |
-
<input id="<?php echo $this->get_field_id( '
|
843 |
</p>
|
844 |
|
845 |
-
|
|
|
846 |
<p>
|
847 |
-
<label for="<?php echo $this->get_field_id( '
|
848 |
-
<input id="<?php echo $this->get_field_id( '
|
849 |
</p>
|
850 |
|
851 |
-
<!--
|
852 |
<p>
|
853 |
-
<label for="<?php echo $this->get_field_id( '
|
854 |
-
<input id="<?php echo $this->get_field_id( '
|
855 |
</p>
|
856 |
-
|
857 |
-
<div style="width: 48%; float: right; border-left: 1px solid #000; padding-left: 20px;">
|
858 |
<!-- iTunes Ping URL: Text Input -->
|
859 |
<p>
|
860 |
<label for="<?php echo $this->get_field_id( 'ping' ); ?>"><?php _e('iTunes Ping URL:', 'smw'); ?></label>
|
@@ -879,29 +1129,32 @@ class Social_Widget extends WP_Widget {
|
|
879 |
<input id="<?php echo $this->get_field_id( 'soundcloud' ); ?>" name="<?php echo $this->get_field_name( 'soundcloud' ); ?>" value="<?php echo $instance['soundcloud']; ?>" style="width:85%;" />
|
880 |
</p>
|
881 |
|
882 |
-
<!--
|
883 |
<p>
|
884 |
-
<label for="<?php echo $this->get_field_id( '
|
885 |
-
<input id="<?php echo $this->get_field_id( '
|
886 |
</p>
|
887 |
|
888 |
-
|
|
|
889 |
<p>
|
890 |
-
<label for="<?php echo $this->get_field_id( '
|
891 |
-
<input id="<?php echo $this->get_field_id( '
|
892 |
</p>
|
893 |
|
894 |
-
<!--
|
895 |
<p>
|
896 |
-
<label for="<?php echo $this->get_field_id( '
|
897 |
-
<input id="<?php echo $this->get_field_id( '
|
898 |
</p>
|
899 |
-
|
900 |
-
|
901 |
-
<p><em>Here you can input 6 custom icons. Make sure you input FULL urls to the icon (including http://). The images will resize both width and height to the icon size chosen.</em><br />
|
902 |
|
903 |
-
</p>
|
904 |
|
|
|
|
|
|
|
|
|
|
|
|
|
905 |
<!-- Custom Service 1: Text Input -->
|
906 |
|
907 |
<p>
|
@@ -963,41 +1216,8 @@ class Social_Widget extends WP_Widget {
|
|
963 |
<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%;" />
|
964 |
</p>
|
965 |
|
966 |
-
|
967 |
-
|
968 |
-
<label for="<?php echo $this->get_field_id( 'rss_url' ); ?>"><?php _e('RSS URL:', 'smw'); ?></label>
|
969 |
-
<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%;" />
|
970 |
-
</p>
|
971 |
-
|
972 |
-
|
973 |
-
<!-- Subscribe URL: Text Input -->
|
974 |
-
<p>
|
975 |
-
<label for="<?php echo $this->get_field_id( 'subscribe' ); ?>"><?php _e('E-mail URL:', 'smw'); ?></label>
|
976 |
-
<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%;" />
|
977 |
-
</p>
|
978 |
-
|
979 |
-
<!-- Choose Icon Size: Dropdown -->
|
980 |
-
|
981 |
-
<p>
|
982 |
-
<label for="<?php echo $this->get_field_id( 'icon_size' ); ?>"><?php _e('Icon Size', 'smw'); ?></label>
|
983 |
-
<select id="<?php echo $this->get_field_id( 'icon_size' ); ?>" name="<?php echo $this->get_field_name( 'icon_size' ); ?>">
|
984 |
-
<option value="16" <?php if($instance['icon_size'] == '16') { echo 'selected'; } ?>>16px</option>
|
985 |
-
<option value="default" <?php if($instance['icon_size'] == 'default') { echo 'selected'; } ?>>Default (32px)</option>
|
986 |
-
<option value="64" <?php if($instance['icon_size'] == '64') { echo 'selected'; } ?>>64px</option>
|
987 |
-
</select>
|
988 |
-
</p>
|
989 |
-
|
990 |
-
<!-- Choose Icon Pack: Dropdown -->
|
991 |
-
<p>
|
992 |
-
<label for="<?php echo $this->get_field_id( 'icon_pack' ); ?>"><?php _e('Icon Pack', 'smw'); ?></label>
|
993 |
-
<select id="<?php echo $this->get_field_id( 'icon_pack' ); ?>" name="<?php echo $this->get_field_name( 'icon_pack' ); ?>">
|
994 |
-
<option value="cutout" <?php if($instance['icon_pack'] == 'cutout') { echo 'selected'; } ?>>Cutout Icons</option>
|
995 |
-
<option value="heart" <?php if($instance['icon_pack'] == 'heart') { echo 'selected'; } ?>>Heart Icons</option>
|
996 |
-
<option value="default" <?php if($instance['icon_pack'] == 'default') { echo 'selected'; } ?>>Default Icons (Web2.0)</option>
|
997 |
-
<option value="sketch" <?php if($instance['icon_pack'] == 'sketch') { echo 'selected'; } ?>>Sketch Icons</option>
|
998 |
-
<option value="custom" <?php if($instance['icon_pack'] == 'custom') { echo 'selected'; } ?>>Custom Icons</option>
|
999 |
-
</select>
|
1000 |
-
</p>
|
1001 |
|
1002 |
<!-- Custom Icon Pack URL: Text Input -->
|
1003 |
<p>
|
@@ -1012,67 +1232,14 @@ class Social_Widget extends WP_Widget {
|
|
1012 |
</p>
|
1013 |
|
1014 |
|
1015 |
-
<!-- Type of Animation: Dropdown -->
|
1016 |
-
<p>
|
1017 |
-
<label for="<?php echo $this->get_field_id( 'animation' ); ?>"><?php _e('Type of Animation', 'smw'); ?></label>
|
1018 |
-
<select id="<?php echo $this->get_field_id( 'animation' ); ?>" name="<?php echo $this->get_field_name( 'animation' ); ?>">
|
1019 |
-
<option value="fade" <?php if($instance['animation'] == 'fade') { echo 'selected'; } ?>>Fade In</option>
|
1020 |
-
<option value="scale" <?php if($instance['animation'] == 'scale') { echo 'selected'; } ?>>Scale</option>
|
1021 |
-
<option value="bounce" <?php if($instance['animation'] == 'bounce') { echo 'selected'; } ?>>Bounce</option>
|
1022 |
-
<option value="combo" <?php if($instance['animation'] == 'combo') { echo 'selected'; } ?>>Combo</option>
|
1023 |
-
</select>
|
1024 |
-
</p>
|
1025 |
-
|
1026 |
-
<!--Starting Icon Opacity: Dropdown -->
|
1027 |
-
<p>
|
1028 |
-
<label for="<?php echo $this->get_field_id( 'icon_opacity' ); ?>"><?php _e('Default Icon Opacity', 'smw'); ?></label>
|
1029 |
-
<select id="<?php echo $this->get_field_id( 'icon_opacity' ); ?>" name="<?php echo $this->get_field_name( 'icon_opacity' ); ?>">
|
1030 |
-
<option value="0.5" <?php if($instance['icon_opacity'] == '0.5') { echo 'selected'; } ?>>50%</option>
|
1031 |
-
<option value="0.6" <?php if($instance['icon_opacity'] == '0.6') { echo 'selected'; } ?>>60%</option>
|
1032 |
-
<option value="0.7" <?php if($instance['icon_opacity'] == '0.7') { echo 'selected'; } ?>>70%</option>
|
1033 |
-
<option value="default" <?php if($instance['icon_opacity'] == 'default') { echo 'selected'; } ?>>Default (80%)</option>
|
1034 |
-
<option value="0.9" <?php if($instance['icon_opacity'] == '0.9') { echo 'selected'; } ?>>90%</option>
|
1035 |
-
<option value="1" <?php if($instance['icon_opacity'] == '1') { echo 'selected'; } ?>>100%</option>
|
1036 |
-
</select>
|
1037 |
-
<span style="color: #999;"><em>Only applies to Fade and Combo animations</em></span>
|
1038 |
-
</p>
|
1039 |
-
|
1040 |
|
1041 |
-
<!-- No Follow On or Off: Dropdown -->
|
1042 |
-
<p>
|
1043 |
-
<label for="<?php echo $this->get_field_id( 'nofollow' ); ?>"><?php _e('Use rel="nofollow" for links', 'smw'); ?></label>
|
1044 |
-
<select id="<?php echo $this->get_field_id( 'nofollow' ); ?>" name="<?php echo $this->get_field_name( 'nofollow' ); ?>">
|
1045 |
-
<option value="on" <?php if($instance['nofollow'] == 'on') { echo 'selected'; } ?>>On</option>
|
1046 |
-
<option value="off" <?php if($instance['nofollow'] == 'off') { echo 'selected'; } ?>>Off</option>
|
1047 |
-
</select>
|
1048 |
-
</p>
|
1049 |
-
|
1050 |
-
|
1051 |
-
<!-- Open in new tab: Dropdown -->
|
1052 |
-
<p>
|
1053 |
-
<label for="<?php echo $this->get_field_id( 'newtab' ); ?>"><?php _e('Open in new tab?', 'smw'); ?></label>
|
1054 |
-
<select id="<?php echo $this->get_field_id( 'newtab' ); ?>" name="<?php echo $this->get_field_name( 'newtab' ); ?>">
|
1055 |
-
<option value="yes" <?php if($instance['newtab'] == 'yes') { echo 'selected'; } ?>>Yes</option>
|
1056 |
-
<option value="no" <?php if($instance['newtab'] == 'no') { echo 'selected'; } ?>>No</option>
|
1057 |
-
</select>
|
1058 |
-
</p>
|
1059 |
-
|
1060 |
-
<!-- Alignment: Dropdown -->
|
1061 |
-
<p>
|
1062 |
-
<label for="<?php echo $this->get_field_id( 'alignment' ); ?>"><?php _e('Icon Alignment', 'smw'); ?></label>
|
1063 |
-
<select id="<?php echo $this->get_field_id( 'alignment' ); ?>" name="<?php echo $this->get_field_name( 'alignment' ); ?>">
|
1064 |
-
<option value="left" <?php if($instance['alignment'] == 'left') { echo 'selected'; } ?>>Left</option>
|
1065 |
-
<option value="centered" <?php if($instance['alignment'] == 'centered') { echo 'selected'; } ?>>Centered</option>
|
1066 |
-
<option value="right" <?php if($instance['alignment'] == 'right') { echo 'selected'; } ?>>Right</option>
|
1067 |
-
</select>
|
1068 |
-
</p>
|
1069 |
|
1070 |
</div>
|
1071 |
<div style="clear: both;"></div>
|
1072 |
<!-- Donate -->
|
1073 |
<p style="color: #999;"><em>This plugin takes up a great deal of my free time, and I don't get paid for any of the time I put into making fixes and adding features. If you can, please donate. Any contribution will help keep Social Media Widget up-to-date.</em></p>
|
1074 |
<p style="text-align: center;">
|
1075 |
-
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=
|
1076 |
<img src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" alt="" /></a>
|
1077 |
</p>
|
1078 |
|
3 |
* Plugin Name: Social Media Widget
|
4 |
* Plugin URI: http://forums.idontlikethisgame.com/viewforum.php?f=3
|
5 |
* Description: Adds links to all of your social media and sharing site profiles. Icons come in 3 sizes, 4 icon styles, and 4 animations.
|
6 |
+
* Version: 2.9
|
7 |
* Author: Brian Freytag
|
8 |
+
* Author URI: http://www.precisionwebdev.com
|
9 |
**/
|
10 |
|
11 |
|
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( 'width' => 850, 'height' => 350, 'id_base' => 'social-widget' );
|
44 |
|
45 |
/* Create the widget. */
|
46 |
$this->WP_Widget( 'social-widget', __('Social Media Widget', 'smw'), $widget_ops, $control_ops );
|
72 |
$stumble = $instance['stumble'];
|
73 |
$tumblr = $instance['tumblr'];
|
74 |
$buzz = $instance['buzz'];
|
75 |
+
$talk = $instance['talk'];
|
76 |
$vimeo = $instance['vimeo'];
|
77 |
$blogger = $instance['blogger'];
|
78 |
$wordpress = $instance['wordpress'];
|
79 |
$yelp = $instance['yelp'];
|
80 |
$lastfm = $instance['lastfm'];
|
81 |
+
$pandora = $instance['pandora'];
|
82 |
+
$ustream = $instance['ustream'];
|
83 |
+
$imdb = $instance['imdb'];
|
84 |
+
$hulu = $instance['hulu'];
|
85 |
+
$flixster = $instance['flixster'];
|
86 |
$foursquare = $instance['foursquare'];
|
87 |
$meetup = $instance['meetup'];
|
88 |
$tungle = $instance['tungle'];
|
93 |
$live365 = $instance['live365'];
|
94 |
$digitaltunes = $instance['digitaltunes'];
|
95 |
$soundcloud = $instance['soundcloud'];
|
96 |
+
$bandcamp = $instance['bandcamp'];
|
97 |
$etsy = $instance['etsy'];
|
98 |
$bbb = $instance['bbb'];
|
99 |
$merchantcircle = $instance['merchantcircle'];
|
100 |
+
$ebay = $instance['ebay'];
|
101 |
+
$steam = $instance['steam'];
|
102 |
$rss = $instance['rss_url'];
|
103 |
$subscribe = $instance['subscribe'];
|
104 |
$icon_size = $instance['icon_size'];
|
320 |
echo ''; //If no URL Inputed
|
321 |
}
|
322 |
|
323 |
+
// Google Talk
|
324 |
+
if ( $talk != '' && $talk != ' ' && file_exists($smw_dir.'/talk.png')) {
|
325 |
+
?><a href="<?php echo $talk; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img 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
|
326 |
+
} else {
|
327 |
+
echo ''; //If no URL Inputed
|
328 |
+
}
|
329 |
+
|
330 |
// Vimeo
|
331 |
if ( $vimeo != '' && $vimeo != ' ' && file_exists($smw_dir.'/vimeo.png')) {
|
332 |
?><a href="<?php echo $vimeo; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img 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
|
362 |
echo ''; //If no URL Inputed
|
363 |
}
|
364 |
|
365 |
+
// Pandora
|
366 |
+
if ( $pandora != '' && $pandora != ' ' && file_exists($smw_dir.'/pandora.png')) {
|
367 |
+
?><a href="<?php echo $pandora; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img 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
|
368 |
+
} else {
|
369 |
+
echo ''; //If no URL Inputed
|
370 |
+
}
|
371 |
+
|
372 |
+
// Ustream
|
373 |
+
if ( $ustream != '' && $ustream != ' ' && file_exists($smw_dir.'/ustream.png')) {
|
374 |
+
?><a href="<?php echo $ustream; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img 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
|
375 |
+
} else {
|
376 |
+
echo ''; //If no URL Inputed
|
377 |
+
}
|
378 |
+
|
379 |
+
// IMDb
|
380 |
+
if ( $imdb != '' && $imdb != ' ' && file_exists($smw_dir.'/imdb.png')) {
|
381 |
+
?><a href="<?php echo $imdb; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img 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
|
382 |
+
} else {
|
383 |
+
echo ''; //If no URL Inputed
|
384 |
+
}
|
385 |
+
|
386 |
+
// Hulu
|
387 |
+
if ( $hulu != '' && $hulu != ' ' && file_exists($smw_dir.'/hulu.png')) {
|
388 |
+
?><a href="<?php echo $hulu; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img 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
|
389 |
+
} else {
|
390 |
+
echo ''; //If no URL Inputed
|
391 |
+
}
|
392 |
+
|
393 |
+
// Flixster
|
394 |
+
if ( $flixster != '' && $flixster != ' ' && file_exists($smw_dir.'/flixster.png')) {
|
395 |
+
?><a href="<?php echo $flixster; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img 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
|
396 |
+
} else {
|
397 |
+
echo ''; //If no URL Inputed
|
398 |
+
}
|
399 |
+
|
400 |
// Foursquare
|
401 |
if ( $foursquare != '' && $foursquare != ' ' && file_exists($smw_dir.'/foursquare.png')) {
|
402 |
?><a href="<?php echo $foursquare; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img 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
|
467 |
echo ''; //If no URL Inputed
|
468 |
}
|
469 |
|
470 |
+
// BandCamp
|
471 |
+
if ( $bandcamp != '' && $bandcamp != ' ' && file_exists($smw_dir.'/bandcamp.png')) {
|
472 |
+
?><a href="<?php echo $bandcamp; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img 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
|
473 |
+
} else {
|
474 |
+
echo ''; //If no URL Inputed
|
475 |
+
}
|
476 |
+
|
477 |
// Etsy
|
478 |
if ( $etsy != '' && $etsy != ' ' && file_exists($smw_dir.'/etsy.png')) {
|
479 |
?><a href="<?php echo $etsy; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img 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
|
495 |
echo ''; //If no URL inputed
|
496 |
}
|
497 |
|
498 |
+
// Ebay
|
499 |
+
if ( $ebay != '' && $ebay != ' ' && file_exists($smw_dir.'/ebay.png')) {
|
500 |
+
?><a href="<?php echo $ebay; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img 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
|
501 |
+
} else {
|
502 |
+
echo ''; //If no URL Inputed
|
503 |
+
}
|
504 |
+
|
505 |
+
// Steam
|
506 |
+
if ( $steam != '' && $steam != ' ' && file_exists($smw_dir.'/steam.png')) {
|
507 |
+
?><a href="<?php echo $steam; ?>" <?php echo $nofollow; ?> <?php echo $newtab; ?>><img 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
|
508 |
+
} else {
|
509 |
+
echo ''; //If no URL Inputed
|
510 |
+
}
|
511 |
+
|
512 |
// Custom Icon 1
|
513 |
if ( $custom1url != '' && $custom1name != '' && $custom1icon != '' ) {
|
514 |
?><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
|
581 |
$instance['text'] = $new_instance['text'];
|
582 |
else
|
583 |
$instance['text'] = stripslashes( wp_filter_post_kses( addslashes($new_instance['text']) ) ); // wp_filter_post_kses() expects slashed
|
584 |
+
$instance['imgcaption'] = $new_instance['imgcaption'];
|
585 |
+
$instance['icon_size'] = $new_instance['icon_size'];
|
586 |
+
$instance['icon_pack'] = $new_instance['icon_pack'];
|
587 |
+
$instance['animation'] = $new_instance['animation'];
|
588 |
+
$instance['icon_opacity'] = $new_instance['icon_opacity'];
|
589 |
+
$instance['newtab'] = $new_instance['newtab'];
|
590 |
+
$instance['nofollow'] = $new_instance['nofollow'];
|
591 |
+
$instance['alignment'] = $new_instance['alignment'];
|
592 |
$instance['facebook'] = strip_tags( $new_instance['facebook'] );
|
593 |
$instance['twitter'] = strip_tags( $new_instance['twitter'] );
|
594 |
$instance['myspace'] = strip_tags( $new_instance['myspace'] );
|
|
|
595 |
$instance['orkut'] = strip_tags( $new_instance['orkut'] );
|
596 |
$instance['hyves'] = strip_tags( $new_instance['hyves'] );
|
597 |
$instance['linkedin'] = strip_tags( $new_instance['linkedin'] );
|
598 |
$instance['asmallworld'] = strip_tags( $new_instance['asmallworld'] );
|
599 |
+
$instance['foursquare'] = strip_tags( $new_instance['foursquare'] );
|
600 |
+
$instance['meetup'] = strip_tags( $new_instance['meetup'] );
|
601 |
$instance['flickr'] = strip_tags( $new_instance['flickr'] );
|
602 |
$instance['picasa'] = strip_tags( $new_instance['picasa'] );
|
603 |
+
$instance['deviantart'] = strip_tags( $new_instance['deviantart'] );
|
604 |
$instance['youtube'] = strip_tags( $new_instance['youtube'] );
|
605 |
+
$instance['hulu'] = strip_tags( $new_instance['hulu'] );
|
606 |
+
$instance['ustream'] = strip_tags( $new_instance['ustream'] );
|
607 |
+
$instance['vimeo'] = strip_tags( $new_instance['vimeo'] );
|
608 |
+
$instance['flixster'] = strip_tags( $new_instance['flixster'] );
|
609 |
+
$instance['imdb'] = strip_tags( $new_instance['imdb'] );
|
610 |
+
$instance['steam'] = strip_tags( $new_instance['steam'] );
|
611 |
$instance['skype'] = strip_tags( $new_instance['skype'] );
|
612 |
+
$instance['talk'] = strip_tags( $new_instance['talk'] );
|
613 |
$instance['digg'] = strip_tags( $new_instance['digg'] );
|
614 |
$instance['reddit'] = strip_tags( $new_instance['reddit'] );
|
615 |
$instance['delicious'] = strip_tags( $new_instance['delicious'] );
|
616 |
$instance['stumble'] = strip_tags( $new_instance['stumble'] );
|
|
|
617 |
$instance['buzz'] = strip_tags( $new_instance['buzz'] );
|
618 |
+
$instance['friendfeed'] = strip_tags( $new_instance['friendfeed'] );
|
619 |
+
$instance['rss_url'] = strip_tags( $new_instance['rss_url'] );
|
620 |
+
$instance['subscribe'] = strip_tags( $new_instance['subscribe'] );
|
621 |
+
$instance['tumblr'] = strip_tags( $new_instance['tumblr'] );
|
622 |
$instance['blogger'] = strip_tags( $new_instance['blogger'] );
|
623 |
$instance['wordpress'] = strip_tags( $new_instance['wordpress'] );
|
624 |
$instance['yelp'] = strip_tags( $new_instance['yelp'] );
|
|
|
|
|
|
|
|
|
|
|
625 |
$instance['slideshare'] = strip_tags( $new_instance['slideshare'] );
|
626 |
+
$instance['bbb'] = strip_tags( $new_instance['bbb'] );
|
627 |
+
$instance['merchantcircle'] = strip_tags( $new_instance['merchantcircle'] );
|
628 |
+
$instance['etsy'] = strip_tags( $new_instance['etsy'] );
|
629 |
+
$instance['ebay'] = strip_tags( $new_instance['ebay'] );
|
630 |
+
$instance['lastfm'] = strip_tags( $new_instance['lastfm'] );
|
631 |
+
$instance['pandora'] = strip_tags( $new_instance['pandora'] );
|
632 |
$instance['ping'] = strip_tags( $new_instance['ping'] );
|
633 |
$instance['live365'] = strip_tags( $new_instance['live365'] );
|
634 |
$instance['digitaltunes'] = strip_tags( $new_instance['digitaltunes'] );
|
635 |
$instance['soundcloud'] = strip_tags( $new_instance['soundcloud'] );
|
636 |
+
$instance['bandcamp'] = strip_tags( $new_instance['bandcamp'] );
|
637 |
+
$instance['tungle'] = strip_tags( $new_instance['tungle'] );
|
638 |
+
$instance['plancast'] = strip_tags( $new_instance['plancast'] );
|
639 |
$instance['custom1name'] = strip_tags( $new_instance['custom1name'] );
|
640 |
$instance['custom1icon'] = strip_tags( $new_instance['custom1icon'] );
|
641 |
$instance['custom1url'] = strip_tags( $new_instance['custom1url'] );
|
654 |
$instance['custom6name'] = strip_tags( $new_instance['custom6name'] );
|
655 |
$instance['custom6icon'] = strip_tags( $new_instance['custom6icon'] );
|
656 |
$instance['custom6url'] = strip_tags( $new_instance['custom6url'] );
|
|
|
|
|
|
|
|
|
657 |
$instance['customiconsurl'] = strip_tags( $new_instance['customiconsurl'] );
|
658 |
$instance['customiconspath'] = strip_tags( $new_instance['customiconspath'] );
|
659 |
+
|
|
|
|
|
|
|
|
|
660 |
|
661 |
return $instance;
|
662 |
}
|
673 |
'title' => __('Follow Us!', 'smw'),
|
674 |
'text' => '',
|
675 |
'imgcaption' => __('Follow Us on', 'smw'),
|
676 |
+
'icon_size' => 'default',
|
677 |
+
'icon_pack' => 'default',
|
678 |
+
'icon_opacity' => 'default',
|
679 |
+
'newtab' => 'yes',
|
680 |
+
'nofollow' => 'on',
|
681 |
+
'alignment' => 'left',
|
682 |
+
'facebook' => __('', 'smw'),
|
683 |
+
'twitter' => __('', 'smw'),
|
684 |
+
'myspace' => __('', 'smw'),
|
685 |
+
'orkut' => __('', 'smw'),
|
686 |
+
'hyves' => __('', 'smw'),
|
687 |
+
'linkedin' => __('', 'smw'),
|
688 |
'asmallworld' => __('', 'smw'),
|
689 |
+
'foursquare' => __('', 'smw'),
|
690 |
+
'meetup' => __('', 'smw'),
|
691 |
+
'flickr' => __('', 'smw'),
|
692 |
+
'picasa' => __('', 'smw'),
|
693 |
+
'deviantart' => __('', 'smw'),
|
694 |
+
'youtube' => __('', 'smw'),
|
695 |
+
'hulu' => __('', 'smw'),
|
696 |
+
'ustream' => __('', 'smw'),
|
697 |
+
'vimeo' => __('', 'smw'),
|
698 |
+
'flixster' => __('', 'smw'),
|
699 |
+
'imdb' => __('', 'smw'),
|
700 |
+
'steam' => __('', 'smw'),
|
701 |
+
'skype' => __('', 'smw'),
|
702 |
+
'talk' => __('', 'smw'),
|
703 |
+
'digg' => __('', 'smw'),
|
704 |
+
'reddit' => __('', 'smw'),
|
705 |
+
'delicious' => __('', 'smw'),
|
706 |
+
'stumble' => __('', 'smw'),
|
707 |
+
'buzz' => __('', 'smw'),
|
708 |
+
'friendfeed' => __('', 'smw'),
|
709 |
+
'rss_url' => __('', 'smw'),
|
710 |
+
'subscribe' => __('mailto:', 'smw'),
|
711 |
+
'tumblr' => __('', 'smw'),
|
712 |
+
'blogger' => __('', 'smw'),
|
713 |
+
'wordpress' => __('', 'smw'),
|
714 |
+
'yelp' => __('', 'smw'),
|
715 |
+
'slideshare' => __('', 'smw'),
|
716 |
+
'bbb' => __('', 'smw'),
|
717 |
+
'merchantcircle' => __('', 'smw'),
|
718 |
+
'etsy' => __('', 'smw'),
|
719 |
+
'ebay' => __('', 'smw'),
|
720 |
+
'lastfm' => __('', 'smw'),
|
721 |
+
'pandora' => __('', 'smw'),
|
722 |
+
'ping' => __(''),
|
723 |
+
'live365' => __('', 'smw'),
|
724 |
+
'digitaltunes' => __('', 'smw'),
|
725 |
+
'soundcloud' => __('', 'smw'),
|
726 |
+
'bandcamp' => __('', 'smw'),
|
727 |
'tungle' => __('', 'smw'),
|
728 |
'plancast' => __('', 'smw'),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
729 |
'custom1name' => __('', 'smw'),
|
730 |
'custom1icon' => __('', 'smw'),
|
731 |
'custom1url' => __('', 'smw'),
|
744 |
'custom6name' => __('', 'smw'),
|
745 |
'custom6icon' => __('', 'smw'),
|
746 |
'custom6url' => __('', 'smw'),
|
|
|
|
|
|
|
747 |
'customiconsurl' => __('http://wwww.yoursite.com/wordpress/wp-content/your-icons', 'smw'),
|
748 |
+
'customiconspath' => __('/path/to/your-icons', 'smw'));
|
|
|
|
|
|
|
|
|
749 |
|
750 |
$instance = wp_parse_args( (array) $instance, $defaults ); ?>
|
751 |
<p>
|
752 |
<em>Note: Make sure you include FULL URL (i.e. http://www.example.com)</em><br />
|
753 |
If you do not want an icon to be visible, simply delete the supplied URL and leave the input blox blank.
|
754 |
</p>
|
755 |
+
|
756 |
+
<div style="width:32%; float: left;">
|
757 |
+
<h3>General Settings</h3>
|
758 |
<!-- Widget Title: Text Input -->
|
|
|
759 |
<p>
|
760 |
<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Title:', 'smw'); ?></label>
|
761 |
<input id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $instance['title']; ?>" style="width:85%;" />
|
772 |
<label for="<?php echo $this->get_field_id( 'imgcaption' ); ?>"><?php _e('Icon Alt and Title Tag:', 'smw'); ?></label>
|
773 |
<input id="<?php echo $this->get_field_id( 'imgcaption' ); ?>" name="<?php echo $this->get_field_name( 'imgcaption' ); ?>" value="<?php echo $instance['imgcaption']; ?>" style="width:85%;" />
|
774 |
</p>
|
775 |
+
|
776 |
+
<!-- Choose Icon Size: Dropdown -->
|
777 |
+
|
778 |
+
<p>
|
779 |
+
<label for="<?php echo $this->get_field_id( 'icon_size' ); ?>"><?php _e('Icon Size', 'smw'); ?></label>
|
780 |
+
<select id="<?php echo $this->get_field_id( 'icon_size' ); ?>" name="<?php echo $this->get_field_name( 'icon_size' ); ?>">
|
781 |
+
<option value="16" <?php if($instance['icon_size'] == '16') { echo 'selected'; } ?>>16px</option>
|
782 |
+
<option value="default" <?php if($instance['icon_size'] == 'default') { echo 'selected'; } ?>>Default (32px)</option>
|
783 |
+
<option value="64" <?php if($instance['icon_size'] == '64') { echo 'selected'; } ?>>64px</option>
|
784 |
+
</select>
|
785 |
+
</p>
|
786 |
+
|
787 |
+
<!-- Choose Icon Pack: Dropdown -->
|
788 |
+
<p>
|
789 |
+
<label for="<?php echo $this->get_field_id( 'icon_pack' ); ?>"><?php _e('Icon Pack', 'smw'); ?></label>
|
790 |
+
<select id="<?php echo $this->get_field_id( 'icon_pack' ); ?>" name="<?php echo $this->get_field_name( 'icon_pack' ); ?>">
|
791 |
+
<option value="cutout" <?php if($instance['icon_pack'] == 'cutout') { echo 'selected'; } ?>>Cutout Icons</option>
|
792 |
+
<option value="heart" <?php if($instance['icon_pack'] == 'heart') { echo 'selected'; } ?>>Heart Icons</option>
|
793 |
+
<option value="default" <?php if($instance['icon_pack'] == 'default') { echo 'selected'; } ?>>Default Icons (Web2.0)</option>
|
794 |
+
<option value="sketch" <?php if($instance['icon_pack'] == 'sketch') { echo 'selected'; } ?>>Sketch Icons</option>
|
795 |
+
<option value="custom" <?php if($instance['icon_pack'] == 'custom') { echo 'selected'; } ?>>Custom Icons</option>
|
796 |
+
</select>
|
797 |
+
</p>
|
798 |
+
|
799 |
+
<!-- Type of Animation: Dropdown -->
|
800 |
+
<p>
|
801 |
+
<label for="<?php echo $this->get_field_id( 'animation' ); ?>"><?php _e('Type of Animation', 'smw'); ?></label>
|
802 |
+
<select id="<?php echo $this->get_field_id( 'animation' ); ?>" name="<?php echo $this->get_field_name( 'animation' ); ?>">
|
803 |
+
<option value="fade" <?php if($instance['animation'] == 'fade') { echo 'selected'; } ?>>Fade In</option>
|
804 |
+
<option value="scale" <?php if($instance['animation'] == 'scale') { echo 'selected'; } ?>>Scale</option>
|
805 |
+
<option value="bounce" <?php if($instance['animation'] == 'bounce') { echo 'selected'; } ?>>Bounce</option>
|
806 |
+
<option value="combo" <?php if($instance['animation'] == 'combo') { echo 'selected'; } ?>>Combo</option>
|
807 |
+
</select>
|
808 |
+
</p>
|
809 |
+
|
810 |
+
<!--Starting Icon Opacity: Dropdown -->
|
811 |
+
<p>
|
812 |
+
<label for="<?php echo $this->get_field_id( 'icon_opacity' ); ?>"><?php _e('Default Icon Opacity', 'smw'); ?></label>
|
813 |
+
<select id="<?php echo $this->get_field_id( 'icon_opacity' ); ?>" name="<?php echo $this->get_field_name( 'icon_opacity' ); ?>">
|
814 |
+
<option value="0.5" <?php if($instance['icon_opacity'] == '0.5') { echo 'selected'; } ?>>50%</option>
|
815 |
+
<option value="0.6" <?php if($instance['icon_opacity'] == '0.6') { echo 'selected'; } ?>>60%</option>
|
816 |
+
<option value="0.7" <?php if($instance['icon_opacity'] == '0.7') { echo 'selected'; } ?>>70%</option>
|
817 |
+
<option value="default" <?php if($instance['icon_opacity'] == 'default') { echo 'selected'; } ?>>Default (80%)</option>
|
818 |
+
<option value="0.9" <?php if($instance['icon_opacity'] == '0.9') { echo 'selected'; } ?>>90%</option>
|
819 |
+
<option value="1" <?php if($instance['icon_opacity'] == '1') { echo 'selected'; } ?>>100%</option>
|
820 |
+
</select>
|
821 |
+
<span style="color: #999;"><em>Only applies to Fade and Combo animations</em></span>
|
822 |
+
</p>
|
823 |
+
|
824 |
+
|
825 |
+
<!-- No Follow On or Off: Dropdown -->
|
826 |
+
<p>
|
827 |
+
<label for="<?php echo $this->get_field_id( 'nofollow' ); ?>"><?php _e('Use rel="nofollow" for links', 'smw'); ?></label>
|
828 |
+
<select id="<?php echo $this->get_field_id( 'nofollow' ); ?>" name="<?php echo $this->get_field_name( 'nofollow' ); ?>">
|
829 |
+
<option value="on" <?php if($instance['nofollow'] == 'on') { echo 'selected'; } ?>>On</option>
|
830 |
+
<option value="off" <?php if($instance['nofollow'] == 'off') { echo 'selected'; } ?>>Off</option>
|
831 |
+
</select>
|
832 |
+
</p>
|
833 |
+
|
834 |
+
|
835 |
+
<!-- Open in new tab: Dropdown -->
|
836 |
+
<p>
|
837 |
+
<label for="<?php echo $this->get_field_id( 'newtab' ); ?>"><?php _e('Open in new tab?', 'smw'); ?></label>
|
838 |
+
<select id="<?php echo $this->get_field_id( 'newtab' ); ?>" name="<?php echo $this->get_field_name( 'newtab' ); ?>">
|
839 |
+
<option value="yes" <?php if($instance['newtab'] == 'yes') { echo 'selected'; } ?>>Yes</option>
|
840 |
+
<option value="no" <?php if($instance['newtab'] == 'no') { echo 'selected'; } ?>>No</option>
|
841 |
+
</select>
|
842 |
+
</p>
|
843 |
+
|
844 |
+
<!-- Alignment: Dropdown -->
|
845 |
+
<p>
|
846 |
+
<label for="<?php echo $this->get_field_id( 'alignment' ); ?>"><?php _e('Icon Alignment', 'smw'); ?></label>
|
847 |
+
<select id="<?php echo $this->get_field_id( 'alignment' ); ?>" name="<?php echo $this->get_field_name( 'alignment' ); ?>">
|
848 |
+
<option value="left" <?php if($instance['alignment'] == 'left') { echo 'selected'; } ?>>Left</option>
|
849 |
+
<option value="centered" <?php if($instance['alignment'] == 'centered') { echo 'selected'; } ?>>Centered</option>
|
850 |
+
<option value="right" <?php if($instance['alignment'] == 'right') { echo 'selected'; } ?>>Right</option>
|
851 |
+
</select>
|
852 |
+
</p>
|
853 |
+
|
854 |
+
<h3>Social Networking</h3>
|
855 |
<!-- Facebook URL: Text Input -->
|
856 |
<p>
|
857 |
<label for="<?php echo $this->get_field_id( 'facebook' ); ?>"><?php _e('Facebook URL:', 'smw'); ?></label>
|
869 |
<label for="<?php echo $this->get_field_id( 'myspace' ); ?>"><?php _e('MySpace URL:', 'smw'); ?></label>
|
870 |
<input id="<?php echo $this->get_field_id( 'myspace' ); ?>" name="<?php echo $this->get_field_name( 'myspace' ); ?>" value="<?php echo $instance['myspace']; ?>" style="width:85%;" />
|
871 |
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
872 |
|
873 |
<!-- Orkut URL: Text Input -->
|
874 |
<p>
|
894 |
<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%;" />
|
895 |
</p>
|
896 |
|
897 |
+
<!-- Foursquare URL: Text Input -->
|
898 |
+
<p>
|
899 |
+
<label for="<?php echo $this->get_field_id( 'foursquare' ); ?>"><?php _e('Foursquare URL:', 'smw'); ?></label>
|
900 |
+
<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%;" />
|
901 |
+
</p>
|
902 |
+
|
903 |
+
<!-- Meetup URL: Text Input -->
|
904 |
+
<p>
|
905 |
+
<label for="<?php echo $this->get_field_id( 'meetup' ); ?>"><?php _e('Meetup URL:', 'smw'); ?></label>
|
906 |
+
<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%;" />
|
907 |
+
</p>
|
908 |
+
|
909 |
+
<h3>Images and Video</h3>
|
910 |
<!-- Flickr URL: Text Input -->
|
911 |
<p>
|
912 |
<label for="<?php echo $this->get_field_id( 'flickr' ); ?>"><?php _e('Flickr URL:', 'smw'); ?></label>
|
919 |
<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%;" />
|
920 |
</p>
|
921 |
|
922 |
+
<!-- DeviantArt URL: Text Input -->
|
923 |
+
<p>
|
924 |
+
<label for="<?php echo $this->get_field_id( 'deviantart' ); ?>"><?php _e('DeviantArt URL:', 'smw'); ?></label>
|
925 |
+
<input id="<?php echo $this->get_field_id( 'deviantart' ); ?>" name="<?php echo $this->get_field_name( 'deviantart' ); ?>" value="<?php echo $instance['deviantart']; ?>" style="width:85%;" />
|
926 |
+
</p>
|
927 |
+
|
928 |
<!-- YouTube URL: Text Input -->
|
929 |
<p>
|
930 |
<label for="<?php echo $this->get_field_id( 'youtube' ); ?>"><?php _e('YouTube URL:', 'smw'); ?></label>
|
931 |
<input id="<?php echo $this->get_field_id( 'youtube' ); ?>" name="<?php echo $this->get_field_name( 'youtube' ); ?>" value="<?php echo $instance['youtube']; ?>" style="width:85%;" />
|
932 |
</p>
|
933 |
|
934 |
+
<!-- Hulu URL: Text Input -->
|
935 |
+
<p>
|
936 |
+
<label for="<?php echo $this->get_field_id( 'hulu' ); ?>"><?php _e('Hulu URL:', 'smw'); ?></label>
|
937 |
+
<input id="<?php echo $this->get_field_id( 'hulu' ); ?>" name="<?php echo $this->get_field_name( 'hulu' ); ?>" value="<?php echo $instance['hulu']; ?>" style="width:85%;" />
|
938 |
+
</p>
|
939 |
+
|
940 |
+
<!-- UStream URL: Text Input -->
|
941 |
+
<p>
|
942 |
+
<label for="<?php echo $this->get_field_id( 'ustream' ); ?>"><?php _e('UStream URL:', 'smw'); ?></label>
|
943 |
+
<input id="<?php echo $this->get_field_id( 'ustream' ); ?>" name="<?php echo $this->get_field_name( 'ustream' ); ?>" value="<?php echo $instance['ustream']; ?>" style="width:85%;" />
|
944 |
+
</p>
|
945 |
+
|
946 |
+
<!-- Vimeo URL: Text Input -->
|
947 |
+
<p>
|
948 |
+
<label for="<?php echo $this->get_field_id( 'vimeo' ); ?>"><?php _e('Vimeo URL:', 'smw'); ?></label>
|
949 |
+
<input id="<?php echo $this->get_field_id( 'vimeo' ); ?>" name="<?php echo $this->get_field_name( 'vimeo' ); ?>" value="<?php echo $instance['vimeo']; ?>" style="width:85%;" />
|
950 |
+
</p>
|
951 |
+
|
952 |
+
<!-- Flixster URL: Text Input -->
|
953 |
+
<p>
|
954 |
+
<label for="<?php echo $this->get_field_id( 'flixster' ); ?>"><?php _e('Flixster URL:', 'smw'); ?></label>
|
955 |
+
<input id="<?php echo $this->get_field_id( 'flixster' ); ?>" name="<?php echo $this->get_field_name( 'flixster' ); ?>" value="<?php echo $instance['flixster']; ?>" style="width:85%;" />
|
956 |
+
</p>
|
957 |
+
|
958 |
+
<!-- IMDb URL: Text Input -->
|
959 |
+
<p>
|
960 |
+
<label for="<?php echo $this->get_field_id( 'imdb' ); ?>"><?php _e('IMDb URL:', 'smw'); ?></label>
|
961 |
+
<input id="<?php echo $this->get_field_id( 'imdb' ); ?>" name="<?php echo $this->get_field_name( 'imdb' ); ?>" value="<?php echo $instance['imdb']; ?>" style="width:85%;" />
|
962 |
+
</p>
|
963 |
+
|
964 |
+
<h3>Gaming</h3>
|
965 |
+
<!-- Steam URL: Text Input -->
|
966 |
+
<p>
|
967 |
+
<label for="<?php echo $this->get_field_id( 'steam' ); ?>"><?php _e('Steam URL:', 'smw'); ?></label>
|
968 |
+
<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%;" />
|
969 |
+
</p>
|
970 |
+
</div>
|
971 |
+
<div style="width:32%; float: left; padding-left: 10px; border-left: 1px solid #000">
|
972 |
+
|
973 |
+
<h3>Chatting</h3>
|
974 |
+
<!-- Skype URL: Text Input -->
|
975 |
<p>
|
976 |
<label for="<?php echo $this->get_field_id( 'skype' ); ?>"><?php _e('Skype URL:', 'smw'); ?></label>
|
977 |
<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%;" />
|
978 |
</p>
|
979 |
|
980 |
+
|
981 |
+
<!-- Google Talk URL: Text Input -->
|
982 |
+
<p>
|
983 |
+
<label for="<?php echo $this->get_field_id( 'talk' ); ?>"><?php _e('Google Talk URL:', 'smw'); ?></label>
|
984 |
+
<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%;" />
|
985 |
+
</p>
|
986 |
+
|
987 |
+
<h3>Social News & Feeds</h3>
|
988 |
<!-- Digg URL: Text Input -->
|
989 |
<p>
|
990 |
<label for="<?php echo $this->get_field_id( 'digg' ); ?>"><?php _e('Digg URL:', 'smw'); ?></label>
|
991 |
<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%;" />
|
992 |
</p>
|
993 |
+
|
994 |
|
995 |
<!-- Reddit URL: Text Input -->
|
996 |
<p>
|
1010 |
<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%;" />
|
1011 |
</p>
|
1012 |
|
|
|
|
|
|
|
|
|
|
|
|
|
1013 |
<!-- Buzz URL: Text Input -->
|
1014 |
<p>
|
1015 |
<label for="<?php echo $this->get_field_id( 'buzz' ); ?>"><?php _e('Buzz URL:', 'smw'); ?></label>
|
1016 |
<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%;" />
|
1017 |
</p>
|
1018 |
|
1019 |
+
<!-- FriendFeed URL: Text Input -->
|
|
|
1020 |
<p>
|
1021 |
+
<label for="<?php echo $this->get_field_id( 'friendfeed' ); ?>"><?php _e('FriendFeed URL:', 'smw'); ?></label>
|
1022 |
+
<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%;" />
|
1023 |
+
</p>
|
1024 |
+
|
1025 |
+
<!-- RSS URL: Text Input -->
|
1026 |
+
<p>
|
1027 |
+
<label for="<?php echo $this->get_field_id( 'rss_url' ); ?>"><?php _e('RSS URL:', 'smw'); ?></label>
|
1028 |
+
<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%;" />
|
1029 |
+
</p>
|
1030 |
+
|
1031 |
+
|
1032 |
+
|
1033 |
+
<!-- Subscribe URL: Text Input -->
|
1034 |
+
<p>
|
1035 |
+
<label for="<?php echo $this->get_field_id( 'subscribe' ); ?>"><?php _e('E-mail URL:', 'smw'); ?></label>
|
1036 |
+
<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%;" />
|
1037 |
+
</p>
|
1038 |
+
|
1039 |
+
<h3>Blogging</h3>
|
1040 |
+
<!-- Tumblr URL: Text Input -->
|
1041 |
+
<p>
|
1042 |
+
<label for="<?php echo $this->get_field_id( 'tumblr' ); ?>"><?php _e('Tumblr URL:', 'smw'); ?></label>
|
1043 |
+
<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%;" />
|
1044 |
</p>
|
1045 |
|
1046 |
<!-- Blogger URL: Text Input -->
|
1055 |
<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%;" />
|
1056 |
</p>
|
1057 |
|
1058 |
+
<h3>Business/Reviewing & Sharing</h3>
|
1059 |
<!-- Yelp URL: Text Input -->
|
1060 |
<p>
|
1061 |
<label for="<?php echo $this->get_field_id( 'yelp' ); ?>"><?php _e('Yelp URL:', 'smw'); ?></label>
|
1062 |
<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%;" />
|
1063 |
</p>
|
1064 |
|
1065 |
+
<!-- SlideShare URL: Text Input -->
|
1066 |
<p>
|
1067 |
+
<label for="<?php echo $this->get_field_id( 'slideshare' ); ?>"><?php _e('SlideShare URL:', 'smw'); ?></label>
|
1068 |
+
<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%;" />
|
1069 |
</p>
|
1070 |
|
1071 |
+
<!-- Better Business Bureau URL: Text Input -->
|
1072 |
<p>
|
1073 |
+
<label for="<?php echo $this->get_field_id( 'bbb' ); ?>"><?php _e('Better Business Bureau URL:', 'smw'); ?></label>
|
1074 |
+
<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%;" />
|
1075 |
</p>
|
1076 |
|
1077 |
+
<!-- Merchant Circle URL: Text Input -->
|
1078 |
<p>
|
1079 |
+
<label for="<?php echo $this->get_field_id( 'merchantcircle' ); ?>"><?php _e('Merchant Circle URL:', 'smw'); ?></label>
|
1080 |
+
<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%;" />
|
1081 |
</p>
|
1082 |
|
1083 |
+
<!-- Etsy URL: Text Input -->
|
1084 |
<p>
|
1085 |
+
<label for="<?php echo $this->get_field_id( 'etsy' ); ?>"><?php _e('Etsy URL:', 'smw'); ?></label>
|
1086 |
+
<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%;" />
|
1087 |
</p>
|
1088 |
|
1089 |
+
<!-- Ebay URL: Text Input -->
|
1090 |
<p>
|
1091 |
+
<label for="<?php echo $this->get_field_id( 'ebay' ); ?>"><?php _e('Ebay URL:', 'smw'); ?></label>
|
1092 |
+
<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%;" />
|
1093 |
</p>
|
1094 |
|
1095 |
+
<h3>Music & Audio</h3>
|
1096 |
+
<!-- Last.fm URL: Text Input -->
|
1097 |
<p>
|
1098 |
+
<label for="<?php echo $this->get_field_id( 'lastfm' ); ?>"><?php _e('Last.fm URL:', 'smw'); ?></label>
|
1099 |
+
<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%;" />
|
1100 |
</p>
|
1101 |
|
1102 |
+
<!-- Pandora URL: Text Input -->
|
1103 |
<p>
|
1104 |
+
<label for="<?php echo $this->get_field_id( 'pandora' ); ?>"><?php _e('Pandora URL:', 'smw'); ?></label>
|
1105 |
+
<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%;" />
|
1106 |
</p>
|
1107 |
+
|
|
|
1108 |
<!-- iTunes Ping URL: Text Input -->
|
1109 |
<p>
|
1110 |
<label for="<?php echo $this->get_field_id( 'ping' ); ?>"><?php _e('iTunes Ping URL:', 'smw'); ?></label>
|
1129 |
<input id="<?php echo $this->get_field_id( 'soundcloud' ); ?>" name="<?php echo $this->get_field_name( 'soundcloud' ); ?>" value="<?php echo $instance['soundcloud']; ?>" style="width:85%;" />
|
1130 |
</p>
|
1131 |
|
1132 |
+
<!-- BandCamp URL: Text Input -->
|
1133 |
<p>
|
1134 |
+
<label for="<?php echo $this->get_field_id( 'bandcamp' ); ?>"><?php _e('BandCamp URL:', 'smw'); ?></label>
|
1135 |
+
<input id="<?php echo $this->get_field_id( 'bandcamp' ); ?>" name="<?php echo $this->get_field_name( 'bandcamp' ); ?>" value="<?php echo $instance['bandcamp']; ?>" style="width:85%;" />
|
1136 |
</p>
|
1137 |
|
1138 |
+
<h3>Scheduling</h3>
|
1139 |
+
<!-- Tungle.me URL: Text Input -->
|
1140 |
<p>
|
1141 |
+
<label for="<?php echo $this->get_field_id( 'tungle' ); ?>"><?php _e('Tungle.me URL:', 'smw'); ?></label>
|
1142 |
+
<input id="<?php echo $this->get_field_id( 'tungle' ); ?>" name="<?php echo $this->get_field_name( 'tungle' ); ?>" value="<?php echo $instance['tungle']; ?>" style="width:85%;" />
|
1143 |
</p>
|
1144 |
|
1145 |
+
<!-- PlanCast URL: Text Input -->
|
1146 |
<p>
|
1147 |
+
<label for="<?php echo $this->get_field_id( 'plancast' ); ?>"><?php _e('PlanCast URL:', 'smw'); ?></label>
|
1148 |
+
<input id="<?php echo $this->get_field_id( 'plancast' ); ?>" name="<?php echo $this->get_field_name( 'plancast' ); ?>" value="<?php echo $instance['plancast']; ?>" style="width:85%;" />
|
1149 |
</p>
|
|
|
|
|
|
|
1150 |
|
|
|
1151 |
|
1152 |
+
</div>
|
1153 |
+
<div style="width: 30%; float: left; border-left: 1px solid #000; padding-left: 10px;">
|
1154 |
+
|
1155 |
+
<p><em>Here you can input 6 custom icons. Make sure you input FULL urls to the icon (including http://). The images will resize both width and height to the icon size chosen.</em><br />
|
1156 |
+
</p>
|
1157 |
+
<strong>Custom Services</strong>
|
1158 |
<!-- Custom Service 1: Text Input -->
|
1159 |
|
1160 |
<p>
|
1216 |
<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%;" />
|
1217 |
</p>
|
1218 |
|
1219 |
+
<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 />
|
1220 |
+
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1221 |
|
1222 |
<!-- Custom Icon Pack URL: Text Input -->
|
1223 |
<p>
|
1232 |
</p>
|
1233 |
|
1234 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1235 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1236 |
|
1237 |
</div>
|
1238 |
<div style="clear: both;"></div>
|
1239 |
<!-- Donate -->
|
1240 |
<p style="color: #999;"><em>This plugin takes up a great deal of my free time, and I don't get paid for any of the time I put into making fixes and adding features. If you can, please donate. Any contribution will help keep Social Media Widget up-to-date.</em></p>
|
1241 |
<p style="text-align: center;">
|
1242 |
+
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=VK9X4DJMNVMT2" <?php echo $newtab; ?>>
|
1243 |
<img src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" alt="" /></a>
|
1244 |
</p>
|
1245 |
|
social_widget.css
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
/* Custom Styles For The Social Media Widget Icons */
|
2 |
|
3 |
.socialmedia-buttons {
|
4 |
-
margin-top: 5px
|
5 |
}
|
6 |
|
7 |
.smw_left {
|
@@ -17,25 +17,30 @@
|
|
17 |
}
|
18 |
|
19 |
li.Social_Widget a {
|
20 |
-
padding: 0
|
21 |
-
margin: 0
|
22 |
-
background: none
|
23 |
}
|
24 |
|
25 |
.socialmedia-buttons img {
|
26 |
-
border: 0
|
27 |
-
margin-right: 10px
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
}
|
29 |
|
30 |
.socialmedia-buttons a {
|
31 |
-
background: none
|
32 |
}
|
33 |
|
34 |
.socialmedia-buttons a:hover {
|
35 |
text-decoration: none;
|
36 |
border: 0;
|
37 |
}
|
38 |
-
|
39 |
.socialmedia-buttons img.fade:hover {
|
40 |
opacity: 1 !important;
|
41 |
-moz-opacity: 1 !important;
|
1 |
/* Custom Styles For The Social Media Widget Icons */
|
2 |
|
3 |
.socialmedia-buttons {
|
4 |
+
margin-top: 5px;
|
5 |
}
|
6 |
|
7 |
.smw_left {
|
17 |
}
|
18 |
|
19 |
li.Social_Widget a {
|
20 |
+
padding: 0;
|
21 |
+
margin: 0;
|
22 |
+
background: none;
|
23 |
}
|
24 |
|
25 |
.socialmedia-buttons img {
|
26 |
+
border: 0;
|
27 |
+
margin-right: 10px;
|
28 |
+
margin-bottom: 5px;
|
29 |
+
margin-top: 5px;
|
30 |
+
display: inline;
|
31 |
+
-webkit-transition: all 0.2s ease-in;
|
32 |
+
-moz-transition: all 0.2s ease-in;
|
33 |
+
transition: all 0.2s ease;
|
34 |
}
|
35 |
|
36 |
.socialmedia-buttons a {
|
37 |
+
background: none;
|
38 |
}
|
39 |
|
40 |
.socialmedia-buttons a:hover {
|
41 |
text-decoration: none;
|
42 |
border: 0;
|
43 |
}
|
|
|
44 |
.socialmedia-buttons img.fade:hover {
|
45 |
opacity: 1 !important;
|
46 |
-moz-opacity: 1 !important;
|