V 2.5.7: Minor case-sensitivity bug ~~~~~~~~~~~~~~~~~~~~ V 2.5.6: Removed RSS feature due to incompatibilities & major flaws. ~~~~~~~~~~~~~~~~~~~~ V 2.5.5: Major overhaul of in_post_image system, including WP thumbnail detector. ~~~~~~~~~~~~~~~~~~~~ V 2.5.4: Added a new option to pick thumbnails sizes when using in post functionality ~~~~~~~~~~~~~~~~~~~~ V 2.5.3: Added a fix that stopped rel attr from being applied only on default link case. Thanks to Nick Benson @ PressEnter Creative for the fix. ~~~~~~~~~~~~~~~~~~~~ V 2.5.2: Added a fix for return/echo support on in_post_image & added a suggestion from Nick Benson to link to large images if they exist. ~~~~~~~~~~~~~~~~~~~~ V 2.5.1: Added enclosure support to show the first attached image as a media file in WP RSS & RSS2 feeds. ~~~~~~~~~~~~~~~~~~~~ V 2.5: Added fix for custom queries via second function parameter. ~~~~~~~~~~~~~~~~~~~~ V 2.4.9.2: Fixed full image size flaw. ~~~~~~~~~~~~~~~~~~~~ V 2.4.9.1: Added a bug fix for the want image tag. Thanks Eduardo Gonzalez for the fix. ~~~~~~~~~~~~~~~~~~~~ V 2.4.9: Added have_attached_image() for checking if attached image is available. ~~~~~~~~~~~~~~~~~~~~ V 2.4.8: Added a checkbox in options to turn off & on perma functionality for in post image. ~~~~~~~~~~~~~~~~~~~~ V 2.4.7: Changed $post to $wp_query->post to allow for the use of query_posts. Updates $post to the latest query no matter the method. ~~~~~~~~~~~~~~~~~~~~ V 2.4.6: Forgot to add custom width & height for external images. ~~~~~~~~~~~~~~~~~~~~ V 2.4.5: Fixed a problem with the option image filename for the alt & title attribs. ~~~~~~~~~~~~~~~~~~~~ V 2.4.4: Added getimagesize for external servers. ~~~~~~~~~~~~~~~~~~~~ V 2.4.3: Added in_post_image feature for Jake Garrison & fixed changelog numbers. ~~~~~~~~~~~~~~~~~~~~ V 2.4.2: Minor bug fix. Silly mistake on options page. Marked height as width on options. ~~~~~~~~~~~~~~~~~~~~ V 2.4.1: Minor bug fix. Width & Height if logic. ~~~~~~~~~~~~~~~~~~~~ V 2.4: Added legacy support to all parameters & added documentation to cover useage. ~~~~~~~~~~~~~~~~~~~~ V 2.3.5: Fixed another stupid mistake. Forgot space after default images alt text. Thanks to rougedeals.com for the spot. ~~~~~~~~~~~~~~~~~~~~ V 2.3.4: Fixed stupid mistake. Forgot to return to variable in alt text also made mistake in if logic for default title/alt. ~~~~~~~~~~~~~~~~~~~~ V 2.3.3: Added more function customisation parameters. ~~~~~~~~~~~~~~~~~~~~ V 2.3.2: Added parameters back in for CSS class and img size so multiple calls to the function can be customised since the options page acts as global. ~~~~~~~~~~~~~~~~~~~~ V 2.3.1: Stupid fixes that I can't believe I had to do. I'm crap sometimes. ~~~~~~~~~~~~~~~~~~~~ V 2.3: Added support for changeable image alt & hyperlink title attributes. ~~~~~~~~~~~~~~~~~~~~ V 2.2: Major remodel. Plugin now includes a options page. ~~~~~~~~~~~~~~~~~~~~ V 2.1.1: Minor bug fix for default images. ~~~~~~~~~~~~~~~~~~~~ V 2.1: Added support for adding the rel attribute to the href. Thanks to Dip for the suggestion. ~~~~~~~~~~~~~~~~~~~~ V 2.0.1: Fixed a small bug in the custom link feature. Thanks to Jennifer once more for pointing it out. ~~~~~~~~~~~~~~~~~~~~ V 2.0: Changed the method by which custom field work to one suggested by Jennifer of scriptygoddess.com. Thanks to Jen for that suggestion ~~~~~~~~~~~~~~~~~~~~ V 1.9: You can now supply a custom link path for the image to point to. Use link=custom and the custom field key 'att_custom_link' ~~~~~~~~~~~~~~~~~~~~ V 1.8: If a description is supplied to the image within WP that will be inserted as the image's alt attribute. ~~~~~~~~~~~~~~~~~~~~ V 1.7: Added image_order option after a request by Steve. ~~~~~~~~~~~~~~~~~~~~ V 1.6.1: Forgot to remove my testing comment & cleaned the header a litle. Thanks to Steve for pointing out the bug. ~~~~~~~~~~~~~~~~~~~~ V 1.6: Added ability to show the full size image if wanted. Suggested by Brian Wood. ~~~~~~~~~~~~~~~~~~~~ V 1.5: Added the ability to choose an image that is not attached to the current post defined in the post loop. Can be selected in the template call or in the custom post meta. ~~~~~~~~~~~~~~~~~~~~ V 1.4.2: Fixed another flaw in the width & height decision system. ~~~~~~~~~~~~~~~~~~~~ V 1.4.1: Fixed flaw in width & height checking for custom fields. ~~~~~~~~~~~~~~~~~~~~ V 1.4: Added the ability to use a custom width & height. Just like the default pic it can be defined in the template function call or on a post by post basis in the custom fields. ~~~~~~~~~~~~~~~~~~~~ V 1.3: Added ability to choose a default image to show should there be no image to display. If no default image is defined then nothing will be returned. Default image can be defined in the post via custom fields using 'default_pic' as the key. ~~~~~~~~~~~~~~~~~~~~~ V 1.2 ~ 75 - 90: Added the ability to output a link around the image. You can choose to link to the pic (default), the attachment page or the post that the image is attached to. ~~~~~~~~~~~~~~~~~~~~~ V 1.1 ~ line 62 & 68: Fixed a stupid mistake. Used strict type check for true. Not going to work if the true is provided by argument as it will be a string not a bool.