- BlogWell - http://blog-well.com -
WordPress Simple Image Link Plugin
Posted By Mad On September 14, 2008 @ 1:13 am In Uncategorized | 96 Comments
WordPress Simple Image Link offers all users a new way for putting images in your sidebars.
Specifically designed for those with little or no HTML knowledge, WordPress Simple Image Link will save you time and effort when displaying support buttons, ads and, well, anything else which uses an image.
Once the plugin is installed, just add the “Simple Image Link” widget to any of your sidebars. Add 1, add 2, add as many as you need.
WordPress: 2.8+
If you are currently using WordPress 2.7, please use version 2.1.1.
Download WordPress Simple Image Link Plugin [1].
NOTE:
If you were one of the three who downloaded it from our site, then please download the latest version from WordPress.org, since this will ensure you can use the automatic plugin update feature. The name of the plugin has changed from ‘Image Link’ to ‘Simple Image Link’ as there was a name conflict with the former.
I wrote this plugin because it was a pain to create and update the HTML when using a text widget to display an image. Also, when there are multiple text widgets, you couldn’t remember which was which without going in and checking. Voila; WP Image Link was born.
The title is what is displayed within the widget header when viewing your current widgets within the WordPress dashboard.
Whether the title should be displayed within the sidebar (see image below).
Allow the widget to be displayed for users with specific roles.
The role can be qualified by:
The location of the image to be displayed. That is, it’s URL.
The width and height of the image, expressed as pixels or as a percentage of the current size.
These are optional.
If no width and height are specified, then the image will be displayed in its original size.
If the original image is larger than you require, then you can explicitly set the width and the height of the image and the browser will display the image at this size.
For example, if the original image is 300 pixels wide by 300 pixels high, and you want to display it as 150 pixels wide by 150 pixels high, then set the width and the height to ‘150px’ and ‘150px’. ‘px’ is the unit for pixels.
Alternatively, you can set the width and height both to ‘50%’, and the browser will display the image at 50% of its original width and height.
This is the ‘alt’ or ‘alternative text’ that is shown when images can not be displayed, or a text reader is used.
Some text can be displayed after image.
Whether a break is inserted between the image and text. If not selected, then a non breaking space is inserted between the image and text to ensure some visual seperation.
Method used to align the image within the sidebar.
Available methods are:
Left | ![]() |
Center | ![]() |
Right | ![]() |
The destination, i.e. the URL, where the user will be taken upon clicking on the image.
This allows you to select whether to open the link in the same browser window, or a new window.
Google recommends using ‘nofollow’ for all paid (advertising) links. Select whether you want the link to be nofollow here.
Add shadowbox as a rel attribute value, so that the link is opened within a Shadow Box.
NOTE: Shadow Box must be provided external to this plugin.
Select whether you want to display the image’s alt text; i.e. the text that appears as a popup/tooltip.
Additional padding can be applied above and/or below the image.
Padding units should be expressed as pixels (e.g. 123px) or a multiple of the current font size (e.g. 1.5em).
The screenshot below shows how the image is displayed when applying:
WordPress 2.8 support.
Use correct location of plugins folder when ‘WordPress address’ and ‘Blog address’ differ within Settings.
Fixed for Robert@PNG.
Allow widget to be displayed based on the user’s role – inspired by Praveen Baratam [praveen.baratam AT gmail DOT com].
Two psuedo roles are added – ‘Do not display’ replaces the “Display image” property, and ‘Not logged in’ to display image should the user not be logged in (i.e. user does not have a proper role).
Correctly display <, >, &, ” and ‘ characters.
Fixed minor spelling mistake in Portuguese translation – thanks again to Alexandre Pereira [2].
No functional changes.
Support added for translating the text within the widget via the simple-image-link.pot [3] file.
Translations can now be made external to the core files, allowing upgrades to not affect independent translations.
Thanks to Alexandre Pereira [2] for providing the incentive to do this the Portuguese translations.
Allows image to be hidden without having to delete the widget.
Allows ’shadowbox’ to be included within the link’s rel attribute value.
NOTE: Shadow Box support must be provided external to this plugin.
Added ability to specify text which appears within the sidebar.
Changes to readme and screen shots.
Initial version.
Article printed from BlogWell: http://blog-well.com
URL to article: http://blog-well.com/downloads/wordpress-image-link-plugin/
URLs in this post:
[1] WordPress Simple Image Link Plugin: http://wordpress.org/extend/plugins/simple-image-link/
[2] Alexandre Pereira: http://www.blogtuga.org/
[3] simple-image-link.pot: http://codex.wordpress.org/I18n_for_WordPress_Developers#POT_files
Click here to print.
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License.