- b2evolution CMS User Manual
- Developer Reference
- Website Skins/Themes
- Skin Tags / API
- Category Tags
- Template Tag: Category Image
Template Tag: Category Image
Displays the image associated with the current Category.
Examples
Quick Template
[Cat:image|before=|after=|size=crop-48x48|link_to=#category_url|class=category_img|placeholder=No image]
PHP Template
$Chapter->get_image_tag( array(
'before' => '',
'after' => '',
'size' => 'crop-48x48',
'link_to => '#category_url',
'class' => 'category_class',
'placeholder' => 'No image',
) );
Parameters
Param |
Default |
Usage |
---|---|---|
|
|
Displayed before the image. |
|
|
Allow injecting additional classes into ‘before’. |
|
|
Displayed before image legend (info under image tag image desc is not empty). |
|
|
Displayed after the image legend. |
|
|
Displayed after the image. |
|
|
Image thumbnail size |
|
|
simplified |
|
|
URL for a link; |
|
|
Title of the link, can be text or |
|
|
Value for attribute "rel", usefull for jQuery libraries selecting on rel=’…’, e-g: ‘lightbox[cat’.$this->ID.’]’. |
|
|
CSS class applied to image. |
|
|
Image align |
|
|
Image alt |
|
|
Image description, used in legend under the image tag, |
|
|
Use |
|
|
Override "width" & "height" attributes on img tag. Allows to increase pixel density for retina/HDPI screens.
|
|
|
HTML to be displayed if no image; possible codes: |
Return value
This tag displays content only, it does not have a return value.