mimetype_icon
Summary
Outputs an image tag referencing a MIME type icon.Usage
input|mimetype_icon( [ size, [, alt_text [, return_type ] ] ] )
Parameters
Name | Type | Description | Required |
---|---|---|---|
size | integer | The size of the icon (small, normal, large, etc.). | No. |
alt_text | string | The alternative image text. | No. |
return_url | boolean | The return type (FALSE=image tag, TRUE=address only). | No. |
Returns
A string containing an image tag.Description
This operator generates an image tag that references a MIME type icon. The name of the icon must be provided using the input parameter. The "size" and "alt_text" 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
{'application/pdf'|mimetype_icon( 'small', 'Alternative image text' )}
This will output the MIME type icon that is associated with the ".pdf" file extension (defined in "icon.ini" or an override).
Balazs Halasy (21/03/2005 9:53 am)
Balazs Halasy (03/10/2005 1:50 pm)
Comments
mimetype not class
Wednesday 03 August 2005 4:59:46 pm
Björn Dieding