Version Description
- Fix bug: XHTML Compliance (thanks HGU for offering a patch and thanks webmasterlistingarts for filing the bug)
- Replaced
with
in description to also improve XHTML compliance.
Download this release
Release Info
Developer | peterchester |
Plugin | Image Widget |
Version | 3.1.2 |
Comparing to | |
See all releases |
Code changes from version 3.1.1 to 3.1.2
- image-widget.php +4 -4
- readme.txt +7 -2
image-widget.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Image Widget
|
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/image-widget/
|
5 |
Description: Simple image widget that uses native Wordpress upload thickbox to add image widgets to your site.
|
6 |
Author: Shane and Peter, Inc.
|
7 |
-
Version: 3.1.
|
8 |
Author URI: http://www.shaneandpeter.com
|
9 |
*/
|
10 |
|
@@ -181,7 +181,7 @@ class SP_Image_Widget extends WP_Widget {
|
|
181 |
if ( !empty( $title ) ) { echo $before_title . $title . $after_title; }
|
182 |
if (!empty($instance['image'])) {
|
183 |
if ($instance['link']) {
|
184 |
-
echo '<a class="'.$
|
185 |
}
|
186 |
if ($instance['imageurl']) {
|
187 |
echo "<img src=\"{$instance['imageurl']}\" alt=\"{$instance['title']}\" style=\"";
|
@@ -202,9 +202,9 @@ class SP_Image_Widget extends WP_Widget {
|
|
202 |
}
|
203 |
if (!empty($instance['description'])) {
|
204 |
$text = apply_filters( 'widget_text', $instance['description'] );
|
205 |
-
echo '<
|
206 |
echo wpautop($text);
|
207 |
-
echo "</
|
208 |
}
|
209 |
echo $after_widget;
|
210 |
}
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/image-widget/
|
5 |
Description: Simple image widget that uses native Wordpress upload thickbox to add image widgets to your site.
|
6 |
Author: Shane and Peter, Inc.
|
7 |
+
Version: 3.1.2
|
8 |
Author URI: http://www.shaneandpeter.com
|
9 |
*/
|
10 |
|
181 |
if ( !empty( $title ) ) { echo $before_title . $title . $after_title; }
|
182 |
if (!empty($instance['image'])) {
|
183 |
if ($instance['link']) {
|
184 |
+
echo '<a class="'.$this->widget_options['classname'].'-image-link" href="'.$instance['link'].'" target="'.$instance['linktarget'].'">';
|
185 |
}
|
186 |
if ($instance['imageurl']) {
|
187 |
echo "<img src=\"{$instance['imageurl']}\" alt=\"{$instance['title']}\" style=\"";
|
202 |
}
|
203 |
if (!empty($instance['description'])) {
|
204 |
$text = apply_filters( 'widget_text', $instance['description'] );
|
205 |
+
echo '<div class="'.$this->widget_options['classname'].'-description" >';
|
206 |
echo wpautop($text);
|
207 |
+
echo "</div>";
|
208 |
}
|
209 |
echo $after_widget;
|
210 |
}
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: Shane & Peter, Inc.
|
|
3 |
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.9
|
7 |
-
Stable tag: 3.1.
|
8 |
|
9 |
== Description ==
|
10 |
|
@@ -35,6 +35,11 @@ If you find any bugs or have any ideas, please mail us.
|
|
35 |
|
36 |
== Changelog ==
|
37 |
|
|
|
|
|
|
|
|
|
|
|
38 |
= 3.1.1 =
|
39 |
|
40 |
* Fix bug: php4 reported error: PHP Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' (thanks natashaelaine and massimopaolini)
|
3 |
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.9.1
|
7 |
+
Stable tag: 3.1.2
|
8 |
|
9 |
== Description ==
|
10 |
|
35 |
|
36 |
== Changelog ==
|
37 |
|
38 |
+
= 3.1.2 =
|
39 |
+
|
40 |
+
* Fix bug: XHTML Compliance (thanks HGU for offering a patch and thanks webmasterlistingarts for filing the bug)
|
41 |
+
* Replaced <p> with <div> in description to also improve XHTML compliance.
|
42 |
+
|
43 |
= 3.1.1 =
|
44 |
|
45 |
* Fix bug: php4 reported error: PHP Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' (thanks natashaelaine and massimopaolini)
|