Thumbnails

Version 1.0 added 1 month ago by tokyograph

1.0 Notes

Package Details

This display helper is suitable for a File column (multiple) that is used for attaching images to a pod. It will display an unordered list of the image thumbnails, each linked to the full image.

* The <ul> has a class of "thumbnail-list" that you can use for styling purposes.
* The <a> tags have their "rel" attribute set to "podX" where X is the id of the pod. This is for grouping purposes and can be used for Javascript lightboxes.
* The thumbnails are currently retrieved with wp_get_attachment_thumb_url(). You can use image_downsize() instead if you prefer displaying a different size.
* Feel free to modify the code to suit your own needs.

Typical usage is with magic tags - for example,
<pre>{@images,thumbnail-list}</pre>

You can also use the helper this way
<pre>echo $this->pod_helper('thumbnail-list',$images);</pre>
This may be useful if you need to do something with the $images array before displaying it. For example, I run a custom sorting function on $images first, and then use the helper.