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