Version Description
Download this release
Release Info
Developer | brianfreytag |
Plugin | Social Media Widget |
Version | 1.2.6 |
Comparing to | |
See all releases |
Code changes from version 1.2.5 to 1.2.6
- readme.txt +7 -1
- social-widget.php +41 -14
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: Brian Freytag
|
|
3 |
Tags: social media, twitter, facebook, myspace, digg, email, rss, reddit, linkedin, orkut, youtube, buzz, social, icons, links, subscribe, follow, follow me
|
4 |
Requires at least: 2.9.1
|
5 |
Tested up to: 3.0
|
6 |
-
Stable tag: 1.2.
|
7 |
|
8 |
== Description ==
|
9 |
|
@@ -38,6 +38,10 @@ The Social Media Widget is a simple sidebar widget that allows users to input th
|
|
38 |
* Ability to choose starting icon opacity from 50% opacity to 100% opacity
|
39 |
note: on hover, icons are 100% opaque
|
40 |
|
|
|
|
|
|
|
|
|
41 |
== Installation ==
|
42 |
|
43 |
Follow the steps below to install the plugin.
|
@@ -57,6 +61,8 @@ Follow the steps below to install the plugin.
|
|
57 |
For help, you can send an e-mail to brifreytag_at_gmail.com or get ahold of me via twitter at @brianfreytag
|
58 |
|
59 |
== Changelog ==
|
|
|
|
|
60 |
1.2.5 - Updated readme.txt to improve visibility and adding screenshots
|
61 |
|
62 |
1.2.4 - Trying something else to fix the issues with 1.2.2 and 1.2.3.
|
3 |
Tags: social media, twitter, facebook, myspace, digg, email, rss, reddit, linkedin, orkut, youtube, buzz, social, icons, links, subscribe, follow, follow me
|
4 |
Requires at least: 2.9.1
|
5 |
Tested up to: 3.0
|
6 |
+
Stable tag: 1.2.6
|
7 |
|
8 |
== Description ==
|
9 |
|
38 |
* Ability to choose starting icon opacity from 50% opacity to 100% opacity
|
39 |
note: on hover, icons are 100% opaque
|
40 |
|
41 |
+
* Ability to choose whether or not to use the rel="nofollow" tag in your links. (Recommended see http://en.wikipedia.org/wiki/Nofollow)
|
42 |
+
|
43 |
+
If you like this plugin, please rate it and click "Works" for your Wordpress version!
|
44 |
+
|
45 |
== Installation ==
|
46 |
|
47 |
Follow the steps below to install the plugin.
|
61 |
For help, you can send an e-mail to brifreytag_at_gmail.com or get ahold of me via twitter at @brianfreytag
|
62 |
|
63 |
== Changelog ==
|
64 |
+
1.2.6 - Added ability to add rel="nofollow" to icon links. Also added a Donate button due to the massive time commitment of this plugin.
|
65 |
+
|
66 |
1.2.5 - Updated readme.txt to improve visibility and adding screenshots
|
67 |
|
68 |
1.2.4 - Trying something else to fix the issues with 1.2.2 and 1.2.3.
|
social-widget.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Social Media Widget
|
4 |
* Plugin URI: http://www.idontlikethisgame.com/updates/social-media-widget/
|
5 |
* Description: Place social media icons on your Sidebar by inputting URLs to your profiles!
|
6 |
-
* Version: 1.2.
|
7 |
* Author: Brian Freytag
|
8 |
* Author URL: http://www.idontlikethisgame.com
|
9 |
**/
|
@@ -60,6 +60,7 @@ class Social_Widget extends WP_Widget {
|
|
60 |
$icon_size = $instance['icon_size'];
|
61 |
$icon_pack = $instance['icon_pack'];
|
62 |
$icon_opacity = $instance['icon_opacity'];
|
|
|
63 |
|
64 |
/* Choose Icon Size if Value is 'default' */
|
65 |
if($icon_size == 'default') {
|
@@ -73,7 +74,14 @@ class Social_Widget extends WP_Widget {
|
|
73 |
|
74 |
/* Need to make opacity a whole number for IE styling filter() */
|
75 |
$icon_ie = $icon_opacity * 100;
|
76 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
/* Before widget (defined by themes). */
|
78 |
echo $before_widget;
|
79 |
|
@@ -86,14 +94,14 @@ class Social_Widget extends WP_Widget {
|
|
86 |
|
87 |
// Facebook
|
88 |
if ( $facebook != '') {
|
89 |
-
?> <a href="<?php echo $facebook; ?>" target="_blank"> <img class="subscribes" src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/facebook.png" alt="<?php echo $title; ?> on Facebook" title="<?php echo $title; ?> on Facebook" style="filter: alpha(opacity=<?php echo $icon_ie;?>); opacity: <?php echo $icon_opacity;?>; -moz-opacity: <?php echo $icon_opacity;?>;"/></a><?php
|
90 |
} else {
|
91 |
echo ''; //If no URL inputed
|
92 |
}
|
93 |
|
94 |
// Twitter
|
95 |
if ( $twitter != '' ) {
|
96 |
-
?> <a href="<?php echo $twitter; ?>" target="_blank"><img class="subscribes" src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/twitter.png" alt="<?php echo $title; ?> on Twitter"
|
97 |
title="<?php echo $title; ?> on Twitter" style="filter: alpha(opacity=<?php echo $icon_ie;?>); opacity: <?php echo $icon_opacity;?>; -moz-opacity: <?php echo $icon_opacity;?>;" /></a><?php
|
98 |
} else {
|
99 |
echo ''; //If no URL inputed
|
@@ -101,7 +109,7 @@ class Social_Widget extends WP_Widget {
|
|
101 |
|
102 |
// MySpace
|
103 |
if ( $myspace != '' ) {
|
104 |
-
?><a href="<?php echo $myspace; ?>" target="_blank"><img class="subscribes" src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/myspace.png" alt="<?php echo $title; ?> on MySpace"
|
105 |
title="<?php echo $title; ?> on MySpace" style="filter: alpha(opacity=<?php echo $icon_ie;?>); opacity: <?php echo $icon_opacity;?>; -moz-opacity: <?php echo $icon_opacity;?>;" /></a><?php
|
106 |
} else {
|
107 |
echo ''; //If no URL inputed
|
@@ -109,7 +117,7 @@ class Social_Widget extends WP_Widget {
|
|
109 |
|
110 |
// Orkut
|
111 |
if ( $orkut != '' ) {
|
112 |
-
?><a href="<?php echo $orkut; ?>" target="_blank"><img class="subscribes" src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/orkut.png" alt="<?php echo $title; ?> on Orkut"
|
113 |
title="<?php echo $title; ?> on Orkut" style="filter: alpha(opacity=<?php echo $icon_ie;?>); opacity: <?php echo $icon_opacity;?>; -moz-opacity: <?php echo $icon_opacity;?>;" /></a><?php
|
114 |
} else {
|
115 |
echo ''; //If no URL inputed
|
@@ -117,7 +125,7 @@ class Social_Widget extends WP_Widget {
|
|
117 |
|
118 |
// LinkedIN
|
119 |
if ( $linkedin != '' ) {
|
120 |
-
?><a href="<?php echo $linkedin; ?>" target="_blank"><img class="subscribes" src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/linkedin.png" alt="<?php echo $title; ?> on LinkedIn"
|
121 |
title="<?php echo $title; ?> on LinkedIn" style="filter: alpha(opacity=<?php echo $icon_ie;?>); opacity: <?php echo $icon_opacity;?>; -moz-opacity: <?php echo $icon_opacity;?>;" /></a><?php
|
122 |
} else {
|
123 |
echo ''; //If no URL inputed
|
@@ -125,7 +133,7 @@ class Social_Widget extends WP_Widget {
|
|
125 |
|
126 |
// YouTube
|
127 |
if ( $youtube != '' ) {
|
128 |
-
?><a href="<?php echo $youtube; ?>" target="_blank"><img class="subscribes" src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/youtube.png" alt="<?php echo $title; ?> on YouTube"
|
129 |
title="<?php echo $title; ?> on YouTube" style="filter: alpha(opacity=<?php echo $icon_ie;?>); opacity: <?php echo $icon_opacity;?>; -moz-opacity: <?php echo $icon_opacity;?>;" /></a><?php
|
130 |
} else {
|
131 |
echo ''; //If No URL Inputed
|
@@ -133,7 +141,7 @@ class Social_Widget extends WP_Widget {
|
|
133 |
|
134 |
// Digg
|
135 |
if ( $digg != '' ) {
|
136 |
-
?><a href="<?php echo $digg; ?>" target="_blank"><img class="subscribes" src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/digg.png" alt="<?php echo $title; ?> on Digg"
|
137 |
title="<?php echo $title; ?> on Digg" style="filter: alpha(opacity=<?php echo $icon_ie;?>); opacity: <?php echo $icon_opacity;?>; -moz-opacity: <?php echo $icon_opacity;?>;" /></a><?php
|
138 |
} else {
|
139 |
echo ''; //If no URL Inputed
|
@@ -141,7 +149,7 @@ class Social_Widget extends WP_Widget {
|
|
141 |
|
142 |
// Reddit
|
143 |
if ( $reddit != '' ) {
|
144 |
-
?><a href="<?php echo $reddit; ?>" target="_blank"><img class="subscribes" src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/reddit.png" alt="<?php echo $title; ?> on Reddit"
|
145 |
title="<?php echo $title; ?> on Reddit" style="filter: alpha(opacity=<?php echo $icon_ie;?>); opacity: <?php echo $icon_opacity;?>; -moz-opacity: <?php echo $icon_opacity;?>;" /></a><?php
|
146 |
} else {
|
147 |
echo ''; //If no URL Inputed
|
@@ -149,7 +157,7 @@ class Social_Widget extends WP_Widget {
|
|
149 |
|
150 |
// Google Buzz
|
151 |
if ( $buzz != '' ) {
|
152 |
-
?><a href="<?php echo $buzz; ?>" target="_blank"><img class="subscribes" src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/buzz.png" alt="<?php echo $title; ?> on Buzz"
|
153 |
title="<?php echo $title; ?> on Buzz" style="filter: alpha(opacity=<?php echo $icon_ie;?>); opacity: <?php echo $icon_opacity;?>; -moz-opacity: <?php echo $icon_opacity;?>;" /></a><?php
|
154 |
} else {
|
155 |
echo ''; //If no URL Inputed
|
@@ -157,14 +165,14 @@ class Social_Widget extends WP_Widget {
|
|
157 |
|
158 |
// RSS
|
159 |
if ( $rss != '') {
|
160 |
-
?><a href="<?php echo $rss; ?>"
|
161 |
} else {
|
162 |
echo '';// If no URL Inputed
|
163 |
}
|
164 |
|
165 |
// E-mail Subscription -- If Newsletter or Mailing List available
|
166 |
if ( $subscribe != '' ) {
|
167 |
-
?><a href="<?php echo $subscribe; ?>"
|
168 |
} else {
|
169 |
echo ''; // If no URL Inputed
|
170 |
}
|
@@ -195,6 +203,7 @@ class Social_Widget extends WP_Widget {
|
|
195 |
$instance['icon_size'] = $new_instance['icon_size'];
|
196 |
$instance['icon_pack'] = $new_instance['icon_pack'];
|
197 |
$instance['icon_opacity'] = $new_instance['icon_opacity'];
|
|
|
198 |
|
199 |
return $instance;
|
200 |
}
|
@@ -221,7 +230,8 @@ class Social_Widget extends WP_Widget {
|
|
221 |
'rss_url' => __('http://www.yoursite.com/feed', 'test'),
|
222 |
'icon_size' => 'default',
|
223 |
'icon_pack' => 'default',
|
224 |
-
'icon_opacity' => 'default'
|
|
|
225 |
|
226 |
$instance = wp_parse_args( (array) $instance, $defaults ); ?>
|
227 |
<p>
|
@@ -335,6 +345,23 @@ class Social_Widget extends WP_Widget {
|
|
335 |
</select>
|
336 |
</p>
|
337 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
338 |
|
339 |
|
340 |
<?php
|
3 |
* Plugin Name: Social Media Widget
|
4 |
* Plugin URI: http://www.idontlikethisgame.com/updates/social-media-widget/
|
5 |
* Description: Place social media icons on your Sidebar by inputting URLs to your profiles!
|
6 |
+
* Version: 1.2.6
|
7 |
* Author: Brian Freytag
|
8 |
* Author URL: http://www.idontlikethisgame.com
|
9 |
**/
|
60 |
$icon_size = $instance['icon_size'];
|
61 |
$icon_pack = $instance['icon_pack'];
|
62 |
$icon_opacity = $instance['icon_opacity'];
|
63 |
+
$nofollow = $instance['nofollow'];
|
64 |
|
65 |
/* Choose Icon Size if Value is 'default' */
|
66 |
if($icon_size == 'default') {
|
74 |
|
75 |
/* Need to make opacity a whole number for IE styling filter() */
|
76 |
$icon_ie = $icon_opacity * 100;
|
77 |
+
|
78 |
+
/* Check to see if nofollow is set or not */
|
79 |
+
if ($nofollow == 'on') {
|
80 |
+
$nofollow = "rel=\"nofollow\"";
|
81 |
+
} else {
|
82 |
+
$nofollow = "";
|
83 |
+
}
|
84 |
+
|
85 |
/* Before widget (defined by themes). */
|
86 |
echo $before_widget;
|
87 |
|
94 |
|
95 |
// Facebook
|
96 |
if ( $facebook != '') {
|
97 |
+
?> <a href="<?php echo $facebook; ?>" <?php echo $nofollow; ?> target="_blank"> <img class="subscribes" src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/facebook.png" alt="<?php echo $title; ?> on Facebook" title="<?php echo $title; ?> on Facebook" style="filter: alpha(opacity=<?php echo $icon_ie;?>); opacity: <?php echo $icon_opacity;?>; -moz-opacity: <?php echo $icon_opacity;?>;"/></a><?php
|
98 |
} else {
|
99 |
echo ''; //If no URL inputed
|
100 |
}
|
101 |
|
102 |
// Twitter
|
103 |
if ( $twitter != '' ) {
|
104 |
+
?> <a href="<?php echo $twitter; ?>" <?php echo $nofollow; ?> target="_blank"><img class="subscribes" src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/twitter.png" alt="<?php echo $title; ?> on Twitter"
|
105 |
title="<?php echo $title; ?> on Twitter" style="filter: alpha(opacity=<?php echo $icon_ie;?>); opacity: <?php echo $icon_opacity;?>; -moz-opacity: <?php echo $icon_opacity;?>;" /></a><?php
|
106 |
} else {
|
107 |
echo ''; //If no URL inputed
|
109 |
|
110 |
// MySpace
|
111 |
if ( $myspace != '' ) {
|
112 |
+
?><a href="<?php echo $myspace; ?>" <?php echo $nofollow; ?> target="_blank"><img class="subscribes" src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/myspace.png" alt="<?php echo $title; ?> on MySpace"
|
113 |
title="<?php echo $title; ?> on MySpace" style="filter: alpha(opacity=<?php echo $icon_ie;?>); opacity: <?php echo $icon_opacity;?>; -moz-opacity: <?php echo $icon_opacity;?>;" /></a><?php
|
114 |
} else {
|
115 |
echo ''; //If no URL inputed
|
117 |
|
118 |
// Orkut
|
119 |
if ( $orkut != '' ) {
|
120 |
+
?><a href="<?php echo $orkut; ?>" <?php echo $nofollow; ?> target="_blank"><img class="subscribes" src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/orkut.png" alt="<?php echo $title; ?> on Orkut"
|
121 |
title="<?php echo $title; ?> on Orkut" style="filter: alpha(opacity=<?php echo $icon_ie;?>); opacity: <?php echo $icon_opacity;?>; -moz-opacity: <?php echo $icon_opacity;?>;" /></a><?php
|
122 |
} else {
|
123 |
echo ''; //If no URL inputed
|
125 |
|
126 |
// LinkedIN
|
127 |
if ( $linkedin != '' ) {
|
128 |
+
?><a href="<?php echo $linkedin; ?>" <?php echo $nofollow; ?> target="_blank"><img class="subscribes" src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/linkedin.png" alt="<?php echo $title; ?> on LinkedIn"
|
129 |
title="<?php echo $title; ?> on LinkedIn" style="filter: alpha(opacity=<?php echo $icon_ie;?>); opacity: <?php echo $icon_opacity;?>; -moz-opacity: <?php echo $icon_opacity;?>;" /></a><?php
|
130 |
} else {
|
131 |
echo ''; //If no URL inputed
|
133 |
|
134 |
// YouTube
|
135 |
if ( $youtube != '' ) {
|
136 |
+
?><a href="<?php echo $youtube; ?>" <?php echo $nofollow; ?> target="_blank"><img class="subscribes" src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/youtube.png" alt="<?php echo $title; ?> on YouTube"
|
137 |
title="<?php echo $title; ?> on YouTube" style="filter: alpha(opacity=<?php echo $icon_ie;?>); opacity: <?php echo $icon_opacity;?>; -moz-opacity: <?php echo $icon_opacity;?>;" /></a><?php
|
138 |
} else {
|
139 |
echo ''; //If No URL Inputed
|
141 |
|
142 |
// Digg
|
143 |
if ( $digg != '' ) {
|
144 |
+
?><a href="<?php echo $digg; ?>" <?php echo $nofollow; ?> target="_blank"><img class="subscribes" src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/digg.png" alt="<?php echo $title; ?> on Digg"
|
145 |
title="<?php echo $title; ?> on Digg" style="filter: alpha(opacity=<?php echo $icon_ie;?>); opacity: <?php echo $icon_opacity;?>; -moz-opacity: <?php echo $icon_opacity;?>;" /></a><?php
|
146 |
} else {
|
147 |
echo ''; //If no URL Inputed
|
149 |
|
150 |
// Reddit
|
151 |
if ( $reddit != '' ) {
|
152 |
+
?><a href="<?php echo $reddit; ?>" <?php echo $nofollow; ?> target="_blank"><img class="subscribes" src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/reddit.png" alt="<?php echo $title; ?> on Reddit"
|
153 |
title="<?php echo $title; ?> on Reddit" style="filter: alpha(opacity=<?php echo $icon_ie;?>); opacity: <?php echo $icon_opacity;?>; -moz-opacity: <?php echo $icon_opacity;?>;" /></a><?php
|
154 |
} else {
|
155 |
echo ''; //If no URL Inputed
|
157 |
|
158 |
// Google Buzz
|
159 |
if ( $buzz != '' ) {
|
160 |
+
?><a href="<?php echo $buzz; ?>" <?php echo $nofollow; ?> target="_blank"><img class="subscribes" src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/buzz.png" alt="<?php echo $title; ?> on Buzz"
|
161 |
title="<?php echo $title; ?> on Buzz" style="filter: alpha(opacity=<?php echo $icon_ie;?>); opacity: <?php echo $icon_opacity;?>; -moz-opacity: <?php echo $icon_opacity;?>;" /></a><?php
|
162 |
} else {
|
163 |
echo ''; //If no URL Inputed
|
165 |
|
166 |
// RSS
|
167 |
if ( $rss != '') {
|
168 |
+
?><a href="<?php echo $rss; ?>" <?php echo $nofollow; ?>><img class="subscribes" src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/rss.png" alt="Subscribe to our RSS Feeds" title="Subscribe to our RSS Feeds" style="filter: alpha(opacity=<?php echo $icon_ie;?>); opacity: <?php echo $icon_opacity;?>; -moz-opacity: <?php echo $icon_opacity;?>;" /></a><?php
|
169 |
} else {
|
170 |
echo '';// If no URL Inputed
|
171 |
}
|
172 |
|
173 |
// E-mail Subscription -- If Newsletter or Mailing List available
|
174 |
if ( $subscribe != '' ) {
|
175 |
+
?><a href="<?php echo $subscribe; ?>" <?php echo $nofollow; ?>><img class="subscribes" src="<?php echo WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)); ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/email.png" alt="Join our Mailing List" title="Join Our Mailing List" style="filter: alpha(opacity=<?php echo $icon_ie;?>); opacity: <?php echo $icon_opacity;?>; -moz-opacity: <?php echo $icon_opacity;?>;" /></a><?php
|
176 |
} else {
|
177 |
echo ''; // If no URL Inputed
|
178 |
}
|
203 |
$instance['icon_size'] = $new_instance['icon_size'];
|
204 |
$instance['icon_pack'] = $new_instance['icon_pack'];
|
205 |
$instance['icon_opacity'] = $new_instance['icon_opacity'];
|
206 |
+
$instance['nofollow'] = $new_instance['nofollow'];
|
207 |
|
208 |
return $instance;
|
209 |
}
|
230 |
'rss_url' => __('http://www.yoursite.com/feed', 'test'),
|
231 |
'icon_size' => 'default',
|
232 |
'icon_pack' => 'default',
|
233 |
+
'icon_opacity' => 'default',
|
234 |
+
'nofollow' => 'on');
|
235 |
|
236 |
$instance = wp_parse_args( (array) $instance, $defaults ); ?>
|
237 |
<p>
|
345 |
</select>
|
346 |
</p>
|
347 |
|
348 |
+
|
349 |
+
<!-- No Follow On or Off -->
|
350 |
+
<p>
|
351 |
+
<label for="<?php echo $this->get_field_id( 'nofollow' ); ?>"><?php _e('Use rel="nofollow" for links', 'test'); ?></label>
|
352 |
+
<select id="<?php echo $this->get_field_id( 'nofollow' ); ?>" name="<?php echo $this->get_field_name( 'nofollow' ); ?>">
|
353 |
+
<option value="on" <?php if($instance['nofollow'] == 'on') { echo 'selected'; } ?>>On</option>
|
354 |
+
<option value="off" <?php if($instance['nofollow'] == 'off') { echo 'selected'; } ?>>Off</option>
|
355 |
+
</select>
|
356 |
+
</p>
|
357 |
+
|
358 |
+
<!-- Donate -->
|
359 |
+
<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>
|
360 |
+
<p style="text-align: center;">
|
361 |
+
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=GSE2LMBPYVMEA" target="_blank">
|
362 |
+
<img src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" alt="" /></a>
|
363 |
+
</form></p>
|
364 |
+
|
365 |
|
366 |
|
367 |
<?php
|