Version Description
- Fix Dean's Fcuk editor conflict. (Thanks for the report Laurie L_T_G)
- Fix IE8 bug (Remove extra comma from line 66 of js - thanks for the report reface)
- Update functions and enqueued scripts to only trigger on widget page.
Download this release
Release Info
Developer | peterchester |
Plugin | Image Widget |
Version | 3.0.7 |
Comparing to | |
See all releases |
Code changes from version 3.0.6 to 3.0.7
- image-widget.js +1 -1
- image-widget.php +10 -7
- readme.txt +7 -1
image-widget.js
CHANGED
@@ -62,7 +62,7 @@ function changeImgSize(instance,width,height) {
|
|
62 |
width = width + 'px';
|
63 |
}
|
64 |
jQuery( '#display-widget-'+instance+'-image img' ).css({
|
65 |
-
'width':width
|
66 |
});
|
67 |
|
68 |
if (isNaN(height) || height < 1) {
|
62 |
width = width + 'px';
|
63 |
}
|
64 |
jQuery( '#display-widget-'+instance+'-image img' ).css({
|
65 |
+
'width':width
|
66 |
});
|
67 |
|
68 |
if (isNaN(height) || height < 1) {
|
image-widget.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Image Widget
|
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/image-widget/
|
5 |
Description: This widget accepts a title, an image, a link and a description and displays them.
|
6 |
Author: Shane and Peter, Inc.
|
7 |
-
Version: 3.0.
|
8 |
Author URI: http://www.shaneandpeter.com
|
9 |
*/
|
10 |
|
@@ -32,14 +32,17 @@ class SP_Image_Widget extends WP_Widget {
|
|
32 |
$control_ops = array( 'id_base' => 'widget_sp_image' );
|
33 |
$this->WP_Widget('widget_sp_image', __('Image Widget', 'sp_image_widget'), $widget_ops, $control_ops);
|
34 |
|
|
|
35 |
if (WP_ADMIN) {
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
|
|
42 |
}
|
|
|
43 |
}
|
44 |
|
45 |
/**
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/image-widget/
|
5 |
Description: This widget accepts a title, an image, a link and a description and displays them.
|
6 |
Author: Shane and Peter, Inc.
|
7 |
+
Version: 3.0.7
|
8 |
Author URI: http://www.shaneandpeter.com
|
9 |
*/
|
10 |
|
32 |
$control_ops = array( 'id_base' => 'widget_sp_image' );
|
33 |
$this->WP_Widget('widget_sp_image', __('Image Widget', 'sp_image_widget'), $widget_ops, $control_ops);
|
34 |
|
35 |
+
global $pagenow;
|
36 |
if (WP_ADMIN) {
|
37 |
+
if ( 'widgets.php' == $pagenow ) {
|
38 |
+
wp_enqueue_style( 'thickbox' );
|
39 |
+
wp_enqueue_script( $control_ops['id_base'], WP_PLUGIN_URL.'/image-widget/image-widget.js',array('thickbox'), false, true );
|
40 |
+
add_action( 'admin_head-widgets.php', array( $this, 'admin_head' ) );
|
41 |
+
} elseif ( 'media-upload.php' == $pagenow ) {
|
42 |
+
add_filter( 'image_send_to_editor', array( $this,'image_send_to_editor'), 1, 7 );
|
43 |
+
}
|
44 |
}
|
45 |
+
|
46 |
}
|
47 |
|
48 |
/**
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.shaneandpeter.com
|
|
4 |
Tags: widget, image, ad, banner, simple, upload, sidebar, admin, thickbox, resize
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 2.8.4
|
7 |
-
Stable tag: 3.0.
|
8 |
|
9 |
== Description ==
|
10 |
|
@@ -35,6 +35,12 @@ If you find any bugs or have any ideas, please mail us.
|
|
35 |
|
36 |
== Changelog ==
|
37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
= 3.0.6 =
|
39 |
|
40 |
Fix crash on insert into post.
|
4 |
Tags: widget, image, ad, banner, simple, upload, sidebar, admin, thickbox, resize
|
5 |
Requires at least: 2.8
|
6 |
Tested up to: 2.8.4
|
7 |
+
Stable tag: 3.0.7
|
8 |
|
9 |
== Description ==
|
10 |
|
35 |
|
36 |
== Changelog ==
|
37 |
|
38 |
+
= 3.0.7 =
|
39 |
+
|
40 |
+
* Fix Dean's Fcuk editor conflict. (Thanks for the report Laurie L_T_G)
|
41 |
+
* Fix IE8 bug (Remove extra comma from line 66 of js - thanks for the report reface)
|
42 |
+
* Update functions and enqueued scripts to only trigger on widget page.
|
43 |
+
|
44 |
= 3.0.6 =
|
45 |
|
46 |
Fix crash on insert into post.
|