item_image — Get a customized item image tag.¶
Summary¶
- item_image($imageType, $props = array(), $index = 0, $item = null)¶
Get a customized item image tag.
Parameters: - $imageType (string) – Image size: thumbnail, square thumbnail, fullsize
- $props (array) – HTML attributes for the img tag
- $index (integer) – Which file within the item to use, by order. Default is the first file.
- $item –
Usage¶
Examples¶
Use to display an image file associated with an item. Use the parameters to control the image size and combine with link_to_item to wrap the image tag in an anchor tag.
<?php echo link_to_item(item_image('square_thumbnail', array('alt' => $itemTitle))); ?>