ibexa

Caution: This documentation is for eZ Publish legacy, from version 3.x to 5.x.

classgroup_icon

Summary

Outputs an image tag referencing a class group icon.

Usage

input|classgroup_icon( [ size [, alt_text [, return_uri ] ] ] )

Parameters

NameTypeDescriptionRequired
size string The preferred icon size (small, medium, large, etc.). No.
alt_text string The alternative image text. No.
return_uri boolean The return format (image tag or just the address). No.

Returns

A string containing an image tag.

Description

This operator generates an image tag that references a class group icon. The name of the icon must be provided using the input parameter. The "size", "alt_text" and "return_url" parameters are optional (see the description above). The operator uses the settings provided by the "icon.ini" configuration file (or an override).

Examples

Example 1

{'content'|classgroup_icon( 'small', 'Alternative image text' )}

The following output will be produced:

<img src="/share/icons/crystal-admin/16x16_indexed/filesystems/folder_txt.png" width="16" height="16" alt="Content" title="Content" />

Balazs Halasy (21/03/2005 9:46 am)

Balazs Halasy (04/05/2005 2:24 pm)


Comments

There are no comments.