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