Version Description
Download this release
Release Info
| Developer | brianfreytag |
| Plugin | |
| Version | 1.1.2 |
| Comparing to | |
| See all releases | |
Code changes from version 1.1 to 1.1.2
- images/default/16/linkedin.png +0 -0
- images/default/32/linkedin.png +0 -0
- images/default/64/linkedin.png +0 -0
- images/heart/16/linkedin.png +0 -0
- images/heart/32/linkedin.png +0 -0
- images/heart/64/linkedin.png +0 -0
- images/sketch/16/linkedin.png +0 -0
- images/sketch/32/linkedin.png +0 -0
- images/sketch/64/linkedin.png +0 -0
- readme.txt +5 -2
- social-widget.php +21 -13
images/default/16/linkedin.png
ADDED
|
Binary file
|
images/default/32/linkedin.png
ADDED
|
Binary file
|
images/default/64/linkedin.png
ADDED
|
Binary file
|
images/heart/16/linkedin.png
ADDED
|
Binary file
|
images/heart/32/linkedin.png
ADDED
|
Binary file
|
images/heart/64/linkedin.png
ADDED
|
Binary file
|
images/sketch/16/linkedin.png
ADDED
|
Binary file
|
images/sketch/32/linkedin.png
ADDED
|
Binary file
|
images/sketch/64/linkedin.png
ADDED
|
Binary file
|
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.
|
| 5 |
Tested up to: 3.0 beta 2
|
| 6 |
-
Stable tag: 1.1
|
| 7 |
|
| 8 |
== Description ==
|
| 9 |
|
|
@@ -52,6 +52,9 @@ Follow the steps below to install the plugin.
|
|
| 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 |
|
| 1 |
=== Social Media Widget ===
|
| 2 |
Contributors: Brian Freytag
|
| 3 |
Tags: social media, twitter, facebook, myspace, digg, email
|
| 4 |
+
Requires at least: 2.9.1
|
| 5 |
Tested up to: 3.0 beta 2
|
| 6 |
+
Stable tag: 1.1.2
|
| 7 |
|
| 8 |
== Description ==
|
| 9 |
|
| 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 |
+
1.1.2 - Fixed an issue with LinkedIn icons not appearing
|
| 56 |
+
|
| 57 |
+
1.1.1 - Fixed an issue with some users plugin.php breaking at line 339.
|
| 58 |
|
| 59 |
1.1 - Added support for LinkedIn
|
| 60 |
|
social-widget.php
CHANGED
|
@@ -1,25 +1,24 @@
|
|
| 1 |
<?php
|
| 2 |
/**
|
| 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 |
**/
|
| 10 |
-
|
| 11 |
-
/* Get the path of the widget */
|
| 12 |
|
| 13 |
-
$social_widget_path = WP_CONTENT_URL.'/plugins/'.plugin_basename(dirname(__FILE__)).'/';
|
| 14 |
|
| 15 |
-
/* Get custom stylesheet */
|
| 16 |
-
wp_enqueue_style('social_widget_css',$social_widget_path.'social_widget.css');
|
| 17 |
|
| 18 |
-
/* Load custom stylesheet as print style */
|
| 19 |
-
add_action('wp_print_styles', 'social_widget_css');
|
| 20 |
|
| 21 |
-
/*
|
| 22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
/* Register the widget */
|
| 25 |
function socialwidget_load_widgets() {
|
|
@@ -196,6 +195,7 @@ class Social_Widget extends WP_Widget {
|
|
| 196 |
function form( $instance ) {
|
| 197 |
|
| 198 |
/* Set up some default widget settings. */
|
|
|
|
| 199 |
$defaults = array(
|
| 200 |
'title' => __('Follow Us!', 'test'),
|
| 201 |
'facebook' => __('http://www.facebook.com/your_name', 'test'),
|
|
@@ -206,6 +206,7 @@ class Social_Widget extends WP_Widget {
|
|
| 206 |
'digg' => __('http://www.digg.com/users/yourname', 'test'),
|
| 207 |
'reddit' => __('http://www.reddit.com/user/yourname', 'test'),
|
| 208 |
'buzz' => __('http://www.google.com/profiles/yourname#buzz', 'test'),
|
|
|
|
| 209 |
'icon_size' => 'default',
|
| 210 |
'icon_pack' => 'default',
|
| 211 |
'icon_opacity' => 'default');
|
|
@@ -272,7 +273,7 @@ class Social_Widget extends WP_Widget {
|
|
| 272 |
<!-- RSS URL: Text Input -->
|
| 273 |
<p>
|
| 274 |
<label for="<?php echo $this->get_field_id( 'rss_url' ); ?>"><?php _e('RSS URL:', 'test'); ?></label>
|
| 275 |
-
<input id="<?php echo $this->get_field_id( 'rss_url' ); ?>" name="<?php echo $this->get_field_name( 'rss_url' ); ?>" value="
|
| 276 |
</p>
|
| 277 |
|
| 278 |
|
|
@@ -281,6 +282,7 @@ class Social_Widget extends WP_Widget {
|
|
| 281 |
<label for="<?php echo $this->get_field_id( 'subscribe' ); ?>"><?php _e('Subscription URL:', 'test'); ?></label>
|
| 282 |
<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%;" />
|
| 283 |
</p>
|
|
|
|
| 284 |
<!-- Choose Icon Size: Dropdown -->
|
| 285 |
<p>
|
| 286 |
<label for="<?php echo $this->get_field_id( 'icon_size' ); ?>"><?php _e('Icon Size', 'test'); ?></label>
|
|
@@ -320,4 +322,10 @@ class Social_Widget extends WP_Widget {
|
|
| 320 |
}
|
| 321 |
}
|
| 322 |
|
| 323 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
<?php
|
| 2 |
/**
|
| 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.1.2
|
| 7 |
* Author: Brian Freytag
|
| 8 |
* Author URL: http://www.idontlikethisgame.com
|
| 9 |
**/
|
|
|
|
|
|
|
| 10 |
|
|
|
|
| 11 |
|
|
|
|
|
|
|
| 12 |
|
|
|
|
|
|
|
| 13 |
|
| 14 |
+
/* Function for CSS */
|
| 15 |
+
|
| 16 |
+
function Social_Widget_Scripts(){
|
| 17 |
+
$social_widget_path = WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__));
|
| 18 |
+
?>
|
| 19 |
+
<link rel="stylesheet" type="text/css" href="<?php echo $social_widget_path; ?>social_widget.css" />
|
| 20 |
+
<?php }
|
| 21 |
+
|
| 22 |
|
| 23 |
/* Register the widget */
|
| 24 |
function socialwidget_load_widgets() {
|
| 195 |
function form( $instance ) {
|
| 196 |
|
| 197 |
/* Set up some default widget settings. */
|
| 198 |
+
$rss_url = bloginfo(rss2_url);
|
| 199 |
$defaults = array(
|
| 200 |
'title' => __('Follow Us!', 'test'),
|
| 201 |
'facebook' => __('http://www.facebook.com/your_name', 'test'),
|
| 206 |
'digg' => __('http://www.digg.com/users/yourname', 'test'),
|
| 207 |
'reddit' => __('http://www.reddit.com/user/yourname', 'test'),
|
| 208 |
'buzz' => __('http://www.google.com/profiles/yourname#buzz', 'test'),
|
| 209 |
+
'buzz' => __($rss_url, 'test'),
|
| 210 |
'icon_size' => 'default',
|
| 211 |
'icon_pack' => 'default',
|
| 212 |
'icon_opacity' => 'default');
|
| 273 |
<!-- RSS URL: Text Input -->
|
| 274 |
<p>
|
| 275 |
<label for="<?php echo $this->get_field_id( 'rss_url' ); ?>"><?php _e('RSS URL:', 'test'); ?></label>
|
| 276 |
+
<input id="<?php echo $this->get_field_id( 'rss_url' ); ?>" name="<?php echo $this->get_field_name( 'rss_url' ); ?>" value="" style="width:85%;" />
|
| 277 |
</p>
|
| 278 |
|
| 279 |
|
| 282 |
<label for="<?php echo $this->get_field_id( 'subscribe' ); ?>"><?php _e('Subscription URL:', 'test'); ?></label>
|
| 283 |
<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%;" />
|
| 284 |
</p>
|
| 285 |
+
|
| 286 |
<!-- Choose Icon Size: Dropdown -->
|
| 287 |
<p>
|
| 288 |
<label for="<?php echo $this->get_field_id( 'icon_size' ); ?>"><?php _e('Icon Size', 'test'); ?></label>
|
| 322 |
}
|
| 323 |
}
|
| 324 |
|
| 325 |
+
/* Add scripts to header */
|
| 326 |
+
add_action('wp_head', 'Social_Widget_Scripts');
|
| 327 |
+
|
| 328 |
+
|
| 329 |
+
/* Load the widget */
|
| 330 |
+
add_action( 'widgets_init', 'socialwidget_load_widgets' );
|
| 331 |
+
?>
|
