[ Index ]

PHP Cross Reference of Moodle 1.9.3 [Build 15-Oct-2008]

title

Body

[close]

/lib/smarty/plugins/ -> function.html_image.php (summary)

Smarty plugin

File Size: 139 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 function

  smarty_function_html_image()

Functions
Functions that are not part of a class:

smarty_function_html_image($params, &$smarty)   X-Ref
Smarty {html_image} function plugin

Type:     function<br>
Name:     html_image<br>
Date:     Feb 24, 2003<br>
Purpose:  format HTML tags for the image<br>
Input:<br>
- file = file (and path) of image (required)
- height = image height (optional, default actual height)
- width = image width (optional, default actual width)
- basedir = base directory for absolute paths, default
is environment variable DOCUMENT_ROOT

Examples: {html_image file="images/masthead.gif"}
Output:   <img src="images/masthead.gif" width=400 height=23>
author: Monte Ohrt <monte at ohrt dot com>
author: credits to Duda <duda@big.hu> - wrote first image function
param: array
param: Smarty
return: string



Generated: Wed Jan 14 11:33:29 2009 Cross-referenced by PHPXref 0.7