PluginProbe ʕ •ᴥ•ʔ
Image Widget / 4.4.8
Image Widget v4.4.8
trunk 1.0 2.0 2.1 2.2 2.2.1 2.2.2 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.2 3.2.1 3.2.10 3.2.11 3.2.2 3.2.3 3.2.4 3.2.5 3.2.7 3.2.8 3.2.9 3.3 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 4.0 4.0.1 4.0.2 4.0.3 4.0.4 4.0.5 4.0.6 4.0.7 4.0.8 4.0.9 4.1 4.1.1 4.1.2 4.2 4.2.1 4.2.2 4.3 4.3.1 4.4 4.4.1 4.4.11 4.4.12 4.4.2 4.4.3 4.4.4 4.4.5 4.4.6 4.4.7 4.4.8 4.4.9
image-widget / readme.txt
image-widget Last commit date
lang 4 years ago lib 4 years ago resources 4 years ago views 4 years ago .gitignore 4 years ago image-widget.php 4 years ago index.php 4 years ago readme.txt 4 years ago
readme.txt
555 lines
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
11 == Description ==
12
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
20 * Responsive
21 * MU Compatible
22 * Handles image resizing and alignment
23 * Link the image
24 * Add title and description
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
36 = Image Widget Plus! =
37
38 Image Widget Plus features include:
39
40 * Multiple image support
41 * Random image
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
53 == Installation ==
54
55 = Install =
56
57 Getting started with Image Widget is a breeze!
58
59 1. Download and install the Image Widget plugin
60 1. From your WordPress admin screen, select Plugins from the menu
61 1. Activate the Image Widget plugin
62 1. Go to Appearance > Widget to place the widget in your sidebar in the Design
63
64 If you run into any questions or have suggestions, please visit the forum to post questions or comments.
65
66 = Requirements =
67
68 * PHP 5.2 or above
69 * WordPress 3.5 or above
70
71 == Screenshots ==
72
73 1. Image Widget admin screen.
74 1. Media manager integration.
75 1. Image Widget on the front of a plain WordPress install.
76
77 == Frequently Asked Questions ==
78
79 = How do I log into my site to install this plugin? =
80
81 Visit [the WordPress codex](https://codex.wordpress.org/Login_Trouble) for help with login troubles.
82
83 = Can I display Image Widget on only one page? =
84
85 Yes you can, however, this is not controlled through the Image Widget plugin directly - it is usually managed through a page-specific sidebar display.
86
87 There are several solutions available to accomplish this. A quick search for “WordPress page-specific sidebar display” can help you find the best option for your site.
88
89 = Is there a demo available? =
90
91 Though we do not have a demo available, we do have [screenshots available here](https://wordpress.org/plugins/image-widget/screenshots/).
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
99 Please [visit the forum to post questions or comments](https://wordpress.org/support/plugin/image-widget/).
100
101 == Documentation ==
102
103 The built in template can be overridden by files within your template.
104
105 = Default vs. Custom Templates =
106
107 The Image Widget comes with a default template for the widget output. If you would like to alter the widget display code, create a new folder called "image-widget" in your template directory and copy over the "views/widget.php" file.
108
109 Edit the new file to your hearts content. Please do not edit the one in the plugin folder as that will cause conflicts when you update the plugin to the latest release.
110
111 New in 3.2: You may now also use the "sp_template_image-widget_widget.php" filter to override the default template behavior for .php template files. Eg: if you wanted widget.php to reside in a folder called my-custom-templates/ and wanted it to be called my-custom-name.php:
112
113 `add_filter('sp_template_image-widget_widget.php', 'my_template_filter');
114 function my_template_filter($template) {
115 return get_template_directory() . '/my-custom-templates/my-custom-name.php';
116 }`
117
118 = Filters =
119
120 There are a number of filters in the code that will allow you to override data as you see fit. The best way to learn what filters are available is always by simply searching the code for 'apply_filters'. But all the same, here are a few of the more essential filters:
121
122 *widget_title*
123
124 This is actually a pretty typical filter in widgets and is applied to the widget title.
125
126 *widget_text*
127
128 Another very typical widget filter that is applied to the description body text. This filter also takes 2 additional arguments for $args and $instance so that you can learn more about the specific widget instance in the process of filtering the content.
129
130 *image_widget_image_attachment_id*
131
132 Filters the attachment id of the image.
133 Accepts additional $args and $instance arguments.
134
135 *image_widget_image_url*
136
137 Filters the url of the image displayed in the widget.
138 Accepts additional $args and $instance arguments.
139 THIS IS DEPRECATED AND WILL EVENTUALLY BE DELETED
140
141 *image_widget_image_width*
142
143 Filters the display width of the image.
144 Accepts additional $args and $instance arguments.
145
146 *image_widget_image_height*
147
148 Filters the display height of the image.
149 Accepts additional $args and $instance arguments.
150
151 *image_widget_image_maxwidth*
152
153 Filters the inline max-width style of the image. Hint: override this to use this in responsive designs :)
154 Accepts additional $args and $instance arguments.
155 Return null to remove this css from the image output (defaults to '100%').
156
157 *image_widget_image_maxheight*
158
159 Filters the inline max-height style of the image.
160 Accepts additional $args and $instance arguments.
161 Return null to remove this css from the image output (defaults to null)
162
163 *image_widget_image_size*
164
165 Filters the selected image 'size' corresponding to WordPress registered sizes.
166 If this is set to 'tribe_image_widget_custom' then the width and height are used instead.
167 Accepts additional $args and $instance arguments.
168
169 *image_widget_image_align*
170
171 Filters the display alignment of the image.
172 Accepts additional $args and $instance arguments.
173
174 *image_widget_image_alt*
175
176 Filters the alt text of the image.
177 Accepts additional $args and $instance arguments.
178
179 *image_widget_image_link*
180
181 Filters the url that the image links to.
182 Accepts additional $args and $instance arguments.
183
184 *image_widget_image_link_target*
185
186 Filters the link target of the image link.
187 Accepts additional $args and $instance arguments.
188
189 *image_widget_image_attributes*
190
191 Filters a list of image attributes used in the image output. Similar to 'wp_get_attachment_image_attributes'
192 Accepts $instance arguments
193
194 *image_widget_link_attributes*
195
196 Filters a list of attributes used in the image link. Similar to 'wp_get_attachment_image_attributes'
197 Accepts $instance arguments
198
199 = Have You Supported the Image Widget? =
200
201 If so, then THANK YOU! Also, feel free to add this line to your wp-config.php file to prevent the image widget from displaying a message after upgrades.
202
203 define( 'I_HAVE_SUPPORTED_THE_IMAGE_WIDGET', true );
204
205 For more info on the philosophy here, check out our [blog post](http://tri.be/define-i-have-donated-true/)
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]
216 * Tweak - Added new `image_widget_option_defaults` hook to improve customizability (props @svandragt) [#91225]
217
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
225 * Fix issue with image URLs in the widget admin interface [80659]
226
227 = [4.4.4] 2017-06-01 =
228
229 * Tweak - Improve upsell notices display logic [78676]
230
231 = 4.4.3 =
232
233 * Fix - Fixed bug where selecting an image failed to trigger a Save & Publish in the Customizer (props to dsaric-dev for the fix)
234 * Tweak - Roll-back to sidebar_admin_setup to enqueue resources for optimal plugin compatibility (props to megamenu for the heads up)
235
236 = 4.4.2 =
237
238 * Fix - fixed compatibility with WordPress versions prior to 4.4
239 * Fix - proportional scaling of image within the widget editor
240 * Fix - fix validation by avoiding empty attributes and only specifying sizes with srcset (thanks Zodiak1978)
241
242 = 4.4.1 =
243
244 * Fix - fixed some broken links
245
246 = 4.4 =
247
248 * Feature - Add srcset and size attribute support (props @philwp)
249 * Tweak - Readme adjustments
250 * Tweak - Additional refinements to notice code.
251
252 = 4.3.1 =
253
254 * Tweak - Upgrade admin notice code
255
256 = 4.3 =
257
258 * Translations - fixed compatibility with translate.wordpress.org
259 * Translations - restored the pot file for easier community translations
260 * Tweak - fixed a typo
261 * Tweak - Minor code cleanup
262
263 = 4.2.2 =
264
265 * Feature - Include registered image sizes in the list of selectable items (props to aaemnnosttv for the pull request!)
266
267 = 4.2.1 =
268
269 * Feature - Removing Freemius. Interesting experiment, but ultimately, not our cup of tea. Thanks for sticking with us!
270
271 = 4.2 =
272
273 * Security - Prevent direct access to directories (thank you @ramiy)
274 * Translations - Remove po/mo files, migrate to translate.wordpress.org language packs
275 * Feature - Add support for the rel attribute
276 * Feature - Adding an opt-in integration with Freemius
277
278 = 4.1.2 =
279
280 * Tweak - Added support for an id attribute on links (Props to amyh for the work on this!)
281
282 = 4.1.1 =
283
284 * Tweak - Retiring the use of PHP 4 style constructors
285
286 = 4.1 =
287
288 * Remove accidentally deployed image size update.
289
290 = 4.0.9 =
291
292 * Fix image stretching bug in admin (Thanks @kyleunzicker)
293 * Add polish translation (thank you @difreo)
294 * Add hebrew translation (thank you Ariel Klikstein)
295 * Add german translation (thank you Daniel Schmidt)
296 * Fix "Alt" text in the widget source to use actual "Alt" text (thanks @adoliver and @Degas)
297
298 = 4.0.8 =
299
300 * Responsive support in honor of Josh Broton's WordCamp SF talk about responsive design. max-width now defaults to 100%;
301
302 = 4.0.7 =
303
304 * Add Spanish translation (thank you @mzaweb)
305
306 = 4.0.6 =
307
308 * Rename all language files and implement a couple more minor language bug fixes a la @understandard
309 * Added support for the constant 'I_HAVE_SUPPORTED_THE_IMAGE_WIDGET' to turn off the message that appears after upgrading. (@crienoloog, i hope this puts a smile on your face.)
310
311 = 4.0.5 =
312
313 * Added Japanese (and fixed a minor language string bug - thank you @understandard)
314 * Added Arabic (thank you @modmenpc)
315
316 = 4.0.4 =
317
318 Super minor fix to enable saving of a blank caption. (thanks @crdunst)
319
320 = 4.0.3 =
321
322 Fixed javascript bug caused by log message.
323
324 = 4.0.2 =
325
326 Fix oversized screenshot.
327
328 = 4.0.1 =
329
330 Language updates:
331
332 * Brazilian Portuguese (Thank you @guhemama)
333 * Spanish (Thank you @javiandgo)
334
335 = 4.0 =
336
337 * Significant upgrades to support the new WordPress media manager (Thank you @kyleunzicker, @dancameron, @dudekpj, @JakePT)
338 * Significant improvements the administrative user interface.
339 * Abstracted support for older versions of WordPress so that that we don't break old versions with this upgrade (Though there's no reason you should up grade this widget and NOT your WP install! You should always keep WordPress core up to date!)
340 * Added 'image_widget_link_attributes' filter to easily process link attributes and to default to having the link 'title' be the 'alt' or 'title' content. (Thank you @ZeroGravity, @pixelyzed, and @javiandgo)
341 * Updated Translations
342 ** Swedish (Tomas Lindhoff <tomas@xhost.se>)
343 ** Dutch (Presis <contact@presis.nl>)
344 ** Italian (@maxgx)
345
346 = 3.3.8 =
347
348 * Added italian translations courtesy of @maxgx
349
350 = 3.3.7 =
351
352 * Add filters so that people can more easily adjust the output of the widget as per @TCBarrett's request.
353
354 = 3.3.6 =
355
356 * Czech translation courtesy of Vladislav Musilek at blogísek (http://blog.musilda.cz).
357
358 = 3.3.5 =
359
360 * Fix filtered media library inserts thanks to @miraclemaker as well as @oxyc, @BjornW and innumerable others in the support forum (http://wordpress.org/support/topic/plugin-image-widget-add-image-upload-an-image-select-insert-into-widget-no-image-is-shown)
361 * Adjusted HTTPS/SSL handling so that it's only applied in the view. ( thanks @TheFluffyDoneky and @aerobrent )
362 * Added a filter for the image url: 'image_widget_image_url'
363 * Add Dutch language translation ( thank you Carsten Alsemgeest - presis.nl )
364 * Rename all language files to lowercase image_widget to match the localization string.
365
366 = 3.3.4 =
367
368 * Fix javascript bugs in the widget admin UI. ( thanks for filing this @joo-joo )
369 * Fix notices in php error log.
370 * Add widget description filter $args and $instance ( thanks @jeffreyzinn )
371 * Fixed localization and renamed key to 'image-widget'
372
373 = 3.3.3 =
374
375 * Romanian translation courtesy of Alexander Ovsov at Web Geek Science (http://webhostinggeeks.com).
376
377 = 3.3.2 =
378
379 * Remove extra esc_attr() from the $title display. (Thank you @romaspit)
380
381 = 3.3.1 =
382
383 * Add minor security updates.
384 * Update readme, thumbnails and other minor descriptors.
385
386 = 3.3 =
387
388 * Fix to allow the widget to work in the non-async (browser) uploader. Props Bjorn Wijers
389
390 = 3.2.11 =
391
392 * Yet another minor JS fix to hopefully address issues of lightbox not working
393
394 = 3.2.10 =
395
396 * Fix JS typo.
397
398 = 3.2.9 =
399
400 * Minor JS fix to hopefully address issues of lightbox not working
401 * Use new the new [jQuery.fn.on](http://api.jquery.com/on/) method for forward compatibility.
402
403 = 3.2.8 =
404
405 * Minor bugfix courtesy of Takayuki Miyauchi (@miya0001)
406 * Polish translation courtesy of Łukasz Kliś
407
408 = 3.2.7 =
409
410 * Update javascript to work with the new version of WordPress (thanks Matt Wiebe!!! @mattwiebe)
411 * Added Japanese translation courtesy of Takayuki Miyauchi (@miya0001)
412
413 = 3.2.6 =
414
415 * Add HTTPS support courtesy of David Paul Ellenwood (DPE@SGS)
416
417 = 3.2.5 =
418
419 * Added Swedish translation courtesy of Tomas Lindhoff (@Tomas)
420
421 = 3.2.4 =
422
423 * Added javascript conflict prevention code thanks to @rcain.
424
425 = 3.2.3 =
426
427 * Added French translation courtesy of Dominique Corbex (@Domcox)
428
429 = 3.2.2 =
430
431 * Added Portuguese translation courtesy of Gustavo Machado
432
433 = 3.2.1 =
434
435 * Fix image widget public declaration bug.
436
437 = 3.2 =
438
439 * Abstract views for widget output and widget admin.
440 * Support theme override of the widget output! Now you can layout the widget however you'd like.
441 * Added filter to override template call.
442
443 = 3.1.6 =
444
445 * Fixed Wordpress 3.0 bugs. (Thanks @kenvunz)
446
447 = 3.1.5 =
448
449 Fixed PHP 5 bug. Removed 'public' declaration. http://wordpress.org/support/topic/362167 Thanks @mpwalsh8, @jleuze, @PoLaR5, @NancyA and @phoney36
450
451 = 3.1.4 =
452
453 * Added support for ALT tags. If no alt tag is entered the title is used.
454
455 = 3.1.3 =
456
457 * Added German language support (Thank you Rüdiger Weiß!!!)
458
459 = 3.1.2 =
460
461 * Fix bug: XHTML Compliance (thanks HGU for offering a patch and thanks @webmasterlistingarts for filing the bug)
462 * Replaced `<p>` with `<div>` in description to also improve XHTML compliance.
463
464 = 3.1.1 =
465
466 * 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)
467
468 = 3.0.10 =
469
470 * Fix bug: improve tab filters.
471
472 = 3.0.9 =
473
474 * Fix bug: update tabs filter to not kill tabs if upload window is for non widget uses.
475
476 = 3.0.8 =
477
478 * Remove the "From URL" tab since it isn't supported.
479 * Replace "Insert into Post" with "Insert into Widget" in thickbox.
480
481 = 3.0.7 =
482
483 * Fix Dean's Fcuk editor conflict. (Thanks for the report Laurie @L_T_G)
484 * Fix IE8 bug (Remove extra comma from line 66 of js - thanks for the report @reface)
485 * Update functions and enqueued scripts to only trigger on widget page.
486
487 = 3.0.6 =
488
489 * Fix crash on insert into post.
490
491 = 3.0.5 =
492
493 Thank you @smurkas, @squigie and @laurie!!! Special thanks to Cameron Clark from http://prolifique.com a.k.a @capnhairdo for contributing invaluable javascript debugging skills and throwing together some great code.
494
495 * PHP4 compatibility
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
503
504 = 3.0.3 =
505
506 * Fixed the broken "Add Image" link (THANK YOU @SMURKAS!!!)
507
508 = 3.0.2 =
509
510 * Added PHPDoc comments
511 * Temporarily fixed install bug where no image is saved if resize is not working. (thank you Paul Kaiser from Champaign, Il for your helpful QA support)
512
513 = 3.0.1 =
514
515 * Added 'sp_image_widget' domain for language support.
516
517 = 3.0 =
518
519 * Completely remodeled the plugin to use the native WordPress uploader and be compatible with Wordpress 2.8 plugin architecture.
520 * Removed externalized widget admin.
521
522 = 2.2.2 =
523
524 * Update <li> to be $before_widget and $after_widget (Thanks again to Lois Turley)
525
526 = 2.2.1 =
527
528 * Update `<div>` to be `<li>` (Thanks to Lois Turley)
529
530 = 2.2 =
531
532 * Fixed missing DIV close tag (Thank you Jesper Goos)
533 * Updated all short tags to proper php tags (Thank you Jonathan Volks from Mannix Marketing)
534
535 = 2.1 =
536
537 * Link Target
538
539 = 2.0 =
540
541 * Multi widget support
542 * WP 2.7.1 Compatibility
543 * Class encapsulation
544
545 == Upgrade Notice ==
546
547 = 4.0 =
548
549 Please be advised that this is a significant upgrade. You should definitely back up your database before updating in case your existing image widgets have any problems.
550
551 Also, several languages will no longer be supported until new translations are submitted. Currently, we have support for Italian, Dutch, and Swedish. If you would like to contribute your own language files, please post links here:
552
553 http://wordpress.org/support/topic/image-widget-40-translations-needed-2
554
555