Powered by MediaWiki
Personal tools

Tag item images

From b2evolution manual

Jump to: navigation, search

Display the images linked to the current item.

[edit] Example

$Item->images( array(
      'before'               => '<div>',
      'before_image'         => '<div class="image_block">',
      'before_image_legend'  => '<div class="image_legend">',
      'after_image_legend'   => '</div>',
      'after_image'          => '</div>',
      'after'                => '</div>',
      'image_size'           => 'fit-720x500',
      'image_link_to'        => 'original',
      'limit'                => 1000
    ) );

[edit] Parameters

Name Default Usage
before '<div>' Displayed before all the images.
before_image '<div class="image_block">' Displayed before the image.
before_image_legend '<div class="image_legend">' Displayed before the image legend.
after_image_legend '</div>' Displayed after the image legend.
after_image '</div>' Displayed after the image.
after '</div>' Displayed after all the images.
image_size 'fit-720x500' Image size to fit.
image_link_to 'original' Where do we want to link to when the image is clicked. Can be 'orginal' (image) or 'single' (this post).
limit 1000 Maximum of images displayed. If 'limit' => '#' then no limitation.

[edit] Return value

This tag displays content only, it does not have a return value.