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" />
Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2013 eZ Systems AS (except where otherwise noted). All rights reserved.