Version Description
Download this release
Release Info
| Developer | brianfreytag |
| Plugin | |
| Version | 1.1 |
| Comparing to | |
| See all releases | |
Code changes from version 1.0 to 1.1
- readme.txt +9 -3
- screenshot-1.png +0 -0
- social-widget.php +18 -1
readme.txt
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
=== Social Media Widget ===
|
| 2 |
-
Contributors: Brian Freytag
|
| 3 |
-
Tags: social media, twitter, facebook, myspace, digg, email
|
| 4 |
Requires at least: 2.7.2
|
| 5 |
Tested up to: 3.0 beta 2
|
| 6 |
-
Stable tag: 1.
|
| 7 |
|
| 8 |
== Description ==
|
| 9 |
|
|
@@ -15,6 +15,7 @@ The Social Media Widget is a simple sidebar widget that allows users to input th
|
|
| 15 |
* Facebook
|
| 16 |
* Twitter
|
| 17 |
* MySpace
|
|
|
|
| 18 |
* YouTube
|
| 19 |
* Digg
|
| 20 |
* Reddit
|
|
@@ -43,10 +44,15 @@ Follow the steps below to install the plugin.
|
|
| 43 |
2. Activate the plugin through the 'Plugins' menu in WordPress
|
| 44 |
3. Go to Appearance/Widgets and activate the widget to customize
|
| 45 |
|
|
|
|
|
|
|
|
|
|
| 46 |
== Help ==
|
| 47 |
|
| 48 |
For help, you can send an e-mail to brifreytag_at_gmail.com or get ahold of me via twitter at @brianfreytag
|
| 49 |
|
| 50 |
== Changelog ==
|
| 51 |
|
|
|
|
|
|
|
| 52 |
1.0 - Added support for varying sizes, added 2 new icon packages, added support for varying opacities.
|
| 1 |
=== Social Media Widget ===
|
| 2 |
+
Contributors: Brian Freytag
|
| 3 |
+
Tags: social media, twitter, facebook, myspace, digg, email
|
| 4 |
Requires at least: 2.7.2
|
| 5 |
Tested up to: 3.0 beta 2
|
| 6 |
+
Stable tag: 1.1
|
| 7 |
|
| 8 |
== Description ==
|
| 9 |
|
| 15 |
* Facebook
|
| 16 |
* Twitter
|
| 17 |
* MySpace
|
| 18 |
+
* LinkedIn
|
| 19 |
* YouTube
|
| 20 |
* Digg
|
| 21 |
* Reddit
|
| 44 |
2. Activate the plugin through the 'Plugins' menu in WordPress
|
| 45 |
3. Go to Appearance/Widgets and activate the widget to customize
|
| 46 |
|
| 47 |
+
== Screenshots ==
|
| 48 |
+
1. Shows the various icon sizes and icon packs and their appearance in the sidebar.
|
| 49 |
+
|
| 50 |
== Help ==
|
| 51 |
|
| 52 |
For help, you can send an e-mail to brifreytag_at_gmail.com or get ahold of me via twitter at @brianfreytag
|
| 53 |
|
| 54 |
== Changelog ==
|
| 55 |
|
| 56 |
+
1.1 - Added support for LinkedIn
|
| 57 |
+
|
| 58 |
1.0 - Added support for varying sizes, added 2 new icon packages, added support for varying opacities.
|
screenshot-1.png
ADDED
|
Binary file
|
social-widget.php
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
* Plugin Name: Social Media Widget
|
| 4 |
* Plugin URI: http://www.idontlikethisgame.com
|
| 5 |
* Description: Place social media icons on your Sidebar by inputting URLs to your profiles!
|
| 6 |
-
* Version: 1.
|
| 7 |
* Author: Brian Freytag
|
| 8 |
* Author URL: http://www.idontlikethisgame.com
|
| 9 |
**/
|
|
@@ -50,6 +50,7 @@ class Social_Widget extends WP_Widget {
|
|
| 50 |
$facebook = $instance['facebook'];
|
| 51 |
$twitter = $instance['twitter'];
|
| 52 |
$myspace = $instance['myspace'];
|
|
|
|
| 53 |
$youtube = $instance['youtube'];
|
| 54 |
$digg = $instance['digg'];
|
| 55 |
$reddit = $instance['reddit'];
|
|
@@ -106,6 +107,14 @@ class Social_Widget extends WP_Widget {
|
|
| 106 |
echo ''; //If no URL inputed
|
| 107 |
}
|
| 108 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 109 |
// YouTube
|
| 110 |
if ( $youtube != '' ) {
|
| 111 |
?> <a href="<?php echo $youtube; ?>" target="_blank"><img class="subscribes" src="<?php echo WP_CONTENT_URL.'/plugins/'.plugin_basename(dirname(__FILE__)).'/'; ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/youtube.png" alt="Follow us on YouTube!"
|
|
@@ -165,6 +174,7 @@ class Social_Widget extends WP_Widget {
|
|
| 165 |
$instance['facebook'] = strip_tags( $new_instance['facebook'] );
|
| 166 |
$instance['twitter'] = strip_tags( $new_instance['twitter'] );
|
| 167 |
$instance['myspace'] = strip_tags( $new_instance['myspace'] );
|
|
|
|
| 168 |
$instance['youtube'] = strip_tags( $new_instance['youtube'] );
|
| 169 |
$instance['digg'] = strip_tags( $new_instance['digg'] );
|
| 170 |
$instance['reddit'] = strip_tags( $new_instance['reddit'] );
|
|
@@ -191,6 +201,7 @@ class Social_Widget extends WP_Widget {
|
|
| 191 |
'facebook' => __('http://www.facebook.com/your_name', 'test'),
|
| 192 |
'twitter' => __('http://www.twitter.com/yourname', 'test'),
|
| 193 |
'myspace' => __('http://www.myspace.com/yourname', 'test'),
|
|
|
|
| 194 |
'youtube' => __('http://www.youtube.com/user/yourname', 'test'),
|
| 195 |
'digg' => __('http://www.digg.com/users/yourname', 'test'),
|
| 196 |
'reddit' => __('http://www.reddit.com/user/yourname', 'test'),
|
|
@@ -228,6 +239,12 @@ class Social_Widget extends WP_Widget {
|
|
| 228 |
<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%;" />
|
| 229 |
</p>
|
| 230 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 231 |
<!-- YouTube URL: Text Input -->
|
| 232 |
<p>
|
| 233 |
<label for="<?php echo $this->get_field_id( 'youtube' ); ?>"><?php _e('YouTube URL:', 'test'); ?></label>
|
| 3 |
* Plugin Name: Social Media Widget
|
| 4 |
* Plugin URI: http://www.idontlikethisgame.com
|
| 5 |
* Description: Place social media icons on your Sidebar by inputting URLs to your profiles!
|
| 6 |
+
* Version: 1.1
|
| 7 |
* Author: Brian Freytag
|
| 8 |
* Author URL: http://www.idontlikethisgame.com
|
| 9 |
**/
|
| 50 |
$facebook = $instance['facebook'];
|
| 51 |
$twitter = $instance['twitter'];
|
| 52 |
$myspace = $instance['myspace'];
|
| 53 |
+
$linkedin = $instance['linkedin'];
|
| 54 |
$youtube = $instance['youtube'];
|
| 55 |
$digg = $instance['digg'];
|
| 56 |
$reddit = $instance['reddit'];
|
| 107 |
echo ''; //If no URL inputed
|
| 108 |
}
|
| 109 |
|
| 110 |
+
// LinkedIN
|
| 111 |
+
if ( $linkedin != '' ) {
|
| 112 |
+
?> <a href="<?php echo $linkedin; ?>" target="_blank"><img class="subscribes" src="<?php echo WP_CONTENT_URL.'/plugins/'.plugin_basename(dirname(__FILE__)).'/'; ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/linkedin.png" alt="Follow us on LinkedIn!"
|
| 113 |
+
title="Follow us on LinkedIn!" 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
|
| 116 |
+
}
|
| 117 |
+
|
| 118 |
// YouTube
|
| 119 |
if ( $youtube != '' ) {
|
| 120 |
?> <a href="<?php echo $youtube; ?>" target="_blank"><img class="subscribes" src="<?php echo WP_CONTENT_URL.'/plugins/'.plugin_basename(dirname(__FILE__)).'/'; ?>images/<?php echo $icon_pack.'/'.$icon_size; ?>/youtube.png" alt="Follow us on YouTube!"
|
| 174 |
$instance['facebook'] = strip_tags( $new_instance['facebook'] );
|
| 175 |
$instance['twitter'] = strip_tags( $new_instance['twitter'] );
|
| 176 |
$instance['myspace'] = strip_tags( $new_instance['myspace'] );
|
| 177 |
+
$instance['linkedin'] = strip_tags( $new_instance['linkedin'] );
|
| 178 |
$instance['youtube'] = strip_tags( $new_instance['youtube'] );
|
| 179 |
$instance['digg'] = strip_tags( $new_instance['digg'] );
|
| 180 |
$instance['reddit'] = strip_tags( $new_instance['reddit'] );
|
| 201 |
'facebook' => __('http://www.facebook.com/your_name', 'test'),
|
| 202 |
'twitter' => __('http://www.twitter.com/yourname', 'test'),
|
| 203 |
'myspace' => __('http://www.myspace.com/yourname', 'test'),
|
| 204 |
+
'linkedin' => __('http://www.linkedin.com/in/yourname', 'test'),
|
| 205 |
'youtube' => __('http://www.youtube.com/user/yourname', 'test'),
|
| 206 |
'digg' => __('http://www.digg.com/users/yourname', 'test'),
|
| 207 |
'reddit' => __('http://www.reddit.com/user/yourname', 'test'),
|
| 239 |
<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%;" />
|
| 240 |
</p>
|
| 241 |
|
| 242 |
+
<!-- LinkedIn URL: Text Input -->
|
| 243 |
+
<p>
|
| 244 |
+
<label for="<?php echo $this->get_field_id( 'linkedin' ); ?>"><?php _e('LinkedIn URL:', 'test'); ?></label>
|
| 245 |
+
<input id="<?php echo $this->get_field_id( 'linkedin' ); ?>" name="<?php echo $this->get_field_name( 'linkedin' ); ?>" value="<?php echo $instance['linkedin']; ?>" style="width:85%;" />
|
| 246 |
+
</p>
|
| 247 |
+
|
| 248 |
<!-- YouTube URL: Text Input -->
|
| 249 |
<p>
|
| 250 |
<label for="<?php echo $this->get_field_id( 'youtube' ); ?>"><?php _e('YouTube URL:', 'test'); ?></label>
|
