Version Description
Download this release
Release Info
Developer | borkweb |
Plugin | Image Widget |
Version | 4.4.8 |
Comparing to | |
See all releases |
Code changes from version 4.4.7 to 4.4.8
- image-widget.php +14 -15
- readme.txt +16 -12
image-widget.php
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Image Widget
|
4 |
-
Plugin URI:
|
5 |
-
Description: A simple image widget that uses the native WordPress media manager to add image widgets to your site. <strong><a href="
|
6 |
-
Author:
|
7 |
-
Version: 4.4.
|
8 |
-
Author URI:
|
9 |
Text Domain: image-widget
|
10 |
Domain Path: /lang
|
11 |
*/
|
@@ -23,7 +23,7 @@ add_action( 'widgets_init', 'tribe_load_image_widget' );
|
|
23 |
|
24 |
class Tribe_Image_Widget extends WP_Widget {
|
25 |
|
26 |
-
const VERSION = '4.4.
|
27 |
|
28 |
const CUSTOM_IMAGE_SIZE_SLUG = 'tribe_image_widget_custom';
|
29 |
|
@@ -246,7 +246,7 @@ class Tribe_Image_Widget extends WP_Widget {
|
|
246 |
if ( ! defined( 'IMAGE_WIDGET_COMPATIBILITY_TEST' ) ) {
|
247 |
$defaults['size'] = self::CUSTOM_IMAGE_SIZE_SLUG;
|
248 |
$defaults['attachment_id'] = 0;
|
249 |
-
}
|
250 |
/**
|
251 |
* Allow users to customize the default values of various Image Widget options.
|
252 |
*
|
@@ -495,9 +495,9 @@ class Tribe_Image_Widget extends WP_Widget {
|
|
495 |
* Display a thank you nag when the plugin has been upgraded.
|
496 |
*/
|
497 |
public function post_upgrade_nag() {
|
498 |
-
|
499 |
-
if (
|
500 |
-
! current_user_can( 'install_plugins' )
|
501 |
|| class_exists( 'Tribe__Image__Plus__Main' )
|
502 |
) {
|
503 |
return;
|
@@ -554,7 +554,7 @@ class Tribe_Image_Widget extends WP_Widget {
|
|
554 |
* @param string $key
|
555 |
* @return string option key
|
556 |
*/
|
557 |
-
private function generate_key( $key ) {
|
558 |
return join( '_', array( self::VERSION_KEY, $key, ) );
|
559 |
}
|
560 |
|
@@ -573,8 +573,7 @@ class Tribe_Image_Widget extends WP_Widget {
|
|
573 |
|
574 |
$msg = sprintf(
|
575 |
__( '<p class="dashicons-before dashicons-format-gallery"><strong>Image Widget Plus</strong> - Add lightbox, slideshow, and random image widgets. <strong><a href="%s" target="_blank">Find out how!</a></strong></p>', 'image-widget' ),
|
576 |
-
'
|
577 |
-
'http://m.tri.be/19my'
|
578 |
);
|
579 |
|
580 |
return "<div class='notice notice-info is-dismissible image-widget-notice' data-key='$key'>$msg</div>";
|
@@ -595,7 +594,7 @@ class Tribe_Image_Widget extends WP_Widget {
|
|
595 |
|
596 |
$msg = sprintf(
|
597 |
__( '<p class="dashicons-before dashicons-star-filled"><strong>Image Widget Plus</strong> - Add lightbox, slideshow, and random image widgets. <strong><a href="%s" target="_blank">Find out how!</a></strong></p>', 'image-widget' ),
|
598 |
-
'
|
599 |
);
|
600 |
|
601 |
return "<div class='notice notice-info is-dismissible image-widget-notice' data-key='$key'>$msg</div>";
|
@@ -610,7 +609,7 @@ class Tribe_Image_Widget extends WP_Widget {
|
|
610 |
*/
|
611 |
public function plugin_row_meta( $meta, $file ) {
|
612 |
if ( $file == plugin_basename( dirname( __FILE__ ) . '/image-widget.php' ) ) {
|
613 |
-
$meta[] = '<strong><a href="
|
614 |
}
|
615 |
|
616 |
return $meta;
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Image Widget
|
4 |
+
Plugin URI: https://wordpress.org/plugins/image-widget/
|
5 |
+
Description: A simple image widget that uses the native WordPress media manager to add image widgets to your site. <strong><a href="https://evnt.is/19my">Image Widget Plus</a> - Multiple images, slider and more.</strong>
|
6 |
+
Author: The Events Calendar
|
7 |
+
Version: 4.4.8
|
8 |
+
Author URI: https://evnt.is/1aor
|
9 |
Text Domain: image-widget
|
10 |
Domain Path: /lang
|
11 |
*/
|
23 |
|
24 |
class Tribe_Image_Widget extends WP_Widget {
|
25 |
|
26 |
+
const VERSION = '4.4.8';
|
27 |
|
28 |
const CUSTOM_IMAGE_SIZE_SLUG = 'tribe_image_widget_custom';
|
29 |
|
246 |
if ( ! defined( 'IMAGE_WIDGET_COMPATIBILITY_TEST' ) ) {
|
247 |
$defaults['size'] = self::CUSTOM_IMAGE_SIZE_SLUG;
|
248 |
$defaults['attachment_id'] = 0;
|
249 |
+
}
|
250 |
/**
|
251 |
* Allow users to customize the default values of various Image Widget options.
|
252 |
*
|
495 |
* Display a thank you nag when the plugin has been upgraded.
|
496 |
*/
|
497 |
public function post_upgrade_nag() {
|
498 |
+
|
499 |
+
if (
|
500 |
+
! current_user_can( 'install_plugins' )
|
501 |
|| class_exists( 'Tribe__Image__Plus__Main' )
|
502 |
) {
|
503 |
return;
|
554 |
* @param string $key
|
555 |
* @return string option key
|
556 |
*/
|
557 |
+
private function generate_key( $key ) {
|
558 |
return join( '_', array( self::VERSION_KEY, $key, ) );
|
559 |
}
|
560 |
|
573 |
|
574 |
$msg = sprintf(
|
575 |
__( '<p class="dashicons-before dashicons-format-gallery"><strong>Image Widget Plus</strong> - Add lightbox, slideshow, and random image widgets. <strong><a href="%s" target="_blank">Find out how!</a></strong></p>', 'image-widget' ),
|
576 |
+
'https://evnt.is/19my'
|
|
|
577 |
);
|
578 |
|
579 |
return "<div class='notice notice-info is-dismissible image-widget-notice' data-key='$key'>$msg</div>";
|
594 |
|
595 |
$msg = sprintf(
|
596 |
__( '<p class="dashicons-before dashicons-star-filled"><strong>Image Widget Plus</strong> - Add lightbox, slideshow, and random image widgets. <strong><a href="%s" target="_blank">Find out how!</a></strong></p>', 'image-widget' ),
|
597 |
+
'https://evnt.is/19mx'
|
598 |
);
|
599 |
|
600 |
return "<div class='notice notice-info is-dismissible image-widget-notice' data-key='$key'>$msg</div>";
|
609 |
*/
|
610 |
public function plugin_row_meta( $meta, $file ) {
|
611 |
if ( $file == plugin_basename( dirname( __FILE__ ) . '/image-widget.php' ) ) {
|
612 |
+
$meta[] = '<strong><a href="https://evnt.is/19ma" target="_blank">' . esc_html__( 'Image Widget Plus', 'image-widget' ) . '</a></strong>';
|
613 |
}
|
614 |
|
615 |
return $meta;
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Image Widget ===
|
2 |
-
Contributors:
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4BSPTNFFY6AL6
|
4 |
-
Tags: widget, image, ad, banner,
|
5 |
Requires at least: 3.5
|
6 |
-
Tested up to:
|
7 |
-
Stable tag: 4.4.
|
8 |
|
9 |
A simple image widget that uses the native WordPress media manager to add image widgets to your site.
|
10 |
|
@@ -13,7 +13,7 @@ A simple image widget that uses the native WordPress media manager to add image
|
|
13 |
Image Widget is a simple plugin that uses the native WordPress media manager to add image widgets to your site.
|
14 |
|
15 |
Need to add slideshows, lightboxes, or random images?
|
16 |
-
<strong>Check out [Image Widget Plus](
|
17 |
|
18 |
= Image Widget Features =
|
19 |
|
@@ -25,11 +25,11 @@ Need to add slideshows, lightboxes, or random images?
|
|
25 |
* Versatile - all fields are optional
|
26 |
* Upload, link to external image, or select an image from your media collection
|
27 |
* Customize the look & feel with filter hooks or theme overrides
|
28 |
-
* Additional features available with [Image Widget Plus](
|
29 |
|
30 |
= Quality You Can Trust =
|
31 |
|
32 |
-
Image Widget is developed and maintained by [
|
33 |
|
34 |
This plugin is actively supported by our team and contributions from community members. If you see a question in the forum you can help with or have a great idea and want to code it up or submit a patch, that would be awesome! Not only will we shower you with praise and thanks, it’s also a good way to get to know us and lead into options for paid work if you freelance.
|
35 |
|
@@ -42,11 +42,11 @@ Image Widget Plus features include:
|
|
42 |
* Slideshow
|
43 |
* Lightbox
|
44 |
|
45 |
-
[Check out Image Widget Plus now!](
|
46 |
|
47 |
= Pull Requests & Translations =
|
48 |
|
49 |
-
[Check us out on GitHub](https://github.com/
|
50 |
|
51 |
Translations can be submitted [here on WordPress.org](https://translate.wordpress.org/projects/wp-plugins/image-widget).
|
52 |
|
@@ -92,7 +92,7 @@ Though we do not have a demo available, we do have [screenshots available here](
|
|
92 |
|
93 |
= How can I add lightbox, slider, or random image capabilities? =
|
94 |
|
95 |
-
These features are part of our Image Widget Plus plugin. You can learn more about [Image Widget Plus](
|
96 |
|
97 |
= Where do I go to file a bug or ask a question? =
|
98 |
|
@@ -206,6 +206,10 @@ For more info on the philosophy here, check out our [blog post](http://tri.be/de
|
|
206 |
|
207 |
== Changelog ==
|
208 |
|
|
|
|
|
|
|
|
|
209 |
= [4.4.7] 2017-11-02 =
|
210 |
|
211 |
* Feature - Added new Link Title field and filter to improve tooltip (previously used alt text) (thanks @marklcm) [89993]
|
@@ -214,7 +218,7 @@ For more info on the philosophy here, check out our [blog post](http://tri.be/de
|
|
214 |
= [4.4.6] 2017-09-12 =
|
215 |
|
216 |
* New - Added new filter `tribe_image_widget_instance_description` for more control over how the description field is handled.
|
217 |
-
* Fix - Prevent broken HTML in the "description" field that sometimes arose with certain user roles. Props to users @bridgetashley and @JoshRoy spotting this one!
|
218 |
|
219 |
= [4.4.5] 2017-06-14 =
|
220 |
|
@@ -492,7 +496,7 @@ Thank you @smurkas, @squigie and @laurie!!! Special thanks to Cameron Clark fro
|
|
492 |
* Tighter integration with the thickbok uploader attributes including caption, description, alignment, and link
|
493 |
* Tighter image resize preview
|
494 |
* Add Image link becomes "Change Image" once image has been added
|
495 |
-
|
496 |
= 3.0.4 =
|
497 |
|
498 |
* Minor description changes
|
1 |
=== Image Widget ===
|
2 |
+
Contributors: theeventscalendar, aguseo, borkweb, bordoni, brianjessee, GeoffBel, geoffgraham, leahkoerper, lucatume, neillmcshea, patriciahillebrandt, vicskf, zbtirrell
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4BSPTNFFY6AL6
|
4 |
+
Tags: widget, image, ad, banner, sidebar
|
5 |
Requires at least: 3.5
|
6 |
+
Tested up to: 5.9.3
|
7 |
+
Stable tag: 4.4.8
|
8 |
|
9 |
A simple image widget that uses the native WordPress media manager to add image widgets to your site.
|
10 |
|
13 |
Image Widget is a simple plugin that uses the native WordPress media manager to add image widgets to your site.
|
14 |
|
15 |
Need to add slideshows, lightboxes, or random images?
|
16 |
+
<strong>Check out [Image Widget Plus](https://evnt.is/19mc)!</strong>
|
17 |
|
18 |
= Image Widget Features =
|
19 |
|
25 |
* Versatile - all fields are optional
|
26 |
* Upload, link to external image, or select an image from your media collection
|
27 |
* Customize the look & feel with filter hooks or theme overrides
|
28 |
+
* Additional features available with [Image Widget Plus](https://evnt.is/19mc)
|
29 |
|
30 |
= Quality You Can Trust =
|
31 |
|
32 |
+
Image Widget is developed and maintained by [The Events Calendar](https://evnt.is/1aor), the same folks behind [The Events Calendar, Event Tickets, and a full suite of premium plugins](https://evnt.is/19me).
|
33 |
|
34 |
This plugin is actively supported by our team and contributions from community members. If you see a question in the forum you can help with or have a great idea and want to code it up or submit a patch, that would be awesome! Not only will we shower you with praise and thanks, it’s also a good way to get to know us and lead into options for paid work if you freelance.
|
35 |
|
42 |
* Slideshow
|
43 |
* Lightbox
|
44 |
|
45 |
+
[Check out Image Widget Plus now!](https://evnt.is/19mg)
|
46 |
|
47 |
= Pull Requests & Translations =
|
48 |
|
49 |
+
[Check us out on GitHub](https://github.com/the-events-calendar/image-widget) to pull request changes.
|
50 |
|
51 |
Translations can be submitted [here on WordPress.org](https://translate.wordpress.org/projects/wp-plugins/image-widget).
|
52 |
|
92 |
|
93 |
= How can I add lightbox, slider, or random image capabilities? =
|
94 |
|
95 |
+
These features are part of our Image Widget Plus plugin. You can learn more about [Image Widget Plus](https://evnt.is/19mh) on our website.
|
96 |
|
97 |
= Where do I go to file a bug or ask a question? =
|
98 |
|
206 |
|
207 |
== Changelog ==
|
208 |
|
209 |
+
= [4.4.8] 2022-04-06 =
|
210 |
+
|
211 |
+
* Tweak - WordPress compatibility validation.
|
212 |
+
|
213 |
= [4.4.7] 2017-11-02 =
|
214 |
|
215 |
* Feature - Added new Link Title field and filter to improve tooltip (previously used alt text) (thanks @marklcm) [89993]
|
218 |
= [4.4.6] 2017-09-12 =
|
219 |
|
220 |
* New - Added new filter `tribe_image_widget_instance_description` for more control over how the description field is handled.
|
221 |
+
* Fix - Prevent broken HTML in the "description" field that sometimes arose with certain user roles. Props to users @bridgetashley and @JoshRoy spotting this one!
|
222 |
|
223 |
= [4.4.5] 2017-06-14 =
|
224 |
|
496 |
* Tighter integration with the thickbok uploader attributes including caption, description, alignment, and link
|
497 |
* Tighter image resize preview
|
498 |
* Add Image link becomes "Change Image" once image has been added
|
499 |
+
https://plugins.svn.wordpress.org/the-events-calendar
|
500 |
= 3.0.4 =
|
501 |
|
502 |
* Minor description changes
|