PluginProbe ʕ •ᴥ•ʔ
Image Widget / 4.3
Image Widget v4.3
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 9 years ago lib 9 years ago resources 9 years ago views 9 years ago image-widget.php 9 years ago index.php 9 years ago readme.txt 9 years ago
readme.txt
465 lines
1 === Image Widget ===
2 Contributors: ModernTribe, peterchester, borkweb, zbtirrell
3 Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4BSPTNFFY6AL6
4 Tags: widget, image, ad, banner, simple, upload, sidebar, admin, thickbox, resize, arabic, brazilian portuguese, dutch, german, hebrew, italian, japanese, polish, spanish, swedish, widget-only
5 Requires at least: 3.5
6 Tested up to: 4.4.2
7 Stable tag: 4.3
8
9 == Description ==
10
11 A simple image widget that uses the native WordPress media manager to add image widgets to your site.
12
13 * MU Compatible
14 * Handles image resizing and alignment
15 * Link the image
16 * Title and Description
17 * Very versatile. All fields are optional.
18 * Upload, link to external image, or select an image from your media collection using the built in thickbox browser.
19 * Supports override of template so that you can override the template for your theme!
20 * Responsive
21
22 This plugin is actively supported and we will do our best to help you. In return we simply ask 3 things:
23
24 1. Help Out. If you see a question on the forum you can help with or have a great idea and want to code it up and submit a patch, that would be just plain awesome and we will shower your with praise. Might even be a good way to get to know us and lead to some paid work if you freelance. Also, we are happy to post translations if you provide them.
25 1. [Donate](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4BSPTNFFY6AL6) - if this is generating enough revenue to support our time it makes all the difference in the world.
26 1. Support us by buying our Premium plugins. In particular, *check out [Events Calendar Pro](https://theeventscalendar.com/product/wordpress-events-calendar-pro/?src=imagewidget) and [Event Tickets Plus](https://theeventscalendar.com/product/wordpress-event-tickets-plus/?src=imagewidget)*.
27
28 [Check us out on GitHub](https://github.com/moderntribe/image-widget) in case you want to add some pull requests or a fork!
29
30 == Installation ==
31
32 = Install =
33
34 1. In your WordPress administration, go to the Plugins page
35 1. Activate the Image Widget plugin and a subpage for the plugin will appear
36 in your Manage menu.
37 1. Go to the Appearance > Widget page and place the widget in your sidebar in the Design
38
39 If you find any bugs or have any ideas, please [visit the forum for questions or comments](http://wordpress.org/support/plugin/image-widget/)
40
41 = Requirements =
42
43 * PHP 5.2 or above
44 * WordPress 3.5 or above
45
46 == Screenshots ==
47
48 1. Image Widget admin screen.
49 1. Media manager integration.
50 1. Image Widget on the front of a plain WordPress install.
51
52 == Frequently Asked Questions ==
53
54 = Where do I go to file a bug or ask a question? =
55
56 Please [visit the forum for questions or comments](http://wordpress.org/support/plugin/image-widget/)
57
58 == Documentation ==
59
60 The built in template can be overridden by files within your template.
61
62 = Default vs. Custom Templates =
63
64 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.
65
66 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.
67
68 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:
69
70 `add_filter('sp_template_image-widget_widget.php', 'my_template_filter');
71 function my_template_filter($template) {
72 return get_template_directory() . '/my-custom-templates/my-custom-name.php';
73 }`
74
75 = Filters =
76
77 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:
78
79 *widget_title*
80
81 This is actually a pretty typical filter in widgets and is applied to the widget title.
82
83 *widget_text*
84
85 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.
86
87 *image_widget_image_attachment_id*
88
89 Filters the attachment id of the image.
90 Accepts additional $args and $instance arguments.
91
92 *image_widget_image_url*
93
94 Filters the url of the image displayed in the widget.
95 Accepts additional $args and $instance arguments.
96 THIS IS DEPRECATED AND WILL EVENTUALLY BE DELETED
97
98 *image_widget_image_width*
99
100 Filters the display width of the image.
101 Accepts additional $args and $instance arguments.
102
103 *image_widget_image_height*
104
105 Filters the display height of the image.
106 Accepts additional $args and $instance arguments.
107
108 *image_widget_image_maxwidth*
109
110 Filters the inline max-width style of the image. Hint: override this to use this in responsive designs :)
111 Accepts additional $args and $instance arguments.
112 Return null to remove this css from the image output (defaults to '100%').
113
114 *image_widget_image_maxheight*
115
116 Filters the inline max-height style of the image.
117 Accepts additional $args and $instance arguments.
118 Return null to remove this css from the image output (defaults to null)
119
120 *image_widget_image_size*
121
122 Filters the selected image 'size' corresponding to WordPress registered sizes.
123 If this is set to 'tribe_image_widget_custom' then the width and height are used instead.
124 Accepts additional $args and $instance arguments.
125
126 *image_widget_image_align*
127
128 Filters the display alignment of the image.
129 Accepts additional $args and $instance arguments.
130
131 *image_widget_image_alt*
132
133 Filters the alt text of the image.
134 Accepts additional $args and $instance arguments.
135
136 *image_widget_image_link*
137
138 Filters the url that the image links to.
139 Accepts additional $args and $instance arguments.
140
141 *image_widget_image_link_target*
142
143 Filters the link target of the image link.
144 Accepts additional $args and $instance arguments.
145
146 *image_widget_image_attributes*
147
148 Filters a list of image attributes used in the image output. Similar to 'wp_get_attachment_image_attributes'
149 Accepts $instance arguments
150
151 *image_widget_link_attributes*
152
153 Filters a list of attributes used in the image link. Similar to 'wp_get_attachment_image_attributes'
154 Accepts $instance arguments
155
156 = Have You Supported the Image Widget? =
157
158 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.
159
160 define( 'I_HAVE_SUPPORTED_THE_IMAGE_WIDGET', true );
161
162 For more info on the philosophy here, check out our [blog post](http://tri.be/define-i-have-donated-true/)
163
164 == Changelog ==
165
166 = 4.3 =
167
168 * Translations - fixed compatibility with translate.wordpress.org
169 * Translations - restored the pot file for easier community translations
170 * Tweak - fixed a typo
171 * Tweak - Minor code cleanup
172
173 = 4.2.2 =
174
175 * Feature - Include registered image sizes in the list of selectable items (props to aaemnnosttv for the pull request!)
176
177 = 4.2.1 =
178
179 * Feature - Removing Freemius. Interesting experiment, but ultimately, not our cup of tea. Thanks for sticking with us!
180
181 = 4.2 =
182
183 * Security - Prevent direct access to directories (thank you @ramiy)
184 * Translations - Remove po/mo files, migrate to translate.wordpress.org language packs
185 * Feature - Add support for the rel attribute
186 * Feature - Adding an opt-in integration with Freemius
187
188 = 4.1.2 =
189
190 * Tweak - Added support for an id attribute on links (Props to amyh for the work on this!)
191
192 = 4.1.1 =
193
194 * Tweak - Retiring the use of PHP 4 style constructors
195
196 = 4.1 =
197
198 * Remove accidentally deployed image size update.
199
200 = 4.0.9 =
201
202 * Fix image stretching bug in admin (Thanks @kyleunzicker)
203 * Add polish translation (thank you @difreo)
204 * Add hebrew translation (thank you Ariel Klikstein)
205 * Add german translation (thank you Daniel Schmidt)
206 * Fix "Alt" text in the widget source to use actual "Alt" text (thanks @adoliver and @Degas)
207
208 = 4.0.8 =
209
210 * Responsive support in honor of Josh Broton's WordCamp SF talk about responsive design. max-width now defaults to 100%;
211
212 = 4.0.7 =
213
214 * Add Spanish translation (thank you @mzaweb)
215
216 = 4.0.6 =
217
218 * Rename all language files and implement a couple more minor language bug fixes a la @understandard
219 * 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.)
220
221 = 4.0.5 =
222
223 * Added Japanese (and fixed a minor language string bug - thank you @understandard)
224 * Added Arabic (thank you @modmenpc)
225
226 = 4.0.4 =
227
228 Super minor fix to enable saving of a blank caption. (thanks @crdunst)
229
230 = 4.0.3 =
231
232 Fixed javascript bug caused by log message.
233
234 = 4.0.2 =
235
236 Fix oversized screenshot.
237
238 = 4.0.1 =
239
240 Language updates:
241
242 * Brazilian Portuguese (Thank you @guhemama)
243 * Spanish (Thank you @javiandgo)
244
245 = 4.0 =
246
247 * Significant upgrades to support the new WordPress media manager (Thank you @kyleunzicker, @dancameron, @dudekpj, @JakePT)
248 * Significant improvements the administrative user interface.
249 * 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!)
250 * 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)
251 * Updated Translations
252 ** Swedish (Tomas Lindhoff <tomas@xhost.se>)
253 ** Dutch (Presis <contact@presis.nl>)
254 ** Italian (@maxgx)
255
256 = 3.3.8 =
257
258 * Added italian translations courtesy of @maxgx
259
260 = 3.3.7 =
261
262 * Add filters so that people can more easily adjust the output of the widget as per @TCBarrett's request.
263
264 = 3.3.6 =
265
266 * Czech translation courtesy of Vladislav Musilek at blogísek (http://blog.musilda.cz).
267
268 = 3.3.5 =
269
270 * 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)
271 * Adjusted HTTPS/SSL handling so that it's only applied in the view. ( thanks @TheFluffyDoneky and @aerobrent )
272 * Added a filter for the image url: 'image_widget_image_url'
273 * Add Dutch language translation ( thank you Carsten Alsemgeest - presis.nl )
274 * Rename all language files to lowercase image_widget to match the localization string.
275
276 = 3.3.4 =
277
278 * Fix javascript bugs in the widget admin UI. ( thanks for filing this @joo-joo )
279 * Fix notices in php error log.
280 * Add widget description filter $args and $instance ( thanks @jeffreyzinn )
281 * Fixed localization and renamed key to 'image-widget'
282
283 = 3.3.3 =
284
285 * Romanian translation courtesy of Alexander Ovsov at Web Geek Science (http://webhostinggeeks.com).
286
287 = 3.3.2 =
288
289 * Remove extra esc_attr() from the $title display. (Thank you @romaspit)
290
291 = 3.3.1 =
292
293 * Add minor security updates.
294 * Update readme, thumbnails and other minor descriptors.
295
296 = 3.3 =
297
298 * Fix to allow the widget to work in the non-async (browser) uploader. Props Bjorn Wijers
299
300 = 3.2.11 =
301
302 * Yet another minor JS fix to hopefully address issues of lightbox not working
303
304 = 3.2.10 =
305
306 * Fix JS typo.
307
308 = 3.2.9 =
309
310 * Minor JS fix to hopefully address issues of lightbox not working
311 * Use new the new [jQuery.fn.on](http://api.jquery.com/on/) method for forward compatibility.
312
313 = 3.2.8 =
314
315 * Minor bugfix courtesy of Takayuki Miyauchi (@miya0001)
316 * Polish translation courtesy of Łukasz Kliś
317
318 = 3.2.7 =
319
320 * Update javascript to work with the new version of WordPress (thanks Matt Wiebe!!! @mattwiebe)
321 * Added Japanese translation courtesy of Takayuki Miyauchi (@miya0001)
322
323 = 3.2.6 =
324
325 * Add HTTPS support courtesy of David Paul Ellenwood (DPE@SGS)
326
327 = 3.2.5 =
328
329 * Added Swedish translation courtesy of Tomas Lindhoff (@Tomas)
330
331 = 3.2.4 =
332
333 * Added javascript conflict prevention code thanks to @rcain.
334
335 = 3.2.3 =
336
337 * Added French translation courtesy of Dominique Corbex (@Domcox)
338
339 = 3.2.2 =
340
341 * Added Portuguese translation courtesy of Gustavo Machado
342
343 = 3.2.1 =
344
345 * Fix image widget public declaration bug.
346
347 = 3.2 =
348
349 * Abstract views for widget output and widget admin.
350 * Support theme override of the widget output! Now you can layout the widget however you'd like.
351 * Added filter to override template call.
352
353 = 3.1.6 =
354
355 * Fixed Wordpress 3.0 bugs. (Thanks @kenvunz)
356
357 = 3.1.5 =
358
359 Fixed PHP 5 bug. Removed 'public' declaration. http://wordpress.org/support/topic/362167 Thanks @mpwalsh8, @jleuze, @PoLaR5, @NancyA and @phoney36
360
361 = 3.1.4 =
362
363 * Added support for ALT tags. If no alt tag is entered the title is used.
364
365 = 3.1.3 =
366
367 * Added German language support (Thank you Rüdiger Weiß!!!)
368
369 = 3.1.2 =
370
371 * Fix bug: XHTML Compliance (thanks HGU for offering a patch and thanks @webmasterlistingarts for filing the bug)
372 * Replaced `<p>` with `<div>` in description to also improve XHTML compliance.
373
374 = 3.1.1 =
375
376 * 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)
377
378 = 3.0.10 =
379
380 * Fix bug: improve tab filters.
381
382 = 3.0.9 =
383
384 * Fix bug: update tabs filter to not kill tabs if upload window is for non widget uses.
385
386 = 3.0.8 =
387
388 * Remove the "From URL" tab since it isn't supported.
389 * Replace "Insert into Post" with "Insert into Widget" in thickbox.
390
391 = 3.0.7 =
392
393 * Fix Dean's Fcuk editor conflict. (Thanks for the report Laurie @L_T_G)
394 * Fix IE8 bug (Remove extra comma from line 66 of js - thanks for the report @reface)
395 * Update functions and enqueued scripts to only trigger on widget page.
396
397 = 3.0.6 =
398
399 * Fix crash on insert into post.
400
401 = 3.0.5 =
402
403 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.
404
405 * PHP4 compatibility
406 * Tighter integration with the thickbok uploader attributes including caption, description, alignment, and link
407 * Tighter image resize preview
408 * Add Image link becomes "Change Image" once image has been added
409
410 = 3.0.4 =
411
412 * Minor description changes
413
414 = 3.0.3 =
415
416 * Fixed the broken "Add Image" link (THANK YOU @SMURKAS!!!)
417
418 = 3.0.2 =
419
420 * Added PHPDoc comments
421 * 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)
422
423 = 3.0.1 =
424
425 * Added 'sp_image_widget' domain for language support.
426
427 = 3.0 =
428
429 * Completely remodeled the plugin to use the native WordPress uploader and be compatible with Wordpress 2.8 plugin architecture.
430 * Removed externalized widget admin.
431
432 = 2.2.2 =
433
434 * Update <li> to be $before_widget and $after_widget (Thanks again to Lois Turley)
435
436 = 2.2.1 =
437
438 * Update `<div>` to be `<li>` (Thanks to Lois Turley)
439
440 = 2.2 =
441
442 * Fixed missing DIV close tag (Thank you Jesper Goos)
443 * Updated all short tags to proper php tags (Thank you Jonathan Volks from Mannix Marketing)
444
445 = 2.1 =
446
447 * Link Target
448
449 = 2.0 =
450
451 * Multi widget support
452 * WP 2.7.1 Compatibility
453 * Class encapsulation
454
455 == Upgrade Notice ==
456
457 = 4.0 =
458
459 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.
460
461 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:
462
463 http://wordpress.org/support/topic/image-widget-40-translations-needed-2
464
465